@partex/one-core 2.0.63 → 2.0.64

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.
@@ -1,4 +1,4 @@
1
- (function(F,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("naive-ui"),require("vue-router"),require("vue-i18n"),require("axios"),require("md5"),require("jsqr"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","naive-ui","vue-router","vue-i18n","axios","md5","jsqr","vuedraggable"],p):(F=typeof globalThis<"u"?globalThis:F||self,p(F.OneCore={},F.Vue,F["naive-ui"],F["vue-router"],F["vue-i18n"],F.axios,F.md5,F.jsQR,F.vuedraggable))})(this,function(F,p,O,Ct,Gt,Hu,Hi,bC,SC){"use strict";var yW=Object.defineProperty;var _W=(F,p,O)=>p in F?yW(F,p,{enumerable:!0,configurable:!0,writable:!0,value:O}):F[p]=O;var Gu=(F,p,O)=>(_W(F,typeof p!="symbol"?p+"":p,O),O);const Xp=p.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>Gr(e.data)}}),Z=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},CC={},xC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},TC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M11.75 3a.75.75 0 0 1 .743.648l.007.102l.001 7.25h7.253a.75.75 0 0 1 .102 1.493l-.102.007h-7.253l.002 7.25a.75.75 0 0 1-1.493.101l-.007-.102l-.002-7.249H3.752a.75.75 0 0 1-.102-1.493L3.752 11h7.25L11 3.75a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1)];function NC(e,t){return p.openBlock(),p.createElementBlock("svg",xC,TC)}const Wi=Z(CC,[["render",NC]]),DC={},AC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},MC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1)];function kC(e,t){return p.openBlock(),p.createElementBlock("svg",AC,MC)}const Wu=Z(DC,[["render",kC]]),EC={},PC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},IC=[p.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[p.createElementVNode("path",{d:"M8 6h12"}),p.createElementVNode("path",{d:"M6 12h12"}),p.createElementVNode("path",{d:"M4 18h12"})],-1)];function LC(e,t){return p.openBlock(),p.createElementBlock("svg",PC,IC)}const Uu=Z(EC,[["render",LC]]),OC={},RC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},BC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0z",fill:"currentColor"})],-1)];function VC(e,t){return p.openBlock(),p.createElementBlock("svg",RC,BC)}const Yu=Z(OC,[["render",VC]]),$C={},FC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},zC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M16.53 11.72l-.084-.072a.75.75 0 0 0-.976.072l-2.72 2.72V7.75l-.007-.102A.75.75 0 0 0 12 7l-.102.007a.75.75 0 0 0-.648.743v6.692L8.53 11.72l-.085-.073a.75.75 0 0 0-.976 1.133l4 4.002l.084.072a.75.75 0 0 0 .976-.072l4.001-4l.073-.085a.75.75 0 0 0-.073-.977zM6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25zM4.5 6.25c0-.966.784-1.75 1.75-1.75h11.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75H6.25a1.75 1.75 0 0 1-1.75-1.75V6.25z",fill:"currentColor"})],-1)];function GC(e,t){return p.openBlock(),p.createElementBlock("svg",FC,zC)}const qu=Z($C,[["render",GC]]),HC={},WC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},UC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M20.026 17.001c-2.762 4.784-8.879 6.423-13.663 3.661A9.965 9.965 0 0 1 3.13 17.68a.75.75 0 0 1 .365-1.132c3.767-1.348 5.785-2.91 6.956-5.146c1.232-2.353 1.551-4.93.689-8.463a.75.75 0 0 1 .769-.927a9.961 9.961 0 0 1 4.457 1.327c4.784 2.762 6.423 8.879 3.66 13.662z",fill:"currentColor"})],-1)];function YC(e,t){return p.openBlock(),p.createElementBlock("svg",WC,UC)}const Ui=Z(HC,[["render",YC]]),qC={},jC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},XC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 2zm5 10a5 5 0 1 1-10 0a5 5 0 0 1 10 0zm4.25.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zM12 19a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 19zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zm-.03-8.53a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5a.75.75 0 0 0 0-1.06zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5z",fill:"currentColor"})],-1)];function ZC(e,t){return p.openBlock(),p.createElementBlock("svg",jC,XC)}const Yi=Z(qC,[["render",ZC]]),KC={},JC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},QC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4z",fill:"currentColor"})],-1)];function e2(e,t){return p.openBlock(),p.createElementBlock("svg",JC,QC)}const ju=Z(KC,[["render",e2]]),t2={},r2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},n2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M10 2.75a7.25 7.25 0 0 1 5.63 11.819l4.9 4.9a.75.75 0 0 1-.976 1.134l-.084-.073l-4.901-4.9A7.25 7.25 0 1 1 10 2.75zm0 1.5a5.75 5.75 0 1 0 0 11.5a5.75 5.75 0 0 0 0-11.5z",fill:"currentColor"})],-1)];function a2(e,t){return p.openBlock(),p.createElementBlock("svg",r2,n2)}const qi=Z(t2,[["render",a2]]),o2={},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},s2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892c.37 0 .696.256.752.623A9 9 0 1 1 18 5.292V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.474 7.474 0 0 0-5.1-2z",fill:"currentColor"})],-1)];function l2(e,t){return p.openBlock(),p.createElementBlock("svg",i2,s2)}const fa=Z(o2,[["render",l2]]),u2={},c2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},f2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V8.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.063c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75zm5.25 13a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0zm-5-3a.5.5 0 0 0-1 0v4.793l-1.646-1.647a.5.5 0 0 0-.708.708l2.5 2.5a.5.5 0 0 0 .708 0l2.5-2.5a.5.5 0 0 0-.708-.708L18 19.293V14.5z",fill:"currentColor"})],-1)];function h2(e,t){return p.openBlock(),p.createElementBlock("svg",c2,f2)}const _o=Z(u2,[["render",h2]]),d2={},p2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},v2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5h9zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5h15z",fill:"currentColor"})],-1)];function g2(e,t){return p.openBlock(),p.createElementBlock("svg",p2,v2)}const ji=Z(d2,[["render",g2]]),m2={},y2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},_2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.5 5.75c0-.69.56-1.25 1.25-1.25h2a.75.75 0 0 0 0-1.5h-2A2.75 2.75 0 0 0 3 5.75v2a.75.75 0 0 0 1.5 0v-2zm0 12.5c0 .69.56 1.25 1.25 1.25h2a.75.75 0 0 1 0 1.5h-2A2.75 2.75 0 0 1 3 18.25v-2a.75.75 0 0 1 1.5 0v2zM18.25 4.5c.69 0 1.25.56 1.25 1.25v2a.75.75 0 0 0 1.5 0v-2A2.75 2.75 0 0 0 18.25 3h-2a.75.75 0 0 0 0 1.5h2zm1.25 13.75c0 .69-.56 1.25-1.25 1.25h-2a.75.75 0 0 0 0 1.5h2A2.75 2.75 0 0 0 21 18.25v-2a.75.75 0 0 0-1.5 0v2z",fill:"currentColor"})],-1)];function w2(e,t){return p.openBlock(),p.createElementBlock("svg",y2,_2)}const Zp=Z(m2,[["render",w2]]),b2={},S2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},C2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})],-1)];function x2(e,t){return p.openBlock(),p.createElementBlock("svg",S2,C2)}const Xu=Z(b2,[["render",x2]]),T2={},N2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},D2=[p.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3c7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112s-50.1 112-112 112z",fill:"currentColor"},null,-1)];function A2(e,t){return p.openBlock(),p.createElementBlock("svg",N2,D2)}const Xi=Z(T2,[["render",A2]]),M2={},k2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},E2=[p.createElementVNode("path",{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512C791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z",fill:"currentColor"},null,-1),p.createElementVNode("path",{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z",fill:"currentColor"},null,-1)];function P2(e,t){return p.openBlock(),p.createElementBlock("svg",k2,E2)}const Zu=Z(M2,[["render",P2]]),I2={},L2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},O2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M20 4.746a2.75 2.75 0 0 0-2.75-2.75H4.75A2.75 2.75 0 0 0 2 4.746v12.5a2.75 2.75 0 0 0 2.75 2.75h6.666l.105-.42c.096-.384.253-.748.463-1.08H4.75c-.69 0-1.25-.56-1.25-1.25v-12.5c0-.69.56-1.25 1.25-1.25h12.5c.69 0 1.25.56 1.25 1.25v7.113c.437-.4.956-.66 1.5-.781V4.746zm-4 9.608V6.73l-.007-.1A.744.744 0 0 0 15.25 6a.74.74 0 0 0-.75.73v8.541l.007.099c.017.125.067.24.142.337L16 14.355zm-8.507-5.71A.75.75 0 0 0 6.75 8a.748.748 0 0 0-.75.747v6.507l.007.101c.05.365.363.645.743.645c.414 0 .75-.334.75-.746V8.746l-.007-.101zm4.214 2.973a.73.73 0 0 0-.732-.62a.73.73 0 0 0-.725.733l.035 3.547l.008.099a.731.731 0 0 0 .732.62a.73.73 0 0 0 .725-.733l-.035-3.548l-.008-.098zm7.393 1.052l-5.903 5.902a2.686 2.686 0 0 0-.706 1.248l-.458 1.83a1.087 1.087 0 0 0 1.319 1.319l1.83-.458a2.685 2.685 0 0 0 1.248-.706l5.902-5.903A2.286 2.286 0 0 0 19.1 12.67z",fill:"currentColor"})],-1)];function R2(e,t){return p.openBlock(),p.createElementBlock("svg",L2,O2)}const Ku=Z(I2,[["render",R2]]),B2={},V2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.397 4.554l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1)];function F2(e,t){return p.openBlock(),p.createElementBlock("svg",V2,$2)}const Fr=Z(B2,[["render",F2]]),z2={},G2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},H2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M22 6.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zM17 7l.001 2.504a.5.5 0 1 1-1 0V7h-2.505a.5.5 0 0 1 0-1H16V3.5a.5.5 0 0 1 1 0V6h2.503a.5.5 0 1 1 0 1h-2.502zm2.5 7v-1.732A6.518 6.518 0 0 0 21 11.19v7.56a3.25 3.25 0 0 1-3.066 3.245L17.75 22H6.25a3.25 3.25 0 0 1-3.245-3.066L3 18.75V7.25a3.25 3.25 0 0 1 3.066-3.245L6.25 4h4.248a6.451 6.451 0 0 0-.422 1.5H6.25a1.75 1.75 0 0 0-1.744 1.606L4.5 7.25V14H9a.75.75 0 0 1 .743.648l.007.102a2.25 2.25 0 0 0 4.495.154l.005-.154a.75.75 0 0 1 .648-.743L15 14h4.5zm-15 1.5v3.25a1.75 1.75 0 0 0 1.606 1.744l.144.006h11.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143V15.5h-3.825a3.752 3.752 0 0 1-3.475 2.995l-.2.005a3.752 3.752 0 0 1-3.632-2.812l-.043-.188H4.5z",fill:"currentColor"})],-1)];function W2(e,t){return p.openBlock(),p.createElementBlock("svg",G2,H2)}const wo=Z(z2,[["render",W2]]),U2={},Y2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},q2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M6.087 7.75a5.752 5.752 0 0 1 11.326 0h.087a4 4 0 0 1 3.962 4.552a6.534 6.534 0 0 0-1.597-1.364A2.501 2.501 0 0 0 17.5 9.25h-.756a.75.75 0 0 1-.75-.713a4.25 4.25 0 0 0-8.489 0a.75.75 0 0 1-.749.713H6a2.5 2.5 0 0 0 0 5h4.4a6.458 6.458 0 0 0-.357 1.5H6a4 4 0 0 1 0-8h.087zM22 16.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zm-6-3a.5.5 0 0 1 1 0v4.793l1.646-1.647a.5.5 0 0 1 .708.708l-2.5 2.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 .708-.708L16 18.293V13.5z",fill:"currentColor"})],-1)];function j2(e,t){return p.openBlock(),p.createElementBlock("svg",Y2,q2)}const Zi=Z(U2,[["render",j2]]),X2={},Z2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},K2=[p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1)];function J2(e,t){return p.openBlock(),p.createElementBlock("svg",Z2,K2)}const Ki=Z(X2,[["render",J2]]),Q2={},ex={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M16.242 2.932l4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561L4.06 21H3v-1.062L7.44 15.5l-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.439a.75.75 0 0 0 .426-.374l2.435-4.87a2.75 2.75 0 0 1 4.405-.715zm3.766 5.886l-4.826-4.825a1.25 1.25 0 0 0-2.002.324l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31l6.705 6.704l1.308-3.788a2.25 2.25 0 0 1 1.12-1.278l4.872-2.436a1.25 1.25 0 0 0 .325-2.002z",fill:"currentColor"})],-1)];function rx(e,t){return p.openBlock(),p.createElementBlock("svg",ex,tx)}const Ju=Z(Q2,[["render",rx]]),nx={},ax={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ox=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l5.905 5.905L4.81 10.33a1.25 1.25 0 0 0-.476 2.065L7.439 15.5L3 19.94V21h1.06l4.44-4.44l3.105 3.105a1.25 1.25 0 0 0 2.065-.476l1.145-3.313l5.905 5.904a.75.75 0 1 0 1.06-1.06L3.28 2.22zm10.355 12.476l-1.252 3.626l-6.705-6.705l3.626-1.252l4.331 4.331zm6.048-3.876l-3.787 1.894l1.118 1.118l3.34-1.67a2.75 2.75 0 0 0 .714-4.404l-4.825-4.826a2.75 2.75 0 0 0-4.405.715l-1.67 3.34l1.118 1.117l1.894-3.787a1.25 1.25 0 0 1 2.002-.325l4.826 4.826a1.25 1.25 0 0 1-.325 2.002z",fill:"currentColor"})],-1)];function ix(e,t){return p.openBlock(),p.createElementBlock("svg",ax,ox)}const Qu=Z(nx,[["render",ix]]),sx={},lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ux=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1)];function cx(e,t){return p.openBlock(),p.createElementBlock("svg",lx,ux)}const Ji=Z(sx,[["render",cx]]),fx={},hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06z",fill:"currentColor"})],-1)];function px(e,t){return p.openBlock(),p.createElementBlock("svg",hx,dx)}const ec=Z(fx,[["render",px]]),vx={},gx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},mx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M16.25 5.18a.75.75 0 0 0 .142 1.051a7.251 7.251 0 0 1-3.599 12.976l.677-.677a.75.75 0 0 0-.977-1.133l-.084.073l-2 2a.75.75 0 0 0-.073.976l.073.084l2 2a.75.75 0 0 0 1.133-.976l-.072-.084l-.75-.75A8.75 8.75 0 0 0 17.301 5.04a.75.75 0 0 0-1.051.141zm-5.72-3.71a.75.75 0 0 0 0 1.06l.75.75a8.75 8.75 0 0 0-4.85 15.47a.75.75 0 1 0 .956-1.157a7.251 7.251 0 0 1 3.82-12.8l-.676.677a.75.75 0 1 0 1.061 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0z",fill:"currentColor"})],-1)];function yx(e,t){return p.openBlock(),p.createElementBlock("svg",gx,mx)}const tc=Z(vx,[["render",yx]]),_x={},bx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Sx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M17.754 14a2.249 2.249 0 0 1 2.249 2.25v.918a2.75 2.75 0 0 1-.513 1.598c-1.545 2.164-4.07 3.235-7.49 3.235c-3.421 0-5.944-1.072-7.486-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.251 14h11.502zM12 2.005a5 5 0 1 1 0 10a5 5 0 0 1 0-10z",fill:"currentColor"})],-1)];function Cx(e,t){return p.openBlock(),p.createElementBlock("svg",bx,Sx)}const rc=Z(_x,[["render",Cx]]),nc=window.localStorage;function ac(e,t){nc.setItem(e,JSON.stringify(t))}function Kp(e){const t=nc.getItem(e);return t?JSON.parse(t):null}function xx(e){nc.removeItem(e)}function Jp(){return Date.parse(String(new Date))}const Tx="local-";class Nx{constructor(t=""){Gu(this,"namespace");Gu(this,"mapKey");Gu(this,"map");this.namespace=t,this.mapKey=Tx+this.namespace,this.map=Kp(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),o={expires:n,time:Jp()};ac(a,r),this.map[t]=o,ac(this.mapKey,this.map)}getReallyKey(t){return this.namespace+"-"+t}get(t,r){const n=this.getReallyKey(t),a=this.map[t];if(a){const o=Kp(n);if(a.expires>0){if(Jp()-a.time<=a.expires)return o===!1||o?o:r;this.delete(t)}else return o===!1||o?o:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],ac(this.mapKey,this.map),xx(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const oc=new Nx("partex"),ha=(e,t,r)=>{const n=new Date;return new Date(`${e||n.getFullYear()}/${t||n.getMonth()+1}/${r||n.getDate()} 00:00:00`).getTime()};function Ht(e,t,r=3e4){if(typeof r=="string"){let n=0;const a=r.split(" ");switch(a[1]){case"Minutes":n=6e4;break;case"Hours":n=36e5;break;case"Day":n=864e5;break;case"Week":n=6048e5;break}r=Number(a[0])*n}oc.set(e,t,r)}function xt(e,t){return oc.get(e,t)}const bo=e=>{oc.delete(e)},Qi=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},Qp=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function So(e,t=!1){let r=e.records;t&&(r=r.map((a,o)=>({key:o,...a})));const n=parseInt(e.size);return{query:{page:Number(e.current),pageCount:parseInt(e.pages),pageSize:n>29?n:30,itemCount:parseInt(e.total),pageSizes:[30,40,50],showQuickJumper:!0,showSizePicker:!0,pageSlot:8,prefix:()=>p.h("div",{},{default:()=>se.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Co(e){if(!e.query)return e;const t={};return e.query.page&&(t.current=e.query.page),e.query.pageSize&&(t.size=e.query.pageSize),e.query.isGetAll&&(t.isGetAll=e.query.isGetAll),e.query.keyword&&(t.keyword=e.query.keyword),e.query.columnKey&&(t.columnKey=e.query.columnKey),e.query.order&&(t.order=e.query.order),{...e,query:t}}const wr=(e,t="yyyy-MM-dd")=>{if(!e)return"";typeof e=="string"&&(e=e.replace(/年/g,"-").replace(/月/g,"-").replace(/日/g,""));let r=new Date(e);if(typeof e=="string"&&isNaN(r.getTime())&&(r=new Date(parseInt(e))),isNaN(r.getTime()))return"---";const n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length)));for(const a in n)if(new RegExp("("+a+")").test(t)){let o=n[a];RegExp.$1.length!==1&&(o=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,o)}return t},zr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},xo=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},Dx=(e,t=500)=>{const r=e;let n;const a=function(...i){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,i)},t))};return a};function Ax(e,t){e.requestFullscreen?(t&&(e.onfullscreenchange=t),e.requestFullscreen()):e.mozRequestFullScreen?(t&&(e.onmozfullscreenchange=t),e.mozRequestFullScreen()):e.webkitRequestFullscreen?(t&&(e.onwebkitfullscreenchange=t),e.webkitRequestFullscreen()):e.msRequestFullscreen&&(t&&(e.onmsfullscreenchange=t),e.msRequestFullscreen())}function Mx(e,t=0){const r=["","k","m","b","t"],n=Math.floor(Math.log10(Math.abs(e))/3),a=Math.max(0,Math.min(n,r.length-1)),o=r[a];return o?(e/Math.pow(10,a*3)).toFixed(t)+o:(e/Math.pow(10,a*3)).toFixed(0)}const kx={Platform:{components:"组件库",iot:"智能效率监测平台",prt:"智能效率监测平台",tdm:"智能刀具管理平台",qms:"智能质量检测平台",twin:"智能数字大屏平台",maintain:"智能设备维保平台",order:"智能工单管理平台"},Notice:{success:"操作成功",error:"操作失败,请稍后重试"},Common:{validDays:"报表文件具有七天有效期",add:"新增",edit:"编辑",apply:"保存",cancel:"取消",search:"查询",refresh:"刷新",filter:"筛选",reset:"重置",more:"更多",export:"导出",success:"成功",failed:"失败",processing:"处理中",action:"操作",back:"返回",title:"零捷互联智能云平台",message:{title:"消息列表",title2:"消息",unRead:"未读",all:"全部",read:"已读",readAll:"一键已读"},login:{mobile:"手机号",mobilePlaceholder:"请输入手机号码",mobileMessage:"请输入正确的手机号码",password:"密码",passwordPlaceholder:"请输入密码",passwordMessage:"请输入密码",userName:"用户名",userNamePlaceholder:"请输入用户名",userNameMessage:"请输入正确的用户名",in:"登录"},my:{title:"我的信息",tenantCode:"租户代码",tenantName:"租户名称",name:"名称",email:"邮箱",emailMessage:"邮箱格式不正确",realName:"真实姓名",phone:"手机",phoneMessage:"手机号码格式不正确",submit:"更新",password:"修改密码",oldPassword:"旧密码",newPassword:"新密码",checkPassword:"确认新密码",oldPasswordMessage:"请填写旧密码",newPasswordMessage:"请填写新密码",checkPasswordMessage:"请填写确认新密码"},dropdownMenu:{software:"零捷软件",android:"安卓APP",ios:"iOS APP",chrome:"Chrome浏览器",edge:"Edge浏览器",dashboard_IoT:"大屏机加工版本",dashboard_Prt:"大屏印刷版本",report:"个性化报表",info:"我的信息",language:"语言",theme:"主题",light:"亮",dark:"暗",logout:"退出"},importer:{title:"导入",file:"导入文件",download:"下载模版",btnDownload:"下载",fileName:"文件名称",status:"状态",createTime:"创建时间",retry:"重试"}}},Ex={Platform:{components:"Components",iot:"SMART LEAN IOT PLATFORM",prt:"SMART LEAN IOT PLATFORM",tdm:"SMART TOOL MANAGEMENT PLATFORM",qms:"SMART QUALITY MANAGEMENT PLATFORM",twin:"SMART DASHBOARD PLATFORM",maintain:"SMART MAINTAIN PLATFORM",order:"SMART ORDER MANAGEMENT PLATFORM"},Notice:{success:"Success",error:"An error occurred, please try again later"},Common:{validDays:"Files are valid for seven days",add:"Insert",edit:"Edit",apply:"Apply",cancel:"Cancel",search:"Search",refresh:"Refresh",filter:"Filter",reset:"Reset",more:"More",export:"Export",success:"Success",failed:"Failed",processing:"Processing",action:"Action",back:"Back",title:"Partex",message:{title:"Messages",title2:"Message",unRead:"Unread",all:"All",read:"Read",readAll:"Read All"},login:{mobile:"Mobile",mobilePlaceholder:"Please Input Mobile",mobileMessage:"Mobile is not correct",password:"Password",passwordPlaceholder:"Please Input Password",passwordMessage:"Please Input Password",userName:"UserName",userNamePlaceholder:"Please Input UserName",userNameMessage:"UserName is not correct",in:"Sign in"},my:{title:"Info",tenantCode:"TenantCode",tenantName:"TenantName",name:"Name",email:"Email",emailMessage:"Email is not correct",realName:"RealName",phone:"Mobile",phoneMessage:"Mobile is not correct",submit:"Apply",password:"Change Password",oldPassword:"Current",newPassword:"New",checkPassword:"Check",oldPasswordMessage:"Please Input Current Password",newPasswordMessage:"Please Input New Password",checkPasswordMessage:"Please Check New Password"},dropdownMenu:{software:"Softwares",android:"Android APP",ios:"iOS APP",chrome:"Chrome",edge:"Edge",dashboard:"Dashboard",dashboard_IoT:"Dashboard_IoT",dashboard_Prt:"Dashboard_Print",report:"Reports",info:"My",language:"Language",theme:"Theme",light:"Light",dark:"Dark",logout:"Logout"},importer:{title:"Import",file:"Import File",download:"Download Template",btnDownload:"Download",fileName:"FileName",status:"Status",createTime:"CreateTime",retry:"Retry"}}},mt=Gt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...Ex},"zh-CN":{...kx},"fr-FR":{}}}),ev="2.0.63",tv={Components:{platformName:()=>`${mt.global.t("Platform.components")} v${ev}`,platformType:"T0",platformUrl:"/",platformMainUrl:""},iot:{platformName:()=>mt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""},prt:{platformName:()=>mt.global.t("Platform.prt"),platformType:"T1",platformUrl:"/prt/home/all",platformMainUrl:""},tdm:{platformName:()=>mt.global.t("Platform.tdm"),platformType:"T2",platformUrl:"/tdm/home",platformMainUrl:"/iot/home/all"},qms:{platformName:()=>mt.global.t("Platform.qms"),platformType:"T3",platformUrl:"/qms/home",platformMainUrl:"/iot/home/all"},twin:{platformName:()=>mt.global.t("Platform.twin"),platformType:"T4",platformUrl:"/twin/home",platformMainUrl:"/prt/home/all"},maintain:{platformName:()=>mt.global.t("Platform.maintain"),platformType:"T5",platformUrl:"/maintain/home",platformMainUrl:"auto"},order:{platformName:()=>mt.global.t("Platform.order"),platformType:"T6",platformUrl:"/order/home",platformMainUrl:"/prt/home/all"}},se=p.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>mt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""});function ic(e){se.download=e}function Px(e){se.language=e}function da(e){let t;e?t=e:se.lang==="zh-CN"?t="en-US":t="zh-CN",Ht("lang",t,0),se.lang=t;const r=document.body;r.dataset.lang=t,mt.global.locale.value=t}function Ix(e){const t=tv[e]||tv.iot;se.platformName=t.platformName,se.platformType=t.platformType,se.platformUrl=t.platformUrl,se.platformMainUrl=t.platformMainUrl||"auto",document.title=t.platformName()}function To(e){se.theme=e;const t=document.body,r=document.querySelector("meta[name=theme-color]");e?t.dataset.theme="dark":t.dataset.theme="",r&&(e?r.setAttribute("content","#2b2b2d"):r.setAttribute("content","#ffffff"))}function Lx(e){se.needUpdate=e}const rv=()=>{se.isMobile=window.screen.availWidth<769,se.isPad=window.screen.availWidth<1024};window.addEventListener("resize",rv),rv();const es=(e,t)=>p.h(O.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),br=(e,t="default",r,n,a)=>{const o={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},i={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;o.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(o.onClick=e.onClick.bind(void 0,n,a))}return r&&(i.icon=()=>p.h(O.NIcon,{},{default:()=>p.h(r,{},{default:()=>null})})),p.h(O.NButton,o,i)},ts=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const o=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",o)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return p.h(O.NPopconfirm,a,{default:()=>p.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},Ox=(e,t,r)=>{let n;if(e.type==="detail"){const a=br(e,e.color?e.color:"primary",e.icon?e.icon:Xi,t,r);e.buttonText?n=a:n=es(a,se.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=br(e,e.color?e.color:"success",e.icon?e.icon:Ku,t,r);e.buttonText?n=a:n=es(a,se.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=br({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Xu,t,r);e.buttonText?a=a:a=es(a,se.lang==="zh-CN"?"删除":"Delete"),n=ts(a,{...e,confirmText:se.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=br(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=es(a,e.tooltipText)}return e.confirmText&&(n=ts(n,e,t,r)),n},Rx=(e,t,r)=>{const n=[];return e.forEach(a=>{let o;a.type==="detail"&&(o=br({...a,buttonText:se.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(o=br({...a,buttonText:se.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(o=ts(br({...a,onClick:"",buttonText:se.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:se.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(o=br(a,a.color,void 0,t,r)),a.confirmText&&(o=ts(o,a,t,r)),n.push(o)}),n},Gr=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const o=Rx(a.children,t,r);n.push(p.h(O.NPopover,{trigger:"hover"},{trigger:()=>br({buttonText:typeof a.buttonText=="function"?a.buttonText():a.buttonText,disabled:typeof a.disabled=="function"?a.disabled(t,r):a.disabled,loading:a.loading},a.color,a.icon,t,r),default:()=>p.h(O.NFlex,{vertical:!0},{default:()=>o})}))}}else{const o=Ox(a,t,r);n.push(o)}}),p.h("div",{class:"action-flex"},{default:()=>n})},Bx=p.defineComponent({name:"OcAuth",setup(){const e=Ct.useRoute(),t=Ct.useRouter(),{auth:r}=e.query;r?Ht("token",r,0):bo("token"),t.replace(se.platformUrl)}}),Vx={class:"com-card flex-center",style:{flex:"1"}},$x=[p.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1)];function Fx(e,t,r,n,a,o){return p.openBlock(),p.createElementBlock("div",Vx,$x)}const nv=Z(Bx,[["render",Fx]]),zx=p.defineComponent({name:"OcBack",components:{IconChevronLeft:Yu,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=Ct.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function Gx(e,t,r,n,a,o){const i=p.resolveComponent("IconChevronLeft"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton");return p.openBlock(),p.createBlock(l,{text:"",onClick:e.back},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const av=Z(zx,[["render",Gx]]),Hx=p.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=p.ref({show:!1,text:"",x:0,y:0});return{popover:t,calculateCircle:()=>{let s=314-e.circle*Math.PI;return s<=0&&(s=0),`stroke-dashoffset: ${s}`},calculatePointA:()=>e.pointA?`rotate(${-90+e.pointA*3.6} 100 80) translate(50, 0)`:"",calculatePointB:()=>e.pointB?`rotate(${-90+e.pointB*3.6} 100 80) translate(50, 0)`:"",mouseOver:(s,l)=>{const u=l==="a"?e.pointA:e.pointB;t.value={show:!0,text:`${u}%`,x:s.clientX,y:s.clientY}},mouseOut:()=>{t.value.show=!1}}}}),Wx={viewBox:"40 20 120 120"},Ux=p.createElementVNode("defs",null,[p.createElementVNode("filter",{id:"blurs"},[p.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),p.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),p.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),Yx=["stroke"],qx=["stroke"],jx=["r","transform","fill"],Xx=["r","transform","fill"],Zx={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function Kx(e,t,r,n,a,o){const i=p.resolveComponent("NPopover");return p.openBlock(),p.createElementBlock(p.Fragment,null,[(p.openBlock(),p.createElementBlock("svg",Wx,[Ux,p.createElementVNode("circle",{transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10","stroke-dashoffset":"0",stroke:e.styles.backgroundBg},null,8,Yx),p.createElementVNode("circle",{class:"oc-circle-round","stroke-linecap":"round",transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10",style:p.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,qx),e.pointA?(p.openBlock(),p.createElementBlock("circle",{key:0,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointA(),fill:e.styles.pointABg,onMouseover:t[0]||(t[0]=s=>{e.mouseOver(s,"a")}),onMouseout:t[1]||(t[1]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,jx)):p.createCommentVNode("",!0),e.pointB?(p.openBlock(),p.createElementBlock("circle",{key:1,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointB(),fill:e.styles.pointBBg,onMouseover:t[2]||(t[2]=s=>{e.mouseOver(s,"b")}),onMouseout:t[3]||(t[3]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,Xx)):p.createCommentVNode("",!0),p.createElementVNode("text",Zx,p.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),p.createVNode(i,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const ov=Z(Hx,[["render",Kx]]);/*! *****************************************************************************
1
+ (function(F,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("naive-ui"),require("vue-router"),require("vue-i18n"),require("axios"),require("md5"),require("jsqr"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","naive-ui","vue-router","vue-i18n","axios","md5","jsqr","vuedraggable"],p):(F=typeof globalThis<"u"?globalThis:F||self,p(F.OneCore={},F.Vue,F["naive-ui"],F["vue-router"],F["vue-i18n"],F.axios,F.md5,F.jsQR,F.vuedraggable))})(this,function(F,p,O,Ct,Gt,Hu,Hi,bC,SC){"use strict";var yW=Object.defineProperty;var _W=(F,p,O)=>p in F?yW(F,p,{enumerable:!0,configurable:!0,writable:!0,value:O}):F[p]=O;var Gu=(F,p,O)=>(_W(F,typeof p!="symbol"?p+"":p,O),O);const Xp=p.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>Gr(e.data)}}),Z=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},CC={},xC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},TC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M11.75 3a.75.75 0 0 1 .743.648l.007.102l.001 7.25h7.253a.75.75 0 0 1 .102 1.493l-.102.007h-7.253l.002 7.25a.75.75 0 0 1-1.493.101l-.007-.102l-.002-7.249H3.752a.75.75 0 0 1-.102-1.493L3.752 11h7.25L11 3.75a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1)];function NC(e,t){return p.openBlock(),p.createElementBlock("svg",xC,TC)}const Wi=Z(CC,[["render",NC]]),DC={},AC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},MC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1)];function kC(e,t){return p.openBlock(),p.createElementBlock("svg",AC,MC)}const Wu=Z(DC,[["render",kC]]),EC={},PC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},IC=[p.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[p.createElementVNode("path",{d:"M8 6h12"}),p.createElementVNode("path",{d:"M6 12h12"}),p.createElementVNode("path",{d:"M4 18h12"})],-1)];function LC(e,t){return p.openBlock(),p.createElementBlock("svg",PC,IC)}const Uu=Z(EC,[["render",LC]]),OC={},RC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},BC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0z",fill:"currentColor"})],-1)];function VC(e,t){return p.openBlock(),p.createElementBlock("svg",RC,BC)}const Yu=Z(OC,[["render",VC]]),$C={},FC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},zC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M16.53 11.72l-.084-.072a.75.75 0 0 0-.976.072l-2.72 2.72V7.75l-.007-.102A.75.75 0 0 0 12 7l-.102.007a.75.75 0 0 0-.648.743v6.692L8.53 11.72l-.085-.073a.75.75 0 0 0-.976 1.133l4 4.002l.084.072a.75.75 0 0 0 .976-.072l4.001-4l.073-.085a.75.75 0 0 0-.073-.977zM6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25zM4.5 6.25c0-.966.784-1.75 1.75-1.75h11.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75H6.25a1.75 1.75 0 0 1-1.75-1.75V6.25z",fill:"currentColor"})],-1)];function GC(e,t){return p.openBlock(),p.createElementBlock("svg",FC,zC)}const qu=Z($C,[["render",GC]]),HC={},WC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},UC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M20.026 17.001c-2.762 4.784-8.879 6.423-13.663 3.661A9.965 9.965 0 0 1 3.13 17.68a.75.75 0 0 1 .365-1.132c3.767-1.348 5.785-2.91 6.956-5.146c1.232-2.353 1.551-4.93.689-8.463a.75.75 0 0 1 .769-.927a9.961 9.961 0 0 1 4.457 1.327c4.784 2.762 6.423 8.879 3.66 13.662z",fill:"currentColor"})],-1)];function YC(e,t){return p.openBlock(),p.createElementBlock("svg",WC,UC)}const Ui=Z(HC,[["render",YC]]),qC={},jC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},XC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 2zm5 10a5 5 0 1 1-10 0a5 5 0 0 1 10 0zm4.25.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zM12 19a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 19zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zm-.03-8.53a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5a.75.75 0 0 0 0-1.06zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5z",fill:"currentColor"})],-1)];function ZC(e,t){return p.openBlock(),p.createElementBlock("svg",jC,XC)}const Yi=Z(qC,[["render",ZC]]),KC={},JC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},QC=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4z",fill:"currentColor"})],-1)];function e2(e,t){return p.openBlock(),p.createElementBlock("svg",JC,QC)}const ju=Z(KC,[["render",e2]]),t2={},r2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},n2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M10 2.75a7.25 7.25 0 0 1 5.63 11.819l4.9 4.9a.75.75 0 0 1-.976 1.134l-.084-.073l-4.901-4.9A7.25 7.25 0 1 1 10 2.75zm0 1.5a5.75 5.75 0 1 0 0 11.5a5.75 5.75 0 0 0 0-11.5z",fill:"currentColor"})],-1)];function a2(e,t){return p.openBlock(),p.createElementBlock("svg",r2,n2)}const qi=Z(t2,[["render",a2]]),o2={},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},s2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892c.37 0 .696.256.752.623A9 9 0 1 1 18 5.292V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.474 7.474 0 0 0-5.1-2z",fill:"currentColor"})],-1)];function l2(e,t){return p.openBlock(),p.createElementBlock("svg",i2,s2)}const fa=Z(o2,[["render",l2]]),u2={},c2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},f2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V8.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.063c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75zm5.25 13a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0zm-5-3a.5.5 0 0 0-1 0v4.793l-1.646-1.647a.5.5 0 0 0-.708.708l2.5 2.5a.5.5 0 0 0 .708 0l2.5-2.5a.5.5 0 0 0-.708-.708L18 19.293V14.5z",fill:"currentColor"})],-1)];function h2(e,t){return p.openBlock(),p.createElementBlock("svg",c2,f2)}const yo=Z(u2,[["render",h2]]),d2={},p2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},v2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5h9zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5h15z",fill:"currentColor"})],-1)];function g2(e,t){return p.openBlock(),p.createElementBlock("svg",p2,v2)}const ji=Z(d2,[["render",g2]]),m2={},y2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},_2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.5 5.75c0-.69.56-1.25 1.25-1.25h2a.75.75 0 0 0 0-1.5h-2A2.75 2.75 0 0 0 3 5.75v2a.75.75 0 0 0 1.5 0v-2zm0 12.5c0 .69.56 1.25 1.25 1.25h2a.75.75 0 0 1 0 1.5h-2A2.75 2.75 0 0 1 3 18.25v-2a.75.75 0 0 1 1.5 0v2zM18.25 4.5c.69 0 1.25.56 1.25 1.25v2a.75.75 0 0 0 1.5 0v-2A2.75 2.75 0 0 0 18.25 3h-2a.75.75 0 0 0 0 1.5h2zm1.25 13.75c0 .69-.56 1.25-1.25 1.25h-2a.75.75 0 0 0 0 1.5h2A2.75 2.75 0 0 0 21 18.25v-2a.75.75 0 0 0-1.5 0v2z",fill:"currentColor"})],-1)];function w2(e,t){return p.openBlock(),p.createElementBlock("svg",y2,_2)}const Zp=Z(m2,[["render",w2]]),b2={},S2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},C2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})],-1)];function x2(e,t){return p.openBlock(),p.createElementBlock("svg",S2,C2)}const Xu=Z(b2,[["render",x2]]),T2={},N2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},D2=[p.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3c7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112s-50.1 112-112 112z",fill:"currentColor"},null,-1)];function A2(e,t){return p.openBlock(),p.createElementBlock("svg",N2,D2)}const Xi=Z(T2,[["render",A2]]),M2={},k2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},E2=[p.createElementVNode("path",{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512C791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z",fill:"currentColor"},null,-1),p.createElementVNode("path",{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z",fill:"currentColor"},null,-1)];function P2(e,t){return p.openBlock(),p.createElementBlock("svg",k2,E2)}const Zu=Z(M2,[["render",P2]]),I2={},L2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},O2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M20 4.746a2.75 2.75 0 0 0-2.75-2.75H4.75A2.75 2.75 0 0 0 2 4.746v12.5a2.75 2.75 0 0 0 2.75 2.75h6.666l.105-.42c.096-.384.253-.748.463-1.08H4.75c-.69 0-1.25-.56-1.25-1.25v-12.5c0-.69.56-1.25 1.25-1.25h12.5c.69 0 1.25.56 1.25 1.25v7.113c.437-.4.956-.66 1.5-.781V4.746zm-4 9.608V6.73l-.007-.1A.744.744 0 0 0 15.25 6a.74.74 0 0 0-.75.73v8.541l.007.099c.017.125.067.24.142.337L16 14.355zm-8.507-5.71A.75.75 0 0 0 6.75 8a.748.748 0 0 0-.75.747v6.507l.007.101c.05.365.363.645.743.645c.414 0 .75-.334.75-.746V8.746l-.007-.101zm4.214 2.973a.73.73 0 0 0-.732-.62a.73.73 0 0 0-.725.733l.035 3.547l.008.099a.731.731 0 0 0 .732.62a.73.73 0 0 0 .725-.733l-.035-3.548l-.008-.098zm7.393 1.052l-5.903 5.902a2.686 2.686 0 0 0-.706 1.248l-.458 1.83a1.087 1.087 0 0 0 1.319 1.319l1.83-.458a2.685 2.685 0 0 0 1.248-.706l5.902-5.903A2.286 2.286 0 0 0 19.1 12.67z",fill:"currentColor"})],-1)];function R2(e,t){return p.openBlock(),p.createElementBlock("svg",L2,O2)}const Ku=Z(I2,[["render",R2]]),B2={},V2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.397 4.554l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1)];function F2(e,t){return p.openBlock(),p.createElementBlock("svg",V2,$2)}const Fr=Z(B2,[["render",F2]]),z2={},G2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},H2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M22 6.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zM17 7l.001 2.504a.5.5 0 1 1-1 0V7h-2.505a.5.5 0 0 1 0-1H16V3.5a.5.5 0 0 1 1 0V6h2.503a.5.5 0 1 1 0 1h-2.502zm2.5 7v-1.732A6.518 6.518 0 0 0 21 11.19v7.56a3.25 3.25 0 0 1-3.066 3.245L17.75 22H6.25a3.25 3.25 0 0 1-3.245-3.066L3 18.75V7.25a3.25 3.25 0 0 1 3.066-3.245L6.25 4h4.248a6.451 6.451 0 0 0-.422 1.5H6.25a1.75 1.75 0 0 0-1.744 1.606L4.5 7.25V14H9a.75.75 0 0 1 .743.648l.007.102a2.25 2.25 0 0 0 4.495.154l.005-.154a.75.75 0 0 1 .648-.743L15 14h4.5zm-15 1.5v3.25a1.75 1.75 0 0 0 1.606 1.744l.144.006h11.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143V15.5h-3.825a3.752 3.752 0 0 1-3.475 2.995l-.2.005a3.752 3.752 0 0 1-3.632-2.812l-.043-.188H4.5z",fill:"currentColor"})],-1)];function W2(e,t){return p.openBlock(),p.createElementBlock("svg",G2,H2)}const _o=Z(z2,[["render",W2]]),U2={},Y2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},q2=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M6.087 7.75a5.752 5.752 0 0 1 11.326 0h.087a4 4 0 0 1 3.962 4.552a6.534 6.534 0 0 0-1.597-1.364A2.501 2.501 0 0 0 17.5 9.25h-.756a.75.75 0 0 1-.75-.713a4.25 4.25 0 0 0-8.489 0a.75.75 0 0 1-.749.713H6a2.5 2.5 0 0 0 0 5h4.4a6.458 6.458 0 0 0-.357 1.5H6a4 4 0 0 1 0-8h.087zM22 16.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zm-6-3a.5.5 0 0 1 1 0v4.793l1.646-1.647a.5.5 0 0 1 .708.708l-2.5 2.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 .708-.708L16 18.293V13.5z",fill:"currentColor"})],-1)];function j2(e,t){return p.openBlock(),p.createElementBlock("svg",Y2,q2)}const Zi=Z(U2,[["render",j2]]),X2={},Z2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},K2=[p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1)];function J2(e,t){return p.openBlock(),p.createElementBlock("svg",Z2,K2)}const Ki=Z(X2,[["render",J2]]),Q2={},ex={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M16.242 2.932l4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561L4.06 21H3v-1.062L7.44 15.5l-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.439a.75.75 0 0 0 .426-.374l2.435-4.87a2.75 2.75 0 0 1 4.405-.715zm3.766 5.886l-4.826-4.825a1.25 1.25 0 0 0-2.002.324l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31l6.705 6.704l1.308-3.788a2.25 2.25 0 0 1 1.12-1.278l4.872-2.436a1.25 1.25 0 0 0 .325-2.002z",fill:"currentColor"})],-1)];function rx(e,t){return p.openBlock(),p.createElementBlock("svg",ex,tx)}const Ju=Z(Q2,[["render",rx]]),nx={},ax={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ox=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l5.905 5.905L4.81 10.33a1.25 1.25 0 0 0-.476 2.065L7.439 15.5L3 19.94V21h1.06l4.44-4.44l3.105 3.105a1.25 1.25 0 0 0 2.065-.476l1.145-3.313l5.905 5.904a.75.75 0 1 0 1.06-1.06L3.28 2.22zm10.355 12.476l-1.252 3.626l-6.705-6.705l3.626-1.252l4.331 4.331zm6.048-3.876l-3.787 1.894l1.118 1.118l3.34-1.67a2.75 2.75 0 0 0 .714-4.404l-4.825-4.826a2.75 2.75 0 0 0-4.405.715l-1.67 3.34l1.118 1.117l1.894-3.787a1.25 1.25 0 0 1 2.002-.325l4.826 4.826a1.25 1.25 0 0 1-.325 2.002z",fill:"currentColor"})],-1)];function ix(e,t){return p.openBlock(),p.createElementBlock("svg",ax,ox)}const Qu=Z(nx,[["render",ix]]),sx={},lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ux=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1)];function cx(e,t){return p.openBlock(),p.createElementBlock("svg",lx,ux)}const Ji=Z(sx,[["render",cx]]),fx={},hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06z",fill:"currentColor"})],-1)];function px(e,t){return p.openBlock(),p.createElementBlock("svg",hx,dx)}const ec=Z(fx,[["render",px]]),vx={},gx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},mx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M16.25 5.18a.75.75 0 0 0 .142 1.051a7.251 7.251 0 0 1-3.599 12.976l.677-.677a.75.75 0 0 0-.977-1.133l-.084.073l-2 2a.75.75 0 0 0-.073.976l.073.084l2 2a.75.75 0 0 0 1.133-.976l-.072-.084l-.75-.75A8.75 8.75 0 0 0 17.301 5.04a.75.75 0 0 0-1.051.141zm-5.72-3.71a.75.75 0 0 0 0 1.06l.75.75a8.75 8.75 0 0 0-4.85 15.47a.75.75 0 1 0 .956-1.157a7.251 7.251 0 0 1 3.82-12.8l-.676.677a.75.75 0 1 0 1.061 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0z",fill:"currentColor"})],-1)];function yx(e,t){return p.openBlock(),p.createElementBlock("svg",gx,mx)}const tc=Z(vx,[["render",yx]]),_x={},bx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Sx=[p.createElementVNode("g",{fill:"none"},[p.createElementVNode("path",{d:"M17.754 14a2.249 2.249 0 0 1 2.249 2.25v.918a2.75 2.75 0 0 1-.513 1.598c-1.545 2.164-4.07 3.235-7.49 3.235c-3.421 0-5.944-1.072-7.486-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.251 14h11.502zM12 2.005a5 5 0 1 1 0 10a5 5 0 0 1 0-10z",fill:"currentColor"})],-1)];function Cx(e,t){return p.openBlock(),p.createElementBlock("svg",bx,Sx)}const rc=Z(_x,[["render",Cx]]),nc=window.localStorage;function ac(e,t){nc.setItem(e,JSON.stringify(t))}function Kp(e){const t=nc.getItem(e);return t?JSON.parse(t):null}function xx(e){nc.removeItem(e)}function Jp(){return Date.parse(String(new Date))}const Tx="local-";class Nx{constructor(t=""){Gu(this,"namespace");Gu(this,"mapKey");Gu(this,"map");this.namespace=t,this.mapKey=Tx+this.namespace,this.map=Kp(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),o={expires:n,time:Jp()};ac(a,r),this.map[t]=o,ac(this.mapKey,this.map)}getReallyKey(t){return this.namespace+"-"+t}get(t,r){const n=this.getReallyKey(t),a=this.map[t];if(a){const o=Kp(n);if(a.expires>0){if(Jp()-a.time<=a.expires)return o===!1||o?o:r;this.delete(t)}else return o===!1||o?o:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],ac(this.mapKey,this.map),xx(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const oc=new Nx("partex"),ha=(e,t,r)=>{const n=new Date;return new Date(`${e||n.getFullYear()}/${t||n.getMonth()+1}/${r||n.getDate()} 00:00:00`).getTime()};function Ht(e,t,r=3e4){if(typeof r=="string"){let n=0;const a=r.split(" ");switch(a[1]){case"Minutes":n=6e4;break;case"Hours":n=36e5;break;case"Day":n=864e5;break;case"Week":n=6048e5;break}r=Number(a[0])*n}oc.set(e,t,r)}function xt(e,t){return oc.get(e,t)}const wo=e=>{oc.delete(e)},Qi=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},Qp=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function bo(e,t=!1){let r=e.records;t&&(r=r.map((a,o)=>({key:o,...a})));const n=parseInt(e.size);return{query:{page:Number(e.current),pageCount:parseInt(e.pages),pageSize:n>29?n:30,itemCount:parseInt(e.total),pageSizes:[30,40,50],showQuickJumper:!0,showSizePicker:!0,pageSlot:8,prefix:()=>p.h("div",{},{default:()=>se.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function So(e){if(!e.query)return e;const t={};return e.query.page&&(t.current=e.query.page),e.query.pageSize&&(t.size=e.query.pageSize),e.query.isGetAll&&(t.isGetAll=e.query.isGetAll),e.query.keyword&&(t.keyword=e.query.keyword),e.query.columnKey&&(t.columnKey=e.query.columnKey),e.query.order&&(t.order=e.query.order),{...e,query:t}}const wr=(e,t="yyyy-MM-dd")=>{if(!e)return"";typeof e=="string"&&(e=e.replace(/年/g,"-").replace(/月/g,"-").replace(/日/g,""));let r=new Date(e);if(typeof e=="string"&&isNaN(r.getTime())&&(r=new Date(parseInt(e))),isNaN(r.getTime()))return"---";const n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length)));for(const a in n)if(new RegExp("("+a+")").test(t)){let o=n[a];RegExp.$1.length!==1&&(o=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,o)}return t},zr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},Co=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},Dx=(e,t=500)=>{const r=e;let n;const a=function(...i){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,i)},t))};return a};function Ax(e,t){e.requestFullscreen?(t&&(e.onfullscreenchange=t),e.requestFullscreen()):e.mozRequestFullScreen?(t&&(e.onmozfullscreenchange=t),e.mozRequestFullScreen()):e.webkitRequestFullscreen?(t&&(e.onwebkitfullscreenchange=t),e.webkitRequestFullscreen()):e.msRequestFullscreen&&(t&&(e.onmsfullscreenchange=t),e.msRequestFullscreen())}function Mx(e,t=0){const r=["","k","m","b","t"],n=Math.floor(Math.log10(Math.abs(e))/3),a=Math.max(0,Math.min(n,r.length-1)),o=r[a];return o?(e/Math.pow(10,a*3)).toFixed(t)+o:(e/Math.pow(10,a*3)).toFixed(0)}const kx={Platform:{components:"组件库",iot:"智能效率监测平台",prt:"智能效率监测平台",tdm:"智能刀具管理平台",qms:"智能质量检测平台",twin:"智能数字大屏平台",maintain:"智能设备维保平台",order:"智能工单管理平台"},Notice:{success:"操作成功",error:"操作失败,请稍后重试"},Common:{validDays:"报表文件具有七天有效期",add:"新增",edit:"编辑",apply:"保存",cancel:"取消",search:"查询",refresh:"刷新",filter:"筛选",reset:"重置",more:"更多",export:"导出",success:"成功",failed:"失败",processing:"处理中",action:"操作",back:"返回",title:"零捷互联智能云平台",message:{title:"消息列表",title2:"消息",unRead:"未读",all:"全部",read:"已读",readAll:"一键已读"},login:{mobile:"手机号",mobilePlaceholder:"请输入手机号码",mobileMessage:"请输入正确的手机号码",password:"密码",passwordPlaceholder:"请输入密码",passwordMessage:"请输入密码",userName:"用户名",userNamePlaceholder:"请输入用户名",userNameMessage:"请输入正确的用户名",in:"登录"},my:{title:"我的信息",tenantCode:"租户代码",tenantName:"租户名称",name:"名称",email:"邮箱",emailMessage:"邮箱格式不正确",realName:"真实姓名",phone:"手机",phoneMessage:"手机号码格式不正确",submit:"更新",password:"修改密码",oldPassword:"旧密码",newPassword:"新密码",checkPassword:"确认新密码",oldPasswordMessage:"请填写旧密码",newPasswordMessage:"请填写新密码",checkPasswordMessage:"请填写确认新密码"},dropdownMenu:{software:"零捷软件",android:"安卓APP",ios:"iOS APP",chrome:"Chrome浏览器",edge:"Edge浏览器",dashboard_IoT:"大屏机加工版本",dashboard_Prt:"大屏印刷版本",report:"个性化报表",info:"我的信息",language:"语言",theme:"主题",light:"亮",dark:"暗",logout:"退出"},importer:{title:"导入",file:"导入文件",download:"下载模版",btnDownload:"下载",fileName:"文件名称",status:"状态",createTime:"创建时间",retry:"重试"}}},Ex={Platform:{components:"Components",iot:"SMART LEAN IOT PLATFORM",prt:"SMART LEAN IOT PLATFORM",tdm:"SMART TOOL MANAGEMENT PLATFORM",qms:"SMART QUALITY MANAGEMENT PLATFORM",twin:"SMART DASHBOARD PLATFORM",maintain:"SMART MAINTAIN PLATFORM",order:"SMART ORDER MANAGEMENT PLATFORM"},Notice:{success:"Success",error:"An error occurred, please try again later"},Common:{validDays:"Files are valid for seven days",add:"Insert",edit:"Edit",apply:"Apply",cancel:"Cancel",search:"Search",refresh:"Refresh",filter:"Filter",reset:"Reset",more:"More",export:"Export",success:"Success",failed:"Failed",processing:"Processing",action:"Action",back:"Back",title:"Partex",message:{title:"Messages",title2:"Message",unRead:"Unread",all:"All",read:"Read",readAll:"Read All"},login:{mobile:"Mobile",mobilePlaceholder:"Please Input Mobile",mobileMessage:"Mobile is not correct",password:"Password",passwordPlaceholder:"Please Input Password",passwordMessage:"Please Input Password",userName:"UserName",userNamePlaceholder:"Please Input UserName",userNameMessage:"UserName is not correct",in:"Sign in"},my:{title:"Info",tenantCode:"TenantCode",tenantName:"TenantName",name:"Name",email:"Email",emailMessage:"Email is not correct",realName:"RealName",phone:"Mobile",phoneMessage:"Mobile is not correct",submit:"Apply",password:"Change Password",oldPassword:"Current",newPassword:"New",checkPassword:"Check",oldPasswordMessage:"Please Input Current Password",newPasswordMessage:"Please Input New Password",checkPasswordMessage:"Please Check New Password"},dropdownMenu:{software:"Softwares",android:"Android APP",ios:"iOS APP",chrome:"Chrome",edge:"Edge",dashboard:"Dashboard",dashboard_IoT:"Dashboard_IoT",dashboard_Prt:"Dashboard_Print",report:"Reports",info:"My",language:"Language",theme:"Theme",light:"Light",dark:"Dark",logout:"Logout"},importer:{title:"Import",file:"Import File",download:"Download Template",btnDownload:"Download",fileName:"FileName",status:"Status",createTime:"CreateTime",retry:"Retry"}}},mt=Gt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...Ex},"zh-CN":{...kx},"fr-FR":{}}}),ev="2.0.64",tv={Components:{platformName:()=>`${mt.global.t("Platform.components")} v${ev}`,platformType:"T0",platformUrl:"/",platformMainUrl:""},iot:{platformName:()=>mt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""},prt:{platformName:()=>mt.global.t("Platform.prt"),platformType:"T1",platformUrl:"/prt/home/all",platformMainUrl:""},tdm:{platformName:()=>mt.global.t("Platform.tdm"),platformType:"T2",platformUrl:"/tdm/home",platformMainUrl:"/iot/home/all"},qms:{platformName:()=>mt.global.t("Platform.qms"),platformType:"T3",platformUrl:"/qms/home",platformMainUrl:"/iot/home/all"},twin:{platformName:()=>mt.global.t("Platform.twin"),platformType:"T4",platformUrl:"/twin/home",platformMainUrl:"/prt/home/all"},maintain:{platformName:()=>mt.global.t("Platform.maintain"),platformType:"T5",platformUrl:"/maintain/home",platformMainUrl:"auto"},order:{platformName:()=>mt.global.t("Platform.order"),platformType:"T6",platformUrl:"/order/home",platformMainUrl:"/prt/home/all"}},se=p.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>mt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""});function ic(e){se.download=e}function Px(e){se.language=e}function da(e){let t;e?t=e:se.lang==="zh-CN"?t="en-US":t="zh-CN",Ht("lang",t,0),se.lang=t;const r=document.body;r.dataset.lang=t,mt.global.locale.value=t}function Ix(e){const t=tv[e]||tv.iot;se.platformName=t.platformName,se.platformType=t.platformType,se.platformUrl=t.platformUrl,se.platformMainUrl=t.platformMainUrl||"auto",document.title=t.platformName()}function xo(e){se.theme=e;const t=document.body,r=document.querySelector("meta[name=theme-color]");e?t.dataset.theme="dark":t.dataset.theme="",r&&(e?r.setAttribute("content","#2b2b2d"):r.setAttribute("content","#ffffff"))}function Lx(e){se.needUpdate=e}const rv=()=>{se.isMobile=window.screen.availWidth<769,se.isPad=window.screen.availWidth<1024};window.addEventListener("resize",rv),rv();const es=(e,t)=>p.h(O.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),br=(e,t="default",r,n,a)=>{const o={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},i={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;o.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(o.onClick=e.onClick.bind(void 0,n,a))}return r&&(i.icon=()=>p.h(O.NIcon,{},{default:()=>p.h(r,{},{default:()=>null})})),p.h(O.NButton,o,i)},ts=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const o=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",o)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return p.h(O.NPopconfirm,a,{default:()=>p.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},Ox=(e,t,r)=>{let n;if(e.type==="detail"){const a=br(e,e.color?e.color:"primary",e.icon?e.icon:Xi,t,r);e.buttonText?n=a:n=es(a,se.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=br(e,e.color?e.color:"success",e.icon?e.icon:Ku,t,r);e.buttonText?n=a:n=es(a,se.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=br({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Xu,t,r);e.buttonText?a=a:a=es(a,se.lang==="zh-CN"?"删除":"Delete"),n=ts(a,{...e,confirmText:se.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=br(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=es(a,e.tooltipText)}return e.confirmText&&(n=ts(n,e,t,r)),n},Rx=(e,t,r)=>{const n=[];return e.forEach(a=>{let o;a.type==="detail"&&(o=br({...a,buttonText:se.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(o=br({...a,buttonText:se.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(o=ts(br({...a,onClick:"",buttonText:se.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:se.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(o=br(a,a.color,void 0,t,r)),a.confirmText&&(o=ts(o,a,t,r)),n.push(o)}),n},Gr=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const o=Rx(a.children,t,r);n.push(p.h(O.NPopover,{trigger:"hover"},{trigger:()=>br({buttonText:typeof a.buttonText=="function"?a.buttonText():a.buttonText,disabled:typeof a.disabled=="function"?a.disabled(t,r):a.disabled,loading:a.loading},a.color,a.icon,t,r),default:()=>p.h(O.NFlex,{vertical:!0},{default:()=>o})}))}}else{const o=Ox(a,t,r);n.push(o)}}),p.h("div",{class:"action-flex"},{default:()=>n})},Bx=p.defineComponent({name:"OcAuth",setup(){const e=Ct.useRoute(),t=Ct.useRouter(),{auth:r}=e.query;r?Ht("token",r,0):wo("token"),t.replace(se.platformUrl)}}),Vx={class:"com-card flex-center",style:{flex:"1"}},$x=[p.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1)];function Fx(e,t,r,n,a,o){return p.openBlock(),p.createElementBlock("div",Vx,$x)}const nv=Z(Bx,[["render",Fx]]),zx=p.defineComponent({name:"OcBack",components:{IconChevronLeft:Yu,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=Ct.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function Gx(e,t,r,n,a,o){const i=p.resolveComponent("IconChevronLeft"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton");return p.openBlock(),p.createBlock(l,{text:"",onClick:e.back},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const av=Z(zx,[["render",Gx]]),Hx=p.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=p.ref({show:!1,text:"",x:0,y:0});return{popover:t,calculateCircle:()=>{let s=314-e.circle*Math.PI;return s<=0&&(s=0),`stroke-dashoffset: ${s}`},calculatePointA:()=>e.pointA?`rotate(${-90+e.pointA*3.6} 100 80) translate(50, 0)`:"",calculatePointB:()=>e.pointB?`rotate(${-90+e.pointB*3.6} 100 80) translate(50, 0)`:"",mouseOver:(s,l)=>{const u=l==="a"?e.pointA:e.pointB;t.value={show:!0,text:`${u}%`,x:s.clientX,y:s.clientY}},mouseOut:()=>{t.value.show=!1}}}}),Wx={viewBox:"40 20 120 120"},Ux=p.createElementVNode("defs",null,[p.createElementVNode("filter",{id:"blurs"},[p.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),p.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),p.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),Yx=["stroke"],qx=["stroke"],jx=["r","transform","fill"],Xx=["r","transform","fill"],Zx={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function Kx(e,t,r,n,a,o){const i=p.resolveComponent("NPopover");return p.openBlock(),p.createElementBlock(p.Fragment,null,[(p.openBlock(),p.createElementBlock("svg",Wx,[Ux,p.createElementVNode("circle",{transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10","stroke-dashoffset":"0",stroke:e.styles.backgroundBg},null,8,Yx),p.createElementVNode("circle",{class:"oc-circle-round","stroke-linecap":"round",transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10",style:p.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,qx),e.pointA?(p.openBlock(),p.createElementBlock("circle",{key:0,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointA(),fill:e.styles.pointABg,onMouseover:t[0]||(t[0]=s=>{e.mouseOver(s,"a")}),onMouseout:t[1]||(t[1]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,jx)):p.createCommentVNode("",!0),e.pointB?(p.openBlock(),p.createElementBlock("circle",{key:1,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointB(),fill:e.styles.pointBBg,onMouseover:t[2]||(t[2]=s=>{e.mouseOver(s,"b")}),onMouseout:t[3]||(t[3]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,Xx)):p.createCommentVNode("",!0),p.createElementVNode("text",Zx,p.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),p.createVNode(i,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const ov=Z(Hx,[["render",Kx]]);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,8 +11,8 @@
11
11
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var sc=function(e,t){return sc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},sc(e,t)};function W(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Jx=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Qx=function(){function e(){this.browser=new Jx,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}(),ne=new Qx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ne.wxa=!0,ne.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ne.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ne.node=!0,ne.svgSupported=!0):eT(navigator.userAgent,ne);function eT(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),i=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),i&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var lc=12,tT="sans-serif",yn=lc+"px "+tT,rT=20,nT=100,aT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function oT(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-rT)/nT;t[n]=a}return t}var iT=oT(aT),pa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=pa.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||yn),e.measureText(r);r=r||"",n=n||yn;var o=/(\d+)px/.exec(n),i=o&&+o[1]||lc,s=0;if(n.indexOf("mono")>=0)s=i*r.length;else for(var l=0;l<r.length;l++){var u=iT[r[l]];s+=u==null?i:u*i}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},iv=Sr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),sv=Sr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),va=Object.prototype.toString,rs=Array.prototype,sT=rs.forEach,lT=rs.filter,uc=rs.slice,uT=rs.map,lv=(function(){}).constructor,ns=lv?lv.prototype:null,cc="__proto__",cT=2311;function uv(){return cT++}function Hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ce(e){if(e==null||typeof e!="object")return e;var t=e,r=va.call(e);if(r==="[object Array]"){if(!No(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ce(e[n])}}else if(sv[r]){if(!No(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!iv[r]&&!No(e)&&!ga(e)){t={};for(var i in e)e.hasOwnProperty(i)&&i!==cc&&(t[i]=ce(e[i]))}return t}function pe(e,t,r){if(!K(t)||!K(e))return r?ce(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==cc){var a=e[n],o=t[n];K(o)&&K(a)&&!U(o)&&!U(a)&&!ga(o)&&!ga(a)&&!cv(o)&&!cv(a)&&!No(o)&&!No(a)?pe(a,o,r):(r||!(n in e))&&(e[n]=ce(t[n]))}return e}function H(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==cc&&(e[r]=t[r]);return e}function he(e,t,r){for(var n=me(t),a=0;a<n.length;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function fe(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function fT(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Wt(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var o=n[a];o!=="constructor"&&(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else he(e,t,r)}function nt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function k(e,t,r){if(e&&t)if(e.forEach&&e.forEach===sT)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e)}function j(e,t,r){if(!e)return[];if(!t)return fc(e);if(e.map&&e.map===uT)return e.map(t,r);for(var n=[],a=0,o=e.length;a<o;a++)n.push(t.call(r,e[a],a,e));return n}function Sr(e,t,r,n){if(e&&t){for(var a=0,o=e.length;a<o;a++)r=t.call(n,r,e[a],a,e);return r}}function Ue(e,t,r){if(!e)return[];if(!t)return fc(e);if(e.filter&&e.filter===lT)return e.filter(t,r);for(var n=[],a=0,o=e.length;a<o;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function me(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function hT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(uc.call(arguments)))}}var Q=ns&&ae(ns.bind)?ns.call.bind(ns.bind):hT;function be(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(uc.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):va.call(e)==="[object Array]"}function ae(e){return typeof e=="function"}function X(e){return typeof e=="string"}function as(e){return va.call(e)==="[object String]"}function Ce(e){return typeof e=="number"}function K(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function cv(e){return!!iv[va.call(e)]}function at(e){return!!sv[va.call(e)]}function ga(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function os(e){return e.colorStops!=null}function dT(e){return e.image!=null}function pT(e){return va.call(e)==="[object RegExp]"}function ma(e){return e!==e}function Wr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function oe(e,t){return e??t}function Ur(e,t,r){return e??t??r}function fc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return uc.apply(e,t)}function fv(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 te(e,t){if(!e)throw new Error(t)}function ar(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var hv="__ec_primitive__";function hc(e){e[hv]=!0}function No(e){return e[hv]}var vT=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return me(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),dv=typeof Map=="function";function gT(){return dv?new Map:new vT}var mT=function(){function e(t){var r=U(t);this.data=gT();var n=this;t instanceof e?t.each(a):t&&k(t,a);function a(o,i){r?n.set(o,i):n.set(i,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return dv?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ie(e){return new mT(e)}function yT(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function is(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&H(r,t),r}function pv(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Y(e,t){return e.hasOwnProperty(t)}function ot(){}var _T=180/Math.PI;function ya(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function wT(e){return[e[0],e[1]]}function vv(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function gv(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function bT(e){return Math.sqrt(ST(e))}function ST(e){return e[0]*e[0]+e[1]*e[1]}function dc(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function pc(e,t){var r=bT(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function vc(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var gc=vc;function CT(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var _a=CT;function mc(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Tt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function wa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function ba(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Sa=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),xT=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Sa(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,o=n-this._x,i=a-this._y;this._x=n,this._y=a,r.drift(o,i,t),this.handler.dispatchToElement(new Sa(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Sa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Sa(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Sa(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Sa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ut=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var i=this._$eventProcessor;r!=null&&i&&i.normalizeQuery&&(r=i.normalizeQuery(r)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],o=0,i=n[t].length;o<i;o++)n[t][o].h!==r&&a.push(n[t][o]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],o=this._$eventProcessor;if(a)for(var i=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(i){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],o=this._$eventProcessor;if(a)for(var i=r.length,s=r[i-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(i){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,i-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),TT=Math.log(2);function yc(e,t,r,n,a,o){var i=n+"-"+a,s=e.length;if(o.hasOwnProperty(i))return o[i];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/TT);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&a||(f+=(h%2?-1:1)*e[r][d]*yc(e,t-1,c,u,a|v,o),h++)}return o[i]=f,f}function mv(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=yc(r,8,0,0,0,n);if(a!==0){for(var o=[],i=0;i<8;i++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((i+s)%2?-1:1)*yc(r,7,i===0?1:0,1<<i,1<<s,n)/a*t[i];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var yv="___zrEVENTSAVED",_c=[];function NT(e,t,r,n,a){return wc(_c,t,n,a,!0)&&wc(e,r,_c[0],_c[1])}function wc(e,t,r,n,a){if(t.getBoundingClientRect&&ne.domSupported&&!_v(t)){var o=t[yv]||(t[yv]={}),i=DT(t,o),s=AT(i,o,a);if(s)return s(e,r,n),!0}return!1}function DT(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],o=0;o<4;o++){var i=document.createElement("div"),s=i.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(i),r.push(i)}return r}function AT(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],o=t.srcCoords,i=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;i.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=i,t[n]=r?mv(s,i):mv(i,s))}function _v(e){return e.nodeName.toUpperCase()==="CANVAS"}var MT=/([&<>"'])/g,kT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Nt(e){return e==null?"":(e+"").replace(MT,function(t,r){return kT[r]})}var ET=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bc=[],PT=ne.browser.firefox&&+ne.browser.version.split(".")[0]<39;function Sc(e,t,r,n){return r=r||{},n?wv(e,t,r):PT&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):wv(e,t,r),r}function wv(e,t,r){if(ne.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(_v(e)){var o=e.getBoundingClientRect();r.zrX=n-o.left,r.zrY=a-o.top;return}else if(wc(bc,e,n,a)){r.zrX=bc[0],r.zrY=bc[1];return}}r.zrX=r.zrY=0}function Cc(e){return e||window.event}function Dt(e,t,r){if(t=Cc(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var i=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];i&&Sc(e,i,t,r)}else{Sc(e,t,t,r);var o=IT(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&ET.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function IT(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),o=n>0?-1:n<0?1:r>0?-1:1;return 3*a*o}function LT(e,t,r,n){e.addEventListener(t,r,n)}function OT(e,t,r,n){e.removeEventListener(t,r,n)}var Ca=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function bv(e){return e.which===2||e.which===3}var RT=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var o={points:[],touches:[],target:r,event:t},i=0,s=a.length;i<s;i++){var l=a[i],u=Sc(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var r in xc)if(xc.hasOwnProperty(r)){var n=xc[r](this._track,t);if(n)return n}},e}();function Sv(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function BT(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var xc={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var o=Sv(n)/Sv(a);!isFinite(o)&&(o=1),t.pinchScale=o;var i=BT(n);return t.pinchX=i[0],t.pinchY=i[1],{type:"pinch",target:e[0].target,event:t}}}}};function xa(){return[1,0,0,1,0,0]}function Tc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function VT(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 Ta(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],o=t[0]*r[2]+t[2]*r[3],i=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=o,e[3]=i,e[4]=s,e[5]=l,e}function Nc(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Dc(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],o=t[2],i=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(i-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(i-n[0])+n[1],e}function $T(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function Ac(e,t){var r=t[0],n=t[2],a=t[4],o=t[1],i=t[3],s=t[5],l=r*i-o*n;return l?(l=1/l,e[0]=i*l,e[1]=-o*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-i*a)*l,e[5]=(o*a-r*s)*l,e):null}var FT=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var o=1-a;t.x=o*r.x+a*n.x,t.y=o*r.y+a*n.y},e}();const le=FT;var ss=Math.min,ls=Math.max,_n=new le,wn=new le,bn=new le,Sn=new le,Do=new le,Ao=new le,zT=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=ss(t.x,this.x),n=ss(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ls(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ls(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,o=xa();return Nc(o,o,[-r.x,-r.y]),$T(o,o,[n,a]),Nc(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,o=n.x+n.width,i=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(o<l||u<a||s<c||f<i);if(r){var h=1/0,v=0,m=Math.abs(o-l),g=Math.abs(u-a),y=Math.abs(s-c),w=Math.abs(f-i),_=Math.min(m,g),S=Math.min(y,w);o<l||u<a?_>v&&(v=_,m<g?le.set(Ao,-m,0):le.set(Ao,g,0)):_<h&&(h=_,m<g?le.set(Do,m,0):le.set(Do,-g,0)),s<c||f<i?S>v&&(v=S,y<w?le.set(Ao,0,-y):le.set(Ao,0,w)):_<h&&(h=_,y<w?le.set(Do,0,y):le.set(Do,0,-w))}return r&&le.copy(r,d?Do:Ao),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],o=n[3],i=n[4],s=n[5];t.x=r.x*a+i,t.y=r.y*o+s,t.width=r.width*a,t.height=r.height*o,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=bn.x=r.x,_n.y=Sn.y=r.y,wn.x=Sn.x=r.x+r.width,wn.y=bn.y=r.y+r.height,_n.transform(n),Sn.transform(n),wn.transform(n),bn.transform(n),t.x=ss(_n.x,wn.x,bn.x,Sn.x),t.y=ss(_n.y,wn.y,bn.y,Sn.y);var l=ls(_n.x,wn.x,bn.x,Sn.x),u=ls(_n.y,wn.y,bn.y,Sn.y);t.width=l-t.x,t.height=u-t.y},e}();const ye=zT;var Cv="silent";function GT(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:HT}}function HT(){Ca(this.event)}var WT=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ut),Mo=function(){function e(t,r){this.x=t,this.y=r}return e}(),UT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Mc=new ye(0,0,0,0),xv=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this)||this;return s._hovered=new Mo(0,0),s.storage=r,s.painter=n,s.painterRoot=o,s._pointerSize=i,a=a||new WT,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new xT(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(k(UT,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,o=Nv(this,n,a),i=this._hovered,s=i.target;s&&!s.__zr&&(i=this.findHover(i.x,i.y),s=i.target);var l=this._hovered=o?new Mo(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(i,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Mo(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var o=r.target;if(!(o&&o.silent)){for(var i="on"+n,s=GT(n,r,a);o&&(o[i]&&(s.cancelBubble=!!o[i].call(o,s)),o.trigger(n,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[i]=="function"&&l[i].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var o=this.storage.getDisplayList(),i=new Mo(r,n);if(Tv(o,i,r,n,a),this._pointerSize&&!i.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ye(r-u,n-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Mc.copy(d.getBoundingRect()),d.transform&&Mc.applyTransform(d.transform),Mc.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<m;y+=v){var w=r+g*Math.cos(y),_=n+g*Math.sin(y);if(Tv(s,i,w,_,a),i.target)return i}}return i},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new RT);var a=this._gestureMgr;n==="start"&&a.clear();var o=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),o){var i=o.type;r.gestureEvent=i;var s=new Mo;s.target=o.target,this.dispatchToElement(s,i,o.event)}},t}(Ut);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){xv.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=Nv(this,r,n),o,i;if((e!=="mouseup"||!a)&&(o=this.findHover(r,n),i=o.target),e==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(e==="mouseup")this._upEl=i;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||gc(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function YT(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var i=n.getClipPath();if(i&&!i.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?Cv:!0}return!1}function Tv(e,t,r,n,a){for(var o=e.length-1;o>=0;o--){var i=e[o],s=void 0;if(i!==a&&!i.ignore&&(s=YT(i,r,n))&&(!t.topTarget&&(t.topTarget=i),s!==Cv)){t.target=i;break}}}function Nv(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const qT=xv;var Dv=32,ko=7;function jT(e){for(var t=0;e>=Dv;)t|=e&1,e>>=1;return e+t}function Av(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;XT(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function XT(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Mv(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var o=e[n],i=t,s=n,l;i<s;)l=i+s>>>1,a(o,e[l])<0?s=l:i=l+1;var u=n-i;switch(u){case 3:e[i+3]=e[i+2];case 2:e[i+2]=e[i+1];case 1:e[i+1]=e[i];break;default:for(;u>0;)e[i+u]=e[i+u-1],u--}e[i]=o}}function kc(e,t,r,n,a,o){var i=0,s=0,l=1;if(o(e,t[r+a])>0){for(s=n-a;l<s&&o(e,t[r+a+l])>0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}else{for(s=a+1;l<s&&o(e,t[r+a-l])<=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}for(i++;i<l;){var c=i+(l-i>>>1);o(e,t[r+c])>0?i=c+1:l=c}return l}function Ec(e,t,r,n,a,o){var i=0,s=0,l=1;if(o(e,t[r+a])<0){for(s=a+1;l<s&&o(e,t[r+a-l])<0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}else{for(s=n-a;l<s&&o(e,t[r+a+l])>=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}for(i++;i<l;){var c=i+(l-i>>>1);o(e,t[r+c])<0?l=c:i=c+1}return l}function ZT(e,t){var r=ko,n,a,o=0,i=[];n=[],a=[];function s(h,v){n[o]=h,a[o]=v,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var v=n[h],m=a[h],g=n[h+1],y=a[h+1];a[h]=m+y,h===o-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),o--;var w=Ec(e[g],e,v,m,0,t);v+=w,m-=w,m!==0&&(y=kc(e[v+m-1],e,g,y,y-1,t),y!==0&&(m<=y?f(v,m,g,y):d(v,m,g,y)))}function f(h,v,m,g){var y=0;for(y=0;y<v;y++)i[y]=e[h+y];var w=0,_=m,S=h;if(e[S++]=e[_++],--g===0){for(y=0;y<v;y++)e[S+y]=i[w+y];return}if(v===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=i[w];return}for(var x=r,C,T,b;;){C=0,T=0,b=!1;do if(t(e[_],i[w])<0){if(e[S++]=e[_++],T++,C=0,--g===0){b=!0;break}}else if(e[S++]=i[w++],C++,T=0,--v===1){b=!0;break}while((C|T)<x);if(b)break;do{if(C=Ec(e[_],i,w,v,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=i[w+y];if(S+=C,w+=C,v-=C,v<=1){b=!0;break}}if(e[S++]=e[_++],--g===0){b=!0;break}if(T=kc(i[w],e,_,g,0,t),T!==0){for(y=0;y<T;y++)e[S+y]=e[_+y];if(S+=T,_+=T,g-=T,g===0){b=!0;break}}if(e[S++]=i[w++],--v===1){b=!0;break}x--}while(C>=ko||T>=ko);if(b)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=i[w]}else{if(v===0)throw new Error;for(y=0;y<v;y++)e[S+y]=i[w+y]}}function d(h,v,m,g){var y=0;for(y=0;y<g;y++)i[y]=e[m+y];var w=h+v-1,_=g-1,S=m+g-1,x=0,C=0;if(e[S--]=e[w--],--v===0){for(x=S-(g-1),y=0;y<g;y++)e[x+y]=i[y];return}if(g===1){for(S-=v,w-=v,C=S+1,x=w+1,y=v-1;y>=0;y--)e[C+y]=e[x+y];e[S]=i[_];return}for(var T=r;;){var b=0,D=0,N=!1;do if(t(i[_],e[w])<0){if(e[S--]=e[w--],b++,D=0,--v===0){N=!0;break}}else if(e[S--]=i[_--],D++,b=0,--g===1){N=!0;break}while((b|D)<T);if(N)break;do{if(b=v-Ec(i[_],e,h,v,v-1,t),b!==0){for(S-=b,w-=b,v-=b,C=S+1,x=w+1,y=b-1;y>=0;y--)e[C+y]=e[x+y];if(v===0){N=!0;break}}if(e[S--]=i[_--],--g===1){N=!0;break}if(D=g-kc(e[w],i,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,C=S+1,x=_+1,y=0;y<D;y++)e[C+y]=i[x+y];if(g<=1){N=!0;break}}if(e[S--]=e[w--],--v===0){N=!0;break}T--}while(b>=ko||D>=ko);if(N)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=v,w-=v,C=S+1,x=w+1,y=v-1;y>=0;y--)e[C+y]=e[x+y];e[S]=i[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)e[x+y]=i[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function us(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var o=0;if(a<Dv){o=Av(e,r,n,t),Mv(e,r,n,r+o,t);return}var i=ZT(e,t),s=jT(a);do{if(o=Av(e,r,n,t),o<s){var l=a;l>s&&(l=s),Mv(e,r,r+l,r+o,t),o=l}i.pushRun(r,o),i.mergeRuns(),a-=o,r+=o}while(a!==0);i.forceMergeRuns()}}var yt=1,Eo=2,Na=4,kv=!1;function Pc(){kv||(kv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ev(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var KT=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ev}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,o=r.length;a<o;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,us(n,Ev)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var o=a,i=t;o;)o.parent=i,o.updateTransform(),r.push(o),i=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=yt),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Pc(),c.z=0),isNaN(c.z2)&&(Pc(),c.z2=0),isNaN(c.zlevel)&&(Pc(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=fe(this._roots,t);a>=0&&this._roots.splice(a,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}(),Pv;Pv=ne.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Ic=Pv;var Po={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Po.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?Po.bounceIn(e*2)*.5:Po.bounceOut(e*2-1)*.5+.5}},cs=Math.pow,Yr=Math.sqrt,fs=1e-8,Iv=1e-4,Lv=Yr(3),hs=1/3,or=ya(),At=ya(),Da=ya();function qr(e){return e>-fs&&e<fs}function Ov(e){return e>fs||e<-fs}function $e(e,t,r,n,a){var o=1-a;return o*o*(o*e+3*a*t)+a*a*(a*n+3*o*r)}function Rv(e,t,r,n,a){var o=1-a;return 3*(((t-e)*o+2*(r-t)*a)*o+(n-r)*a*a)}function ds(e,t,r,n,a,o){var i=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*i*l,f=s*l-9*i*u,d=l*l-3*s*u,h=0;if(qr(c)&&qr(f))if(qr(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[h++]=v)}else{var m=f*f-4*c*d;if(qr(m)){var g=f/c,v=-s/i+g,y=-g/2;v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y)}else if(m>0){var w=Yr(m),_=c*s+1.5*i*(-f+w),S=c*s+1.5*i*(-f-w);_<0?_=-cs(-_,hs):_=cs(_,hs),S<0?S=-cs(-S,hs):S=cs(S,hs);var v=(-s-(_+S))/(3*i);v>=0&&v<=1&&(o[h++]=v)}else{var x=(2*c*s-3*i*f)/(2*Yr(c*c*c)),C=Math.acos(x)/3,T=Yr(c),b=Math.cos(C),v=(-s-2*T*b)/(3*i),y=(-s+T*(b+Lv*Math.sin(C)))/(3*i),D=(-s+T*(b-Lv*Math.sin(C)))/(3*i);v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y),D>=0&&D<=1&&(o[h++]=D)}}return h}function Bv(e,t,r,n,a){var o=6*r-12*t+6*e,i=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(qr(i)){if(Ov(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(qr(c))a[0]=-o/(2*i);else if(c>0){var f=Yr(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function ps(e,t,r,n,a,o){var i=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-i)*a+i,c=(l-s)*a+s,f=(c-u)*a+u;o[0]=e,o[1]=i,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=n}function JT(e,t,r,n,a,o,i,s,l,u,c){var f,d=.005,h=1/0,v,m,g,y;or[0]=l,or[1]=u;for(var w=0;w<1;w+=.05)At[0]=$e(e,r,a,i,w),At[1]=$e(t,n,o,s,w),g=_a(or,At),g<h&&(f=w,h=g);h=1/0;for(var _=0;_<32&&!(d<Iv);_++)v=f-d,m=f+d,At[0]=$e(e,r,a,i,v),At[1]=$e(t,n,o,s,v),g=_a(At,or),v>=0&&g<h?(f=v,h=g):(Da[0]=$e(e,r,a,i,m),Da[1]=$e(t,n,o,s,m),y=_a(Da,or),m<=1&&y<h?(f=m,h=y):d*=.5);return c&&(c[0]=$e(e,r,a,i,f),c[1]=$e(t,n,o,s,f)),Yr(h)}function QT(e,t,r,n,a,o,i,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,m=$e(e,r,a,i,v),g=$e(t,n,o,s,v),y=m-u,w=g-c;f+=Math.sqrt(y*y+w*w),u=m,c=g}return f}function Xe(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function Vv(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function eN(e,t,r,n,a){var o=e-2*t+r,i=2*(t-e),s=e-n,l=0;if(qr(o)){if(Ov(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(qr(c)){var u=-i/(2*o);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Yr(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function $v(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function vs(e,t,r,n,a){var o=(t-e)*n+e,i=(r-t)*n+t,s=(i-o)*n+o;a[0]=e,a[1]=o,a[2]=s,a[3]=s,a[4]=i,a[5]=r}function tN(e,t,r,n,a,o,i,s,l){var u,c=.005,f=1/0;or[0]=i,or[1]=s;for(var d=0;d<1;d+=.05){At[0]=Xe(e,r,a,d),At[1]=Xe(t,n,o,d);var h=_a(or,At);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<Iv);v++){var m=u-c,g=u+c;At[0]=Xe(e,r,a,m),At[1]=Xe(t,n,o,m);var h=_a(At,or);if(m>=0&&h<f)u=m,f=h;else{Da[0]=Xe(e,r,a,g),Da[1]=Xe(t,n,o,g);var y=_a(Da,or);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Xe(e,r,a,u),l[1]=Xe(t,n,o,u)),Yr(f)}function rN(e,t,r,n,a,o,i){for(var s=e,l=t,u=0,c=1/i,f=1;f<=i;f++){var d=f*c,h=Xe(e,r,a,d),v=Xe(t,n,o,d),m=h-s,g=v-l;u+=Math.sqrt(m*m+g*g),s=h,l=v}return u}var nN=/cubic-bezier\(([0-9,\.e ]+)\)/;function Fv(e){var t=e&&nN.exec(e);if(t){var r=t[1].split(","),n=+ar(r[0]),a=+ar(r[1]),o=+ar(r[2]),i=+ar(r[3]);if(isNaN(n+a+o+i))return;var s=[];return function(l){return l<=0?0:l>=1?1:ds(0,n,o,1,l,s)&&$e(0,a,i,1,s[0])}}}var aN=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ot,this.ondestroy=t.ondestroy||ot,this.onrestart=t.onrestart||ot,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,o=a/n;o<0&&(o=0),o=Math.min(o,1);var i=this.easingFunc,s=i?i(o):o;if(this.onframe(s),o===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ae(t)?t:Po[t]||Fv(t)},e}();const oN=aN;var zv=function(){function e(t){this.value=t}return e}(),iN=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new zv(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Io=function(){function e(t){this._list=new iN,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,o=null;if(a[t]==null){var i=n.len(),s=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var l=n.head;n.remove(l),delete a[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new zv(r),s.key=t,n.insertEntry(s),a[t]=s}return o},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Gv={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 jr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Lc(e){return e<0?0:e>1?1:e}function Oc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jr(parseFloat(t)/100*255):jr(parseInt(t,10))}function Lo(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Lc(parseFloat(t)/100):Lc(parseFloat(t))}function Rc(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function gs(e,t,r){return e+(t-e)*r}function Mt(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Bc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hv=new Io(20),ms=null;function Aa(e,t){ms&&Bc(ms,t),ms=Hv.put(e,ms||t.slice())}function Cr(e,t){if(e){t=t||[];var r=Hv.get(e);if(r)return Bc(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Gv)return Bc(t,Gv[n]),Aa(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){Mt(t,0,0,0,1);return}return Mt(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Aa(e,t),t}else if(a===7||a===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){Mt(t,0,0,0,1);return}return Mt(t,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(n.slice(7),16)/255:1),Aa(e,t),t}return}var i=n.indexOf("("),s=n.indexOf(")");if(i!==-1&&s+1===a){var l=n.substr(0,i),u=n.substr(i+1,s-(i+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Mt(t,+u[0],+u[1],+u[2],1):Mt(t,0,0,0,1);c=Lo(u.pop());case"rgb":if(u.length>=3)return Mt(t,Oc(u[0]),Oc(u[1]),Oc(u[2]),u.length===3?c:Lo(u[3])),Aa(e,t),t;Mt(t,0,0,0,1);return;case"hsla":if(u.length!==4){Mt(t,0,0,0,1);return}return u[3]=Lo(u[3]),Wv(u,t),Aa(e,t),t;case"hsl":if(u.length!==3){Mt(t,0,0,0,1);return}return Wv(u,t),Aa(e,t),t;default:return}}Mt(t,0,0,0,1)}}function Wv(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Lo(e[1]),a=Lo(e[2]),o=a<=.5?a*(n+1):a+n-a*n,i=a*2-o;return t=t||[],Mt(t,jr(Rc(i,o,r+1/3)*255),jr(Rc(i,o,r)*255),jr(Rc(i,o,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Uv(e,t){var r=Cr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ys(r,r.length===4?"rgba":"rgb")}}function sN(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),o=Math.ceil(n),i=Cr(t[a]),s=Cr(t[o]),l=n-a,u=ys([jr(gs(i[0],s[0],l)),jr(gs(i[1],s[1],l)),jr(gs(i[2],s[2],l)),Lc(gs(i[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:o,value:n}:u}}function ys(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function _s(e,t){var r=Cr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Yv=new Io(100);function qv(e){if(X(e)){var t=Yv.get(e);return t||(t=Uv(e,-.1),Yv.put(e,t)),t}else if(os(e)){var r=H({},e);return r.colorStops=j(e.colorStops,function(n){return{offset:n.offset,color:Uv(n.color,-.1)}}),r}return e}function lN(e){return e.type==="linear"}function uN(e){return e.type==="radial"}(function(){return ne.hasGlobalWindow&&ae(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&Hr("Base64 isn't natively supported in the current environment."),null}})();var Vc=Array.prototype.slice;function xr(e,t,r){return(t-e)*r+e}function $c(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=xr(t[o],r[o],n);return e}function cN(e,t,r,n){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=xr(t[i][s],r[i][s],n)}return e}function ws(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=t[o]+r[o]*n;return e}function jv(e,t,r,n){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=t[i][s]+r[i][s]*n}return e}function fN(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,o=Math.min(r,n),i=a[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,n);s++)a.push({offset:i.offset,color:i.color.slice()})}function hN(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var o=n.length,i=a.length;if(o!==i){var s=o>i;if(s)n.length=i;else for(var l=o;l<i;l++)n.push(r===1?a[l]:Vc.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Oo(e){if(nt(e)){var t=e.length;if(nt(e[0])){for(var r=[],n=0;n<t;n++)r.push(Vc.call(e[n]));return r}return Vc.call(e)}return e}function bs(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 dN(e){return nt(e&&e[0])?2:1}var Ss=0,Cs=1,Xv=2,Ro=3,Fc=4,zc=5,Zv=6;function Kv(e){return e===Fc||e===zc}function xs(e){return e===Cs||e===Xv}var Bo=[0,0,0,0],pN=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,o=a.length,i=!1,s=Zv,l=r;if(nt(r)){var u=dN(r);s=u,(u===1&&!Ce(r[0])||u===2&&!Ce(r[0][0]))&&(i=!0)}else if(Ce(r)&&!ma(r))s=Ss;else if(X(r))if(!isNaN(+r))s=Ss;else{var c=Cr(r);c&&(l=c,s=Ro)}else if(os(r)){var f=H({},l);f.colorStops=j(r.colorStops,function(h){return{offset:h.offset,color:Cr(h.color)}}),lN(r)?s=Fc:uN(r)&&(s=zc),l=f}o===0?this.valType=s:(s!==this.valType||s===Zv)&&(i=!0),this.discrete=this.discrete||i;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ae(n)?n:Po[n]||Fv(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var a=this.valType,o=n.length,i=n[o-1],s=this.discrete,l=xs(a),u=Kv(a),c=0;c<o;c++){var f=n[c],d=f.value,h=i.value;f.percent=f.time/t,s||(l&&c!==o-1?hN(d,h,a):u&&fN(d.colorStops,h.colorStops))}if(!s&&a!==zc&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<o;c++)a===Ss?n[c].additiveValue=n[c].value-v:a===Ro?n[c].additiveValue=ws([],n[c].value,v,-1):xs(a)&&(n[c].additiveValue=a===Cs?ws([],n[c].value,v,-1):jv([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",o=this.valType,i=this.keyframes,s=i.length,l=this.propName,u=o===Ro,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=i[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(i[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(i[c].percent>r);c++);c=d(c-1,s-2)}v=i[c+1],h=i[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,y=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(y=v.easingFunc(y));var w=n?this._additiveValue:u?Bo:t[l];if((xs(o)||u)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:v.rawValue;else if(xs(o))o===Cs?$c(w,h[a],v[a],y):cN(w,h[a],v[a],y);else if(Kv(o)){var _=h[a],S=v[a],x=o===Fc;t[l]={type:x?"linear":"radial",x:xr(_.x,S.x,y),y:xr(_.y,S.y,y),colorStops:j(_.colorStops,function(T,b){var D=S.colorStops[b];return{offset:xr(T.offset,D.offset,y),color:bs($c([],T.color,D.color,y))}}),global:S.global},x?(t[l].x2=xr(_.x2,S.x2,y),t[l].y2=xr(_.y2,S.y2,y)):t[l].r=xr(_.r,S.r,y)}else if(u)$c(w,h[a],v[a],y),n||(t[l]=bs(w));else{var C=xr(h[a],v[a],y);n?this._additiveValue=C:t[l]=C}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Ss?t[n]=t[n]+a:r===Ro?(Cr(t[n],Bo),ws(Bo,Bo,a,1),t[n]=bs(Bo)):r===Cs?ws(t[n],t[n],a,1):r===Xv&&jv(t[n],t[n],a,1)},e}(),Gc=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){Hr("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,me(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var o=this._tracks,i=0;i<n.length;i++){var s=n[i],l=o[s];if(!l){l=o[s]=new pN(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Ro&&u&&(u=bs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Oo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Oo(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var o=n[a].getTrack(t);o&&(r=o)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var i=this._trackKeys[o],s=this._tracks[i],l=this._getAdditiveTrack(i),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new oN({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var m=!1,g=0;g<v.length;g++)if(v[g]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return j(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,o=0;o<t.length;o++){var i=n[t[o]];i&&!i.isFinished()&&(r?i.step(this._target,1):this._started===1&&i.step(this._target,0),i.setFinished())}for(var s=!0,o=0;o<a.length;o++)if(!n[a[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var o=r[a],i=this._tracks[o];if(!(!i||i.isFinished())){var s=i.keyframes,l=s[n?0:s.length-1];l&&(t[o]=Oo(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||me(t);for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(o){var i=o.keyframes;if(i.length>1){var s=i.pop();o.addKeyframe(s.time,t[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}();function Ma(){return new Date().getTime()}var vN=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ma()-this._pausedTime,a=n-this._time,o=this._head;o;){var i=o.next,s=o.step(n,a);s&&(o.ondestroy(),this.removeClip(o)),o=i}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ic(n),!r._paused&&r.update())}Ic(n)},t.prototype.start=function(){this._running||(this._time=Ma(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ma(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ma()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new Gc(r,n.loop);return this.addAnimator(a),a},t}(Ut),gN=300,Hc=ne.domSupported,Wc=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=j(e,function(a){var o=a.replace("mouse","pointer");return r.hasOwnProperty(o)?o:a});return{mouse:e,touch:t,pointer:n}}(),Jv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qv=!1;function Uc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function mN(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 Yc(e){e&&(e.zrByTouch=!0)}function yN(e,t){return Dt(e.dom,new _N(e,t),!0)}function eg(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var _N=function(){function e(t,r){this.stopPropagation=ot,this.stopImmediatePropagation=ot,this.preventDefault=ot,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Yt={mousedown:function(e){e=Dt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Dt(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=Dt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Dt(this.dom,e);var t=e.toElement||e.relatedTarget;eg(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Qv=!0,e=Dt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Qv||(e=Dt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Dt(this.dom,e),Yc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Yt.mousemove.call(this,e),Yt.mousedown.call(this,e)},touchmove:function(e){e=Dt(this.dom,e),Yc(e),this.handler.processGesture(e,"change"),Yt.mousemove.call(this,e)},touchend:function(e){e=Dt(this.dom,e),Yc(e),this.handler.processGesture(e,"end"),Yt.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<gN&&Yt.click.call(this,e)},pointerdown:function(e){Yt.mousedown.call(this,e)},pointermove:function(e){Uc(e)||Yt.mousemove.call(this,e)},pointerup:function(e){Yt.mouseup.call(this,e)},pointerout:function(e){Uc(e)||Yt.mouseout.call(this,e)}};k(["click","dblclick","contextmenu"],function(e){Yt[e]=function(t){t=Dt(this.dom,t),this.trigger(e,t)}});var qc={pointermove:function(e){Uc(e)||qc.mousemove.call(this,e)},pointerup:function(e){qc.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 wN(e,t){var r=t.domHandlers;ne.pointerEventsSupported?k(Wc.pointer,function(n){Ts(t,n,function(a){r[n].call(e,a)})}):(ne.touchEventsSupported&&k(Wc.touch,function(n){Ts(t,n,function(a){r[n].call(e,a),mN(t)})}),k(Wc.mouse,function(n){Ts(t,n,function(a){a=Cc(a),t.touching||r[n].call(e,a)})}))}function bN(e,t){ne.pointerEventsSupported?k(Jv.pointer,r):ne.touchEventsSupported||k(Jv.mouse,r);function r(n){function a(o){o=Cc(o),eg(e,o.target)||(o=yN(e,o),t.domHandlers[n].call(e,o))}Ts(t,n,a,{capture:!0})}}function Ts(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,LT(e.domTarget,t,r,n)}function jc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&OT(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var tg=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),SN=function(e){W(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new tg(r,Yt),Hc&&(a._globalHandlerScope=new tg(document,qc)),wN(a,a._localHandlerScope),a}return t.prototype.dispose=function(){jc(this._localHandlerScope),Hc&&jc(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Hc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?bN(this,n):jc(n)}},t}(Ut);const CN=SN;var rg=1;ne.hasGlobalWindow&&(rg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ns=rg,Xc=.4,Zc="#333",Kc="#ccc",xN="#eee",ng=Tc,ag=5e-5;function Cn(e){return e>ag||e<-ag}var xn=[],ka=[],Jc=xa(),Qc=Math.abs,ef=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Cn(this.rotation)||Cn(this.x)||Cn(this.y)||Cn(this.scaleX-1)||Cn(this.scaleY-1)||Cn(this.skewX)||Cn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ng(n),this.invTransform=null);return}n=n||xa(),r?this.getLocalTransform(n):ng(n),t&&(r?Ta(n,t,n):VT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(xn);var n=xn[0]<0?-1:1,a=xn[1]<0?-1:1,o=((xn[0]-n)*r+n)/xn[0]||0,i=((xn[1]-a)*r+a)/xn[1]||0;t[0]*=o,t[1]*=o,t[2]*=i,t[3]*=i}this.invTransform=this.invTransform||xa(),Ac(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),o=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||xa(),Ta(ka,t.invTransform,r),r=ka);var n=this.originX,a=this.originY;(n||a)&&(Jc[4]=n,Jc[5]=a,Ta(ka,r,Jc),ka[4]-=n,ka[5]-=a,r=ka),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Tt(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Tt(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Qc(t[0]-1)>1e-10&&Qc(t[3]-1)>1e-10?Math.sqrt(Qc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){TN(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,o=t.scaleX,i=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var v=n+s,m=a+l;r[4]=-v*o-d*m*i,r[5]=-m*i-h*v*o}else r[4]=r[5]=0;return r[0]=o,r[3]=i,r[1]=h*o,r[2]=d*i,u&&Dc(r,r,u),r[4]+=n+c,r[5]+=a+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ir=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function TN(e,t){for(var r=0;r<ir.length;r++){var n=ir[r];e[n]=t[n]}}var og={};function _t(e,t){t=t||yn;var r=og[t];r||(r=og[t]=new Io(500));var n=r.get(e);return n==null&&(n=pa.measureText(e,t).width,r.put(e,n)),n}function ig(e,t,r,n){var a=_t(e,t),o=rf(t),i=Vo(0,a,r),s=Ea(0,o,n),l=new ye(i,s,a,o);return l}function tf(e,t,r,n){var a=((e||"")+"").split(`
15
- `),o=a.length;if(o===1)return ig(a[0],t,r,n);for(var i=new ye(0,0,0,0),s=0;s<a.length;s++){var l=ig(a[s],t,r,n);s===0?i.copy(l):i.union(l)}return i}function Vo(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ea(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function rf(e){return _t("国",e)}function Xr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ds(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,o=r.height,i=r.width,s=o/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Xr(n[0],r.width),u+=Xr(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+i,u+=s,f="middle";break;case"top":l+=i/2,u-=a,c="center",f="bottom";break;case"bottom":l+=i/2,u+=o+a,c="center";break;case"inside":l+=i/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=i-a,u+=s,c="right",f="middle";break;case"insideTop":l+=i/2,u+=a,c="center";break;case"insideBottom":l+=i/2,u+=o-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=i-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=o-a,f="bottom";break;case"insideBottomRight":l+=i-a,u+=o-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var nf="__zr_normal__",af=ir.concat(["ignore"]),NN=Sr(ir,function(e,t){return e[t]=!0,e},{ignore:!1}),Pa={},DN=new ye(0,0,0,0),of=function(){function e(t){this.id=uv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,o=r.innerTransformable,i=void 0,s=void 0,l=!1;o.parent=a?this:null;var u=!1;if(o.copyTransform(r),n.position!=null){var c=DN;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pa,n,c):Ds(Pa,n,c),o.x=Pa.x,o.y=Pa.y,i=Pa.align,s=Pa.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Xr(f[0],c.width),h=Xr(f[1],c.height)),u=!0,o.originX=-o.x+d+(a?0:c.x),o.originY=-o.y+h+(a?0:c.y)}}n.rotation!=null&&(o.rotation=n.rotation);var v=n.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,w=void 0,_=void 0;m&&this.canBeInsideText()?(y=n.insideFill,w=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,w=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||w!==g.stroke||_!==g.autoStroke||i!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=w,g.autoStroke=_,g.align=i,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=yt,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Kc:Zc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Cr(r);n||(n=[255,255,255,1]);for(var a=n[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*a+(o?0:255)*(1-a);return n[3]=1,ys(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},H(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(K(t))for(var n=t,a=me(n),o=0;o<a.length;o++){var i=a[o];this.attrKV(i,t[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],o=a.__fromStateTransition;if(!(a.getLoop()||o&&o!==nf)){var i=a.targetName,s=i?r[i]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,af)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var o=n[a];t[o]!=null&&!(o in r)&&(r[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(nf,!1,t)},e.prototype.useState=function(t,r,n,a){var o=t===nf,i=this.hasState();if(!(!i&&o)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){Hr("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~yt),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],o=this.currentStates,i=t.length,s=i===o.length;if(s){for(var l=0;l<i;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<i;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[i-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~yt)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=fe(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),o=fe(a,t),i=fe(a,r)>=0;o>=0?i?a.splice(o,1):a[o]=r:n&&!i&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var o=t[a];H(r,o),o.textConfig&&(n=n||{},H(n,o.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,o,i){var s=!(r&&a);r&&r.textConfig?(this.textConfig=H({},a?this.textConfig:n.textConfig),H(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<af.length;c++){var f=af[c],d=o&&NN[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!o)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,i)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new ef,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=yt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!a){Hr('Property "'+t+'" is not existed in element '+this.id);return}var o=new Gc(a,r,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var o=a.animators,i=fe(o,t);i>=0&&o.splice(i,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,o=[],i=0;i<a;i++){var s=n[i];!t||t===s.scope?s.stop(r):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,r,n){sf(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){sf(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var o=sf(this,r,n,a),i=0;i<o.length;i++)o[i].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=yt;var r={};function n(o,i,s){r[o+i+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+i+"', '"+s+"' instead"),r[o+i+s]=!0)}function a(o,i,s,l){Object.defineProperty(t,o,{get:function(){if(process.env.NODE_ENV!=="production"&&n(o,s,l),!this[i]){var c=this[i]=[];u(this,c)}return this[i]},set:function(c){process.env.NODE_ENV!=="production"&&n(o,s,l),this[s]=c[0],this[l]=c[1],this[i]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),e}();Wt(of,Ut),Wt(of,ef);function sf(e,t,r,n,a){r=r||{};var o=[];sg(e,"",e,t,r,n,o,a);var i=o.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,i--,i<=0&&(s?l&&l():u&&u())},f=function(){i--,i<=0&&(s?l&&l():u&&u())};i||l&&l(),o.length>0&&r.during&&o[0].during(function(v,m){r.during(m)});for(var d=0;d<o.length;d++){var h=o[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return o}function lf(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function AN(e){return nt(e[0])}function MN(e,t,r){if(nt(t[r]))if(nt(e[r])||(e[r]=[]),at(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),lf(e[r],t[r],n))}else{var a=t[r],o=e[r],i=a.length;if(AN(a))for(var s=a[0].length,l=0;l<i;l++)o[l]?lf(o[l],a[l],s):o[l]=Array.prototype.slice.call(a[l]);else lf(o,a,i);o.length=a.length}else e[r]=t[r]}function kN(e,t){return e===t||nt(e)&&nt(t)&&EN(e,t)}function EN(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function sg(e,t,r,n,a,o,i,s){for(var l=me(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!K(o),v=e.animators,m=[],g=0;g<l.length;g++){var y=l[g],w=n[y];if(w!=null&&r[y]!=null&&(h||o[y]))if(K(w)&&!nt(w)&&!os(w)){if(t){s||(r[y]=w,e.updateDuringAnimation(t));continue}sg(e,y,r[y],w,a,o&&o[y],i,s)}else m.push(y);else s||(r[y]=w,e.updateDuringAnimation(t),m.push(y))}var _=m.length;if(!f&&_)for(var S=0;S<v.length;S++){var x=v[S];if(x.targetName===t){var C=x.stopTracks(m);if(C){var T=fe(v,x);v.splice(T,1)}}}if(a.force||(m=Ue(m,function(A){return!kN(n[A],r[A])}),_=m.length),_>0||a.force&&!i.length){var b=void 0,D=void 0,N=void 0;if(s){D={},d&&(b={});for(var S=0;S<_;S++){var y=m[S];D[y]=r[y],d?b[y]=n[y]:r[y]=n[y]}}else if(d){N={};for(var S=0;S<_;S++){var y=m[S];N[y]=Oo(r[y]),MN(r,n,y)}}var x=new Gc(r,!1,!1,f?Ue(v,function(M){return M.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&b&&x.whenWithKeys(0,b,m),N&&x.whenWithKeys(0,N,m),x.whenWithKeys(u??500,s?D:n,m).delay(c||0),e.addAnimator(x,t),i.push(x)}}const lg=of;var Pe=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,o=a.indexOf(n);o>=0&&(a.splice(o,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=fe(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,o=a[n];if(r&&r!==this&&r.parent!==this&&r!==o){a[n]=r,o.parent=null;var i=this.__zr;i&&o.removeSelfFromZr(i),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,o=fe(a,r);return o<0?this:(a.splice(o,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var o=r[a];n&&o.removeSelfFromZr(n),o.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,o=0;o<a.length;o++){var i=a[o];r.call(n,i,o)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var o=this._children[a],i=r.call(n,o);o.isGroup&&!i&&o.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ye(0,0,0,0),a=r||this._children,o=[],i=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(ye.applyTransform(n,u,c),i=i||n.clone(),i.union(n)):(i=i||u.clone(),i.union(u))}}return i||n},t}(lg);Pe.prototype.type="group";/*!
14
+ ***************************************************************************** */var sc=function(e,t){return sc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},sc(e,t)};function W(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Jx=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Qx=function(){function e(){this.browser=new Jx,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}(),ne=new Qx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ne.wxa=!0,ne.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ne.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ne.node=!0,ne.svgSupported=!0):eT(navigator.userAgent,ne);function eT(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),i=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),i&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var lc=12,tT="sans-serif",yn=lc+"px "+tT,rT=20,nT=100,aT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function oT(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-rT)/nT;t[n]=a}return t}var iT=oT(aT),pa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=pa.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||yn),e.measureText(r);r=r||"",n=n||yn;var o=/(\d+)px/.exec(n),i=o&&+o[1]||lc,s=0;if(n.indexOf("mono")>=0)s=i*r.length;else for(var l=0;l<r.length;l++){var u=iT[r[l]];s+=u==null?i:u*i}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},iv=Sr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),sv=Sr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),va=Object.prototype.toString,rs=Array.prototype,sT=rs.forEach,lT=rs.filter,uc=rs.slice,uT=rs.map,lv=(function(){}).constructor,ns=lv?lv.prototype:null,cc="__proto__",cT=2311;function uv(){return cT++}function Hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ce(e){if(e==null||typeof e!="object")return e;var t=e,r=va.call(e);if(r==="[object Array]"){if(!To(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ce(e[n])}}else if(sv[r]){if(!To(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!iv[r]&&!To(e)&&!ga(e)){t={};for(var i in e)e.hasOwnProperty(i)&&i!==cc&&(t[i]=ce(e[i]))}return t}function pe(e,t,r){if(!K(t)||!K(e))return r?ce(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==cc){var a=e[n],o=t[n];K(o)&&K(a)&&!U(o)&&!U(a)&&!ga(o)&&!ga(a)&&!cv(o)&&!cv(a)&&!To(o)&&!To(a)?pe(a,o,r):(r||!(n in e))&&(e[n]=ce(t[n]))}return e}function H(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==cc&&(e[r]=t[r]);return e}function he(e,t,r){for(var n=me(t),a=0;a<n.length;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function fe(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function fT(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Wt(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var o=n[a];o!=="constructor"&&(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else he(e,t,r)}function nt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function k(e,t,r){if(e&&t)if(e.forEach&&e.forEach===sT)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e)}function j(e,t,r){if(!e)return[];if(!t)return fc(e);if(e.map&&e.map===uT)return e.map(t,r);for(var n=[],a=0,o=e.length;a<o;a++)n.push(t.call(r,e[a],a,e));return n}function Sr(e,t,r,n){if(e&&t){for(var a=0,o=e.length;a<o;a++)r=t.call(n,r,e[a],a,e);return r}}function Ue(e,t,r){if(!e)return[];if(!t)return fc(e);if(e.filter&&e.filter===lT)return e.filter(t,r);for(var n=[],a=0,o=e.length;a<o;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function me(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function hT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(uc.call(arguments)))}}var Q=ns&&ae(ns.bind)?ns.call.bind(ns.bind):hT;function be(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(uc.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):va.call(e)==="[object Array]"}function ae(e){return typeof e=="function"}function X(e){return typeof e=="string"}function as(e){return va.call(e)==="[object String]"}function Ce(e){return typeof e=="number"}function K(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function cv(e){return!!iv[va.call(e)]}function at(e){return!!sv[va.call(e)]}function ga(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function os(e){return e.colorStops!=null}function dT(e){return e.image!=null}function pT(e){return va.call(e)==="[object RegExp]"}function ma(e){return e!==e}function Wr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function oe(e,t){return e??t}function Ur(e,t,r){return e??t??r}function fc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return uc.apply(e,t)}function fv(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 te(e,t){if(!e)throw new Error(t)}function ar(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var hv="__ec_primitive__";function hc(e){e[hv]=!0}function To(e){return e[hv]}var vT=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return me(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),dv=typeof Map=="function";function gT(){return dv?new Map:new vT}var mT=function(){function e(t){var r=U(t);this.data=gT();var n=this;t instanceof e?t.each(a):t&&k(t,a);function a(o,i){r?n.set(o,i):n.set(i,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return dv?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ie(e){return new mT(e)}function yT(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function is(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&H(r,t),r}function pv(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Y(e,t){return e.hasOwnProperty(t)}function ot(){}var _T=180/Math.PI;function ya(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function wT(e){return[e[0],e[1]]}function vv(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function gv(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function bT(e){return Math.sqrt(ST(e))}function ST(e){return e[0]*e[0]+e[1]*e[1]}function dc(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function pc(e,t){var r=bT(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function vc(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var gc=vc;function CT(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var _a=CT;function mc(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Tt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function wa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function ba(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Sa=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),xT=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Sa(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,o=n-this._x,i=a-this._y;this._x=n,this._y=a,r.drift(o,i,t),this.handler.dispatchToElement(new Sa(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Sa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Sa(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Sa(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Sa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ut=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var i=this._$eventProcessor;r!=null&&i&&i.normalizeQuery&&(r=i.normalizeQuery(r)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],o=0,i=n[t].length;o<i;o++)n[t][o].h!==r&&a.push(n[t][o]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],o=this._$eventProcessor;if(a)for(var i=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(i){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],o=this._$eventProcessor;if(a)for(var i=r.length,s=r[i-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(i){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,i-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),TT=Math.log(2);function yc(e,t,r,n,a,o){var i=n+"-"+a,s=e.length;if(o.hasOwnProperty(i))return o[i];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/TT);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&a||(f+=(h%2?-1:1)*e[r][d]*yc(e,t-1,c,u,a|v,o),h++)}return o[i]=f,f}function mv(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=yc(r,8,0,0,0,n);if(a!==0){for(var o=[],i=0;i<8;i++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((i+s)%2?-1:1)*yc(r,7,i===0?1:0,1<<i,1<<s,n)/a*t[i];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var yv="___zrEVENTSAVED",_c=[];function NT(e,t,r,n,a){return wc(_c,t,n,a,!0)&&wc(e,r,_c[0],_c[1])}function wc(e,t,r,n,a){if(t.getBoundingClientRect&&ne.domSupported&&!_v(t)){var o=t[yv]||(t[yv]={}),i=DT(t,o),s=AT(i,o,a);if(s)return s(e,r,n),!0}return!1}function DT(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],o=0;o<4;o++){var i=document.createElement("div"),s=i.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(i),r.push(i)}return r}function AT(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],o=t.srcCoords,i=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;i.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=i,t[n]=r?mv(s,i):mv(i,s))}function _v(e){return e.nodeName.toUpperCase()==="CANVAS"}var MT=/([&<>"'])/g,kT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Nt(e){return e==null?"":(e+"").replace(MT,function(t,r){return kT[r]})}var ET=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bc=[],PT=ne.browser.firefox&&+ne.browser.version.split(".")[0]<39;function Sc(e,t,r,n){return r=r||{},n?wv(e,t,r):PT&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):wv(e,t,r),r}function wv(e,t,r){if(ne.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(_v(e)){var o=e.getBoundingClientRect();r.zrX=n-o.left,r.zrY=a-o.top;return}else if(wc(bc,e,n,a)){r.zrX=bc[0],r.zrY=bc[1];return}}r.zrX=r.zrY=0}function Cc(e){return e||window.event}function Dt(e,t,r){if(t=Cc(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var i=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];i&&Sc(e,i,t,r)}else{Sc(e,t,t,r);var o=IT(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&ET.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function IT(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),o=n>0?-1:n<0?1:r>0?-1:1;return 3*a*o}function LT(e,t,r,n){e.addEventListener(t,r,n)}function OT(e,t,r,n){e.removeEventListener(t,r,n)}var Ca=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function bv(e){return e.which===2||e.which===3}var RT=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var o={points:[],touches:[],target:r,event:t},i=0,s=a.length;i<s;i++){var l=a[i],u=Sc(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var r in xc)if(xc.hasOwnProperty(r)){var n=xc[r](this._track,t);if(n)return n}},e}();function Sv(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function BT(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var xc={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var o=Sv(n)/Sv(a);!isFinite(o)&&(o=1),t.pinchScale=o;var i=BT(n);return t.pinchX=i[0],t.pinchY=i[1],{type:"pinch",target:e[0].target,event:t}}}}};function xa(){return[1,0,0,1,0,0]}function Tc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function VT(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 Ta(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],o=t[0]*r[2]+t[2]*r[3],i=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=o,e[3]=i,e[4]=s,e[5]=l,e}function Nc(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Dc(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],o=t[2],i=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(i-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(i-n[0])+n[1],e}function $T(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function Ac(e,t){var r=t[0],n=t[2],a=t[4],o=t[1],i=t[3],s=t[5],l=r*i-o*n;return l?(l=1/l,e[0]=i*l,e[1]=-o*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-i*a)*l,e[5]=(o*a-r*s)*l,e):null}var FT=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var o=1-a;t.x=o*r.x+a*n.x,t.y=o*r.y+a*n.y},e}();const le=FT;var ss=Math.min,ls=Math.max,_n=new le,wn=new le,bn=new le,Sn=new le,No=new le,Do=new le,zT=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=ss(t.x,this.x),n=ss(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ls(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ls(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,o=xa();return Nc(o,o,[-r.x,-r.y]),$T(o,o,[n,a]),Nc(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,o=n.x+n.width,i=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(o<l||u<a||s<c||f<i);if(r){var h=1/0,v=0,m=Math.abs(o-l),g=Math.abs(u-a),y=Math.abs(s-c),w=Math.abs(f-i),_=Math.min(m,g),S=Math.min(y,w);o<l||u<a?_>v&&(v=_,m<g?le.set(Do,-m,0):le.set(Do,g,0)):_<h&&(h=_,m<g?le.set(No,m,0):le.set(No,-g,0)),s<c||f<i?S>v&&(v=S,y<w?le.set(Do,0,-y):le.set(Do,0,w)):_<h&&(h=_,y<w?le.set(No,0,y):le.set(No,0,-w))}return r&&le.copy(r,d?No:Do),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],o=n[3],i=n[4],s=n[5];t.x=r.x*a+i,t.y=r.y*o+s,t.width=r.width*a,t.height=r.height*o,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=bn.x=r.x,_n.y=Sn.y=r.y,wn.x=Sn.x=r.x+r.width,wn.y=bn.y=r.y+r.height,_n.transform(n),Sn.transform(n),wn.transform(n),bn.transform(n),t.x=ss(_n.x,wn.x,bn.x,Sn.x),t.y=ss(_n.y,wn.y,bn.y,Sn.y);var l=ls(_n.x,wn.x,bn.x,Sn.x),u=ls(_n.y,wn.y,bn.y,Sn.y);t.width=l-t.x,t.height=u-t.y},e}();const ye=zT;var Cv="silent";function GT(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:HT}}function HT(){Ca(this.event)}var WT=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ut),Ao=function(){function e(t,r){this.x=t,this.y=r}return e}(),UT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Mc=new ye(0,0,0,0),xv=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this)||this;return s._hovered=new Ao(0,0),s.storage=r,s.painter=n,s.painterRoot=o,s._pointerSize=i,a=a||new WT,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new xT(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(k(UT,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,o=Nv(this,n,a),i=this._hovered,s=i.target;s&&!s.__zr&&(i=this.findHover(i.x,i.y),s=i.target);var l=this._hovered=o?new Ao(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(i,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ao(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var o=r.target;if(!(o&&o.silent)){for(var i="on"+n,s=GT(n,r,a);o&&(o[i]&&(s.cancelBubble=!!o[i].call(o,s)),o.trigger(n,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[i]=="function"&&l[i].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var o=this.storage.getDisplayList(),i=new Ao(r,n);if(Tv(o,i,r,n,a),this._pointerSize&&!i.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ye(r-u,n-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Mc.copy(d.getBoundingRect()),d.transform&&Mc.applyTransform(d.transform),Mc.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<m;y+=v){var w=r+g*Math.cos(y),_=n+g*Math.sin(y);if(Tv(s,i,w,_,a),i.target)return i}}return i},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new RT);var a=this._gestureMgr;n==="start"&&a.clear();var o=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),o){var i=o.type;r.gestureEvent=i;var s=new Ao;s.target=o.target,this.dispatchToElement(s,i,o.event)}},t}(Ut);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){xv.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=Nv(this,r,n),o,i;if((e!=="mouseup"||!a)&&(o=this.findHover(r,n),i=o.target),e==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(e==="mouseup")this._upEl=i;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||gc(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function YT(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var i=n.getClipPath();if(i&&!i.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?Cv:!0}return!1}function Tv(e,t,r,n,a){for(var o=e.length-1;o>=0;o--){var i=e[o],s=void 0;if(i!==a&&!i.ignore&&(s=YT(i,r,n))&&(!t.topTarget&&(t.topTarget=i),s!==Cv)){t.target=i;break}}}function Nv(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const qT=xv;var Dv=32,Mo=7;function jT(e){for(var t=0;e>=Dv;)t|=e&1,e>>=1;return e+t}function Av(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;XT(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function XT(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Mv(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var o=e[n],i=t,s=n,l;i<s;)l=i+s>>>1,a(o,e[l])<0?s=l:i=l+1;var u=n-i;switch(u){case 3:e[i+3]=e[i+2];case 2:e[i+2]=e[i+1];case 1:e[i+1]=e[i];break;default:for(;u>0;)e[i+u]=e[i+u-1],u--}e[i]=o}}function kc(e,t,r,n,a,o){var i=0,s=0,l=1;if(o(e,t[r+a])>0){for(s=n-a;l<s&&o(e,t[r+a+l])>0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}else{for(s=a+1;l<s&&o(e,t[r+a-l])<=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}for(i++;i<l;){var c=i+(l-i>>>1);o(e,t[r+c])>0?i=c+1:l=c}return l}function Ec(e,t,r,n,a,o){var i=0,s=0,l=1;if(o(e,t[r+a])<0){for(s=a+1;l<s&&o(e,t[r+a-l])<0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}else{for(s=n-a;l<s&&o(e,t[r+a+l])>=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}for(i++;i<l;){var c=i+(l-i>>>1);o(e,t[r+c])<0?l=c:i=c+1}return l}function ZT(e,t){var r=Mo,n,a,o=0,i=[];n=[],a=[];function s(h,v){n[o]=h,a[o]=v,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var v=n[h],m=a[h],g=n[h+1],y=a[h+1];a[h]=m+y,h===o-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),o--;var w=Ec(e[g],e,v,m,0,t);v+=w,m-=w,m!==0&&(y=kc(e[v+m-1],e,g,y,y-1,t),y!==0&&(m<=y?f(v,m,g,y):d(v,m,g,y)))}function f(h,v,m,g){var y=0;for(y=0;y<v;y++)i[y]=e[h+y];var w=0,_=m,S=h;if(e[S++]=e[_++],--g===0){for(y=0;y<v;y++)e[S+y]=i[w+y];return}if(v===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=i[w];return}for(var x=r,C,T,b;;){C=0,T=0,b=!1;do if(t(e[_],i[w])<0){if(e[S++]=e[_++],T++,C=0,--g===0){b=!0;break}}else if(e[S++]=i[w++],C++,T=0,--v===1){b=!0;break}while((C|T)<x);if(b)break;do{if(C=Ec(e[_],i,w,v,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=i[w+y];if(S+=C,w+=C,v-=C,v<=1){b=!0;break}}if(e[S++]=e[_++],--g===0){b=!0;break}if(T=kc(i[w],e,_,g,0,t),T!==0){for(y=0;y<T;y++)e[S+y]=e[_+y];if(S+=T,_+=T,g-=T,g===0){b=!0;break}}if(e[S++]=i[w++],--v===1){b=!0;break}x--}while(C>=Mo||T>=Mo);if(b)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=i[w]}else{if(v===0)throw new Error;for(y=0;y<v;y++)e[S+y]=i[w+y]}}function d(h,v,m,g){var y=0;for(y=0;y<g;y++)i[y]=e[m+y];var w=h+v-1,_=g-1,S=m+g-1,x=0,C=0;if(e[S--]=e[w--],--v===0){for(x=S-(g-1),y=0;y<g;y++)e[x+y]=i[y];return}if(g===1){for(S-=v,w-=v,C=S+1,x=w+1,y=v-1;y>=0;y--)e[C+y]=e[x+y];e[S]=i[_];return}for(var T=r;;){var b=0,D=0,N=!1;do if(t(i[_],e[w])<0){if(e[S--]=e[w--],b++,D=0,--v===0){N=!0;break}}else if(e[S--]=i[_--],D++,b=0,--g===1){N=!0;break}while((b|D)<T);if(N)break;do{if(b=v-Ec(i[_],e,h,v,v-1,t),b!==0){for(S-=b,w-=b,v-=b,C=S+1,x=w+1,y=b-1;y>=0;y--)e[C+y]=e[x+y];if(v===0){N=!0;break}}if(e[S--]=i[_--],--g===1){N=!0;break}if(D=g-kc(e[w],i,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,C=S+1,x=_+1,y=0;y<D;y++)e[C+y]=i[x+y];if(g<=1){N=!0;break}}if(e[S--]=e[w--],--v===0){N=!0;break}T--}while(b>=Mo||D>=Mo);if(N)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=v,w-=v,C=S+1,x=w+1,y=v-1;y>=0;y--)e[C+y]=e[x+y];e[S]=i[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)e[x+y]=i[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function us(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var o=0;if(a<Dv){o=Av(e,r,n,t),Mv(e,r,n,r+o,t);return}var i=ZT(e,t),s=jT(a);do{if(o=Av(e,r,n,t),o<s){var l=a;l>s&&(l=s),Mv(e,r,r+l,r+o,t),o=l}i.pushRun(r,o),i.mergeRuns(),a-=o,r+=o}while(a!==0);i.forceMergeRuns()}}var yt=1,ko=2,Na=4,kv=!1;function Pc(){kv||(kv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ev(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var KT=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ev}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,o=r.length;a<o;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,us(n,Ev)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var o=a,i=t;o;)o.parent=i,o.updateTransform(),r.push(o),i=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=yt),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Pc(),c.z=0),isNaN(c.z2)&&(Pc(),c.z2=0),isNaN(c.zlevel)&&(Pc(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=fe(this._roots,t);a>=0&&this._roots.splice(a,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}(),Pv;Pv=ne.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Ic=Pv;var Eo={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Eo.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?Eo.bounceIn(e*2)*.5:Eo.bounceOut(e*2-1)*.5+.5}},cs=Math.pow,Yr=Math.sqrt,fs=1e-8,Iv=1e-4,Lv=Yr(3),hs=1/3,or=ya(),At=ya(),Da=ya();function qr(e){return e>-fs&&e<fs}function Ov(e){return e>fs||e<-fs}function $e(e,t,r,n,a){var o=1-a;return o*o*(o*e+3*a*t)+a*a*(a*n+3*o*r)}function Rv(e,t,r,n,a){var o=1-a;return 3*(((t-e)*o+2*(r-t)*a)*o+(n-r)*a*a)}function ds(e,t,r,n,a,o){var i=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*i*l,f=s*l-9*i*u,d=l*l-3*s*u,h=0;if(qr(c)&&qr(f))if(qr(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[h++]=v)}else{var m=f*f-4*c*d;if(qr(m)){var g=f/c,v=-s/i+g,y=-g/2;v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y)}else if(m>0){var w=Yr(m),_=c*s+1.5*i*(-f+w),S=c*s+1.5*i*(-f-w);_<0?_=-cs(-_,hs):_=cs(_,hs),S<0?S=-cs(-S,hs):S=cs(S,hs);var v=(-s-(_+S))/(3*i);v>=0&&v<=1&&(o[h++]=v)}else{var x=(2*c*s-3*i*f)/(2*Yr(c*c*c)),C=Math.acos(x)/3,T=Yr(c),b=Math.cos(C),v=(-s-2*T*b)/(3*i),y=(-s+T*(b+Lv*Math.sin(C)))/(3*i),D=(-s+T*(b-Lv*Math.sin(C)))/(3*i);v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y),D>=0&&D<=1&&(o[h++]=D)}}return h}function Bv(e,t,r,n,a){var o=6*r-12*t+6*e,i=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(qr(i)){if(Ov(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(qr(c))a[0]=-o/(2*i);else if(c>0){var f=Yr(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function ps(e,t,r,n,a,o){var i=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-i)*a+i,c=(l-s)*a+s,f=(c-u)*a+u;o[0]=e,o[1]=i,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=n}function JT(e,t,r,n,a,o,i,s,l,u,c){var f,d=.005,h=1/0,v,m,g,y;or[0]=l,or[1]=u;for(var w=0;w<1;w+=.05)At[0]=$e(e,r,a,i,w),At[1]=$e(t,n,o,s,w),g=_a(or,At),g<h&&(f=w,h=g);h=1/0;for(var _=0;_<32&&!(d<Iv);_++)v=f-d,m=f+d,At[0]=$e(e,r,a,i,v),At[1]=$e(t,n,o,s,v),g=_a(At,or),v>=0&&g<h?(f=v,h=g):(Da[0]=$e(e,r,a,i,m),Da[1]=$e(t,n,o,s,m),y=_a(Da,or),m<=1&&y<h?(f=m,h=y):d*=.5);return c&&(c[0]=$e(e,r,a,i,f),c[1]=$e(t,n,o,s,f)),Yr(h)}function QT(e,t,r,n,a,o,i,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,m=$e(e,r,a,i,v),g=$e(t,n,o,s,v),y=m-u,w=g-c;f+=Math.sqrt(y*y+w*w),u=m,c=g}return f}function Xe(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function Vv(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function eN(e,t,r,n,a){var o=e-2*t+r,i=2*(t-e),s=e-n,l=0;if(qr(o)){if(Ov(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(qr(c)){var u=-i/(2*o);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Yr(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function $v(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function vs(e,t,r,n,a){var o=(t-e)*n+e,i=(r-t)*n+t,s=(i-o)*n+o;a[0]=e,a[1]=o,a[2]=s,a[3]=s,a[4]=i,a[5]=r}function tN(e,t,r,n,a,o,i,s,l){var u,c=.005,f=1/0;or[0]=i,or[1]=s;for(var d=0;d<1;d+=.05){At[0]=Xe(e,r,a,d),At[1]=Xe(t,n,o,d);var h=_a(or,At);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<Iv);v++){var m=u-c,g=u+c;At[0]=Xe(e,r,a,m),At[1]=Xe(t,n,o,m);var h=_a(At,or);if(m>=0&&h<f)u=m,f=h;else{Da[0]=Xe(e,r,a,g),Da[1]=Xe(t,n,o,g);var y=_a(Da,or);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Xe(e,r,a,u),l[1]=Xe(t,n,o,u)),Yr(f)}function rN(e,t,r,n,a,o,i){for(var s=e,l=t,u=0,c=1/i,f=1;f<=i;f++){var d=f*c,h=Xe(e,r,a,d),v=Xe(t,n,o,d),m=h-s,g=v-l;u+=Math.sqrt(m*m+g*g),s=h,l=v}return u}var nN=/cubic-bezier\(([0-9,\.e ]+)\)/;function Fv(e){var t=e&&nN.exec(e);if(t){var r=t[1].split(","),n=+ar(r[0]),a=+ar(r[1]),o=+ar(r[2]),i=+ar(r[3]);if(isNaN(n+a+o+i))return;var s=[];return function(l){return l<=0?0:l>=1?1:ds(0,n,o,1,l,s)&&$e(0,a,i,1,s[0])}}}var aN=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ot,this.ondestroy=t.ondestroy||ot,this.onrestart=t.onrestart||ot,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,o=a/n;o<0&&(o=0),o=Math.min(o,1);var i=this.easingFunc,s=i?i(o):o;if(this.onframe(s),o===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ae(t)?t:Eo[t]||Fv(t)},e}();const oN=aN;var zv=function(){function e(t){this.value=t}return e}(),iN=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new zv(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Po=function(){function e(t){this._list=new iN,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,o=null;if(a[t]==null){var i=n.len(),s=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var l=n.head;n.remove(l),delete a[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new zv(r),s.key=t,n.insertEntry(s),a[t]=s}return o},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Gv={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 jr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Lc(e){return e<0?0:e>1?1:e}function Oc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jr(parseFloat(t)/100*255):jr(parseInt(t,10))}function Io(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Lc(parseFloat(t)/100):Lc(parseFloat(t))}function Rc(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function gs(e,t,r){return e+(t-e)*r}function Mt(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Bc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hv=new Po(20),ms=null;function Aa(e,t){ms&&Bc(ms,t),ms=Hv.put(e,ms||t.slice())}function Cr(e,t){if(e){t=t||[];var r=Hv.get(e);if(r)return Bc(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Gv)return Bc(t,Gv[n]),Aa(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){Mt(t,0,0,0,1);return}return Mt(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Aa(e,t),t}else if(a===7||a===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){Mt(t,0,0,0,1);return}return Mt(t,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(n.slice(7),16)/255:1),Aa(e,t),t}return}var i=n.indexOf("("),s=n.indexOf(")");if(i!==-1&&s+1===a){var l=n.substr(0,i),u=n.substr(i+1,s-(i+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Mt(t,+u[0],+u[1],+u[2],1):Mt(t,0,0,0,1);c=Io(u.pop());case"rgb":if(u.length>=3)return Mt(t,Oc(u[0]),Oc(u[1]),Oc(u[2]),u.length===3?c:Io(u[3])),Aa(e,t),t;Mt(t,0,0,0,1);return;case"hsla":if(u.length!==4){Mt(t,0,0,0,1);return}return u[3]=Io(u[3]),Wv(u,t),Aa(e,t),t;case"hsl":if(u.length!==3){Mt(t,0,0,0,1);return}return Wv(u,t),Aa(e,t),t;default:return}}Mt(t,0,0,0,1)}}function Wv(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Io(e[1]),a=Io(e[2]),o=a<=.5?a*(n+1):a+n-a*n,i=a*2-o;return t=t||[],Mt(t,jr(Rc(i,o,r+1/3)*255),jr(Rc(i,o,r)*255),jr(Rc(i,o,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Uv(e,t){var r=Cr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ys(r,r.length===4?"rgba":"rgb")}}function sN(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),o=Math.ceil(n),i=Cr(t[a]),s=Cr(t[o]),l=n-a,u=ys([jr(gs(i[0],s[0],l)),jr(gs(i[1],s[1],l)),jr(gs(i[2],s[2],l)),Lc(gs(i[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:o,value:n}:u}}function ys(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function _s(e,t){var r=Cr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Yv=new Po(100);function qv(e){if(X(e)){var t=Yv.get(e);return t||(t=Uv(e,-.1),Yv.put(e,t)),t}else if(os(e)){var r=H({},e);return r.colorStops=j(e.colorStops,function(n){return{offset:n.offset,color:Uv(n.color,-.1)}}),r}return e}function lN(e){return e.type==="linear"}function uN(e){return e.type==="radial"}(function(){return ne.hasGlobalWindow&&ae(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&Hr("Base64 isn't natively supported in the current environment."),null}})();var Vc=Array.prototype.slice;function xr(e,t,r){return(t-e)*r+e}function $c(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=xr(t[o],r[o],n);return e}function cN(e,t,r,n){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=xr(t[i][s],r[i][s],n)}return e}function ws(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=t[o]+r[o]*n;return e}function jv(e,t,r,n){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=t[i][s]+r[i][s]*n}return e}function fN(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,o=Math.min(r,n),i=a[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,n);s++)a.push({offset:i.offset,color:i.color.slice()})}function hN(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var o=n.length,i=a.length;if(o!==i){var s=o>i;if(s)n.length=i;else for(var l=o;l<i;l++)n.push(r===1?a[l]:Vc.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Lo(e){if(nt(e)){var t=e.length;if(nt(e[0])){for(var r=[],n=0;n<t;n++)r.push(Vc.call(e[n]));return r}return Vc.call(e)}return e}function bs(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 dN(e){return nt(e&&e[0])?2:1}var Ss=0,Cs=1,Xv=2,Oo=3,Fc=4,zc=5,Zv=6;function Kv(e){return e===Fc||e===zc}function xs(e){return e===Cs||e===Xv}var Ro=[0,0,0,0],pN=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,o=a.length,i=!1,s=Zv,l=r;if(nt(r)){var u=dN(r);s=u,(u===1&&!Ce(r[0])||u===2&&!Ce(r[0][0]))&&(i=!0)}else if(Ce(r)&&!ma(r))s=Ss;else if(X(r))if(!isNaN(+r))s=Ss;else{var c=Cr(r);c&&(l=c,s=Oo)}else if(os(r)){var f=H({},l);f.colorStops=j(r.colorStops,function(h){return{offset:h.offset,color:Cr(h.color)}}),lN(r)?s=Fc:uN(r)&&(s=zc),l=f}o===0?this.valType=s:(s!==this.valType||s===Zv)&&(i=!0),this.discrete=this.discrete||i;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ae(n)?n:Eo[n]||Fv(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var a=this.valType,o=n.length,i=n[o-1],s=this.discrete,l=xs(a),u=Kv(a),c=0;c<o;c++){var f=n[c],d=f.value,h=i.value;f.percent=f.time/t,s||(l&&c!==o-1?hN(d,h,a):u&&fN(d.colorStops,h.colorStops))}if(!s&&a!==zc&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<o;c++)a===Ss?n[c].additiveValue=n[c].value-v:a===Oo?n[c].additiveValue=ws([],n[c].value,v,-1):xs(a)&&(n[c].additiveValue=a===Cs?ws([],n[c].value,v,-1):jv([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",o=this.valType,i=this.keyframes,s=i.length,l=this.propName,u=o===Oo,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=i[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(i[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(i[c].percent>r);c++);c=d(c-1,s-2)}v=i[c+1],h=i[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,y=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(y=v.easingFunc(y));var w=n?this._additiveValue:u?Ro:t[l];if((xs(o)||u)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:v.rawValue;else if(xs(o))o===Cs?$c(w,h[a],v[a],y):cN(w,h[a],v[a],y);else if(Kv(o)){var _=h[a],S=v[a],x=o===Fc;t[l]={type:x?"linear":"radial",x:xr(_.x,S.x,y),y:xr(_.y,S.y,y),colorStops:j(_.colorStops,function(T,b){var D=S.colorStops[b];return{offset:xr(T.offset,D.offset,y),color:bs($c([],T.color,D.color,y))}}),global:S.global},x?(t[l].x2=xr(_.x2,S.x2,y),t[l].y2=xr(_.y2,S.y2,y)):t[l].r=xr(_.r,S.r,y)}else if(u)$c(w,h[a],v[a],y),n||(t[l]=bs(w));else{var C=xr(h[a],v[a],y);n?this._additiveValue=C:t[l]=C}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Ss?t[n]=t[n]+a:r===Oo?(Cr(t[n],Ro),ws(Ro,Ro,a,1),t[n]=bs(Ro)):r===Cs?ws(t[n],t[n],a,1):r===Xv&&jv(t[n],t[n],a,1)},e}(),Gc=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){Hr("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,me(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var o=this._tracks,i=0;i<n.length;i++){var s=n[i],l=o[s];if(!l){l=o[s]=new pN(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Oo&&u&&(u=bs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Lo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Lo(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var o=n[a].getTrack(t);o&&(r=o)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var i=this._trackKeys[o],s=this._tracks[i],l=this._getAdditiveTrack(i),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new oN({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var m=!1,g=0;g<v.length;g++)if(v[g]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return j(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,o=0;o<t.length;o++){var i=n[t[o]];i&&!i.isFinished()&&(r?i.step(this._target,1):this._started===1&&i.step(this._target,0),i.setFinished())}for(var s=!0,o=0;o<a.length;o++)if(!n[a[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var o=r[a],i=this._tracks[o];if(!(!i||i.isFinished())){var s=i.keyframes,l=s[n?0:s.length-1];l&&(t[o]=Lo(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||me(t);for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(o){var i=o.keyframes;if(i.length>1){var s=i.pop();o.addKeyframe(s.time,t[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}();function Ma(){return new Date().getTime()}var vN=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ma()-this._pausedTime,a=n-this._time,o=this._head;o;){var i=o.next,s=o.step(n,a);s&&(o.ondestroy(),this.removeClip(o)),o=i}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ic(n),!r._paused&&r.update())}Ic(n)},t.prototype.start=function(){this._running||(this._time=Ma(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ma(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ma()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new Gc(r,n.loop);return this.addAnimator(a),a},t}(Ut),gN=300,Hc=ne.domSupported,Wc=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=j(e,function(a){var o=a.replace("mouse","pointer");return r.hasOwnProperty(o)?o:a});return{mouse:e,touch:t,pointer:n}}(),Jv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qv=!1;function Uc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function mN(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 Yc(e){e&&(e.zrByTouch=!0)}function yN(e,t){return Dt(e.dom,new _N(e,t),!0)}function eg(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var _N=function(){function e(t,r){this.stopPropagation=ot,this.stopImmediatePropagation=ot,this.preventDefault=ot,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Yt={mousedown:function(e){e=Dt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Dt(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=Dt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Dt(this.dom,e);var t=e.toElement||e.relatedTarget;eg(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Qv=!0,e=Dt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Qv||(e=Dt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Dt(this.dom,e),Yc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Yt.mousemove.call(this,e),Yt.mousedown.call(this,e)},touchmove:function(e){e=Dt(this.dom,e),Yc(e),this.handler.processGesture(e,"change"),Yt.mousemove.call(this,e)},touchend:function(e){e=Dt(this.dom,e),Yc(e),this.handler.processGesture(e,"end"),Yt.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<gN&&Yt.click.call(this,e)},pointerdown:function(e){Yt.mousedown.call(this,e)},pointermove:function(e){Uc(e)||Yt.mousemove.call(this,e)},pointerup:function(e){Yt.mouseup.call(this,e)},pointerout:function(e){Uc(e)||Yt.mouseout.call(this,e)}};k(["click","dblclick","contextmenu"],function(e){Yt[e]=function(t){t=Dt(this.dom,t),this.trigger(e,t)}});var qc={pointermove:function(e){Uc(e)||qc.mousemove.call(this,e)},pointerup:function(e){qc.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 wN(e,t){var r=t.domHandlers;ne.pointerEventsSupported?k(Wc.pointer,function(n){Ts(t,n,function(a){r[n].call(e,a)})}):(ne.touchEventsSupported&&k(Wc.touch,function(n){Ts(t,n,function(a){r[n].call(e,a),mN(t)})}),k(Wc.mouse,function(n){Ts(t,n,function(a){a=Cc(a),t.touching||r[n].call(e,a)})}))}function bN(e,t){ne.pointerEventsSupported?k(Jv.pointer,r):ne.touchEventsSupported||k(Jv.mouse,r);function r(n){function a(o){o=Cc(o),eg(e,o.target)||(o=yN(e,o),t.domHandlers[n].call(e,o))}Ts(t,n,a,{capture:!0})}}function Ts(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,LT(e.domTarget,t,r,n)}function jc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&OT(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var tg=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),SN=function(e){W(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new tg(r,Yt),Hc&&(a._globalHandlerScope=new tg(document,qc)),wN(a,a._localHandlerScope),a}return t.prototype.dispose=function(){jc(this._localHandlerScope),Hc&&jc(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Hc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?bN(this,n):jc(n)}},t}(Ut);const CN=SN;var rg=1;ne.hasGlobalWindow&&(rg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ns=rg,Xc=.4,Zc="#333",Kc="#ccc",xN="#eee",ng=Tc,ag=5e-5;function Cn(e){return e>ag||e<-ag}var xn=[],ka=[],Jc=xa(),Qc=Math.abs,ef=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Cn(this.rotation)||Cn(this.x)||Cn(this.y)||Cn(this.scaleX-1)||Cn(this.scaleY-1)||Cn(this.skewX)||Cn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ng(n),this.invTransform=null);return}n=n||xa(),r?this.getLocalTransform(n):ng(n),t&&(r?Ta(n,t,n):VT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(xn);var n=xn[0]<0?-1:1,a=xn[1]<0?-1:1,o=((xn[0]-n)*r+n)/xn[0]||0,i=((xn[1]-a)*r+a)/xn[1]||0;t[0]*=o,t[1]*=o,t[2]*=i,t[3]*=i}this.invTransform=this.invTransform||xa(),Ac(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),o=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||xa(),Ta(ka,t.invTransform,r),r=ka);var n=this.originX,a=this.originY;(n||a)&&(Jc[4]=n,Jc[5]=a,Ta(ka,r,Jc),ka[4]-=n,ka[5]-=a,r=ka),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Tt(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Tt(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Qc(t[0]-1)>1e-10&&Qc(t[3]-1)>1e-10?Math.sqrt(Qc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){TN(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,o=t.scaleX,i=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var v=n+s,m=a+l;r[4]=-v*o-d*m*i,r[5]=-m*i-h*v*o}else r[4]=r[5]=0;return r[0]=o,r[3]=i,r[1]=h*o,r[2]=d*i,u&&Dc(r,r,u),r[4]+=n+c,r[5]+=a+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ir=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function TN(e,t){for(var r=0;r<ir.length;r++){var n=ir[r];e[n]=t[n]}}var og={};function _t(e,t){t=t||yn;var r=og[t];r||(r=og[t]=new Po(500));var n=r.get(e);return n==null&&(n=pa.measureText(e,t).width,r.put(e,n)),n}function ig(e,t,r,n){var a=_t(e,t),o=rf(t),i=Bo(0,a,r),s=Ea(0,o,n),l=new ye(i,s,a,o);return l}function tf(e,t,r,n){var a=((e||"")+"").split(`
15
+ `),o=a.length;if(o===1)return ig(a[0],t,r,n);for(var i=new ye(0,0,0,0),s=0;s<a.length;s++){var l=ig(a[s],t,r,n);s===0?i.copy(l):i.union(l)}return i}function Bo(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ea(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function rf(e){return _t("国",e)}function Xr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ds(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,o=r.height,i=r.width,s=o/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Xr(n[0],r.width),u+=Xr(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+i,u+=s,f="middle";break;case"top":l+=i/2,u-=a,c="center",f="bottom";break;case"bottom":l+=i/2,u+=o+a,c="center";break;case"inside":l+=i/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=i-a,u+=s,c="right",f="middle";break;case"insideTop":l+=i/2,u+=a,c="center";break;case"insideBottom":l+=i/2,u+=o-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=i-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=o-a,f="bottom";break;case"insideBottomRight":l+=i-a,u+=o-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var nf="__zr_normal__",af=ir.concat(["ignore"]),NN=Sr(ir,function(e,t){return e[t]=!0,e},{ignore:!1}),Pa={},DN=new ye(0,0,0,0),of=function(){function e(t){this.id=uv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,o=r.innerTransformable,i=void 0,s=void 0,l=!1;o.parent=a?this:null;var u=!1;if(o.copyTransform(r),n.position!=null){var c=DN;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pa,n,c):Ds(Pa,n,c),o.x=Pa.x,o.y=Pa.y,i=Pa.align,s=Pa.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Xr(f[0],c.width),h=Xr(f[1],c.height)),u=!0,o.originX=-o.x+d+(a?0:c.x),o.originY=-o.y+h+(a?0:c.y)}}n.rotation!=null&&(o.rotation=n.rotation);var v=n.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,w=void 0,_=void 0;m&&this.canBeInsideText()?(y=n.insideFill,w=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,w=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||w!==g.stroke||_!==g.autoStroke||i!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=w,g.autoStroke=_,g.align=i,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=yt,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Kc:Zc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Cr(r);n||(n=[255,255,255,1]);for(var a=n[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*a+(o?0:255)*(1-a);return n[3]=1,ys(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},H(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(K(t))for(var n=t,a=me(n),o=0;o<a.length;o++){var i=a[o];this.attrKV(i,t[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],o=a.__fromStateTransition;if(!(a.getLoop()||o&&o!==nf)){var i=a.targetName,s=i?r[i]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,af)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var o=n[a];t[o]!=null&&!(o in r)&&(r[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(nf,!1,t)},e.prototype.useState=function(t,r,n,a){var o=t===nf,i=this.hasState();if(!(!i&&o)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){Hr("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~yt),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],o=this.currentStates,i=t.length,s=i===o.length;if(s){for(var l=0;l<i;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<i;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[i-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~yt)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=fe(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),o=fe(a,t),i=fe(a,r)>=0;o>=0?i?a.splice(o,1):a[o]=r:n&&!i&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var o=t[a];H(r,o),o.textConfig&&(n=n||{},H(n,o.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,o,i){var s=!(r&&a);r&&r.textConfig?(this.textConfig=H({},a?this.textConfig:n.textConfig),H(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<af.length;c++){var f=af[c],d=o&&NN[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!o)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,i)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new ef,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=yt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!a){Hr('Property "'+t+'" is not existed in element '+this.id);return}var o=new Gc(a,r,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var o=a.animators,i=fe(o,t);i>=0&&o.splice(i,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,o=[],i=0;i<a;i++){var s=n[i];!t||t===s.scope?s.stop(r):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,r,n){sf(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){sf(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var o=sf(this,r,n,a),i=0;i<o.length;i++)o[i].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=yt;var r={};function n(o,i,s){r[o+i+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+i+"', '"+s+"' instead"),r[o+i+s]=!0)}function a(o,i,s,l){Object.defineProperty(t,o,{get:function(){if(process.env.NODE_ENV!=="production"&&n(o,s,l),!this[i]){var c=this[i]=[];u(this,c)}return this[i]},set:function(c){process.env.NODE_ENV!=="production"&&n(o,s,l),this[s]=c[0],this[l]=c[1],this[i]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),e}();Wt(of,Ut),Wt(of,ef);function sf(e,t,r,n,a){r=r||{};var o=[];sg(e,"",e,t,r,n,o,a);var i=o.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,i--,i<=0&&(s?l&&l():u&&u())},f=function(){i--,i<=0&&(s?l&&l():u&&u())};i||l&&l(),o.length>0&&r.during&&o[0].during(function(v,m){r.during(m)});for(var d=0;d<o.length;d++){var h=o[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return o}function lf(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function AN(e){return nt(e[0])}function MN(e,t,r){if(nt(t[r]))if(nt(e[r])||(e[r]=[]),at(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),lf(e[r],t[r],n))}else{var a=t[r],o=e[r],i=a.length;if(AN(a))for(var s=a[0].length,l=0;l<i;l++)o[l]?lf(o[l],a[l],s):o[l]=Array.prototype.slice.call(a[l]);else lf(o,a,i);o.length=a.length}else e[r]=t[r]}function kN(e,t){return e===t||nt(e)&&nt(t)&&EN(e,t)}function EN(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function sg(e,t,r,n,a,o,i,s){for(var l=me(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!K(o),v=e.animators,m=[],g=0;g<l.length;g++){var y=l[g],w=n[y];if(w!=null&&r[y]!=null&&(h||o[y]))if(K(w)&&!nt(w)&&!os(w)){if(t){s||(r[y]=w,e.updateDuringAnimation(t));continue}sg(e,y,r[y],w,a,o&&o[y],i,s)}else m.push(y);else s||(r[y]=w,e.updateDuringAnimation(t),m.push(y))}var _=m.length;if(!f&&_)for(var S=0;S<v.length;S++){var x=v[S];if(x.targetName===t){var C=x.stopTracks(m);if(C){var T=fe(v,x);v.splice(T,1)}}}if(a.force||(m=Ue(m,function(A){return!kN(n[A],r[A])}),_=m.length),_>0||a.force&&!i.length){var b=void 0,D=void 0,N=void 0;if(s){D={},d&&(b={});for(var S=0;S<_;S++){var y=m[S];D[y]=r[y],d?b[y]=n[y]:r[y]=n[y]}}else if(d){N={};for(var S=0;S<_;S++){var y=m[S];N[y]=Lo(r[y]),MN(r,n,y)}}var x=new Gc(r,!1,!1,f?Ue(v,function(M){return M.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&b&&x.whenWithKeys(0,b,m),N&&x.whenWithKeys(0,N,m),x.whenWithKeys(u??500,s?D:n,m).delay(c||0),e.addAnimator(x,t),i.push(x)}}const lg=of;var Pe=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,o=a.indexOf(n);o>=0&&(a.splice(o,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=fe(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,o=a[n];if(r&&r!==this&&r.parent!==this&&r!==o){a[n]=r,o.parent=null;var i=this.__zr;i&&o.removeSelfFromZr(i),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,o=fe(a,r);return o<0?this:(a.splice(o,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var o=r[a];n&&o.removeSelfFromZr(n),o.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,o=0;o<a.length;o++){var i=a[o];r.call(n,i,o)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var o=this._children[a],i=r.call(n,o);o.isGroup&&!i&&o.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ye(0,0,0,0),a=r||this._children,o=[],i=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(ye.applyTransform(n,u,c),i=i||n.clone(),i.union(n)):(i=i||u.clone(),i.union(u))}}return i||n},t}(lg);Pe.prototype.type="group";/*!
16
16
  * ZRender, a high performance 2d drawing library.
17
17
  *
18
18
  * Copyright (c) 2013, Baidu Inc.
@@ -20,26 +20,26 @@
20
20
  *
21
21
  * LICENSE
22
22
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
23
- */var $o={},ug={};function PN(e){delete ug[e]}function IN(e){if(!e)return!1;if(typeof e=="string")return _s(e,1)<Xc;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=_s(t[a].color,1);return r/=n,r<Xc}return!1}var LN=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var o=new KT,i=n.renderer||"canvas";if($o[i]||(i=me($o)[0]),process.env.NODE_ENV!=="production"&&!$o[i])throw new Error("Renderer '"+i+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new $o[i](r,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!ne.node&&!ne.worker&&!l?new CN(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?ne.touchEventsSupported:!!c,d=44,h;f&&(h=oe(n.pointerSize,d)),this.handler=new qT(o,s,u,s.root,h),this.animation=new vN({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=IN(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||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(t){var r,n=Ma();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Ma();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Pe&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,PN(this.id))},e}();function cg(e,t){var r=new LN(uv(),e,t);return ug[r.id]=r,r}function ON(e,t){$o[e]=t}var fg=1e-4,hg=20;function RN(e){return e.replace(/^\s+|\s+$/g,"")}function Ye(e,t,r,n){var a=t[0],o=t[1],i=r[0],s=r[1],l=o-a,u=s-i;if(l===0)return u===0?i:(i+s)/2;if(n)if(l>0){if(e<=a)return i;if(e>=o)return s}else{if(e>=a)return i;if(e<=o)return s}else{if(e===a)return i;if(e===o)return s}return(e-a)/l*u+i}function xe(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return X(e)?RN(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Oe(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),hg),e=(+e).toFixed(t),r?e:+e}function Fo(e){return e.sort(function(t,r){return t-r}),e}function sr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return uf(e)}function uf(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,o=t.indexOf("."),i=o<0?0:a-1-o;return Math.max(0,i-n)}function dg(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),o=Math.round(r(Math.abs(t[1]-t[0]))/n),i=Math.min(Math.max(-a+o,0),20);return isFinite(i)?i:20}function BN(e,t){var r=Sr(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=j(e,function(h){return(isNaN(h)?0:h)/r*n*100}),o=n*100,i=j(a,function(h){return Math.floor(h)}),s=Sr(i,function(h,v){return h+v},0),l=j(a,function(h,v){return h-i[v]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++i[c],l[c]=0,++s}return j(i,function(h){return h/n})}function VN(e,t){var r=Math.max(sr(e),sr(t)),n=e+t;return r>hg?n:Oe(n,r)}function pg(e){var t=Math.PI*2;return(e%t+t)%t}function As(e){return e>-fg&&e<fg}var $N=/^(?:(\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 Tr(e){if(e instanceof Date)return e;if(X(e)){var t=$N.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function FN(e){return Math.pow(10,Ms(e))}function Ms(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function vg(e,t){var r=Ms(e),n=Math.pow(10,r),a=e/n,o;return t?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,e=o*n,r>=-20?+e.toFixed(r<0?-r:0):e}function ks(e){var t=parseFloat(e);return t==e&&(t!==0||!X(e)||e.indexOf("x")<=0)?t:NaN}function gg(e){return!isNaN(ks(e))}function mg(){return Math.round(Math.random()*9)}function yg(e,t){return t===0?e:yg(t,e%t)}function _g(e,t){return e==null?t:t==null?e:e*t/yg(e,t)}var zN="[ECharts] ",wg={},GN=typeof console<"u"&&console.warn&&console.log;function Es(e,t,r){if(GN){if(r){if(wg[t])return;wg[t]=!0}console[e](zN+t)}}function HN(e,t){Es("log",e,t)}function Fe(e,t){Es("warn",e,t)}function Ze(e,t){Es("error",e,t)}function qt(e){process.env.NODE_ENV!=="production"&&Es("warn","DEPRECATED: "+e,!0)}function ze(e,t,r){process.env.NODE_ENV!=="production"&&qt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function Ps(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":ma(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":ae(a)?"function () { ... }":pT(a)?a+"":null};r=j(e,function(a){if(X(a))return a;var o=n(a);if(o!=null)return o;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(i,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function it(e){throw new Error(e)}function bg(e,t,r){return(t-e)*r+e}var Sg="series\0",WN="\0_ec_\0";function He(e){return e instanceof Array?e:e==null?[]:[e]}function Is(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var o=r[n];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Cg=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function zo(e){return K(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function UN(e){return K(e)&&!(e instanceof Array)}function YN(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",o=r==="replaceAll";e=e||[],t=(t||[]).slice();var i=ie();k(t,function(l,u){if(!K(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Ng(l.id)&&Tg(l.id),l.name!=null&&!Ng(l.name)&&Tg(l.name))});var s=qN(e,i,r);return(n||a)&&jN(s,e,i,t),n&&XN(s,t),n||a?ZN(s,t,a):o&&KN(s,t),JN(s),s}function qN(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var o=e[a];o&&o.id!=null&&t.set(o.id,a),n.push({existing:r==="replaceMerge"||Ia(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function jN(e,t,r,n){k(n,function(a,o){if(!(!a||a.id==null)){var i=Go(a.id),s=r.get(i);if(s!=null){var l=e[s];te(!l.newOption,'Duplicated option on id "'+i+'".'),l.newOption=a,l.existing=t[s],n[o]=null}}})}function XN(e,t){k(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var o=e[a].existing;if(!e[a].newOption&&o&&(o.id==null||r.id==null)&&!Ia(r)&&!Ia(o)&&xg("name",o,r)){e[a].newOption=r,t[n]=null;return}}})}function ZN(e,t,r){k(t,function(n){if(n){for(var a,o=0;(a=e[o])&&(a.newOption||Ia(a.existing)||a.existing&&n.id!=null&&!xg("id",n,a.existing));)o++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),o++}})}function KN(e,t){k(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function JN(e){var t=ie();k(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),k(e,function(r){var n=r.newOption;te(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),k(e,function(r,n){var a=r.existing,o=r.newOption,i=r.keyInfo;if(K(o)){if(i.name=o.name!=null?Go(o.name):a?a.name:Sg+n,a)i.id=Go(a.id);else if(o.id!=null)i.id=Go(o.id);else{var s=0;do i.id="\0"+i.name+"\0"+s++;while(t.get(i.id))}t.set(i.id,r)}})}function xg(e,t,r){var n=lr(t[e],null),a=lr(r[e],null);return n!=null&&a!=null&&n===a}function Go(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return lr(e,"")}function lr(e,t){return e==null?t:X(e)?e:Ce(e)||as(e)?e+"":t}function Tg(e){process.env.NODE_ENV!=="production"&&Fe("`"+e+"` is invalid id or name. Must be a string or number.")}function Ng(e){return as(e)||gg(e)}function cf(e){var t=e.name;return!!(t&&t.indexOf(Sg))}function Ia(e){return e&&e.id!=null&&Go(e.id).indexOf(WN)===0}function QN(e,t,r){k(e,function(n){var a=n.newOption;K(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=eD(t,a,n.existing,r))})}function eD(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Tn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?j(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?j(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Ne(){var e="__ec_inner_"+tD++;return function(t){return t[e]||(t[e]={})}}var tD=mg();function ff(e,t,r){var n=hf(t,r),a=n.mainTypeSpecified,o=n.queryOptionMap,i=n.others,s=i,l=r?r.defaultMainType:null;return!a&&l&&o.set(l,{}),o.each(function(u,c){var f=Ho(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function hf(e,t){var r;if(X(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=ie(),o={},i=!1;return k(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&fe(t.includeMainTypes,c)<0)){i=i||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:i,queryOptionMap:a,others:o}}var ft={useDefault:!0,enableAll:!1,enableNone:!1},rD={useDefault:!1,enableAll:!0,enableNone:!0};function Ho(e,t,r,n){n=n||ft;var a=r.index,o=r.id,i=r.name,s={models:null,specified:a!=null||o!=null||i!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(te(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(te(n.enableAll,'`"all"` is not a valid value on index option.'),a=o=i=null),s.models=e.queryComponents({mainType:t,index:a,id:o,name:i}),s)}function Dg(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function nD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function aD(e){return e==="auto"?ne.domSupported?"html":"richText":e||"html"}function oD(e,t,r,n,a){var o=t==null||t==="auto";if(n==null)return n;if(Ce(n)){var i=bg(r||0,n,a);return Oe(i,o?Math.max(sr(r||0),sr(n)):t)}else{if(X(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],i=bg(h,v,a);s[f]=Oe(i,o?Math.max(sr(h),sr(v)):t)}}return s}}var iD=".",Nn="___EC__COMPONENT__CONTAINER___",Ag="___EC__EXTENDED_CLASS___";function ur(e){var t={main:"",sub:""};if(e){var r=e.split(iD);t.main=r[0]||"",t.sub=r[1]||""}return t}function sD(e){te(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function lD(e){return!!(e&&e[Ag])}function df(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&k(t,function(o){r[o]||console.warn("Method `"+o+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return uD(n)?a=function(o){W(i,o);function i(){return o.apply(this,arguments)||this}return i}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},fT(a,this)),H(a.prototype,r),a[Ag]=!0,a.extend=this.extend,a.superCall=hD,a.superApply=dD,a.superClass=n,a}}function uD(e){return ae(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Mg(e,t){e.extend=t.extend}var cD=Math.round(Math.random()*10);function fD(e){var t=["__\0is_clz",cD++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&te(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function hD(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function dD(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ls(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){sD(a),n.prototype.type=a;var o=ur(a);if(!o.sub)process.env.NODE_ENV!=="production"&&t[o.main]&&console.warn(o.main+" exists."),t[o.main]=n;else if(o.sub!==Nn){var i=r(o);i[o.sub]=n}}return n},e.getClass=function(n,a,o){var i=t[n];if(i&&i[Nn]&&(i=a?i[a]:null),o&&!i)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return i},e.getClassesByMainType=function(n){var a=ur(n),o=[],i=t[a.main];return i&&i[Nn]?k(i,function(s,l){l!==Nn&&o.push(s)}):o.push(i),o},e.hasClass=function(n){var a=ur(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return k(t,function(a,o){n.push(o)}),n},e.hasSubTypes=function(n){var a=ur(n),o=t[a.main];return o&&o[Nn]};function r(n){var a=t[n.main];return(!a||!a[Nn])&&(a=t[n.main]={},a[Nn]=!0),a}}function Wo(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,o){for(var i={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&fe(a,l)>=0||o&&fe(o,l)<0)){var u=n.getShallow(l,t);u!=null&&(i[e[s][0]]=u)}}return i}}var pD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vD=Wo(pD),gD=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return vD(this,t,r)},e}(),pf=new Io(50);function mD(e){if(typeof e=="string"){var t=pf.get(e);return t&&t.image}else return e}function kg(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var o=pf.get(e),i={hostEl:r,cb:n,cbPayload:a};return o?(t=o.image,!Os(t)&&o.pending.push(i)):(t=pa.loadImage(e,Eg,Eg),t.__zrImageSrc=e,pf.put(e,t.__cachedImgObj={image:t,pending:[i]})),t}else return e;else return t}function Eg(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Os(e){return e&&e.width&&e.height}var vf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function yD(e,t,r,n,a){if(!t)return"";var o=(e+"").split(`
23
+ */var Vo={},ug={};function PN(e){delete ug[e]}function IN(e){if(!e)return!1;if(typeof e=="string")return _s(e,1)<Xc;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=_s(t[a].color,1);return r/=n,r<Xc}return!1}var LN=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var o=new KT,i=n.renderer||"canvas";if(Vo[i]||(i=me(Vo)[0]),process.env.NODE_ENV!=="production"&&!Vo[i])throw new Error("Renderer '"+i+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Vo[i](r,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!ne.node&&!ne.worker&&!l?new CN(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?ne.touchEventsSupported:!!c,d=44,h;f&&(h=oe(n.pointerSize,d)),this.handler=new qT(o,s,u,s.root,h),this.animation=new vN({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=IN(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||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(t){var r,n=Ma();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Ma();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Pe&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,PN(this.id))},e}();function cg(e,t){var r=new LN(uv(),e,t);return ug[r.id]=r,r}function ON(e,t){Vo[e]=t}var fg=1e-4,hg=20;function RN(e){return e.replace(/^\s+|\s+$/g,"")}function Ye(e,t,r,n){var a=t[0],o=t[1],i=r[0],s=r[1],l=o-a,u=s-i;if(l===0)return u===0?i:(i+s)/2;if(n)if(l>0){if(e<=a)return i;if(e>=o)return s}else{if(e>=a)return i;if(e<=o)return s}else{if(e===a)return i;if(e===o)return s}return(e-a)/l*u+i}function xe(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return X(e)?RN(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Oe(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),hg),e=(+e).toFixed(t),r?e:+e}function $o(e){return e.sort(function(t,r){return t-r}),e}function sr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return uf(e)}function uf(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,o=t.indexOf("."),i=o<0?0:a-1-o;return Math.max(0,i-n)}function dg(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),o=Math.round(r(Math.abs(t[1]-t[0]))/n),i=Math.min(Math.max(-a+o,0),20);return isFinite(i)?i:20}function BN(e,t){var r=Sr(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=j(e,function(h){return(isNaN(h)?0:h)/r*n*100}),o=n*100,i=j(a,function(h){return Math.floor(h)}),s=Sr(i,function(h,v){return h+v},0),l=j(a,function(h,v){return h-i[v]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++i[c],l[c]=0,++s}return j(i,function(h){return h/n})}function VN(e,t){var r=Math.max(sr(e),sr(t)),n=e+t;return r>hg?n:Oe(n,r)}function pg(e){var t=Math.PI*2;return(e%t+t)%t}function As(e){return e>-fg&&e<fg}var $N=/^(?:(\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 Tr(e){if(e instanceof Date)return e;if(X(e)){var t=$N.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function FN(e){return Math.pow(10,Ms(e))}function Ms(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function vg(e,t){var r=Ms(e),n=Math.pow(10,r),a=e/n,o;return t?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,e=o*n,r>=-20?+e.toFixed(r<0?-r:0):e}function ks(e){var t=parseFloat(e);return t==e&&(t!==0||!X(e)||e.indexOf("x")<=0)?t:NaN}function gg(e){return!isNaN(ks(e))}function mg(){return Math.round(Math.random()*9)}function yg(e,t){return t===0?e:yg(t,e%t)}function _g(e,t){return e==null?t:t==null?e:e*t/yg(e,t)}var zN="[ECharts] ",wg={},GN=typeof console<"u"&&console.warn&&console.log;function Es(e,t,r){if(GN){if(r){if(wg[t])return;wg[t]=!0}console[e](zN+t)}}function HN(e,t){Es("log",e,t)}function Fe(e,t){Es("warn",e,t)}function Ze(e,t){Es("error",e,t)}function qt(e){process.env.NODE_ENV!=="production"&&Es("warn","DEPRECATED: "+e,!0)}function ze(e,t,r){process.env.NODE_ENV!=="production"&&qt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function Ps(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":ma(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":ae(a)?"function () { ... }":pT(a)?a+"":null};r=j(e,function(a){if(X(a))return a;var o=n(a);if(o!=null)return o;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(i,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function it(e){throw new Error(e)}function bg(e,t,r){return(t-e)*r+e}var Sg="series\0",WN="\0_ec_\0";function He(e){return e instanceof Array?e:e==null?[]:[e]}function Is(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var o=r[n];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Cg=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Fo(e){return K(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function UN(e){return K(e)&&!(e instanceof Array)}function YN(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",o=r==="replaceAll";e=e||[],t=(t||[]).slice();var i=ie();k(t,function(l,u){if(!K(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Ng(l.id)&&Tg(l.id),l.name!=null&&!Ng(l.name)&&Tg(l.name))});var s=qN(e,i,r);return(n||a)&&jN(s,e,i,t),n&&XN(s,t),n||a?ZN(s,t,a):o&&KN(s,t),JN(s),s}function qN(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var o=e[a];o&&o.id!=null&&t.set(o.id,a),n.push({existing:r==="replaceMerge"||Ia(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function jN(e,t,r,n){k(n,function(a,o){if(!(!a||a.id==null)){var i=zo(a.id),s=r.get(i);if(s!=null){var l=e[s];te(!l.newOption,'Duplicated option on id "'+i+'".'),l.newOption=a,l.existing=t[s],n[o]=null}}})}function XN(e,t){k(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var o=e[a].existing;if(!e[a].newOption&&o&&(o.id==null||r.id==null)&&!Ia(r)&&!Ia(o)&&xg("name",o,r)){e[a].newOption=r,t[n]=null;return}}})}function ZN(e,t,r){k(t,function(n){if(n){for(var a,o=0;(a=e[o])&&(a.newOption||Ia(a.existing)||a.existing&&n.id!=null&&!xg("id",n,a.existing));)o++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),o++}})}function KN(e,t){k(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function JN(e){var t=ie();k(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),k(e,function(r){var n=r.newOption;te(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),k(e,function(r,n){var a=r.existing,o=r.newOption,i=r.keyInfo;if(K(o)){if(i.name=o.name!=null?zo(o.name):a?a.name:Sg+n,a)i.id=zo(a.id);else if(o.id!=null)i.id=zo(o.id);else{var s=0;do i.id="\0"+i.name+"\0"+s++;while(t.get(i.id))}t.set(i.id,r)}})}function xg(e,t,r){var n=lr(t[e],null),a=lr(r[e],null);return n!=null&&a!=null&&n===a}function zo(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return lr(e,"")}function lr(e,t){return e==null?t:X(e)?e:Ce(e)||as(e)?e+"":t}function Tg(e){process.env.NODE_ENV!=="production"&&Fe("`"+e+"` is invalid id or name. Must be a string or number.")}function Ng(e){return as(e)||gg(e)}function cf(e){var t=e.name;return!!(t&&t.indexOf(Sg))}function Ia(e){return e&&e.id!=null&&zo(e.id).indexOf(WN)===0}function QN(e,t,r){k(e,function(n){var a=n.newOption;K(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=eD(t,a,n.existing,r))})}function eD(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Tn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?j(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?j(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Ne(){var e="__ec_inner_"+tD++;return function(t){return t[e]||(t[e]={})}}var tD=mg();function ff(e,t,r){var n=hf(t,r),a=n.mainTypeSpecified,o=n.queryOptionMap,i=n.others,s=i,l=r?r.defaultMainType:null;return!a&&l&&o.set(l,{}),o.each(function(u,c){var f=Go(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function hf(e,t){var r;if(X(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=ie(),o={},i=!1;return k(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&fe(t.includeMainTypes,c)<0)){i=i||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:i,queryOptionMap:a,others:o}}var ft={useDefault:!0,enableAll:!1,enableNone:!1},rD={useDefault:!1,enableAll:!0,enableNone:!0};function Go(e,t,r,n){n=n||ft;var a=r.index,o=r.id,i=r.name,s={models:null,specified:a!=null||o!=null||i!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(te(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(te(n.enableAll,'`"all"` is not a valid value on index option.'),a=o=i=null),s.models=e.queryComponents({mainType:t,index:a,id:o,name:i}),s)}function Dg(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function nD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function aD(e){return e==="auto"?ne.domSupported?"html":"richText":e||"html"}function oD(e,t,r,n,a){var o=t==null||t==="auto";if(n==null)return n;if(Ce(n)){var i=bg(r||0,n,a);return Oe(i,o?Math.max(sr(r||0),sr(n)):t)}else{if(X(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],i=bg(h,v,a);s[f]=Oe(i,o?Math.max(sr(h),sr(v)):t)}}return s}}var iD=".",Nn="___EC__COMPONENT__CONTAINER___",Ag="___EC__EXTENDED_CLASS___";function ur(e){var t={main:"",sub:""};if(e){var r=e.split(iD);t.main=r[0]||"",t.sub=r[1]||""}return t}function sD(e){te(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function lD(e){return!!(e&&e[Ag])}function df(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&k(t,function(o){r[o]||console.warn("Method `"+o+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return uD(n)?a=function(o){W(i,o);function i(){return o.apply(this,arguments)||this}return i}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},fT(a,this)),H(a.prototype,r),a[Ag]=!0,a.extend=this.extend,a.superCall=hD,a.superApply=dD,a.superClass=n,a}}function uD(e){return ae(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Mg(e,t){e.extend=t.extend}var cD=Math.round(Math.random()*10);function fD(e){var t=["__\0is_clz",cD++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&te(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function hD(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function dD(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ls(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){sD(a),n.prototype.type=a;var o=ur(a);if(!o.sub)process.env.NODE_ENV!=="production"&&t[o.main]&&console.warn(o.main+" exists."),t[o.main]=n;else if(o.sub!==Nn){var i=r(o);i[o.sub]=n}}return n},e.getClass=function(n,a,o){var i=t[n];if(i&&i[Nn]&&(i=a?i[a]:null),o&&!i)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return i},e.getClassesByMainType=function(n){var a=ur(n),o=[],i=t[a.main];return i&&i[Nn]?k(i,function(s,l){l!==Nn&&o.push(s)}):o.push(i),o},e.hasClass=function(n){var a=ur(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return k(t,function(a,o){n.push(o)}),n},e.hasSubTypes=function(n){var a=ur(n),o=t[a.main];return o&&o[Nn]};function r(n){var a=t[n.main];return(!a||!a[Nn])&&(a=t[n.main]={},a[Nn]=!0),a}}function Ho(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,o){for(var i={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&fe(a,l)>=0||o&&fe(o,l)<0)){var u=n.getShallow(l,t);u!=null&&(i[e[s][0]]=u)}}return i}}var pD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vD=Ho(pD),gD=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return vD(this,t,r)},e}(),pf=new Po(50);function mD(e){if(typeof e=="string"){var t=pf.get(e);return t&&t.image}else return e}function kg(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var o=pf.get(e),i={hostEl:r,cb:n,cbPayload:a};return o?(t=o.image,!Os(t)&&o.pending.push(i)):(t=pa.loadImage(e,Eg,Eg),t.__zrImageSrc=e,pf.put(e,t.__cachedImgObj={image:t,pending:[i]})),t}else return e;else return t}function Eg(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Os(e){return e&&e.width&&e.height}var vf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function yD(e,t,r,n,a){if(!t)return"";var o=(e+"").split(`
24
24
  `);a=Pg(t,r,n,a);for(var i=0,s=o.length;i<s;i++)o[i]=Ig(o[i],a);return o.join(`
25
25
  `)}function Pg(e,t,r,n){n=n||{};var a=H({},n);a.font=t,r=oe(r,"..."),a.maxIterations=oe(n.maxIterations,2);var o=a.minChar=oe(n.minChar,0);a.cnCharWidth=_t("国",t);var i=a.ascCharWidth=_t("a",t);a.placeholder=oe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=i;l++)s-=i;var u=_t(r,t);return u>s&&(r="",u=0),s=e-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function Ig(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var o=_t(e,n);if(o<=r)return e;for(var i=0;;i++){if(o<=a||i>=t.maxIterations){e+=t.ellipsis;break}var s=i===0?_D(e,a,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,s),o=_t(e,n)}return e===""&&(e=t.placeholder),e}function _D(e,t,r,n){for(var a=0,o=0,i=e.length;o<i&&a<t;o++){var s=e.charCodeAt(o);a+=0<=s&&s<=127?r:n}return o}function wD(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,o=r==="truncate",i=rf(a),s=oe(t.lineHeight,i),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?Og(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
26
26
  `):[];var d=f.length*s,h=oe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&o&&c!=null)for(var m=Pg(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=Ig(f[g],m);for(var y=h,w=0,g=0;g<f.length;g++)w=Math.max(_t(f[g],a),w);c==null&&(c=w);var _=w;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],c+=n[1]+n[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:i,contentWidth:w,contentHeight:d,width:c}}var bD=function(){function e(){}return e}(),Lg=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),SD=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function CD(e,t){var r=new SD;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,o=t.overflow,i=(o==="break"||o==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:o==="breakAll"}:null,s=vf.lastIndex=0,l;(l=vf.exec(e))!=null;){var u=l.index;u>s&&gf(r,e.substring(s,u),t,i),gf(r,l[2],t,i,l[1]),s=vf.lastIndex}s<e.length&&gf(r,e.substring(s,e.length),t,i);var c=[],f=0,d=0,h=t.padding,v=o==="truncate",m=t.lineOverflow==="truncate";function g(R,V,G){R.width=V,R.lineHeight=G,f+=G,d=Math.max(d,V)}e:for(var y=0;y<r.lines.length;y++){for(var w=r.lines[y],_=0,S=0,x=0;x<w.tokens.length;x++){var C=w.tokens[x],T=C.styleName&&t.rich[C.styleName]||{},b=C.textPadding=T.padding,D=b?b[1]+b[3]:0,N=C.font=T.font||t.font;C.contentHeight=rf(N);var A=oe(T.height,C.contentHeight);if(C.innerHeight=A,b&&(A+=b[0]+b[2]),C.height=A,C.lineHeight=Ur(T.lineHeight,t.lineHeight,A),C.align=T&&T.align||t.align,C.verticalAlign=T&&T.verticalAlign||"middle",m&&a!=null&&f+C.lineHeight>a){x>0?(w.tokens=w.tokens.slice(0,x),g(w,S,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var M=T.width,I=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")C.percentWidth=M,c.push(C),C.contentWidth=_t(C.text,N);else{if(I){var P=T.backgroundColor,L=P&&P.image;L&&(L=mD(L),Os(L)&&(C.width=Math.max(C.width,L.width*A/L.height)))}var E=v&&n!=null?n-S:null;E!=null&&E<C.width?!I||E<D?(C.text="",C.width=C.contentWidth=0):(C.text=yD(C.text,E-D,N,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=_t(C.text,N)):C.contentWidth=_t(C.text,N)}C.width+=D,S+=C.width,T&&(_=Math.max(_,C.lineHeight))}g(w,S,_)}r.outerWidth=r.width=oe(n,d),r.outerHeight=r.height=oe(a,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var y=0;y<c.length;y++){var C=c[y],B=C.percentWidth;C.width=parseInt(B,10)/100*r.width}return r}function gf(e,t,r,n,a){var o=t==="",i=a&&r.rich[a]||{},s=e.lines,l=i.font||r.font,u=!1,c,f;if(n){var d=i.padding,h=d?d[1]+d[3]:0;if(i.width!=null&&i.width!=="auto"){var v=Xr(i.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
27
27
  `),u=!0),n.accumWidth=v}else{var m=Og(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+h,f=m.linesWidths,c=m.lines}}else c=t.split(`
28
28
  `);for(var g=0;g<c.length;g++){var y=c[g],w=new bD;if(w.styleName=a,w.text=y,w.isLineHolder=!y&&!o,typeof i.width=="number"?w.width=i.width:w.width=f?f[g]:_t(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Lg)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=w:(y||!S||o)&&_.push(w)}else s.push(new Lg([w]))}}function xD(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var TD=Sr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function ND(e){return xD(e)?!!TD[e]:!0}function Og(e,t,r,n,a){for(var o=[],i=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
29
- `){l&&(s+=l,c+=u),o.push(s),i.push(c),s="",l="",u=0,c=0;continue}var h=_t(d,t),v=n?!1:!ND(d);if(o.length?c+h>r:a+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),i.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),i.push(c),s=d,c=h)):v?(o.push(l),i.push(u),l=d,u=h):(o.push(d),i.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),i.push(c)),o.length===1&&(c+=a),{accumWidth:c,lines:o,linesWidths:i}}var mf="__zr_style_"+Math.round(Math.random()*10),Dn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Dn[mf]=!0;var Rg=["z","z2","invisible"],DD=["invisible"],AD=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=me(r),a=0;a<n.length;a++){var o=n[a];o==="style"?this.useStyle(r[o]):e.prototype.attrKV.call(this,o,r[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,o){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&MD(this,r,n)||i&&!i[0]&&!i[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect();return o.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),o=this.style,i=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ye(0,0,0,0)),n?ye.applyTransform(r,a,n):r.copy(a),(i||s||l)&&(r.width+=i*2+Math.abs(s),r.height+=i*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-i),r.y=Math.min(r.y,r.y+l-i));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ye(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:H(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Eo,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Eo)},t.prototype.styleUpdated=function(){this.__dirty&=~Eo},t.prototype.createStyle=function(r){return is(Dn,r)},t.prototype.useStyle=function(r){r[mf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[mf]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Rg)},t.prototype._applyStateObj=function(r,n,a,o,i,s){e.prototype._applyStateObj.call(this,r,n,a,o,i,s);var l=!(n&&o),u;if(n&&n.style?i?o?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(i){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=me(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=me(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?DD:Rg,d=0;d<m.length;d++){var h=m[d];n&&n[h]!=null?this[h]=n[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,o=0;o<r.length;o++){var i=r[o];i.style&&(a=a||{},this._mergeStyle(a,i.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return H(r,n),r},t.prototype.getAnimationStyleProps=function(){return Rs},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=yt|Eo}(),t}(lg),yf=new ye(0,0,0,0),_f=new ye(0,0,0,0);function MD(e,t,r){return yf.copy(e.getBoundingRect()),e.transform&&yf.applyTransform(e.transform),_f.width=t,_f.height=r,!yf.intersect(_f)}const An=AD;var kt=Math.min,Et=Math.max,wf=Math.sin,bf=Math.cos,Mn=Math.PI*2,Bs=ya(),Vs=ya(),$s=ya();function Bg(e,t,r,n,a,o){a[0]=kt(e,r),a[1]=kt(t,n),o[0]=Et(e,r),o[1]=Et(t,n)}var Vg=[],$g=[];function kD(e,t,r,n,a,o,i,s,l,u){var c=Bv,f=$e,d=c(e,r,a,i,Vg);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,a,i,Vg[h]);l[0]=kt(v,l[0]),u[0]=Et(v,u[0])}d=c(t,n,o,s,$g);for(var h=0;h<d;h++){var m=f(t,n,o,s,$g[h]);l[1]=kt(m,l[1]),u[1]=Et(m,u[1])}l[0]=kt(e,l[0]),u[0]=Et(e,u[0]),l[0]=kt(i,l[0]),u[0]=Et(i,u[0]),l[1]=kt(t,l[1]),u[1]=Et(t,u[1]),l[1]=kt(s,l[1]),u[1]=Et(s,u[1])}function ED(e,t,r,n,a,o,i,s){var l=$v,u=Xe,c=Et(kt(l(e,r,a),1),0),f=Et(kt(l(t,n,o),1),0),d=u(e,r,a,c),h=u(t,n,o,f);i[0]=kt(e,a,d),i[1]=kt(t,o,h),s[0]=Et(e,a,d),s[1]=Et(t,o,h)}function PD(e,t,r,n,a,o,i,s,l){var u=wa,c=ba,f=Math.abs(a-o);if(f%Mn<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Bs[0]=bf(a)*r+e,Bs[1]=wf(a)*n+t,Vs[0]=bf(o)*r+e,Vs[1]=wf(o)*n+t,u(s,Bs,Vs),c(l,Bs,Vs),a=a%Mn,a<0&&(a=a+Mn),o=o%Mn,o<0&&(o=o+Mn),a>o&&!i?o+=Mn:a<o&&i&&(a+=Mn),i){var d=o;o=a,a=d}for(var h=0;h<o;h+=Math.PI/2)h>a&&($s[0]=bf(h)*r+e,$s[1]=wf(h)*n+t,u(s,$s,s),c(l,$s,l))}var _e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kn=[],En=[],cr=[],Zr=[],fr=[],hr=[],Sf=Math.min,Cf=Math.max,Pn=Math.cos,In=Math.sin,Nr=Math.abs,xf=Math.PI,Kr=xf*2,Tf=typeof Float32Array<"u",Uo=[];function Nf(e){var t=Math.round(e/xf*1e8)/1e8;return t%2*xf}function Fg(e,t){var r=Nf(e[0]);r<0&&(r+=Kr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Kr?a=r+Kr:t&&r-a>=Kr?a=r-Kr:!t&&r>a?a=r+(Kr-Nf(r-a)):t&&r<a&&(a=r-(Kr-Nf(a-r))),e[0]=r,e[1]=a}var Ln=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Nr(n/Ns/t)||0,this._uy=Nr(n/Ns/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(_e.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Nr(t-this._xi),a=Nr(r-this._yi),o=n>this._ux||a>this._uy;if(this.addData(_e.L,t,r),this._ctx&&o&&this._ctx.lineTo(t,r),o)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var i=n*n+a*a;i>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,o,i){return this._drawPendingPt(),this.addData(_e.C,t,r,n,a,o,i),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,o,i),this._xi=o,this._yi=i,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(_e.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,o,i){this._drawPendingPt(),Uo[0]=a,Uo[1]=o,Fg(Uo,i),a=Uo[0],o=Uo[1];var s=o-a;return this.addData(_e.A,t,r,n,n,a,s,0,i?0:1),this._ctx&&this._ctx.arc(t,r,n,a,o,i),this._xi=Pn(o)*n+t,this._yi=In(o)*n+r,this},e.prototype.arcTo=function(t,r,n,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,o),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(_e.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(_e.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Tf&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,o=0;o<r;o++)n+=t[o].len();Tf&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var o=0;o<r;o++)for(var i=t[o].data,s=0;s<i.length;s++)this.data[a++]=i[s];this._len=a},e.prototype.addData=function(t,r,n,a,o,i,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Tf&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){cr[0]=cr[1]=fr[0]=fr[1]=Number.MAX_VALUE,Zr[0]=Zr[1]=hr[0]=hr[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,o=0,i;for(i=0;i<this._len;){var s=t[i++],l=i===1;switch(l&&(r=t[i],n=t[i+1],a=r,o=n),s){case _e.M:r=a=t[i++],n=o=t[i++],fr[0]=a,fr[1]=o,hr[0]=a,hr[1]=o;break;case _e.L:Bg(r,n,t[i],t[i+1],fr,hr),r=t[i++],n=t[i++];break;case _e.C:kD(r,n,t[i++],t[i++],t[i++],t[i++],t[i],t[i+1],fr,hr),r=t[i++],n=t[i++];break;case _e.Q:ED(r,n,t[i++],t[i++],t[i],t[i+1],fr,hr),r=t[i++],n=t[i++];break;case _e.A:var u=t[i++],c=t[i++],f=t[i++],d=t[i++],h=t[i++],v=t[i++]+h;i+=1;var m=!t[i++];l&&(a=Pn(h)*f+u,o=In(h)*d+c),PD(u,c,f,d,h,v,m,fr,hr),r=Pn(v)*f+u,n=In(v)*d+c;break;case _e.R:a=r=t[i++],o=n=t[i++];var g=t[i++],y=t[i++];Bg(a,o,a+g,o+y,fr,hr);break;case _e.Z:r=a,n=o;break}wa(cr,cr,fr),ba(Zr,Zr,hr)}return i===0&&(cr[0]=cr[1]=Zr[0]=Zr[1]=0),new ye(cr[0],cr[1],Zr[0]-cr[0],Zr[1]-cr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,o=0,i=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(o=t[d],i=t[d+1],s=o,l=i);var m=-1;switch(h){case _e.M:o=s=t[d++],i=l=t[d++];break;case _e.L:{var g=t[d++],y=t[d++],w=g-o,_=y-i;(Nr(w)>n||Nr(_)>a||d===r-1)&&(m=Math.sqrt(w*w+_*_),o=g,i=y);break}case _e.C:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++],C=t[d++],T=t[d++];m=QT(o,i,S,x,g,y,C,T,10),o=C,i=T;break}case _e.Q:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++];m=rN(o,i,S,x,g,y,10),o=g,i=y;break}case _e.A:var b=t[d++],D=t[d++],N=t[d++],A=t[d++],M=t[d++],I=t[d++],P=I+M;d+=1,v&&(s=Pn(M)*N+b,l=In(M)*A+D),m=Cf(N,A)*Sf(Kr,Math.abs(I)),o=Pn(P)*N+b,i=In(P)*A+D;break;case _e.R:{s=o=t[d++],l=i=t[d++];var L=t[d++],E=t[d++];m=L*2+E*2;break}case _e.Z:{var w=s-o,_=l-i;m=Math.sqrt(w*w+_*_),o=s,i=l;break}}m>=0&&(u[f++]=m,c+=m)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,o=this._uy,i=this._len,s,l,u,c,f,d,h=r<1,v,m,g=0,y=0,w,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,w=r*m,!w)))e:for(var C=0;C<i;){var T=n[C++],b=C===1;switch(b&&(u=n[C],c=n[C+1],s=u,l=c),T!==_e.L&&_>0&&(t.lineTo(S,x),_=0),T){case _e.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case _e.L:{f=n[C++],d=n[C++];var D=Nr(f-u),N=Nr(d-c);if(D>a||N>o){if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var I=D*D+N*N;I>_&&(S=f,x=d,_=I)}break}case _e.C:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++],R=n[C++],V=n[C++];if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;ps(u,P,E,R,M,kn),ps(c,L,B,V,M,En),t.bezierCurveTo(kn[1],En[1],kn[2],En[2],kn[3],En[3]);break e}g+=A}t.bezierCurveTo(P,L,E,B,R,V),u=R,c=V;break}case _e.Q:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++];if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;vs(u,P,E,M,kn),vs(c,L,B,M,En),t.quadraticCurveTo(kn[1],En[1],kn[2],En[2]);break e}g+=A}t.quadraticCurveTo(P,L,E,B),u=E,c=B;break}case _e.A:var G=n[C++],q=n[C++],J=n[C++],z=n[C++],ee=n[C++],De=n[C++],de=n[C++],Ge=!n[C++],rt=J>z?J:z,Ve=Nr(J-z)>.001,ke=ee+De,re=!1;if(h){var A=v[y++];g+A>w&&(ke=ee+De*(w-g)/A,re=!0),g+=A}if(Ve&&t.ellipse?t.ellipse(G,q,J,z,de,ee,ke,Ge):t.arc(G,q,rt,ee,ke,Ge),re)break e;b&&(s=Pn(ee)*J+G,l=In(ee)*z+q),u=Pn(ke)*J+G,c=In(ke)*z+q;break;case _e.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var ue=n[C++],St=n[C++];if(h){var A=v[y++];if(g+A>w){var Be=w-g;t.moveTo(f,d),t.lineTo(f+Sf(Be,ue),d),Be-=ue,Be>0&&t.lineTo(f+ue,d+Sf(Be,St)),Be-=St,Be>0&&t.lineTo(f+Cf(ue-Be,0),d+St),Be-=ue,Be>0&&t.lineTo(f,d+Cf(St-Be,0));break e}g+=A}t.rect(f,d,ue,St);break;case _e.Z:if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=_e,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function La(e,t,r,n,a,o,i){if(a===0)return!1;var s=a,l=0,u=e;if(i>t+s&&i>n+s||i<t-s&&i<n-s||o>e+s&&o>r+s||o<e-s&&o<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(o-e)<=s/2;var c=l*o-i+u,f=c*c/(l*l+1);return f<=s/2*s/2}function ID(e,t,r,n,a,o,i,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>o+f&&c>s+f||c<t-f&&c<n-f&&c<o-f&&c<s-f||u>e+f&&u>r+f&&u>a+f&&u>i+f||u<e-f&&u<r-f&&u<a-f&&u<i-f)return!1;var d=JT(e,t,r,n,a,o,i,s,u,c,null);return d<=f/2}function LD(e,t,r,n,a,o,i,s,l){if(i===0)return!1;var u=i;if(l>t+u&&l>n+u&&l>o+u||l<t-u&&l<n-u&&l<o-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=tN(e,t,r,n,a,o,s,l,null);return c<=u/2}var zg=Math.PI*2;function Fs(e){return e%=zg,e<0&&(e+=zg),e}var Yo=Math.PI*2;function OD(e,t,r,n,a,o,i,s,l){if(i===0)return!1;var u=i;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%Yo<1e-4)return!0;if(o){var f=n;n=Fs(a),a=Fs(f)}else n=Fs(n),a=Fs(a);n>a&&(a+=Yo);var d=Math.atan2(l,s);return d<0&&(d+=Yo),d>=n&&d<=a||d+Yo>=n&&d+Yo<=a}function On(e,t,r,n,a,o){if(o>t&&o>n||o<t&&o<n||n===t)return 0;var i=(o-t)/(n-t),s=n<t?1:-1;(i===1||i===0)&&(s=n<t?.5:-.5);var l=i*(r-e)+e;return l===a?1/0:l>a?s:0}var Jr=Ln.CMD,Rn=Math.PI*2,RD=1e-4;function BD(e,t){return Math.abs(e-t)<RD}var st=[-1,-1,-1],Pt=[-1,-1];function VD(){var e=Pt[0];Pt[0]=Pt[1],Pt[1]=e}function $D(e,t,r,n,a,o,i,s,l,u){if(u>t&&u>n&&u>o&&u>s||u<t&&u<n&&u<o&&u<s)return 0;var c=ds(t,n,o,s,u,st);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,m=0;m<c;m++){var g=st[m],y=g===0||g===1?.5:1,w=$e(e,r,a,i,g);w<l||(d<0&&(d=Bv(t,n,o,s,Pt),Pt[1]<Pt[0]&&d>1&&VD(),h=$e(t,n,o,s,Pt[0]),d>1&&(v=$e(t,n,o,s,Pt[1]))),d===2?g<Pt[0]?f+=h<t?y:-y:g<Pt[1]?f+=v<h?y:-y:f+=s<v?y:-y:g<Pt[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function FD(e,t,r,n,a,o,i,s){if(s>t&&s>n&&s>o||s<t&&s<n&&s<o)return 0;var l=eN(t,n,o,s,st);if(l===0)return 0;var u=$v(t,n,o);if(u>=0&&u<=1){for(var c=0,f=Xe(t,n,o,u),d=0;d<l;d++){var h=st[d]===0||st[d]===1?.5:1,v=Xe(e,r,a,st[d]);v<i||(st[d]<u?c+=f<t?h:-h:c+=o<f?h:-h)}return c}else{var h=st[0]===0||st[0]===1?.5:1,v=Xe(e,r,a,st[0]);return v<i?0:o<t?h:-h}}function zD(e,t,r,n,a,o,i,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);st[0]=-l,st[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Rn-1e-4){n=0,a=Rn;var c=o?1:-1;return i>=st[0]+e&&i<=st[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=Rn,a+=Rn);for(var d=0,h=0;h<2;h++){var v=st[h];if(v+e>i){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=Rn+m),(m>=n&&m<=a||m+Rn>=n&&m+Rn<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Gg(e,t,r,n,a){for(var o=e.data,i=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<i;){var m=o[v++],g=v===1;switch(m===Jr.M&&v>1&&(r||(s+=On(l,u,c,f,n,a))),g&&(l=o[v],u=o[v+1],c=l,f=u),m){case Jr.M:c=o[v++],f=o[v++],l=c,u=f;break;case Jr.L:if(r){if(La(l,u,o[v],o[v+1],t,n,a))return!0}else s+=On(l,u,o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.C:if(r){if(ID(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=$D(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.Q:if(r){if(LD(l,u,o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=FD(l,u,o[v++],o[v++],o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.A:var y=o[v++],w=o[v++],_=o[v++],S=o[v++],x=o[v++],C=o[v++];v+=1;var T=!!(1-o[v++]);d=Math.cos(x)*_+y,h=Math.sin(x)*S+w,g?(c=d,f=h):s+=On(l,u,d,h,n,a);var b=(n-y)*S/_+y;if(r){if(OD(y,w,S,x,x+C,T,t,b,a))return!0}else s+=zD(y,w,S,x,x+C,T,b,a);l=Math.cos(x+C)*_+y,u=Math.sin(x+C)*S+w;break;case Jr.R:c=l=o[v++],f=u=o[v++];var D=o[v++],N=o[v++];if(d=c+D,h=f+N,r){if(La(c,f,d,f,t,n,a)||La(d,f,d,h,t,n,a)||La(d,h,c,h,t,n,a)||La(c,h,c,f,t,n,a))return!0}else s+=On(d,f,d,h,n,a),s+=On(c,h,c,f,n,a);break;case Jr.Z:if(r){if(La(l,u,c,f,t,n,a))return!0}else s+=On(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!BD(u,f)&&(s+=On(l,u,c,f,n,a)||0),s!==0}function GD(e,t,r){return Gg(e,0,!1,t,r)}function HD(e,t,r,n){return Gg(e,t,!0,r,n)}var Hg=he({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Dn),WD={style:he({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rs.style)},Df=ir.concat(["invisible","culling","z","z2","zlevel","parent"]),UD=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var o=a.style;for(var i in n)o[i]!==n[i]&&(o[i]=n[i]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<Df.length;++s)a[Df[s]]=this[Df[s]];a.__dirty|=yt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=me(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var o=0;o<n.length;o++){var i=n[o],s=r[i];i==="style"?this.style?H(this.style,s):this.useStyle(s):i==="shape"?H(this.shape,s):e.prototype.attrKV.call(this,i,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(X(r)){var n=_s(r,0);return n>.5?Zc:n>.2?xN:Kc}else if(r)return Kc}return Zc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(X(n)){var a=this.__zr,o=!!(a&&a.isDarkMode()),i=_s(r,0)<Xc;if(o===i)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Na},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Ln(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var i=this.path;(o||this.__dirty&Na)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),r=i.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect(),i=this.style;if(r=a[0],n=a[1],o.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),HD(s,l/u,r,n)))return!0}if(this.hasFill())return GD(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Na,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:H(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Na)},t.prototype.createStyle=function(r){return is(Hg,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=H({},this.shape))},t.prototype._applyStateObj=function(r,n,a,o,i,s){e.prototype._applyStateObj.call(this,r,n,a,o,i,s);var l=!(n&&o),u;if(n&&n.shape?i?o?u=n.shape:(u=H({},a.shape),H(u,n.shape)):(u=H({},o?this.shape:a.shape),H(u,n.shape)):l&&(u=a.shape),u)if(i){this.shape=H({},this.shape);for(var c={},f=me(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,o=0;o<r.length;o++){var i=r[o];i.shape&&(a=a||{},this._mergeStyle(a,i.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return WD},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(o){W(i,o);function i(s){var l=o.call(this,s)||this;return r.init&&r.init.call(l,s),l}return i.prototype.getDefaultStyle=function(){return ce(r.style)},i.prototype.getDefaultShape=function(){return ce(r.shape)},i}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=yt|Eo|Na}(),t}(An);const ge=UD;var YD=he({strokeFirst:!0,font:yn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Hg),Wg=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return is(YD,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=tf(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var o=r.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(An);Wg.prototype.type="tspan";const Af=Wg;var qD=he({x:0,y:0},Dn),jD={style:he({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rs.style)};function XD(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Ug=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return is(qD,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var o=XD(n.image)?n.image:this.__image;if(!o)return 0;var i=r==="width"?"height":"width",s=n[i];return s==null?o[r]:o[r]/o[i]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return jD},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ye(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(An);Ug.prototype.type="image";const Qr=Ug;function ZD(e,t){var r=t.x,n=t.y,a=t.width,o=t.height,i=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),o<0&&(n=n+o,o=-o),typeof i=="number"?s=l=u=c=i:i instanceof Array?i.length===1?s=l=u=c=i[0]:i.length===2?(s=u=i[0],l=c=i[1]):i.length===3?(s=i[0],l=c=i[1],u=i[2]):(s=i[0],l=i[1],u=i[2],c=i[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+o-u),u!==0&&e.arc(r+a-u,n+o-u,u,0,Math.PI/2),e.lineTo(r+c,n+o),c!==0&&e.arc(r+c,n+o-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Oa=Math.round;function Yg(e,t,r){if(t){var n=t.x1,a=t.x2,o=t.y1,i=t.y2;e.x1=n,e.x2=a,e.y1=o,e.y2=i;var s=r&&r.lineWidth;return s&&(Oa(n*2)===Oa(a*2)&&(e.x1=e.x2=Bn(n,s,!0)),Oa(o*2)===Oa(i*2)&&(e.y1=e.y2=Bn(o,s,!0))),e}}function qg(e,t,r){if(t){var n=t.x,a=t.y,o=t.width,i=t.height;e.x=n,e.y=a,e.width=o,e.height=i;var s=r&&r.lineWidth;return s&&(e.x=Bn(n,s,!0),e.y=Bn(a,s,!0),e.width=Math.max(Bn(n+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Bn(a+i,s,!1)-e.y,i===0?0:1)),e}}function Bn(e,t,r){if(!t)return e;var n=Oa(e*2);return(n+Oa(t))%2===0?n/2:(n+(r?1:-1))/2}var KD=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),JD={},jg=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new KD},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=qg(JD,n,this.style);a=l.x,o=l.y,i=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,o=n.y,i=n.width,s=n.height;n.r?ZD(r,n):r.rect(a,o,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ge);jg.prototype.type="rect";const Ee=jg;var Xg={fill:"#000"},Zg=2,QD={style:he({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},Rs.style)},Kg=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Xg,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,aA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ye(0,0,0,0),n=this._children,a=[],o=null,i=0;i<n.length;i++){var s=n[i],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),o=o||r.clone(),o.union(r)):(o=o||l.clone(),o.union(l))}this._rect=o||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Xg},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,o=r.rich||a&&{};return H(r,n),a&&o?(this._mergeRich(o,a),r.rich=o):o&&(r.rich=o),r},t.prototype._mergeRich=function(r,n){for(var a=me(n),o=0;o<a.length;o++){var i=a[o];r[i]=r[i]||{},H(r[i],n[i])}},t.prototype.getAnimationStyleProps=function(){return QD},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||yn,a=r.padding,o=am(r),i=wD(o,r),s=Mf(r),l=!!r.backgroundColor,u=i.outerHeight,c=i.outerWidth,f=i.contentWidth,d=i.lines,h=i.lineHeight,v=this._defaultStyle,m=r.x||0,g=r.y||0,y=r.align||v.align||"left",w=r.verticalAlign||v.verticalAlign||"top",_=m,S=Ea(g,i.contentHeight,w);if(s||a){var x=Vo(m,c,y),C=Ea(g,u,w);s&&this._renderBackground(r,r,x,C,c,u)}S+=h/2,a&&(_=nm(m,y,a),w==="top"?S+=a[0]:w==="bottom"&&(S-=a[2]));for(var T=0,b=!1,D=rm("fill"in r?r.fill:(b=!0,v.fill)),N=tm("stroke"in r?r.stroke:!l&&(!v.autoStroke||b)?(T=Zg,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=i.calculatedLineHeight,P=0;P<d.length;P++){var L=this._getOrCreateChild(Af),E=L.createStyle();L.useStyle(E),E.text=d[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=N,E.fill=D,N&&(E.lineWidth=r.lineWidth||T,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,Qg(E,r),S+=h,M&&L.setBoundingRect(new ye(Vo(E.x,r.width,E.textAlign),Ea(E.y,I,E.textBaseline),f,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=am(r),a=CD(n,r),o=a.width,i=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=Vo(u,i,d),m=Ea(c,s,h),g=v,y=m;l&&(g+=l[3],y+=l[0]);var w=g+o;Mf(r)&&this._renderBackground(r,r,v,m,i,s);for(var _=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],C=x.tokens,T=C.length,b=x.lineHeight,D=x.width,N=0,A=g,M=w,I=T-1,P=void 0;N<T&&(P=C[N],!P.align||P.align==="left");)this._placeToken(P,r,b,y,A,"left",_),D-=P.width,A+=P.width,N++;for(;I>=0&&(P=C[I],P.align==="right");)this._placeToken(P,r,b,y,M,"right",_),D-=P.width,M-=P.width,I--;for(A+=(o-(A-g)-(w-M)-D)/2;N<=I;)P=C[N],this._placeToken(P,r,b,y,A+P.width/2,"center",_),A+=P.width,N++;y+=b}},t.prototype._placeToken=function(r,n,a,o,i,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=o+a/2;c==="top"?f=o+r.height/2:c==="bottom"&&(f=o+a-r.height/2);var d=!r.isLineHolder&&Mf(u);d&&this._renderBackground(u,n,s==="right"?i-r.width:s==="center"?i-r.width/2:i,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(i=nm(i,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var m=this._getOrCreateChild(Af),g=m.createStyle();m.useStyle(g);var y=this._defaultStyle,w=!1,_=0,S=rm("fill"in u?u.fill:"fill"in n?n.fill:(w=!0,y.fill)),x=tm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||w)?(_=Zg,y.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=i,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||yn,g.opacity=Ur(u.opacity,n.opacity,1),Qg(g,u),x&&(g.lineWidth=Ur(u.lineWidth,n.lineWidth,_),g.lineDash=oe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var T=r.contentWidth,b=r.contentHeight;m.setBoundingRect(new ye(Vo(g.x,T,g.textAlign),Ea(g.y,b,g.textBaseline),T,b))},t.prototype._renderBackground=function(r,n,a,o,i,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,m,g;if(d||r.lineHeight||u&&c){m=this._getOrCreateChild(Ee),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=a,y.y=o,y.width=i,y.height=s,y.r=h,m.dirtyShape()}if(d){var w=m.style;w.fill=l||null,w.fillOpacity=oe(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Qr),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=o,_.width=i,_.height=s}if(u&&c){var w=m.style;w.lineWidth=u,w.stroke=c,w.strokeOpacity=oe(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var S=(m||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ur(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return nA(r)&&(n=[r.fontStyle,r.fontWeight,rA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ar(n)||r.textFont||r.font},t}(An),eA={left:!0,right:1,center:1},tA={top:1,bottom:1,middle:1},Jg=["fontStyle","fontWeight","fontSize","fontFamily"];function rA(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?lc+"px":e+"px"}function Qg(e,t){for(var r=0;r<Jg.length;r++){var n=Jg[r],a=t[n];a!=null&&(e[n]=a)}}function nA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function aA(e){return em(e),k(e.rich,em),e}function em(e){if(e){e.font=Kg.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||eA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||tA[r]?r:"top";var n=e.padding;n&&(e.padding=fv(e.padding))}}function tm(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function rm(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function nm(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function am(e){var t=e.text;return t!=null&&(t+=""),t}function Mf(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const We=Kg;var ve=Ne(),oA=function(e,t,r,n){if(n){var a=ve(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(o){var i=ve(o);i.seriesIndex=e,i.dataIndex=r,i.dataType=t,i.ssrType="chart"})}},om=1,im={},sm=Ne(),kf=Ne(),Ef=0,zs=1,Gs=2,ht=["emphasis","blur","select"],Hs=["normal","emphasis","blur","select"],iA=10,sA=9,Vn="highlight",Ws="downplay",qo="select",Us="unselect",jo="toggleSelect";function Ra(e){return e!=null&&e!=="none"}function Ys(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function lm(e){Ys(e,"emphasis",Gs)}function um(e){e.hoverState===Gs&&Ys(e,"normal",Ef)}function Pf(e){Ys(e,"blur",zs)}function cm(e){e.hoverState===zs&&Ys(e,"normal",Ef)}function lA(e){e.selected=!0}function uA(e){e.selected=!1}function fm(e,t,r){t(e,r)}function Dr(e,t,r){fm(e,t,r),e.isGroup&&e.traverse(function(n){fm(n,t,r)})}function hm(e,t){switch(t){case"emphasis":e.hoverState=Gs;break;case"normal":e.hoverState=Ef;break;case"blur":e.hoverState=zs;break;case"select":e.selected=!0}}function cA(e,t,r,n){for(var a=e.style,o={},i=0;i<t.length;i++){var s=t[i],l=a[s];o[s]=l??(n&&n[s])}for(var i=0;i<e.animators.length;i++){var u=e.animators[i];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function fA(e,t,r,n){var a=r&&fe(r,"select")>=0,o=!1;if(e instanceof ge){var i=sm(e),s=a&&i.selectFill||i.normalFill,l=a&&i.selectStroke||i.normalStroke;if(Ra(s)||Ra(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(o=!0,n=H({},n),u=H({},u),u.fill=s):!Ra(u.fill)&&Ra(s)?(o=!0,n=H({},n),u=H({},u),u.fill=qv(s)):!Ra(u.stroke)&&Ra(l)&&(o||(n=H({},n),u=H({},u)),u.stroke=qv(l)),n.style=u}}if(n&&n.z2==null){o||(n=H({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??iA)}return n}function hA(e,t,r){if(r&&r.z2==null){r=H({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??sA)}return r}function dA(e,t,r){var n=fe(e.currentStates,t)>=0,a=e.style.opacity,o=n?null:cA(e,["opacity"],t,{opacity:1});r=r||{};var i=r.style||{};return i.opacity==null&&(r=H({},r),i=H({opacity:n?a:o.opacity*.1},i),r.style=i),r}function If(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return fA(this,e,t,r);if(e==="blur")return dA(this,e,r);if(e==="select")return hA(this,e,r)}return r}function dm(e){e.stateProxy=If;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=If),r&&(r.stateProxy=If)}function pm(e,t){!_m(e,t)&&!e.__highByOuter&&Dr(e,lm)}function vm(e,t){!_m(e,t)&&!e.__highByOuter&&Dr(e,um)}function Xo(e,t){e.__highByOuter|=1<<(t||0),Dr(e,lm)}function Zo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Dr(e,um)}function gm(e){Dr(e,Pf)}function Lf(e){Dr(e,cm)}function mm(e){Dr(e,lA)}function ym(e){Dr(e,uA)}function _m(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function wm(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,o){var i=kf(o),s=a==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&n.push(l),i.isBlured&&(l.group.traverse(function(u){cm(u)}),s&&r.push(o)),i.isBlured=!1}),k(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function Of(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Lf(d)}}if(e!=null&&!(!t||t==="none")){var i=a.getSeriesByIndex(e),s=i.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=i===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Pf(g)}),nt(t))o(u.getData(),t);else if(K(t))for(var v=me(t),m=0;m<v.length;m++)o(u.getData(v[m]),t[v[m]]);l.push(u),kf(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function Rf(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){kf(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(o){Pf(o)})}}}function pA(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&Ze("Unknown dataType "+t.dataType);return}var o=Tn(a,t);o=(U(o)?o[0]:o)||0;var i=a.getItemGraphicEl(o);if(!i)for(var s=a.count(),l=0;!i&&l<s;)i=a.getItemGraphicEl(l++);if(i){var u=ve(i);Of(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Of(n,c,f,r)}}function Bf(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var o=n.getModel().getComponent(e,t);if(!o)return a;var i=n.getViewOfComponentModel(o);if(!i||!i.findHighDownDispatchers)return a;for(var s=i.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Ba(s[u])&&Ze("param should be highDownDispatcher"),ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function vA(e,t,r){process.env.NODE_ENV!=="production"&&!Ba(e)&&Ze("param should be highDownDispatcher");var n=ve(e),a=Bf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),o=a.dispatchers,i=a.focusSelf;o?(i&&Rf(n.componentMainType,n.componentIndex,r),k(o,function(s){return pm(s,t)})):(Of(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Rf(n.componentMainType,n.componentIndex,r),pm(e,t))}function gA(e,t,r){process.env.NODE_ENV!=="production"&&!Ba(e)&&Ze("param should be highDownDispatcher"),wm(r);var n=ve(e),a=Bf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?k(a,function(o){return vm(o,t)}):vm(e,t)}function mA(e,t,r){if(Vf(t)){var n=t.dataType,a=e.getData(n),o=Tn(a,t);U(o)||(o=[o]),e[t.type===jo?"toggleSelect":t.type===qo?"select":"unselect"](o,n)}}function bm(e){var t=e.getAllData();k(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(o,i){e.isSelected(i,a)?mm(o):ym(o)})})}function yA(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();k(n,function(a){a.data;var o=a.type,i=r.getSelectedDataIndices();if(i.length>0){var s={dataIndex:i,seriesIndex:r.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function qs(e,t,r){Cm(e,!0),Dr(e,dm),wA(e,t,r)}function _A(e){Cm(e,!1)}function $n(e,t,r,n){n?_A(e):qs(e,t,r)}function wA(e,t,r){var n=ve(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Sm=["emphasis","blur","select"],bA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function js(e,t,r,n){r=r||"itemStyle";for(var a=0;a<Sm.length;a++){var o=Sm[a],i=t.getModel([o,r]),s=e.ensureState(o);s.style=n?n(i):i[bA[r]]()}}function Cm(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ba(e){return!!(e&&e.__highDownDispatcher)}function SA(e){var t=im[e];return t==null&&om<=32&&(t=im[e]=om++),t}function Vf(e){var t=e.type;return t===qo||t===Us||t===jo}function xm(e){var t=e.type;return t===Vn||t===Ws}function CA(e){var t=sm(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Va=Ln.CMD,xA=[[],[],[]],Tm=Math.sqrt,TA=Math.atan2;function NA(e,t){if(t){var r=e.data,n=e.len(),a,o,i,s,l,u,c=Va.M,f=Va.C,d=Va.L,h=Va.R,v=Va.A,m=Va.Q;for(i=0,s=0;i<n;){switch(a=r[i++],s=i,o=0,a){case c:o=1;break;case d:o=1;break;case f:o=3;break;case m:o=2;break;case v:var g=t[4],y=t[5],w=Tm(t[0]*t[0]+t[1]*t[1]),_=Tm(t[2]*t[2]+t[3]*t[3]),S=TA(-t[1]/_,t[0]/w);r[i]*=w,r[i++]+=g,r[i]*=_,r[i++]+=y,r[i++]*=w,r[i++]*=_,r[i++]+=S,r[i++]+=S,i+=2,s=i;break;case h:u[0]=r[i++],u[1]=r[i++],Tt(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[i++],u[1]+=r[i++],Tt(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<o;l++){var x=xA[l];x[0]=r[i++],x[1]=r[i++],Tt(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var $f=Math.sqrt,Xs=Math.sin,Zs=Math.cos,Ko=Math.PI;function Nm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ff(e,t){return(e[0]*t[0]+e[1]*t[1])/(Nm(e)*Nm(t))}function Dm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ff(e,t))}function Am(e,t,r,n,a,o,i,s,l,u,c){var f=l*(Ko/180),d=Zs(f)*(e-r)/2+Xs(f)*(t-n)/2,h=-1*Xs(f)*(e-r)/2+Zs(f)*(t-n)/2,v=d*d/(i*i)+h*h/(s*s);v>1&&(i*=$f(v),s*=$f(v));var m=(a===o?-1:1)*$f((i*i*(s*s)-i*i*(h*h)-s*s*(d*d))/(i*i*(h*h)+s*s*(d*d)))||0,g=m*i*h/s,y=m*-s*d/i,w=(e+r)/2+Zs(f)*g-Xs(f)*y,_=(t+n)/2+Xs(f)*g+Zs(f)*y,S=Dm([1,0],[(d-g)/i,(h-y)/s]),x=[(d-g)/i,(h-y)/s],C=[(-1*d-g)/i,(-1*h-y)/s],T=Dm(x,C);if(Ff(x,C)<=-1&&(T=Ko),Ff(x,C)>=1&&(T=0),T<0){var b=Math.round(T/Ko*1e6)/1e6;T=Ko*2+b%2*Ko}c.addData(u,w,_,i,s,S,T,f,o)}var DA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,AA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function MA(e){var t=new Ln;if(!e)return t;var r=0,n=0,a=r,o=n,i,s=Ln.CMD,l=e.match(DA);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(AA)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var g=0;g<v;){var y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=r,D=n,N=void 0,A=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),a=r,o=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),a=r,o=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":y=r,w=n,N=t.len(),A=t.data,i===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=h[g++],D=h[g++],r=h[g++],n=h[g++],t.addData(d,y,w,b,D,r,n);break;case"s":y=r,w=n,N=t.len(),A=t.data,i===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,y,w,b,D,r,n);break;case"Q":b=h[g++],D=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"q":b=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"T":y=r,w=n,N=t.len(),A=t.data,i===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"t":y=r,w=n,N=t.len(),A=t.data,i===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r=h[g++],n=h[g++],d=s.A,Am(b,D,r,n,C,T,_,S,x,d,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r+=h[g++],n+=h[g++],d=s.A,Am(b,D,r,n,C,T,_,S,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=o),i=d}return t.toStatic(),t}var Mm=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ge);function km(e){return e.setData!=null}function Em(e,t){var r=MA(e),n=H({},t);return n.buildPath=function(a){if(km(a)){a.setData(r.data);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=a;r.rebuildPath(o,1)}},n.applyTransform=function(a){NA(r,a),this.dirtyShape()},n}function kA(e,t){return new Mm(Em(e,t))}function EA(e,t){var r=Em(e,t),n=function(a){W(o,a);function o(i){var s=a.call(this,i)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o}(Mm);return n}function PA(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var o=e[a];r.push(o.getUpdatedPathProxy(!0))}var i=new ge(t);return i.createPathProxy(),i.buildPath=function(s){if(km(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},i}var IA=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Pm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new IA},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ge);Pm.prototype.type="circle";const zf=Pm;var LA=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Im=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LA},t.prototype.buildPath=function(r,n){var a=.5522848,o=n.cx,i=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(o-s,i),r.bezierCurveTo(o-s,i-c,o-u,i-l,o,i-l),r.bezierCurveTo(o+u,i-l,o+s,i-c,o+s,i),r.bezierCurveTo(o+s,i+c,o+u,i+l,o,i+l),r.bezierCurveTo(o-u,i+l,o-s,i+c,o-s,i),r.closePath()},t}(ge);Im.prototype.type="ellipse";const Lm=Im;var Om=Math.PI,Gf=Om*2,Fn=Math.sin,$a=Math.cos,OA=Math.acos,Ke=Math.atan2,Rm=Math.abs,Jo=Math.sqrt,Qo=Math.max,dr=Math.min,jt=1e-4;function RA(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,c=i-a,f=s-o,d=f*l-c*u;if(!(d*d<jt))return d=(c*(t-o)-f*(e-a))/d,[e+d*l,t+d*u]}function Ks(e,t,r,n,a,o,i){var s=e-r,l=t-n,u=(i?o:-o)/Jo(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,m=n+f,g=(d+v)/2,y=(h+m)/2,w=v-d,_=m-h,S=w*w+_*_,x=a-o,C=d*m-v*h,T=(_<0?-1:1)*Jo(Qo(0,x*x*S-C*C)),b=(C*_-w*T)/S,D=(-C*w-_*T)/S,N=(C*_+w*T)/S,A=(-C*w+_*T)/S,M=b-g,I=D-y,P=N-g,L=A-y;return M*M+I*I>P*P+L*L&&(b=N,D=A),{cx:b,cy:D,x0:-c,y0:-f,x1:b*(a/x-1),y1:D*(a/x-1)}}function BA(e){var t;if(U(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function VA(e,t){var r,n=Qo(t.r,0),a=Qo(t.r0||0,0),o=n>0,i=a>0;if(!(!o&&!i)){if(o||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=Rm(u-l),v=h>Gf&&h%Gf;if(v>jt&&(h=v),!(n>jt))e.moveTo(c,f);else if(h>Gf-jt)e.moveTo(c+n*$a(l),f+n*Fn(l)),e.arc(c,f,n,l,u,!d),a>jt&&(e.moveTo(c+a*$a(u),f+a*Fn(u)),e.arc(c,f,a,u,l,d));else{var m=void 0,g=void 0,y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=void 0,D=void 0,N=void 0,A=void 0,M=void 0,I=void 0,P=void 0,L=n*$a(l),E=n*Fn(l),B=a*$a(u),R=a*Fn(u),V=h>jt;if(V){var G=t.cornerRadius;G&&(r=BA(G),m=r[0],g=r[1],y=r[2],w=r[3]);var q=Rm(n-a)/2;if(_=dr(q,y),S=dr(q,w),x=dr(q,m),C=dr(q,g),D=T=Qo(_,S),N=b=Qo(x,C),(T>jt||b>jt)&&(A=n*$a(u),M=n*Fn(u),I=a*$a(l),P=a*Fn(l),h<Om)){var J=RA(L,E,I,P,A,M,B,R);if(J){var z=L-J[0],ee=E-J[1],De=A-J[0],de=M-J[1],Ge=1/Fn(OA((z*De+ee*de)/(Jo(z*z+ee*ee)*Jo(De*De+de*de)))/2),rt=Jo(J[0]*J[0]+J[1]*J[1]);D=dr(T,(n-rt)/(Ge+1)),N=dr(b,(a-rt)/(Ge-1))}}}if(!V)e.moveTo(c+L,f+E);else if(D>jt){var Ve=dr(y,D),ke=dr(w,D),re=Ks(I,P,L,E,n,Ve,d),ue=Ks(A,M,B,R,n,ke,d);e.moveTo(c+re.cx+re.x0,f+re.cy+re.y0),D<T&&Ve===ke?e.arc(c+re.cx,f+re.cy,D,Ke(re.y0,re.x0),Ke(ue.y0,ue.x0),!d):(Ve>0&&e.arc(c+re.cx,f+re.cy,Ve,Ke(re.y0,re.x0),Ke(re.y1,re.x1),!d),e.arc(c,f,n,Ke(re.cy+re.y1,re.cx+re.x1),Ke(ue.cy+ue.y1,ue.cx+ue.x1),!d),ke>0&&e.arc(c+ue.cx,f+ue.cy,ke,Ke(ue.y1,ue.x1),Ke(ue.y0,ue.x0),!d))}else e.moveTo(c+L,f+E),e.arc(c,f,n,l,u,!d);if(!(a>jt)||!V)e.lineTo(c+B,f+R);else if(N>jt){var Ve=dr(m,N),ke=dr(g,N),re=Ks(B,R,A,M,a,-ke,d),ue=Ks(L,E,I,P,a,-Ve,d);e.lineTo(c+re.cx+re.x0,f+re.cy+re.y0),N<b&&Ve===ke?e.arc(c+re.cx,f+re.cy,N,Ke(re.y0,re.x0),Ke(ue.y0,ue.x0),!d):(ke>0&&e.arc(c+re.cx,f+re.cy,ke,Ke(re.y0,re.x0),Ke(re.y1,re.x1),!d),e.arc(c,f,a,Ke(re.cy+re.y1,re.cx+re.x1),Ke(ue.cy+ue.y1,ue.cx+ue.x1),d),Ve>0&&e.arc(c+ue.cx,f+ue.cy,Ve,Ke(ue.y1,ue.x1),Ke(ue.y0,ue.x0),!d))}else e.lineTo(c+B,f+R),e.arc(c,f,a,u,l,d)}e.closePath()}}}var $A=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}(),Bm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $A},t.prototype.buildPath=function(r,n){VA(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ge);Bm.prototype.type="sector";const zn=Bm;var FA=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Vm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FA},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.PI*2;r.moveTo(a+n.r,o),r.arc(a,o,n.r,0,i,!1),r.moveTo(a+n.r0,o),r.arc(a,o,n.r0,0,i,!0)},t}(ge);Vm.prototype.type="ring";const $m=Vm;function zA(e,t,r,n){var a=[],o=[],i=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)wa(c,c,e[d]),ba(f,f,e[d]);wa(c,c,n[0]),ba(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(wT(e[d]));continue}else l=e[d-1],u=e[d+1];gv(o,u,l),dc(o,o,t);var m=vc(v,l),g=vc(v,u),y=m+g;y!==0&&(m/=y,g/=y),dc(i,o,-m),dc(s,o,g);var w=vv([],v,i),_=vv([],v,s);n&&(ba(w,w,c),wa(w,w,f),ba(_,_,c),wa(_,_,f)),a.push(w),a.push(_)}return r&&a.push(a.shift()),a}function Fm(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var o=zA(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var i=a.length,s=0;s<(r?i:i-1);s++){var l=o[s*2],u=o[s*2+1],c=a[(s+1)%i];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var GA=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),zm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new GA},t.prototype.buildPath=function(r,n){Fm(r,n,!0)},t}(ge);zm.prototype.type="polygon";const Hf=zm;var HA=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Fa=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HA},t.prototype.buildPath=function(r,n){Fm(r,n,!1)},t}(ge);Fa.prototype.type="polyline";var WA={},UA=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Gm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new UA},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=Yg(WA,n,this.style);a=l.x1,o=l.y1,i=l.x2,s=l.y2}else a=n.x1,o=n.y1,i=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,o),u<1&&(i=a*(1-u)+i*u,s=o*(1-u)+s*u),r.lineTo(i,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ge);Gm.prototype.type="line";const en=Gm;var dt=[],YA=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 Hm(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?Rv:$e)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Rv:$e)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Vv:Xe)(e.x1,e.cpx1,e.x2,t),(r?Vv:Xe)(e.y1,e.cpy1,e.y2,t)]}var Wm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YA},t.prototype.buildPath=function(r,n){var a=n.x1,o=n.y1,i=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,o),c==null||f==null?(d<1&&(vs(a,l,i,d,dt),l=dt[1],i=dt[2],vs(o,u,s,d,dt),u=dt[1],s=dt[2]),r.quadraticCurveTo(l,u,i,s)):(d<1&&(ps(a,l,c,i,d,dt),l=dt[1],c=dt[2],i=dt[3],ps(o,u,f,s,d,dt),u=dt[1],f=dt[2],s=dt[3]),r.bezierCurveTo(l,u,c,f,i,s)))},t.prototype.pointAt=function(r){return Hm(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Hm(this.shape,r,!0);return pc(n,n)},t}(ge);Wm.prototype.type="bezier-curve";const Wf=Wm;var qA=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}(),Um=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qA},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*i+a,f*i+o),r.arc(a,o,i,s,l,!u)},t}(ge);Um.prototype.type="arc";const Uf=Um;var jA=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],o=0;o<a.length;o++)a[o].buildPath(r,a[o].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ge.prototype.getBoundingRect.call(this)},t}(ge);const XA=jA;var ZA=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const Ym=ZA;var qm=function(e){W(t,e);function t(r,n,a,o,i,s){var l=e.call(this,i)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(Ym),KA=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this,o)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=i||!1,s}return t}(Ym);const JA=KA;var Gn=[0,0],Hn=[0,0],Js=new le,Qs=new le,QA=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new le;for(var n=0;n<2;n++)this._axes[n]=new le;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,o=t.x,i=t.y,s=o+t.width,l=i+t.height;if(n[0].set(o,i),n[1].set(s,i),n[2].set(s,l),n[3].set(o,l),r)for(var u=0;u<4;u++)n[u].transform(r);le.sub(a[0],n[1],n[0]),le.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return Js.set(1/0,1/0),Qs.set(0,0),!this._intersectCheckOneSide(this,t,Js,Qs,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,Js,Qs,a,-1)&&(n=!1,a)||a||le.copy(r,n?Js:Qs),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,o,i){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Gn),this._getProjMinMaxOnAxis(l,r._corners,Hn),Gn[1]<Hn[0]||Gn[0]>Hn[1]){if(s=!1,o)return s;var c=Math.abs(Hn[0]-Gn[1]),f=Math.abs(Gn[0]-Hn[1]);Math.min(c,f)>a.len()&&(c<f?le.scale(a,u,-c*i):le.scale(a,u,f*i))}else if(n){var c=Math.abs(Hn[0]-Gn[1]),f=Math.abs(Gn[0]-Hn[1]);Math.min(c,f)<n.len()&&(c<f?le.scale(n,u,c*i):le.scale(n,u,-f*i))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],o=this._origin,i=r[0].dot(a)+o[t],s=i,l=i,u=1;u<r.length;u++){var c=r[u].dot(a)+o[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const el=QA;var eM=[],tM=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ye(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],o=a.getBoundingRect().clone();a.needLocalTransform()&&o.applyTransform(a.getLocalTransform(eM)),r.union(o)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect();if(o.contain(a[0],a[1]))for(var i=0;i<this._displayables.length;i++){var s=this._displayables[i];if(s.contain(r,n))return!0}return!1},t}(An);const rM=tM;var nM=Ne();function Yf(e,t,r,n,a){var o;if(t&&t.ecModel){var i=t.ecModel.getUpdatePayload();o=i&&i.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=oe(n.duration,200),c=oe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),ae(f)&&(f=f(r,a)),ae(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function qf(e,t,r,n,a,o,i){var s=!1,l;ae(a)?(i=o,o=a,a=null):K(a)&&(o=a.cb,i=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Yf(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!i,setToFinal:!u,scope:e,during:i};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),i&&i(1),o&&o()}function Je(e,t,r,n,a,o){qf("update",e,t,r,n,a,o)}function wt(e,t,r,n,a,o){qf("enter",e,t,r,n,a,o)}function ei(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function tl(e,t,r,n,a,o){ei(e)||qf("leave",e,t,r,n,a,o)}function jm(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),tl(e,{style:{opacity:0}},t,r,n)}function rl(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||jm(a,t,r,n)}):jm(e,t,r,n)}function jf(e){nM(e).oldStyle=e.style}var nl=Math.max,al=Math.min,Xf={};function aM(e){return ge.extend(e)}var oM=EA;function iM(e,t){return oM(e,t)}function Xt(e,t){Xf[e]=t}function Xm(e){if(Xf.hasOwnProperty(e))return Xf[e]}function ol(e,t,r,n){var a=kA(e,t);return r&&(n==="center"&&(r=Km(r,a.getBoundingRect())),Jm(a,r)),a}function Zm(e,t,r){var n=new Qr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var o={width:a.width,height:a.height};n.setStyle(Km(t,o))}}});return n}function Km(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var o=e.x+e.width/2,i=e.y+e.height/2;return{x:o-n/2,y:i-a/2,width:n,height:a}}var sM=PA;function Jm(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function ti(e,t){return Yg(e,e,{lineWidth:t}),e}function lM(e){return qg(e.shape,e.shape,e.style),e}var uM=Bn;function Qm(e,t){for(var r=Tc([]);e&&e!==t;)Ta(r,e.getLocalTransform(),r),e=e.parent;return r}function ri(e,t,r){return t&&!nt(t)&&(t=ef.getLocalTransform(t)),r&&(t=Ac([],t)),Tt([],e,t)}function ey(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return o=ri(o,t,r),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ty(e){return!e.isGroup}function cM(e){return e.shape!=null}function ry(e,t,r){if(!e||!t)return;function n(i){var s={};return i.traverse(function(l){ty(l)&&l.anid&&(s[l.anid]=l)}),s}function a(i){var s={x:i.x,y:i.y,rotation:i.rotation};return cM(i)&&(s.shape=H({},i.shape)),s}var o=n(e);t.traverse(function(i){if(ty(i)&&i.anid){var s=o[i.anid];if(s){var l=a(i);i.attr(a(s)),Je(i,l,r,ve(i).dataIndex)}}})}function fM(e,t){return j(e,function(r){var n=r[0];n=nl(n,t.x),n=al(n,t.x+t.width);var a=r[1];return a=nl(a,t.y),a=al(a,t.y+t.height),[n,a]})}function hM(e,t){var r=nl(e.x,t.x),n=al(e.x+e.width,t.x+t.width),a=nl(e.y,t.y),o=al(e.y+e.height,t.y+t.height);if(n>=r&&o>=a)return{x:r,y:a,width:n-r,height:o-a}}function Zf(e,t,r){var n=H({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),he(a,r),new Qr(n)):ol(e.replace("path://",""),n,r,"center")}function dM(e,t,r,n,a){for(var o=0,i=a[a.length-1];o<a.length;o++){var s=a[o];if(ny(e,t,r,n,s[0],s[1],i[0],i[1]))return!0;i=s}}function ny(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,c=i-a,f=s-o,d=Kf(c,f,l,u);if(pM(d))return!1;var h=e-a,v=t-o,m=Kf(h,v,l,u)/d;if(m<0||m>1)return!1;var g=Kf(h,v,c,f)/d;return!(g<0||g>1)}function Kf(e,t,r,n){return e*n-r*t}function pM(e){return e<=1e-6&&e>=-1e-6}function Jf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=X(t)?{formatter:t}:t,o=r.mainType,i=r.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=i;var l=e.formatterParamsExtra;l&&k(me(l),function(c){Y(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ve(e.el);u.componentMainType=o,u.componentIndex=i,u.tooltipConfig={name:n,option:he({content:n,formatterParams:s},a)}}function ay(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function za(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)ay(e[r],t);else ay(e,t)}Xt("circle",zf),Xt("ellipse",Lm),Xt("sector",zn),Xt("ring",$m),Xt("polygon",Hf),Xt("polyline",Fa),Xt("rect",Ee),Xt("line",en),Xt("bezierCurve",Wf),Xt("arc",Uf);const vM=Object.freeze(Object.defineProperty({__proto__:null,Arc:Uf,BezierCurve:Wf,BoundingRect:ye,Circle:zf,CompoundPath:XA,Ellipse:Lm,Group:Pe,Image:Qr,IncrementalDisplayable:rM,Line:en,LinearGradient:qm,OrientedBoundingRect:el,Path:ge,Point:le,Polygon:Hf,Polyline:Fa,RadialGradient:JA,Rect:Ee,Ring:$m,Sector:zn,Text:We,applyTransform:ri,clipPointsByRect:fM,clipRectByRect:hM,createIcon:Zf,extendPath:iM,extendShape:aM,getShapeClass:Xm,getTransform:Qm,groupTransition:ry,initProps:wt,isElementRemoved:ei,lineLineIntersect:ny,linePolygonIntersect:dM,makeImage:Zm,makePath:ol,mergePath:sM,registerShape:Xt,removeElement:tl,removeElementWithFadeOut:rl,resizePath:Jm,setTooltipConfig:Jf,subPixelOptimize:uM,subPixelOptimizeLine:ti,subPixelOptimizeRect:lM,transformDirection:ey,traverseElements:za,updateProps:Je},Symbol.toStringTag,{value:"Module"}));var il={};function gM(e,t){for(var r=0;r<ht.length;r++){var n=ht[r],a=t[n],o=e.ensureState(n);o.style=o.style||{},o.style.text=a}var i=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(i,!0)}function oy(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,i=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,o,i&&i.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ae(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<ht.length;u++){var c=ht[u],f=t[c];l[c]=oe(n?n.getFormattedLabel(a,c,null,o,f&&f.get("formatter")):null,s)}return l}function Ga(e,t,r,n){r=r||il;for(var a=e instanceof We,o=!1,i=0;i<Hs.length;i++){var s=t[Hs[i]];if(s&&s.getShallow("show")){o=!0;break}}var l=a?e:e.getTextContent();if(o){a||(l||(l=new We,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=oy(r,t),c=t.normal,f=!!c.getShallow("show"),d=Zt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(sl(c,r,!1));for(var i=0;i<ht.length;i++){var h=ht[i],s=t[h];if(s){var v=l.ensureState(h),m=!!oe(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=Zt(s,n&&n[h],r,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=sl(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(ll(l).setLabelText=function(y){var w=oy(r,t,y);gM(l,w)})}else l&&(l.ignore=!0);e.dirty()}function Wn(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<ht.length;n++){var a=ht[n];r[a]=e.getModel([a,t])}return r}function Zt(e,t,r,n,a){var o={};return mM(o,e,r,n,a),t&&H(o,t),o}function sl(e,t,r){t=t||{};var n={},a,o=e.getShallow("rotate"),i=oe(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),o!=null&&(o*=Math.PI/180,n.rotation=o),i!=null&&(n.distance=i),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function mM(e,t,r,n,a){r=r||il;var o=t.ecModel,i=o&&o.option.textStyle,s=yM(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);uy(l[u]={},c,i,r,n,a,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),uy(e,t,i,r,n,a,!0,!1)}function yM(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||il).rich;if(r){t=t||{};for(var n=me(r),a=0;a<n.length;a++){var o=n[a];t[o]=1}}e=e.parentModel}return t}var iy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],sy=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ly=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function uy(e,t,r,n,a,o,i,s){r=!a&&r||il;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=oe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?c=l:c=null),o||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=oe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=oe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=oe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!a&&!o&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var m=0;m<iy.length;m++){var g=iy[m],y=oe(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var m=0;m<sy.length;m++){var g=sy[m],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!i||!n.disableBox){for(var m=0;m<ly.length;m++){var g=ly[m],y=t.getShallow(g);y!=null&&(e[g]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&ze("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&ze("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function cy(e,t){var r=t&&t.getModel("textStyle");return ar([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ll=Ne();function _M(e,t,r,n){if(e){var a=ll(e);a.prevValue=a.value,a.value=r;var o=t.normal;a.valueAnimation=o.get("valueAnimation"),a.valueAnimation&&(a.precision=o.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}var wM=["textStyle","color"],Qf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],eh=new We,bM=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(wM):null)},e.prototype.getFont=function(){return cy({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Qf.length;n++)r[Qf[n]]=this.getShallow(Qf[n]);return eh.useStyle(r),eh.update(),eh.getBoundingRect()},e}();const SM=bM;var fy=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],CM=Wo(fy),xM=function(){function e(){}return e.prototype.getLineStyle=function(t){return CM(this,t)},e}(),hy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],TM=Wo(hy),NM=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return TM(this,t,r)},e}(),Un=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){pe(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var o=this.parentModel;o&&(a=o.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,o=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(o,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ce(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ne.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();df(Un),fD(Un),Wt(Un,xM),Wt(Un,NM),Wt(Un,gD),Wt(Un,SM);const Qe=Un;var DM=Math.round(Math.random()*10);function ul(e){return[e||"",DM++].join("_")}function AM(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=ur(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var o=ur(r).main;e.hasSubTypes(r)&&t[o]&&(a=t[o](n))}return a}}function MM(e,t){e.topologicalTravel=function(o,i,s,l){if(!o.length)return;var u=r(i),c=u.graph,f=u.noEntryList,d={};for(k(o,function(w){d[w]=!0});f.length;){var h=f.pop(),v=c[h],m=!!d[h];m&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),k(v.successor,m?y:g)}k(d,function(){var w="";throw process.env.NODE_ENV!=="production"&&(w=Ps("Circular dependency may exists: ",d,o,i)),new Error(w)});function g(w){c[w].entryCount--,c[w].entryCount===0&&f.push(w)}function y(w){d[w]=!0,g(w)}};function r(o){var i={},s=[];return k(o,function(l){var u=n(i,l),c=u.originalDeps=t(l),f=a(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),k(f,function(d){fe(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(i,d);fe(h.successor,d)<0&&h.successor.push(l)})}),{graph:i,noEntryList:s}}function n(o,i){return o[i]||(o[i]={predecessor:[],successor:[]}),o[i]}function a(o,i){var s=[];return k(o,function(l){fe(i,l)>=0&&s.push(l)}),s}}function cl(e,t){return pe(pe({},e,!0),t,!0)}const kM={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:". "}}}},EM={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var fl="ZH",th="EN",Ha=th,hl={},rh={},dy=ne.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ha).toUpperCase();return e.indexOf(fl)>-1?fl:Ha}():Ha;function py(e,t){e=e.toUpperCase(),rh[e]=new Qe(t),hl[e]=t}function PM(e){if(X(e)){var t=hl[e.toUpperCase()]||{};return e===fl||e===th?ce(t):pe(ce(t),ce(hl[Ha]),!1)}else return pe(ce(e),ce(hl[Ha]),!1)}function IM(e){return rh[e]}function LM(){return rh[Ha]}py(th,kM),py(fl,EM);var nh=1e3,ah=nh*60,ni=ah*60,It=ni*24,vy=It*365,ai={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}"},dl="{yyyy}-{MM}-{dd}",gy={year:"{yyyy}",month:"{yyyy}-{MM}",day:dl,hour:dl+" "+ai.hour,minute:dl+" "+ai.minute,second:dl+" "+ai.second,millisecond:ai.none},oh=["year","month","day","hour","minute","second","millisecond"],my=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Wa(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 OM(e){return e===Wa(e)}function RM(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pl(e,t,r,n){var a=Tr(e),o=a[ih(r)](),i=a[Ua(r)]()+1,s=Math.floor((i-1)/3)+1,l=a[vl(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[oi(r)](),f=(c-1)%12+1,d=a[gl(r)](),h=a[ml(r)](),v=a[yl(r)](),m=n instanceof Qe?n:IM(n||dy)||LM(),g=m.getModel("time"),y=g.get("month"),w=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tn(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[i-1]).replace(/{MMM}/g,w[i-1]).replace(/{MM}/g,tn(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,tn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,tn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,tn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,tn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,tn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,tn(v,3)).replace(/{S}/g,v+"")}function BM(e,t,r,n,a){var o=null;if(X(r))o=r;else if(ae(r))o=r(e.value,t,{level:e.level});else{var i=H({},ai);if(e.level>0)for(var s=0;s<oh.length;++s)i[oh[s]]="{primary|"+i[oh[s]]+"}";var l=r?r.inherit===!1?r:he(r,i):i,u=yy(e.value,a);if(l[u])o=l[u];else if(l.inherit){for(var c=my.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||i.none}if(U(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return pl(new Date(e.value),o,a,n)}function yy(e,t){var r=Tr(e),n=r[Ua(t)]()+1,a=r[vl(t)](),o=r[oi(t)](),i=r[gl(t)](),s=r[ml(t)](),l=r[yl(t)](),u=l===0,c=u&&s===0,f=c&&i===0,d=f&&o===0,h=d&&a===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function _y(e,t,r){var n=Ce(e)?Tr(e):e;switch(t=t||yy(e,r),t){case"year":return n[ih(r)]();case"half-year":return n[Ua(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ua(r)]()+1)/4);case"month":return n[Ua(r)]();case"day":return n[vl(r)]();case"half-day":return n[oi(r)]()/24;case"hour":return n[oi(r)]();case"minute":return n[gl(r)]();case"second":return n[ml(r)]();case"millisecond":return n[yl(r)]()}}function ih(e){return e?"getUTCFullYear":"getFullYear"}function Ua(e){return e?"getUTCMonth":"getMonth"}function vl(e){return e?"getUTCDate":"getDate"}function oi(e){return e?"getUTCHours":"getHours"}function gl(e){return e?"getUTCMinutes":"getMinutes"}function ml(e){return e?"getUTCSeconds":"getSeconds"}function yl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function VM(e){return e?"setUTCFullYear":"setFullYear"}function wy(e){return e?"setUTCMonth":"setMonth"}function by(e){return e?"setUTCDate":"setDate"}function Sy(e){return e?"setUTCHours":"setHours"}function Cy(e){return e?"setUTCMinutes":"setMinutes"}function xy(e){return e?"setUTCSeconds":"setSeconds"}function Ty(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ny(e){if(!gg(e))return X(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Dy(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var _l=fv;function sh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&ar(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var i=t==="time",s=e instanceof Date;if(i||s){var l=i?Tr(e):e;if(isNaN(+l)){if(s)return"-"}else return pl(l,n,r)}if(t==="ordinal")return as(e)?a(e):Ce(e)&&o(e)?e+"":"-";var u=ks(e);return o(u)?Ny(u):as(e)?a(e):typeof e=="boolean"?e+"":"-"}var Ay=["a","b","c","d","e","f","g"],lh=function(e,t){return"{"+e+(t??"")+"}"};function My(e,t,r){U(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],o=0;o<a.length;o++){var i=Ay[o];e=e.replace(lh(i),lh(i,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(lh(Ay[l],s),r?Nt(u):u)}return e}function $M(e,t){var r=X(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var o=r.renderMode||"html";if(!n)return"";if(o==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Nt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Nt(n)+";"+(t||"")+'"></span>';var i=r.markerId||"markerX";return{renderMode:o,content:"{"+i+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Yn(e,t){return t=t||"transparent",X(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function ky(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var wl=k,FM=["left","right","top","bottom","width","height"],bl=[["width","left","right"],["height","top","bottom"]];function uh(e,t,r,n,a){var o=0,i=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=o+m,h>n||l.newline?(o=0,h=m,i+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=i+g,v>a||l.newline?(o+=s+r,i=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=i,l.markRedraw(),e==="horizontal"?o=h+r:i=v+r)})}var ii=uh;be(uh,"vertical"),be(uh,"horizontal");function qn(e,t,r){r=_l(r||0);var n=t.width,a=t.height,o=xe(e.left,n),i=xe(e.top,a),s=xe(e.right,n),l=xe(e.bottom,a),u=xe(e.width,n),c=xe(e.height,a),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(c)&&(c=a-l-f-i),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=n-s-u-d),isNaN(i)&&(i=a-l-c-f),e.left||e.right){case"center":o=n/2-u/2-r[3];break;case"right":o=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":i=a/2-c/2-r[0];break;case"bottom":i=a-c-f;break}o=o||0,i=i||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(c)&&(c=a-f-i-(l||0));var v=new ye(o+r[3],i+r[0],u,c);return v.margin=r,v}function si(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function Ya(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var a=i(bl[0],0),o=i(bl[1],1);u(bl[0],e,a),u(bl[1],e,o);function i(c,f){var d={},h=0,v={},m=0,g=2;if(wl(c,function(_){v[_]=e[_]}),wl(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&m++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===g||!h)return v;if(h>=g)return d;for(var y=0;y<c.length;y++){var w=c[y];if(!s(d,w)&&s(e,w)){d[w]=e[w];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){wl(c,function(h){f[h]=d[h]})}}function li(e){return zM({},e)}function zM(e,t){return t&&e&&wl(FM,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var GM=Ne(),qa=function(e){W(t,e);function t(r,n,a){var o=e.call(this,r,n,a)||this;return o.uid=ul("ec_cpt_model"),o}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=si(this),o=a?li(r):{},i=n.getTheme();pe(r,i.get(this.mainType)),pe(r,this.getDefaultOption()),a&&Ya(r,o,a)},t.prototype.mergeOption=function(r,n){pe(this.option,r,!0);var a=si(this);a&&Ya(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!lD(r))return r.defaultOption;var n=GM(this);if(!n.defaultOption){for(var a=[],o=r;o;){var i=o.prototype.defaultOption;i&&a.push(i),o=o.superClass}for(var s={},l=a.length-1;l>=0;l--)s=pe(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",o=r+"Id";return Ho(this.ecModel,r,{index:this.get(a,!0),id:this.get(o,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Qe);Mg(qa,Qe),Ls(qa),AM(qa),MM(qa,HM);function HM(e){var t=[];return k(qa.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=j(t,function(r){return ur(r).main}),e!=="dataset"&&fe(t,"dataset")<=0&&t.unshift("dataset"),t}const Te=qa;var Ey="";typeof navigator<"u"&&(Ey=navigator.platform||"");var ja="rgba(0, 0, 0, 0.2)";const WM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ja,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ja,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ja,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ja,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ja,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ja,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ey.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var ch=ie(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Lt="original",pt="arrayRows",Kt="objectRows",pr="keyedColumns",Ar="typedArray",Py="unknown",Mr="column",Xa="row",qe={Must:1,Might:2,Not:3},Iy=Ne();function UM(e){Iy(e).datasetMap=ie()}function YM(e,t,r){var n={},a=fh(t);if(!a||!e)return n;var o=[],i=[],s=t.ecModel,l=Iy(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),k(e,function(m,g){var y=K(m)?m:e[g]={name:m};y.type==="ordinal"&&c==null&&(c=g,f=v(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(e,function(m,g){var y=m.name,w=v(m);if(c==null){var _=d.valueWayDim;h(n[y],_,w),h(i,_,w),d.valueWayDim+=w}else if(c===g)h(n[y],0,w),h(o,0,w);else{var _=d.categoryWayDim;h(n[y],_,w),h(i,_,w),d.categoryWayDim+=w}});function h(m,g,y){for(var w=0;w<y;w++)m.push(g+w)}function v(m){var g=m.dimsDef;return g?g.length:1}return o.length&&(n.itemName=o),i.length&&(n.seriesName=i),n}function qM(e,t,r){var n={},a=fh(e);if(!a)return n;var o=t.sourceFormat,i=t.dimensionsDefine,s;(o===Kt||o===pr)&&k(i,function(c,f){(K(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var m=Oy(t.data,o,t.seriesLayoutBy,i,t.startIndex,h);d.push(m);var g=m===qe.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===qe.Not)&&(c.n=h),y(c)&&d[c.n]!==qe.Not)return c;g||(m===qe.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(w){return w.v!=null&&w.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function fh(e){var t=e.get("data",!0);if(!t)return Ho(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ft).models[0]}function jM(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ho(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ft).models}function Ly(e,t){return Oy(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Oy(e,t,r,n,a,o){var i,s=5;if(at(e))return qe.Not;var l,u;if(n){var c=n[o];K(c)?(l=c.name,u=c.type):X(c)&&(l=c)}if(u!=null)return u==="ordinal"?qe.Must:qe.Not;if(t===pt){var f=e;if(r===Xa){for(var d=f[o],h=0;h<(d||[]).length&&h<s;h++)if((i=S(d[a+h]))!=null)return i}else for(var h=0;h<f.length&&h<s;h++){var v=f[a+h];if(v&&(i=S(v[o]))!=null)return i}}else if(t===Kt){var m=e;if(!l)return qe.Not;for(var h=0;h<m.length&&h<s;h++){var g=m[h];if(g&&(i=S(g[l]))!=null)return i}}else if(t===pr){var y=e;if(!l)return qe.Not;var d=y[l];if(!d||at(d))return qe.Not;for(var h=0;h<d.length&&h<s;h++)if((i=S(d[h]))!=null)return i}else if(t===Lt)for(var w=e,h=0;h<w.length&&h<s;h++){var g=w[h],_=zo(g);if(!U(_))return qe.Not;if((i=S(_[o]))!=null)return i}function S(x){var C=X(x);if(x!=null&&isFinite(x)&&x!=="")return C?qe.Might:qe.Not;if(C&&x!=="-")return qe.Must}return qe.Not}var XM=ie();function ZM(e,t,r){var n=XM.get(t);if(!n)return r;var a=n(e);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var o=0;o<a.length;o++)te(Ia(a[o]));return r.concat(a)}var Ry=Ne();Ne();var hh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=He(this.get("color",!0)),o=this.get("colorLayer",!0);return JM(this,Ry,a,o,t,r,n)},e.prototype.clearColorPalette=function(){QM(this,Ry)},e}();function KM(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function JM(e,t,r,n,a,o,i){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=i==null||!n?r:KM(n,i);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function QM(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Sl,ui,By,dh="\0_ec_inner",Vy=1,ek={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},tk={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Cl={};function rk(e){k(e,function(t,r){if(!Te.hasClass(r)){var n=ek[r];n&&!Cl[n]&&(Ze("Component "+r+` is used but not imported.
29
+ `){l&&(s+=l,c+=u),o.push(s),i.push(c),s="",l="",u=0,c=0;continue}var h=_t(d,t),v=n?!1:!ND(d);if(o.length?c+h>r:a+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),i.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),i.push(c),s=d,c=h)):v?(o.push(l),i.push(u),l=d,u=h):(o.push(d),i.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),i.push(c)),o.length===1&&(c+=a),{accumWidth:c,lines:o,linesWidths:i}}var mf="__zr_style_"+Math.round(Math.random()*10),Dn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Dn[mf]=!0;var Rg=["z","z2","invisible"],DD=["invisible"],AD=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=me(r),a=0;a<n.length;a++){var o=n[a];o==="style"?this.useStyle(r[o]):e.prototype.attrKV.call(this,o,r[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,o){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&MD(this,r,n)||i&&!i[0]&&!i[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect();return o.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),o=this.style,i=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ye(0,0,0,0)),n?ye.applyTransform(r,a,n):r.copy(a),(i||s||l)&&(r.width+=i*2+Math.abs(s),r.height+=i*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-i),r.y=Math.min(r.y,r.y+l-i));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ye(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:H(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ko,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ko)},t.prototype.styleUpdated=function(){this.__dirty&=~ko},t.prototype.createStyle=function(r){return is(Dn,r)},t.prototype.useStyle=function(r){r[mf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[mf]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Rg)},t.prototype._applyStateObj=function(r,n,a,o,i,s){e.prototype._applyStateObj.call(this,r,n,a,o,i,s);var l=!(n&&o),u;if(n&&n.style?i?o?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(i){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=me(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=me(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?DD:Rg,d=0;d<m.length;d++){var h=m[d];n&&n[h]!=null?this[h]=n[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,o=0;o<r.length;o++){var i=r[o];i.style&&(a=a||{},this._mergeStyle(a,i.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return H(r,n),r},t.prototype.getAnimationStyleProps=function(){return Rs},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=yt|ko}(),t}(lg),yf=new ye(0,0,0,0),_f=new ye(0,0,0,0);function MD(e,t,r){return yf.copy(e.getBoundingRect()),e.transform&&yf.applyTransform(e.transform),_f.width=t,_f.height=r,!yf.intersect(_f)}const An=AD;var kt=Math.min,Et=Math.max,wf=Math.sin,bf=Math.cos,Mn=Math.PI*2,Bs=ya(),Vs=ya(),$s=ya();function Bg(e,t,r,n,a,o){a[0]=kt(e,r),a[1]=kt(t,n),o[0]=Et(e,r),o[1]=Et(t,n)}var Vg=[],$g=[];function kD(e,t,r,n,a,o,i,s,l,u){var c=Bv,f=$e,d=c(e,r,a,i,Vg);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,a,i,Vg[h]);l[0]=kt(v,l[0]),u[0]=Et(v,u[0])}d=c(t,n,o,s,$g);for(var h=0;h<d;h++){var m=f(t,n,o,s,$g[h]);l[1]=kt(m,l[1]),u[1]=Et(m,u[1])}l[0]=kt(e,l[0]),u[0]=Et(e,u[0]),l[0]=kt(i,l[0]),u[0]=Et(i,u[0]),l[1]=kt(t,l[1]),u[1]=Et(t,u[1]),l[1]=kt(s,l[1]),u[1]=Et(s,u[1])}function ED(e,t,r,n,a,o,i,s){var l=$v,u=Xe,c=Et(kt(l(e,r,a),1),0),f=Et(kt(l(t,n,o),1),0),d=u(e,r,a,c),h=u(t,n,o,f);i[0]=kt(e,a,d),i[1]=kt(t,o,h),s[0]=Et(e,a,d),s[1]=Et(t,o,h)}function PD(e,t,r,n,a,o,i,s,l){var u=wa,c=ba,f=Math.abs(a-o);if(f%Mn<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Bs[0]=bf(a)*r+e,Bs[1]=wf(a)*n+t,Vs[0]=bf(o)*r+e,Vs[1]=wf(o)*n+t,u(s,Bs,Vs),c(l,Bs,Vs),a=a%Mn,a<0&&(a=a+Mn),o=o%Mn,o<0&&(o=o+Mn),a>o&&!i?o+=Mn:a<o&&i&&(a+=Mn),i){var d=o;o=a,a=d}for(var h=0;h<o;h+=Math.PI/2)h>a&&($s[0]=bf(h)*r+e,$s[1]=wf(h)*n+t,u(s,$s,s),c(l,$s,l))}var _e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kn=[],En=[],cr=[],Zr=[],fr=[],hr=[],Sf=Math.min,Cf=Math.max,Pn=Math.cos,In=Math.sin,Nr=Math.abs,xf=Math.PI,Kr=xf*2,Tf=typeof Float32Array<"u",Wo=[];function Nf(e){var t=Math.round(e/xf*1e8)/1e8;return t%2*xf}function Fg(e,t){var r=Nf(e[0]);r<0&&(r+=Kr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Kr?a=r+Kr:t&&r-a>=Kr?a=r-Kr:!t&&r>a?a=r+(Kr-Nf(r-a)):t&&r<a&&(a=r-(Kr-Nf(a-r))),e[0]=r,e[1]=a}var Ln=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Nr(n/Ns/t)||0,this._uy=Nr(n/Ns/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(_e.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Nr(t-this._xi),a=Nr(r-this._yi),o=n>this._ux||a>this._uy;if(this.addData(_e.L,t,r),this._ctx&&o&&this._ctx.lineTo(t,r),o)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var i=n*n+a*a;i>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,o,i){return this._drawPendingPt(),this.addData(_e.C,t,r,n,a,o,i),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,o,i),this._xi=o,this._yi=i,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(_e.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,o,i){this._drawPendingPt(),Wo[0]=a,Wo[1]=o,Fg(Wo,i),a=Wo[0],o=Wo[1];var s=o-a;return this.addData(_e.A,t,r,n,n,a,s,0,i?0:1),this._ctx&&this._ctx.arc(t,r,n,a,o,i),this._xi=Pn(o)*n+t,this._yi=In(o)*n+r,this},e.prototype.arcTo=function(t,r,n,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,o),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(_e.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(_e.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Tf&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,o=0;o<r;o++)n+=t[o].len();Tf&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var o=0;o<r;o++)for(var i=t[o].data,s=0;s<i.length;s++)this.data[a++]=i[s];this._len=a},e.prototype.addData=function(t,r,n,a,o,i,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Tf&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){cr[0]=cr[1]=fr[0]=fr[1]=Number.MAX_VALUE,Zr[0]=Zr[1]=hr[0]=hr[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,o=0,i;for(i=0;i<this._len;){var s=t[i++],l=i===1;switch(l&&(r=t[i],n=t[i+1],a=r,o=n),s){case _e.M:r=a=t[i++],n=o=t[i++],fr[0]=a,fr[1]=o,hr[0]=a,hr[1]=o;break;case _e.L:Bg(r,n,t[i],t[i+1],fr,hr),r=t[i++],n=t[i++];break;case _e.C:kD(r,n,t[i++],t[i++],t[i++],t[i++],t[i],t[i+1],fr,hr),r=t[i++],n=t[i++];break;case _e.Q:ED(r,n,t[i++],t[i++],t[i],t[i+1],fr,hr),r=t[i++],n=t[i++];break;case _e.A:var u=t[i++],c=t[i++],f=t[i++],d=t[i++],h=t[i++],v=t[i++]+h;i+=1;var m=!t[i++];l&&(a=Pn(h)*f+u,o=In(h)*d+c),PD(u,c,f,d,h,v,m,fr,hr),r=Pn(v)*f+u,n=In(v)*d+c;break;case _e.R:a=r=t[i++],o=n=t[i++];var g=t[i++],y=t[i++];Bg(a,o,a+g,o+y,fr,hr);break;case _e.Z:r=a,n=o;break}wa(cr,cr,fr),ba(Zr,Zr,hr)}return i===0&&(cr[0]=cr[1]=Zr[0]=Zr[1]=0),new ye(cr[0],cr[1],Zr[0]-cr[0],Zr[1]-cr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,o=0,i=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(o=t[d],i=t[d+1],s=o,l=i);var m=-1;switch(h){case _e.M:o=s=t[d++],i=l=t[d++];break;case _e.L:{var g=t[d++],y=t[d++],w=g-o,_=y-i;(Nr(w)>n||Nr(_)>a||d===r-1)&&(m=Math.sqrt(w*w+_*_),o=g,i=y);break}case _e.C:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++],C=t[d++],T=t[d++];m=QT(o,i,S,x,g,y,C,T,10),o=C,i=T;break}case _e.Q:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++];m=rN(o,i,S,x,g,y,10),o=g,i=y;break}case _e.A:var b=t[d++],D=t[d++],N=t[d++],A=t[d++],M=t[d++],I=t[d++],P=I+M;d+=1,v&&(s=Pn(M)*N+b,l=In(M)*A+D),m=Cf(N,A)*Sf(Kr,Math.abs(I)),o=Pn(P)*N+b,i=In(P)*A+D;break;case _e.R:{s=o=t[d++],l=i=t[d++];var L=t[d++],E=t[d++];m=L*2+E*2;break}case _e.Z:{var w=s-o,_=l-i;m=Math.sqrt(w*w+_*_),o=s,i=l;break}}m>=0&&(u[f++]=m,c+=m)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,o=this._uy,i=this._len,s,l,u,c,f,d,h=r<1,v,m,g=0,y=0,w,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,w=r*m,!w)))e:for(var C=0;C<i;){var T=n[C++],b=C===1;switch(b&&(u=n[C],c=n[C+1],s=u,l=c),T!==_e.L&&_>0&&(t.lineTo(S,x),_=0),T){case _e.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case _e.L:{f=n[C++],d=n[C++];var D=Nr(f-u),N=Nr(d-c);if(D>a||N>o){if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var I=D*D+N*N;I>_&&(S=f,x=d,_=I)}break}case _e.C:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++],R=n[C++],V=n[C++];if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;ps(u,P,E,R,M,kn),ps(c,L,B,V,M,En),t.bezierCurveTo(kn[1],En[1],kn[2],En[2],kn[3],En[3]);break e}g+=A}t.bezierCurveTo(P,L,E,B,R,V),u=R,c=V;break}case _e.Q:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++];if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;vs(u,P,E,M,kn),vs(c,L,B,M,En),t.quadraticCurveTo(kn[1],En[1],kn[2],En[2]);break e}g+=A}t.quadraticCurveTo(P,L,E,B),u=E,c=B;break}case _e.A:var G=n[C++],q=n[C++],J=n[C++],z=n[C++],ee=n[C++],De=n[C++],de=n[C++],Ge=!n[C++],rt=J>z?J:z,Ve=Nr(J-z)>.001,ke=ee+De,re=!1;if(h){var A=v[y++];g+A>w&&(ke=ee+De*(w-g)/A,re=!0),g+=A}if(Ve&&t.ellipse?t.ellipse(G,q,J,z,de,ee,ke,Ge):t.arc(G,q,rt,ee,ke,Ge),re)break e;b&&(s=Pn(ee)*J+G,l=In(ee)*z+q),u=Pn(ke)*J+G,c=In(ke)*z+q;break;case _e.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var ue=n[C++],St=n[C++];if(h){var A=v[y++];if(g+A>w){var Be=w-g;t.moveTo(f,d),t.lineTo(f+Sf(Be,ue),d),Be-=ue,Be>0&&t.lineTo(f+ue,d+Sf(Be,St)),Be-=St,Be>0&&t.lineTo(f+Cf(ue-Be,0),d+St),Be-=ue,Be>0&&t.lineTo(f,d+Cf(St-Be,0));break e}g+=A}t.rect(f,d,ue,St);break;case _e.Z:if(h){var A=v[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=_e,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function La(e,t,r,n,a,o,i){if(a===0)return!1;var s=a,l=0,u=e;if(i>t+s&&i>n+s||i<t-s&&i<n-s||o>e+s&&o>r+s||o<e-s&&o<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(o-e)<=s/2;var c=l*o-i+u,f=c*c/(l*l+1);return f<=s/2*s/2}function ID(e,t,r,n,a,o,i,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>o+f&&c>s+f||c<t-f&&c<n-f&&c<o-f&&c<s-f||u>e+f&&u>r+f&&u>a+f&&u>i+f||u<e-f&&u<r-f&&u<a-f&&u<i-f)return!1;var d=JT(e,t,r,n,a,o,i,s,u,c,null);return d<=f/2}function LD(e,t,r,n,a,o,i,s,l){if(i===0)return!1;var u=i;if(l>t+u&&l>n+u&&l>o+u||l<t-u&&l<n-u&&l<o-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=tN(e,t,r,n,a,o,s,l,null);return c<=u/2}var zg=Math.PI*2;function Fs(e){return e%=zg,e<0&&(e+=zg),e}var Uo=Math.PI*2;function OD(e,t,r,n,a,o,i,s,l){if(i===0)return!1;var u=i;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%Uo<1e-4)return!0;if(o){var f=n;n=Fs(a),a=Fs(f)}else n=Fs(n),a=Fs(a);n>a&&(a+=Uo);var d=Math.atan2(l,s);return d<0&&(d+=Uo),d>=n&&d<=a||d+Uo>=n&&d+Uo<=a}function On(e,t,r,n,a,o){if(o>t&&o>n||o<t&&o<n||n===t)return 0;var i=(o-t)/(n-t),s=n<t?1:-1;(i===1||i===0)&&(s=n<t?.5:-.5);var l=i*(r-e)+e;return l===a?1/0:l>a?s:0}var Jr=Ln.CMD,Rn=Math.PI*2,RD=1e-4;function BD(e,t){return Math.abs(e-t)<RD}var st=[-1,-1,-1],Pt=[-1,-1];function VD(){var e=Pt[0];Pt[0]=Pt[1],Pt[1]=e}function $D(e,t,r,n,a,o,i,s,l,u){if(u>t&&u>n&&u>o&&u>s||u<t&&u<n&&u<o&&u<s)return 0;var c=ds(t,n,o,s,u,st);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,m=0;m<c;m++){var g=st[m],y=g===0||g===1?.5:1,w=$e(e,r,a,i,g);w<l||(d<0&&(d=Bv(t,n,o,s,Pt),Pt[1]<Pt[0]&&d>1&&VD(),h=$e(t,n,o,s,Pt[0]),d>1&&(v=$e(t,n,o,s,Pt[1]))),d===2?g<Pt[0]?f+=h<t?y:-y:g<Pt[1]?f+=v<h?y:-y:f+=s<v?y:-y:g<Pt[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function FD(e,t,r,n,a,o,i,s){if(s>t&&s>n&&s>o||s<t&&s<n&&s<o)return 0;var l=eN(t,n,o,s,st);if(l===0)return 0;var u=$v(t,n,o);if(u>=0&&u<=1){for(var c=0,f=Xe(t,n,o,u),d=0;d<l;d++){var h=st[d]===0||st[d]===1?.5:1,v=Xe(e,r,a,st[d]);v<i||(st[d]<u?c+=f<t?h:-h:c+=o<f?h:-h)}return c}else{var h=st[0]===0||st[0]===1?.5:1,v=Xe(e,r,a,st[0]);return v<i?0:o<t?h:-h}}function zD(e,t,r,n,a,o,i,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);st[0]=-l,st[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Rn-1e-4){n=0,a=Rn;var c=o?1:-1;return i>=st[0]+e&&i<=st[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=Rn,a+=Rn);for(var d=0,h=0;h<2;h++){var v=st[h];if(v+e>i){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=Rn+m),(m>=n&&m<=a||m+Rn>=n&&m+Rn<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Gg(e,t,r,n,a){for(var o=e.data,i=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<i;){var m=o[v++],g=v===1;switch(m===Jr.M&&v>1&&(r||(s+=On(l,u,c,f,n,a))),g&&(l=o[v],u=o[v+1],c=l,f=u),m){case Jr.M:c=o[v++],f=o[v++],l=c,u=f;break;case Jr.L:if(r){if(La(l,u,o[v],o[v+1],t,n,a))return!0}else s+=On(l,u,o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.C:if(r){if(ID(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=$D(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.Q:if(r){if(LD(l,u,o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=FD(l,u,o[v++],o[v++],o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.A:var y=o[v++],w=o[v++],_=o[v++],S=o[v++],x=o[v++],C=o[v++];v+=1;var T=!!(1-o[v++]);d=Math.cos(x)*_+y,h=Math.sin(x)*S+w,g?(c=d,f=h):s+=On(l,u,d,h,n,a);var b=(n-y)*S/_+y;if(r){if(OD(y,w,S,x,x+C,T,t,b,a))return!0}else s+=zD(y,w,S,x,x+C,T,b,a);l=Math.cos(x+C)*_+y,u=Math.sin(x+C)*S+w;break;case Jr.R:c=l=o[v++],f=u=o[v++];var D=o[v++],N=o[v++];if(d=c+D,h=f+N,r){if(La(c,f,d,f,t,n,a)||La(d,f,d,h,t,n,a)||La(d,h,c,h,t,n,a)||La(c,h,c,f,t,n,a))return!0}else s+=On(d,f,d,h,n,a),s+=On(c,h,c,f,n,a);break;case Jr.Z:if(r){if(La(l,u,c,f,t,n,a))return!0}else s+=On(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!BD(u,f)&&(s+=On(l,u,c,f,n,a)||0),s!==0}function GD(e,t,r){return Gg(e,0,!1,t,r)}function HD(e,t,r,n){return Gg(e,t,!0,r,n)}var Hg=he({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Dn),WD={style:he({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rs.style)},Df=ir.concat(["invisible","culling","z","z2","zlevel","parent"]),UD=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var o=a.style;for(var i in n)o[i]!==n[i]&&(o[i]=n[i]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<Df.length;++s)a[Df[s]]=this[Df[s]];a.__dirty|=yt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=me(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var o=0;o<n.length;o++){var i=n[o],s=r[i];i==="style"?this.style?H(this.style,s):this.useStyle(s):i==="shape"?H(this.shape,s):e.prototype.attrKV.call(this,i,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(X(r)){var n=_s(r,0);return n>.5?Zc:n>.2?xN:Kc}else if(r)return Kc}return Zc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(X(n)){var a=this.__zr,o=!!(a&&a.isDarkMode()),i=_s(r,0)<Xc;if(o===i)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Na},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Ln(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var i=this.path;(o||this.__dirty&Na)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),r=i.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect(),i=this.style;if(r=a[0],n=a[1],o.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),HD(s,l/u,r,n)))return!0}if(this.hasFill())return GD(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Na,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:H(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Na)},t.prototype.createStyle=function(r){return is(Hg,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=H({},this.shape))},t.prototype._applyStateObj=function(r,n,a,o,i,s){e.prototype._applyStateObj.call(this,r,n,a,o,i,s);var l=!(n&&o),u;if(n&&n.shape?i?o?u=n.shape:(u=H({},a.shape),H(u,n.shape)):(u=H({},o?this.shape:a.shape),H(u,n.shape)):l&&(u=a.shape),u)if(i){this.shape=H({},this.shape);for(var c={},f=me(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,o=0;o<r.length;o++){var i=r[o];i.shape&&(a=a||{},this._mergeStyle(a,i.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return WD},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(o){W(i,o);function i(s){var l=o.call(this,s)||this;return r.init&&r.init.call(l,s),l}return i.prototype.getDefaultStyle=function(){return ce(r.style)},i.prototype.getDefaultShape=function(){return ce(r.shape)},i}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=yt|ko|Na}(),t}(An);const ge=UD;var YD=he({strokeFirst:!0,font:yn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Hg),Wg=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return is(YD,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=tf(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var o=r.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(An);Wg.prototype.type="tspan";const Af=Wg;var qD=he({x:0,y:0},Dn),jD={style:he({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rs.style)};function XD(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Ug=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return is(qD,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var o=XD(n.image)?n.image:this.__image;if(!o)return 0;var i=r==="width"?"height":"width",s=n[i];return s==null?o[r]:o[r]/o[i]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return jD},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ye(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(An);Ug.prototype.type="image";const Qr=Ug;function ZD(e,t){var r=t.x,n=t.y,a=t.width,o=t.height,i=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),o<0&&(n=n+o,o=-o),typeof i=="number"?s=l=u=c=i:i instanceof Array?i.length===1?s=l=u=c=i[0]:i.length===2?(s=u=i[0],l=c=i[1]):i.length===3?(s=i[0],l=c=i[1],u=i[2]):(s=i[0],l=i[1],u=i[2],c=i[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+o-u),u!==0&&e.arc(r+a-u,n+o-u,u,0,Math.PI/2),e.lineTo(r+c,n+o),c!==0&&e.arc(r+c,n+o-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Oa=Math.round;function Yg(e,t,r){if(t){var n=t.x1,a=t.x2,o=t.y1,i=t.y2;e.x1=n,e.x2=a,e.y1=o,e.y2=i;var s=r&&r.lineWidth;return s&&(Oa(n*2)===Oa(a*2)&&(e.x1=e.x2=Bn(n,s,!0)),Oa(o*2)===Oa(i*2)&&(e.y1=e.y2=Bn(o,s,!0))),e}}function qg(e,t,r){if(t){var n=t.x,a=t.y,o=t.width,i=t.height;e.x=n,e.y=a,e.width=o,e.height=i;var s=r&&r.lineWidth;return s&&(e.x=Bn(n,s,!0),e.y=Bn(a,s,!0),e.width=Math.max(Bn(n+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Bn(a+i,s,!1)-e.y,i===0?0:1)),e}}function Bn(e,t,r){if(!t)return e;var n=Oa(e*2);return(n+Oa(t))%2===0?n/2:(n+(r?1:-1))/2}var KD=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),JD={},jg=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new KD},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=qg(JD,n,this.style);a=l.x,o=l.y,i=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,o=n.y,i=n.width,s=n.height;n.r?ZD(r,n):r.rect(a,o,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ge);jg.prototype.type="rect";const Ee=jg;var Xg={fill:"#000"},Zg=2,QD={style:he({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},Rs.style)},Kg=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Xg,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,aA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ye(0,0,0,0),n=this._children,a=[],o=null,i=0;i<n.length;i++){var s=n[i],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),o=o||r.clone(),o.union(r)):(o=o||l.clone(),o.union(l))}this._rect=o||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Xg},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,o=r.rich||a&&{};return H(r,n),a&&o?(this._mergeRich(o,a),r.rich=o):o&&(r.rich=o),r},t.prototype._mergeRich=function(r,n){for(var a=me(n),o=0;o<a.length;o++){var i=a[o];r[i]=r[i]||{},H(r[i],n[i])}},t.prototype.getAnimationStyleProps=function(){return QD},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||yn,a=r.padding,o=am(r),i=wD(o,r),s=Mf(r),l=!!r.backgroundColor,u=i.outerHeight,c=i.outerWidth,f=i.contentWidth,d=i.lines,h=i.lineHeight,v=this._defaultStyle,m=r.x||0,g=r.y||0,y=r.align||v.align||"left",w=r.verticalAlign||v.verticalAlign||"top",_=m,S=Ea(g,i.contentHeight,w);if(s||a){var x=Bo(m,c,y),C=Ea(g,u,w);s&&this._renderBackground(r,r,x,C,c,u)}S+=h/2,a&&(_=nm(m,y,a),w==="top"?S+=a[0]:w==="bottom"&&(S-=a[2]));for(var T=0,b=!1,D=rm("fill"in r?r.fill:(b=!0,v.fill)),N=tm("stroke"in r?r.stroke:!l&&(!v.autoStroke||b)?(T=Zg,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=i.calculatedLineHeight,P=0;P<d.length;P++){var L=this._getOrCreateChild(Af),E=L.createStyle();L.useStyle(E),E.text=d[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=N,E.fill=D,N&&(E.lineWidth=r.lineWidth||T,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,Qg(E,r),S+=h,M&&L.setBoundingRect(new ye(Bo(E.x,r.width,E.textAlign),Ea(E.y,I,E.textBaseline),f,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=am(r),a=CD(n,r),o=a.width,i=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=Bo(u,i,d),m=Ea(c,s,h),g=v,y=m;l&&(g+=l[3],y+=l[0]);var w=g+o;Mf(r)&&this._renderBackground(r,r,v,m,i,s);for(var _=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],C=x.tokens,T=C.length,b=x.lineHeight,D=x.width,N=0,A=g,M=w,I=T-1,P=void 0;N<T&&(P=C[N],!P.align||P.align==="left");)this._placeToken(P,r,b,y,A,"left",_),D-=P.width,A+=P.width,N++;for(;I>=0&&(P=C[I],P.align==="right");)this._placeToken(P,r,b,y,M,"right",_),D-=P.width,M-=P.width,I--;for(A+=(o-(A-g)-(w-M)-D)/2;N<=I;)P=C[N],this._placeToken(P,r,b,y,A+P.width/2,"center",_),A+=P.width,N++;y+=b}},t.prototype._placeToken=function(r,n,a,o,i,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=o+a/2;c==="top"?f=o+r.height/2:c==="bottom"&&(f=o+a-r.height/2);var d=!r.isLineHolder&&Mf(u);d&&this._renderBackground(u,n,s==="right"?i-r.width:s==="center"?i-r.width/2:i,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(i=nm(i,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var m=this._getOrCreateChild(Af),g=m.createStyle();m.useStyle(g);var y=this._defaultStyle,w=!1,_=0,S=rm("fill"in u?u.fill:"fill"in n?n.fill:(w=!0,y.fill)),x=tm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||w)?(_=Zg,y.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=i,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||yn,g.opacity=Ur(u.opacity,n.opacity,1),Qg(g,u),x&&(g.lineWidth=Ur(u.lineWidth,n.lineWidth,_),g.lineDash=oe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var T=r.contentWidth,b=r.contentHeight;m.setBoundingRect(new ye(Bo(g.x,T,g.textAlign),Ea(g.y,b,g.textBaseline),T,b))},t.prototype._renderBackground=function(r,n,a,o,i,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,m,g;if(d||r.lineHeight||u&&c){m=this._getOrCreateChild(Ee),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=a,y.y=o,y.width=i,y.height=s,y.r=h,m.dirtyShape()}if(d){var w=m.style;w.fill=l||null,w.fillOpacity=oe(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Qr),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=o,_.width=i,_.height=s}if(u&&c){var w=m.style;w.lineWidth=u,w.stroke=c,w.strokeOpacity=oe(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var S=(m||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ur(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return nA(r)&&(n=[r.fontStyle,r.fontWeight,rA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ar(n)||r.textFont||r.font},t}(An),eA={left:!0,right:1,center:1},tA={top:1,bottom:1,middle:1},Jg=["fontStyle","fontWeight","fontSize","fontFamily"];function rA(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?lc+"px":e+"px"}function Qg(e,t){for(var r=0;r<Jg.length;r++){var n=Jg[r],a=t[n];a!=null&&(e[n]=a)}}function nA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function aA(e){return em(e),k(e.rich,em),e}function em(e){if(e){e.font=Kg.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||eA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||tA[r]?r:"top";var n=e.padding;n&&(e.padding=fv(e.padding))}}function tm(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function rm(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function nm(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function am(e){var t=e.text;return t!=null&&(t+=""),t}function Mf(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const We=Kg;var ve=Ne(),oA=function(e,t,r,n){if(n){var a=ve(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(o){var i=ve(o);i.seriesIndex=e,i.dataIndex=r,i.dataType=t,i.ssrType="chart"})}},om=1,im={},sm=Ne(),kf=Ne(),Ef=0,zs=1,Gs=2,ht=["emphasis","blur","select"],Hs=["normal","emphasis","blur","select"],iA=10,sA=9,Vn="highlight",Ws="downplay",Yo="select",Us="unselect",qo="toggleSelect";function Ra(e){return e!=null&&e!=="none"}function Ys(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function lm(e){Ys(e,"emphasis",Gs)}function um(e){e.hoverState===Gs&&Ys(e,"normal",Ef)}function Pf(e){Ys(e,"blur",zs)}function cm(e){e.hoverState===zs&&Ys(e,"normal",Ef)}function lA(e){e.selected=!0}function uA(e){e.selected=!1}function fm(e,t,r){t(e,r)}function Dr(e,t,r){fm(e,t,r),e.isGroup&&e.traverse(function(n){fm(n,t,r)})}function hm(e,t){switch(t){case"emphasis":e.hoverState=Gs;break;case"normal":e.hoverState=Ef;break;case"blur":e.hoverState=zs;break;case"select":e.selected=!0}}function cA(e,t,r,n){for(var a=e.style,o={},i=0;i<t.length;i++){var s=t[i],l=a[s];o[s]=l??(n&&n[s])}for(var i=0;i<e.animators.length;i++){var u=e.animators[i];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function fA(e,t,r,n){var a=r&&fe(r,"select")>=0,o=!1;if(e instanceof ge){var i=sm(e),s=a&&i.selectFill||i.normalFill,l=a&&i.selectStroke||i.normalStroke;if(Ra(s)||Ra(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(o=!0,n=H({},n),u=H({},u),u.fill=s):!Ra(u.fill)&&Ra(s)?(o=!0,n=H({},n),u=H({},u),u.fill=qv(s)):!Ra(u.stroke)&&Ra(l)&&(o||(n=H({},n),u=H({},u)),u.stroke=qv(l)),n.style=u}}if(n&&n.z2==null){o||(n=H({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??iA)}return n}function hA(e,t,r){if(r&&r.z2==null){r=H({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??sA)}return r}function dA(e,t,r){var n=fe(e.currentStates,t)>=0,a=e.style.opacity,o=n?null:cA(e,["opacity"],t,{opacity:1});r=r||{};var i=r.style||{};return i.opacity==null&&(r=H({},r),i=H({opacity:n?a:o.opacity*.1},i),r.style=i),r}function If(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return fA(this,e,t,r);if(e==="blur")return dA(this,e,r);if(e==="select")return hA(this,e,r)}return r}function dm(e){e.stateProxy=If;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=If),r&&(r.stateProxy=If)}function pm(e,t){!_m(e,t)&&!e.__highByOuter&&Dr(e,lm)}function vm(e,t){!_m(e,t)&&!e.__highByOuter&&Dr(e,um)}function jo(e,t){e.__highByOuter|=1<<(t||0),Dr(e,lm)}function Xo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Dr(e,um)}function gm(e){Dr(e,Pf)}function Lf(e){Dr(e,cm)}function mm(e){Dr(e,lA)}function ym(e){Dr(e,uA)}function _m(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function wm(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,o){var i=kf(o),s=a==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&n.push(l),i.isBlured&&(l.group.traverse(function(u){cm(u)}),s&&r.push(o)),i.isBlured=!1}),k(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function Of(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Lf(d)}}if(e!=null&&!(!t||t==="none")){var i=a.getSeriesByIndex(e),s=i.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=i===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Pf(g)}),nt(t))o(u.getData(),t);else if(K(t))for(var v=me(t),m=0;m<v.length;m++)o(u.getData(v[m]),t[v[m]]);l.push(u),kf(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function Rf(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){kf(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(o){Pf(o)})}}}function pA(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&Ze("Unknown dataType "+t.dataType);return}var o=Tn(a,t);o=(U(o)?o[0]:o)||0;var i=a.getItemGraphicEl(o);if(!i)for(var s=a.count(),l=0;!i&&l<s;)i=a.getItemGraphicEl(l++);if(i){var u=ve(i);Of(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Of(n,c,f,r)}}function Bf(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var o=n.getModel().getComponent(e,t);if(!o)return a;var i=n.getViewOfComponentModel(o);if(!i||!i.findHighDownDispatchers)return a;for(var s=i.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Ba(s[u])&&Ze("param should be highDownDispatcher"),ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function vA(e,t,r){process.env.NODE_ENV!=="production"&&!Ba(e)&&Ze("param should be highDownDispatcher");var n=ve(e),a=Bf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),o=a.dispatchers,i=a.focusSelf;o?(i&&Rf(n.componentMainType,n.componentIndex,r),k(o,function(s){return pm(s,t)})):(Of(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Rf(n.componentMainType,n.componentIndex,r),pm(e,t))}function gA(e,t,r){process.env.NODE_ENV!=="production"&&!Ba(e)&&Ze("param should be highDownDispatcher"),wm(r);var n=ve(e),a=Bf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?k(a,function(o){return vm(o,t)}):vm(e,t)}function mA(e,t,r){if(Vf(t)){var n=t.dataType,a=e.getData(n),o=Tn(a,t);U(o)||(o=[o]),e[t.type===qo?"toggleSelect":t.type===Yo?"select":"unselect"](o,n)}}function bm(e){var t=e.getAllData();k(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(o,i){e.isSelected(i,a)?mm(o):ym(o)})})}function yA(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();k(n,function(a){a.data;var o=a.type,i=r.getSelectedDataIndices();if(i.length>0){var s={dataIndex:i,seriesIndex:r.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function qs(e,t,r){Cm(e,!0),Dr(e,dm),wA(e,t,r)}function _A(e){Cm(e,!1)}function $n(e,t,r,n){n?_A(e):qs(e,t,r)}function wA(e,t,r){var n=ve(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Sm=["emphasis","blur","select"],bA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function js(e,t,r,n){r=r||"itemStyle";for(var a=0;a<Sm.length;a++){var o=Sm[a],i=t.getModel([o,r]),s=e.ensureState(o);s.style=n?n(i):i[bA[r]]()}}function Cm(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ba(e){return!!(e&&e.__highDownDispatcher)}function SA(e){var t=im[e];return t==null&&om<=32&&(t=im[e]=om++),t}function Vf(e){var t=e.type;return t===Yo||t===Us||t===qo}function xm(e){var t=e.type;return t===Vn||t===Ws}function CA(e){var t=sm(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Va=Ln.CMD,xA=[[],[],[]],Tm=Math.sqrt,TA=Math.atan2;function NA(e,t){if(t){var r=e.data,n=e.len(),a,o,i,s,l,u,c=Va.M,f=Va.C,d=Va.L,h=Va.R,v=Va.A,m=Va.Q;for(i=0,s=0;i<n;){switch(a=r[i++],s=i,o=0,a){case c:o=1;break;case d:o=1;break;case f:o=3;break;case m:o=2;break;case v:var g=t[4],y=t[5],w=Tm(t[0]*t[0]+t[1]*t[1]),_=Tm(t[2]*t[2]+t[3]*t[3]),S=TA(-t[1]/_,t[0]/w);r[i]*=w,r[i++]+=g,r[i]*=_,r[i++]+=y,r[i++]*=w,r[i++]*=_,r[i++]+=S,r[i++]+=S,i+=2,s=i;break;case h:u[0]=r[i++],u[1]=r[i++],Tt(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[i++],u[1]+=r[i++],Tt(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<o;l++){var x=xA[l];x[0]=r[i++],x[1]=r[i++],Tt(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var $f=Math.sqrt,Xs=Math.sin,Zs=Math.cos,Zo=Math.PI;function Nm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ff(e,t){return(e[0]*t[0]+e[1]*t[1])/(Nm(e)*Nm(t))}function Dm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ff(e,t))}function Am(e,t,r,n,a,o,i,s,l,u,c){var f=l*(Zo/180),d=Zs(f)*(e-r)/2+Xs(f)*(t-n)/2,h=-1*Xs(f)*(e-r)/2+Zs(f)*(t-n)/2,v=d*d/(i*i)+h*h/(s*s);v>1&&(i*=$f(v),s*=$f(v));var m=(a===o?-1:1)*$f((i*i*(s*s)-i*i*(h*h)-s*s*(d*d))/(i*i*(h*h)+s*s*(d*d)))||0,g=m*i*h/s,y=m*-s*d/i,w=(e+r)/2+Zs(f)*g-Xs(f)*y,_=(t+n)/2+Xs(f)*g+Zs(f)*y,S=Dm([1,0],[(d-g)/i,(h-y)/s]),x=[(d-g)/i,(h-y)/s],C=[(-1*d-g)/i,(-1*h-y)/s],T=Dm(x,C);if(Ff(x,C)<=-1&&(T=Zo),Ff(x,C)>=1&&(T=0),T<0){var b=Math.round(T/Zo*1e6)/1e6;T=Zo*2+b%2*Zo}c.addData(u,w,_,i,s,S,T,f,o)}var DA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,AA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function MA(e){var t=new Ln;if(!e)return t;var r=0,n=0,a=r,o=n,i,s=Ln.CMD,l=e.match(DA);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(AA)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var g=0;g<v;){var y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=r,D=n,N=void 0,A=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),a=r,o=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),a=r,o=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":y=r,w=n,N=t.len(),A=t.data,i===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=h[g++],D=h[g++],r=h[g++],n=h[g++],t.addData(d,y,w,b,D,r,n);break;case"s":y=r,w=n,N=t.len(),A=t.data,i===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,y,w,b,D,r,n);break;case"Q":b=h[g++],D=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"q":b=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"T":y=r,w=n,N=t.len(),A=t.data,i===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"t":y=r,w=n,N=t.len(),A=t.data,i===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r=h[g++],n=h[g++],d=s.A,Am(b,D,r,n,C,T,_,S,x,d,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r+=h[g++],n+=h[g++],d=s.A,Am(b,D,r,n,C,T,_,S,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=o),i=d}return t.toStatic(),t}var Mm=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ge);function km(e){return e.setData!=null}function Em(e,t){var r=MA(e),n=H({},t);return n.buildPath=function(a){if(km(a)){a.setData(r.data);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=a;r.rebuildPath(o,1)}},n.applyTransform=function(a){NA(r,a),this.dirtyShape()},n}function kA(e,t){return new Mm(Em(e,t))}function EA(e,t){var r=Em(e,t),n=function(a){W(o,a);function o(i){var s=a.call(this,i)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o}(Mm);return n}function PA(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var o=e[a];r.push(o.getUpdatedPathProxy(!0))}var i=new ge(t);return i.createPathProxy(),i.buildPath=function(s){if(km(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},i}var IA=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Pm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new IA},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ge);Pm.prototype.type="circle";const zf=Pm;var LA=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Im=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LA},t.prototype.buildPath=function(r,n){var a=.5522848,o=n.cx,i=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(o-s,i),r.bezierCurveTo(o-s,i-c,o-u,i-l,o,i-l),r.bezierCurveTo(o+u,i-l,o+s,i-c,o+s,i),r.bezierCurveTo(o+s,i+c,o+u,i+l,o,i+l),r.bezierCurveTo(o-u,i+l,o-s,i+c,o-s,i),r.closePath()},t}(ge);Im.prototype.type="ellipse";const Lm=Im;var Om=Math.PI,Gf=Om*2,Fn=Math.sin,$a=Math.cos,OA=Math.acos,Ke=Math.atan2,Rm=Math.abs,Ko=Math.sqrt,Jo=Math.max,dr=Math.min,jt=1e-4;function RA(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,c=i-a,f=s-o,d=f*l-c*u;if(!(d*d<jt))return d=(c*(t-o)-f*(e-a))/d,[e+d*l,t+d*u]}function Ks(e,t,r,n,a,o,i){var s=e-r,l=t-n,u=(i?o:-o)/Ko(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,m=n+f,g=(d+v)/2,y=(h+m)/2,w=v-d,_=m-h,S=w*w+_*_,x=a-o,C=d*m-v*h,T=(_<0?-1:1)*Ko(Jo(0,x*x*S-C*C)),b=(C*_-w*T)/S,D=(-C*w-_*T)/S,N=(C*_+w*T)/S,A=(-C*w+_*T)/S,M=b-g,I=D-y,P=N-g,L=A-y;return M*M+I*I>P*P+L*L&&(b=N,D=A),{cx:b,cy:D,x0:-c,y0:-f,x1:b*(a/x-1),y1:D*(a/x-1)}}function BA(e){var t;if(U(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function VA(e,t){var r,n=Jo(t.r,0),a=Jo(t.r0||0,0),o=n>0,i=a>0;if(!(!o&&!i)){if(o||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=Rm(u-l),v=h>Gf&&h%Gf;if(v>jt&&(h=v),!(n>jt))e.moveTo(c,f);else if(h>Gf-jt)e.moveTo(c+n*$a(l),f+n*Fn(l)),e.arc(c,f,n,l,u,!d),a>jt&&(e.moveTo(c+a*$a(u),f+a*Fn(u)),e.arc(c,f,a,u,l,d));else{var m=void 0,g=void 0,y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=void 0,D=void 0,N=void 0,A=void 0,M=void 0,I=void 0,P=void 0,L=n*$a(l),E=n*Fn(l),B=a*$a(u),R=a*Fn(u),V=h>jt;if(V){var G=t.cornerRadius;G&&(r=BA(G),m=r[0],g=r[1],y=r[2],w=r[3]);var q=Rm(n-a)/2;if(_=dr(q,y),S=dr(q,w),x=dr(q,m),C=dr(q,g),D=T=Jo(_,S),N=b=Jo(x,C),(T>jt||b>jt)&&(A=n*$a(u),M=n*Fn(u),I=a*$a(l),P=a*Fn(l),h<Om)){var J=RA(L,E,I,P,A,M,B,R);if(J){var z=L-J[0],ee=E-J[1],De=A-J[0],de=M-J[1],Ge=1/Fn(OA((z*De+ee*de)/(Ko(z*z+ee*ee)*Ko(De*De+de*de)))/2),rt=Ko(J[0]*J[0]+J[1]*J[1]);D=dr(T,(n-rt)/(Ge+1)),N=dr(b,(a-rt)/(Ge-1))}}}if(!V)e.moveTo(c+L,f+E);else if(D>jt){var Ve=dr(y,D),ke=dr(w,D),re=Ks(I,P,L,E,n,Ve,d),ue=Ks(A,M,B,R,n,ke,d);e.moveTo(c+re.cx+re.x0,f+re.cy+re.y0),D<T&&Ve===ke?e.arc(c+re.cx,f+re.cy,D,Ke(re.y0,re.x0),Ke(ue.y0,ue.x0),!d):(Ve>0&&e.arc(c+re.cx,f+re.cy,Ve,Ke(re.y0,re.x0),Ke(re.y1,re.x1),!d),e.arc(c,f,n,Ke(re.cy+re.y1,re.cx+re.x1),Ke(ue.cy+ue.y1,ue.cx+ue.x1),!d),ke>0&&e.arc(c+ue.cx,f+ue.cy,ke,Ke(ue.y1,ue.x1),Ke(ue.y0,ue.x0),!d))}else e.moveTo(c+L,f+E),e.arc(c,f,n,l,u,!d);if(!(a>jt)||!V)e.lineTo(c+B,f+R);else if(N>jt){var Ve=dr(m,N),ke=dr(g,N),re=Ks(B,R,A,M,a,-ke,d),ue=Ks(L,E,I,P,a,-Ve,d);e.lineTo(c+re.cx+re.x0,f+re.cy+re.y0),N<b&&Ve===ke?e.arc(c+re.cx,f+re.cy,N,Ke(re.y0,re.x0),Ke(ue.y0,ue.x0),!d):(ke>0&&e.arc(c+re.cx,f+re.cy,ke,Ke(re.y0,re.x0),Ke(re.y1,re.x1),!d),e.arc(c,f,a,Ke(re.cy+re.y1,re.cx+re.x1),Ke(ue.cy+ue.y1,ue.cx+ue.x1),d),Ve>0&&e.arc(c+ue.cx,f+ue.cy,Ve,Ke(ue.y1,ue.x1),Ke(ue.y0,ue.x0),!d))}else e.lineTo(c+B,f+R),e.arc(c,f,a,u,l,d)}e.closePath()}}}var $A=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}(),Bm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $A},t.prototype.buildPath=function(r,n){VA(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ge);Bm.prototype.type="sector";const zn=Bm;var FA=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Vm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FA},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.PI*2;r.moveTo(a+n.r,o),r.arc(a,o,n.r,0,i,!1),r.moveTo(a+n.r0,o),r.arc(a,o,n.r0,0,i,!0)},t}(ge);Vm.prototype.type="ring";const $m=Vm;function zA(e,t,r,n){var a=[],o=[],i=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)wa(c,c,e[d]),ba(f,f,e[d]);wa(c,c,n[0]),ba(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(wT(e[d]));continue}else l=e[d-1],u=e[d+1];gv(o,u,l),dc(o,o,t);var m=vc(v,l),g=vc(v,u),y=m+g;y!==0&&(m/=y,g/=y),dc(i,o,-m),dc(s,o,g);var w=vv([],v,i),_=vv([],v,s);n&&(ba(w,w,c),wa(w,w,f),ba(_,_,c),wa(_,_,f)),a.push(w),a.push(_)}return r&&a.push(a.shift()),a}function Fm(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var o=zA(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var i=a.length,s=0;s<(r?i:i-1);s++){var l=o[s*2],u=o[s*2+1],c=a[(s+1)%i];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var GA=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),zm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new GA},t.prototype.buildPath=function(r,n){Fm(r,n,!0)},t}(ge);zm.prototype.type="polygon";const Hf=zm;var HA=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Fa=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HA},t.prototype.buildPath=function(r,n){Fm(r,n,!1)},t}(ge);Fa.prototype.type="polyline";var WA={},UA=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Gm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new UA},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=Yg(WA,n,this.style);a=l.x1,o=l.y1,i=l.x2,s=l.y2}else a=n.x1,o=n.y1,i=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,o),u<1&&(i=a*(1-u)+i*u,s=o*(1-u)+s*u),r.lineTo(i,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ge);Gm.prototype.type="line";const en=Gm;var dt=[],YA=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 Hm(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?Rv:$e)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Rv:$e)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Vv:Xe)(e.x1,e.cpx1,e.x2,t),(r?Vv:Xe)(e.y1,e.cpy1,e.y2,t)]}var Wm=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YA},t.prototype.buildPath=function(r,n){var a=n.x1,o=n.y1,i=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,o),c==null||f==null?(d<1&&(vs(a,l,i,d,dt),l=dt[1],i=dt[2],vs(o,u,s,d,dt),u=dt[1],s=dt[2]),r.quadraticCurveTo(l,u,i,s)):(d<1&&(ps(a,l,c,i,d,dt),l=dt[1],c=dt[2],i=dt[3],ps(o,u,f,s,d,dt),u=dt[1],f=dt[2],s=dt[3]),r.bezierCurveTo(l,u,c,f,i,s)))},t.prototype.pointAt=function(r){return Hm(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Hm(this.shape,r,!0);return pc(n,n)},t}(ge);Wm.prototype.type="bezier-curve";const Wf=Wm;var qA=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}(),Um=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qA},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*i+a,f*i+o),r.arc(a,o,i,s,l,!u)},t}(ge);Um.prototype.type="arc";const Uf=Um;var jA=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],o=0;o<a.length;o++)a[o].buildPath(r,a[o].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ge.prototype.getBoundingRect.call(this)},t}(ge);const XA=jA;var ZA=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const Ym=ZA;var qm=function(e){W(t,e);function t(r,n,a,o,i,s){var l=e.call(this,i)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(Ym),KA=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this,o)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=i||!1,s}return t}(Ym);const JA=KA;var Gn=[0,0],Hn=[0,0],Js=new le,Qs=new le,QA=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new le;for(var n=0;n<2;n++)this._axes[n]=new le;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,o=t.x,i=t.y,s=o+t.width,l=i+t.height;if(n[0].set(o,i),n[1].set(s,i),n[2].set(s,l),n[3].set(o,l),r)for(var u=0;u<4;u++)n[u].transform(r);le.sub(a[0],n[1],n[0]),le.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return Js.set(1/0,1/0),Qs.set(0,0),!this._intersectCheckOneSide(this,t,Js,Qs,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,Js,Qs,a,-1)&&(n=!1,a)||a||le.copy(r,n?Js:Qs),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,o,i){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Gn),this._getProjMinMaxOnAxis(l,r._corners,Hn),Gn[1]<Hn[0]||Gn[0]>Hn[1]){if(s=!1,o)return s;var c=Math.abs(Hn[0]-Gn[1]),f=Math.abs(Gn[0]-Hn[1]);Math.min(c,f)>a.len()&&(c<f?le.scale(a,u,-c*i):le.scale(a,u,f*i))}else if(n){var c=Math.abs(Hn[0]-Gn[1]),f=Math.abs(Gn[0]-Hn[1]);Math.min(c,f)<n.len()&&(c<f?le.scale(n,u,c*i):le.scale(n,u,-f*i))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],o=this._origin,i=r[0].dot(a)+o[t],s=i,l=i,u=1;u<r.length;u++){var c=r[u].dot(a)+o[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const el=QA;var eM=[],tM=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ye(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],o=a.getBoundingRect().clone();a.needLocalTransform()&&o.applyTransform(a.getLocalTransform(eM)),r.union(o)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect();if(o.contain(a[0],a[1]))for(var i=0;i<this._displayables.length;i++){var s=this._displayables[i];if(s.contain(r,n))return!0}return!1},t}(An);const rM=tM;var nM=Ne();function Yf(e,t,r,n,a){var o;if(t&&t.ecModel){var i=t.ecModel.getUpdatePayload();o=i&&i.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=oe(n.duration,200),c=oe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),ae(f)&&(f=f(r,a)),ae(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function qf(e,t,r,n,a,o,i){var s=!1,l;ae(a)?(i=o,o=a,a=null):K(a)&&(o=a.cb,i=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Yf(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!i,setToFinal:!u,scope:e,during:i};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),i&&i(1),o&&o()}function Je(e,t,r,n,a,o){qf("update",e,t,r,n,a,o)}function wt(e,t,r,n,a,o){qf("enter",e,t,r,n,a,o)}function Qo(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function tl(e,t,r,n,a,o){Qo(e)||qf("leave",e,t,r,n,a,o)}function jm(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),tl(e,{style:{opacity:0}},t,r,n)}function rl(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||jm(a,t,r,n)}):jm(e,t,r,n)}function jf(e){nM(e).oldStyle=e.style}var nl=Math.max,al=Math.min,Xf={};function aM(e){return ge.extend(e)}var oM=EA;function iM(e,t){return oM(e,t)}function Xt(e,t){Xf[e]=t}function Xm(e){if(Xf.hasOwnProperty(e))return Xf[e]}function ol(e,t,r,n){var a=kA(e,t);return r&&(n==="center"&&(r=Km(r,a.getBoundingRect())),Jm(a,r)),a}function Zm(e,t,r){var n=new Qr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var o={width:a.width,height:a.height};n.setStyle(Km(t,o))}}});return n}function Km(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var o=e.x+e.width/2,i=e.y+e.height/2;return{x:o-n/2,y:i-a/2,width:n,height:a}}var sM=PA;function Jm(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function ei(e,t){return Yg(e,e,{lineWidth:t}),e}function lM(e){return qg(e.shape,e.shape,e.style),e}var uM=Bn;function Qm(e,t){for(var r=Tc([]);e&&e!==t;)Ta(r,e.getLocalTransform(),r),e=e.parent;return r}function ti(e,t,r){return t&&!nt(t)&&(t=ef.getLocalTransform(t)),r&&(t=Ac([],t)),Tt([],e,t)}function ey(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return o=ti(o,t,r),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ty(e){return!e.isGroup}function cM(e){return e.shape!=null}function ry(e,t,r){if(!e||!t)return;function n(i){var s={};return i.traverse(function(l){ty(l)&&l.anid&&(s[l.anid]=l)}),s}function a(i){var s={x:i.x,y:i.y,rotation:i.rotation};return cM(i)&&(s.shape=H({},i.shape)),s}var o=n(e);t.traverse(function(i){if(ty(i)&&i.anid){var s=o[i.anid];if(s){var l=a(i);i.attr(a(s)),Je(i,l,r,ve(i).dataIndex)}}})}function fM(e,t){return j(e,function(r){var n=r[0];n=nl(n,t.x),n=al(n,t.x+t.width);var a=r[1];return a=nl(a,t.y),a=al(a,t.y+t.height),[n,a]})}function hM(e,t){var r=nl(e.x,t.x),n=al(e.x+e.width,t.x+t.width),a=nl(e.y,t.y),o=al(e.y+e.height,t.y+t.height);if(n>=r&&o>=a)return{x:r,y:a,width:n-r,height:o-a}}function Zf(e,t,r){var n=H({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),he(a,r),new Qr(n)):ol(e.replace("path://",""),n,r,"center")}function dM(e,t,r,n,a){for(var o=0,i=a[a.length-1];o<a.length;o++){var s=a[o];if(ny(e,t,r,n,s[0],s[1],i[0],i[1]))return!0;i=s}}function ny(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,c=i-a,f=s-o,d=Kf(c,f,l,u);if(pM(d))return!1;var h=e-a,v=t-o,m=Kf(h,v,l,u)/d;if(m<0||m>1)return!1;var g=Kf(h,v,c,f)/d;return!(g<0||g>1)}function Kf(e,t,r,n){return e*n-r*t}function pM(e){return e<=1e-6&&e>=-1e-6}function Jf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=X(t)?{formatter:t}:t,o=r.mainType,i=r.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=i;var l=e.formatterParamsExtra;l&&k(me(l),function(c){Y(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ve(e.el);u.componentMainType=o,u.componentIndex=i,u.tooltipConfig={name:n,option:he({content:n,formatterParams:s},a)}}function ay(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function za(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)ay(e[r],t);else ay(e,t)}Xt("circle",zf),Xt("ellipse",Lm),Xt("sector",zn),Xt("ring",$m),Xt("polygon",Hf),Xt("polyline",Fa),Xt("rect",Ee),Xt("line",en),Xt("bezierCurve",Wf),Xt("arc",Uf);const vM=Object.freeze(Object.defineProperty({__proto__:null,Arc:Uf,BezierCurve:Wf,BoundingRect:ye,Circle:zf,CompoundPath:XA,Ellipse:Lm,Group:Pe,Image:Qr,IncrementalDisplayable:rM,Line:en,LinearGradient:qm,OrientedBoundingRect:el,Path:ge,Point:le,Polygon:Hf,Polyline:Fa,RadialGradient:JA,Rect:Ee,Ring:$m,Sector:zn,Text:We,applyTransform:ti,clipPointsByRect:fM,clipRectByRect:hM,createIcon:Zf,extendPath:iM,extendShape:aM,getShapeClass:Xm,getTransform:Qm,groupTransition:ry,initProps:wt,isElementRemoved:Qo,lineLineIntersect:ny,linePolygonIntersect:dM,makeImage:Zm,makePath:ol,mergePath:sM,registerShape:Xt,removeElement:tl,removeElementWithFadeOut:rl,resizePath:Jm,setTooltipConfig:Jf,subPixelOptimize:uM,subPixelOptimizeLine:ei,subPixelOptimizeRect:lM,transformDirection:ey,traverseElements:za,updateProps:Je},Symbol.toStringTag,{value:"Module"}));var il={};function gM(e,t){for(var r=0;r<ht.length;r++){var n=ht[r],a=t[n],o=e.ensureState(n);o.style=o.style||{},o.style.text=a}var i=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(i,!0)}function oy(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,i=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,o,i&&i.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ae(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<ht.length;u++){var c=ht[u],f=t[c];l[c]=oe(n?n.getFormattedLabel(a,c,null,o,f&&f.get("formatter")):null,s)}return l}function Ga(e,t,r,n){r=r||il;for(var a=e instanceof We,o=!1,i=0;i<Hs.length;i++){var s=t[Hs[i]];if(s&&s.getShallow("show")){o=!0;break}}var l=a?e:e.getTextContent();if(o){a||(l||(l=new We,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=oy(r,t),c=t.normal,f=!!c.getShallow("show"),d=Zt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(sl(c,r,!1));for(var i=0;i<ht.length;i++){var h=ht[i],s=t[h];if(s){var v=l.ensureState(h),m=!!oe(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=Zt(s,n&&n[h],r,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=sl(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(ll(l).setLabelText=function(y){var w=oy(r,t,y);gM(l,w)})}else l&&(l.ignore=!0);e.dirty()}function Wn(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<ht.length;n++){var a=ht[n];r[a]=e.getModel([a,t])}return r}function Zt(e,t,r,n,a){var o={};return mM(o,e,r,n,a),t&&H(o,t),o}function sl(e,t,r){t=t||{};var n={},a,o=e.getShallow("rotate"),i=oe(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),o!=null&&(o*=Math.PI/180,n.rotation=o),i!=null&&(n.distance=i),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function mM(e,t,r,n,a){r=r||il;var o=t.ecModel,i=o&&o.option.textStyle,s=yM(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);uy(l[u]={},c,i,r,n,a,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),uy(e,t,i,r,n,a,!0,!1)}function yM(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||il).rich;if(r){t=t||{};for(var n=me(r),a=0;a<n.length;a++){var o=n[a];t[o]=1}}e=e.parentModel}return t}var iy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],sy=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ly=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function uy(e,t,r,n,a,o,i,s){r=!a&&r||il;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=oe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?c=l:c=null),o||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=oe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=oe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=oe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!a&&!o&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var m=0;m<iy.length;m++){var g=iy[m],y=oe(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var m=0;m<sy.length;m++){var g=sy[m],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!i||!n.disableBox){for(var m=0;m<ly.length;m++){var g=ly[m],y=t.getShallow(g);y!=null&&(e[g]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&ze("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&ze("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function cy(e,t){var r=t&&t.getModel("textStyle");return ar([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ll=Ne();function _M(e,t,r,n){if(e){var a=ll(e);a.prevValue=a.value,a.value=r;var o=t.normal;a.valueAnimation=o.get("valueAnimation"),a.valueAnimation&&(a.precision=o.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}var wM=["textStyle","color"],Qf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],eh=new We,bM=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(wM):null)},e.prototype.getFont=function(){return cy({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Qf.length;n++)r[Qf[n]]=this.getShallow(Qf[n]);return eh.useStyle(r),eh.update(),eh.getBoundingRect()},e}();const SM=bM;var fy=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],CM=Ho(fy),xM=function(){function e(){}return e.prototype.getLineStyle=function(t){return CM(this,t)},e}(),hy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],TM=Ho(hy),NM=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return TM(this,t,r)},e}(),Un=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){pe(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var o=this.parentModel;o&&(a=o.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,o=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(o,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ce(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ne.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();df(Un),fD(Un),Wt(Un,xM),Wt(Un,NM),Wt(Un,gD),Wt(Un,SM);const Qe=Un;var DM=Math.round(Math.random()*10);function ul(e){return[e||"",DM++].join("_")}function AM(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=ur(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var o=ur(r).main;e.hasSubTypes(r)&&t[o]&&(a=t[o](n))}return a}}function MM(e,t){e.topologicalTravel=function(o,i,s,l){if(!o.length)return;var u=r(i),c=u.graph,f=u.noEntryList,d={};for(k(o,function(w){d[w]=!0});f.length;){var h=f.pop(),v=c[h],m=!!d[h];m&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),k(v.successor,m?y:g)}k(d,function(){var w="";throw process.env.NODE_ENV!=="production"&&(w=Ps("Circular dependency may exists: ",d,o,i)),new Error(w)});function g(w){c[w].entryCount--,c[w].entryCount===0&&f.push(w)}function y(w){d[w]=!0,g(w)}};function r(o){var i={},s=[];return k(o,function(l){var u=n(i,l),c=u.originalDeps=t(l),f=a(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),k(f,function(d){fe(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(i,d);fe(h.successor,d)<0&&h.successor.push(l)})}),{graph:i,noEntryList:s}}function n(o,i){return o[i]||(o[i]={predecessor:[],successor:[]}),o[i]}function a(o,i){var s=[];return k(o,function(l){fe(i,l)>=0&&s.push(l)}),s}}function cl(e,t){return pe(pe({},e,!0),t,!0)}const kM={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:". "}}}},EM={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var fl="ZH",th="EN",Ha=th,hl={},rh={},dy=ne.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ha).toUpperCase();return e.indexOf(fl)>-1?fl:Ha}():Ha;function py(e,t){e=e.toUpperCase(),rh[e]=new Qe(t),hl[e]=t}function PM(e){if(X(e)){var t=hl[e.toUpperCase()]||{};return e===fl||e===th?ce(t):pe(ce(t),ce(hl[Ha]),!1)}else return pe(ce(e),ce(hl[Ha]),!1)}function IM(e){return rh[e]}function LM(){return rh[Ha]}py(th,kM),py(fl,EM);var nh=1e3,ah=nh*60,ri=ah*60,It=ri*24,vy=It*365,ni={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}"},dl="{yyyy}-{MM}-{dd}",gy={year:"{yyyy}",month:"{yyyy}-{MM}",day:dl,hour:dl+" "+ni.hour,minute:dl+" "+ni.minute,second:dl+" "+ni.second,millisecond:ni.none},oh=["year","month","day","hour","minute","second","millisecond"],my=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Wa(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 OM(e){return e===Wa(e)}function RM(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pl(e,t,r,n){var a=Tr(e),o=a[ih(r)](),i=a[Ua(r)]()+1,s=Math.floor((i-1)/3)+1,l=a[vl(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[ai(r)](),f=(c-1)%12+1,d=a[gl(r)](),h=a[ml(r)](),v=a[yl(r)](),m=n instanceof Qe?n:IM(n||dy)||LM(),g=m.getModel("time"),y=g.get("month"),w=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tn(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[i-1]).replace(/{MMM}/g,w[i-1]).replace(/{MM}/g,tn(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,tn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,tn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,tn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,tn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,tn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,tn(v,3)).replace(/{S}/g,v+"")}function BM(e,t,r,n,a){var o=null;if(X(r))o=r;else if(ae(r))o=r(e.value,t,{level:e.level});else{var i=H({},ni);if(e.level>0)for(var s=0;s<oh.length;++s)i[oh[s]]="{primary|"+i[oh[s]]+"}";var l=r?r.inherit===!1?r:he(r,i):i,u=yy(e.value,a);if(l[u])o=l[u];else if(l.inherit){for(var c=my.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||i.none}if(U(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return pl(new Date(e.value),o,a,n)}function yy(e,t){var r=Tr(e),n=r[Ua(t)]()+1,a=r[vl(t)](),o=r[ai(t)](),i=r[gl(t)](),s=r[ml(t)](),l=r[yl(t)](),u=l===0,c=u&&s===0,f=c&&i===0,d=f&&o===0,h=d&&a===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function _y(e,t,r){var n=Ce(e)?Tr(e):e;switch(t=t||yy(e,r),t){case"year":return n[ih(r)]();case"half-year":return n[Ua(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ua(r)]()+1)/4);case"month":return n[Ua(r)]();case"day":return n[vl(r)]();case"half-day":return n[ai(r)]()/24;case"hour":return n[ai(r)]();case"minute":return n[gl(r)]();case"second":return n[ml(r)]();case"millisecond":return n[yl(r)]()}}function ih(e){return e?"getUTCFullYear":"getFullYear"}function Ua(e){return e?"getUTCMonth":"getMonth"}function vl(e){return e?"getUTCDate":"getDate"}function ai(e){return e?"getUTCHours":"getHours"}function gl(e){return e?"getUTCMinutes":"getMinutes"}function ml(e){return e?"getUTCSeconds":"getSeconds"}function yl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function VM(e){return e?"setUTCFullYear":"setFullYear"}function wy(e){return e?"setUTCMonth":"setMonth"}function by(e){return e?"setUTCDate":"setDate"}function Sy(e){return e?"setUTCHours":"setHours"}function Cy(e){return e?"setUTCMinutes":"setMinutes"}function xy(e){return e?"setUTCSeconds":"setSeconds"}function Ty(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ny(e){if(!gg(e))return X(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Dy(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var _l=fv;function sh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&ar(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var i=t==="time",s=e instanceof Date;if(i||s){var l=i?Tr(e):e;if(isNaN(+l)){if(s)return"-"}else return pl(l,n,r)}if(t==="ordinal")return as(e)?a(e):Ce(e)&&o(e)?e+"":"-";var u=ks(e);return o(u)?Ny(u):as(e)?a(e):typeof e=="boolean"?e+"":"-"}var Ay=["a","b","c","d","e","f","g"],lh=function(e,t){return"{"+e+(t??"")+"}"};function My(e,t,r){U(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],o=0;o<a.length;o++){var i=Ay[o];e=e.replace(lh(i),lh(i,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(lh(Ay[l],s),r?Nt(u):u)}return e}function $M(e,t){var r=X(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var o=r.renderMode||"html";if(!n)return"";if(o==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Nt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Nt(n)+";"+(t||"")+'"></span>';var i=r.markerId||"markerX";return{renderMode:o,content:"{"+i+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Yn(e,t){return t=t||"transparent",X(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function ky(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var wl=k,FM=["left","right","top","bottom","width","height"],bl=[["width","left","right"],["height","top","bottom"]];function uh(e,t,r,n,a){var o=0,i=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=o+m,h>n||l.newline?(o=0,h=m,i+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=i+g,v>a||l.newline?(o+=s+r,i=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=i,l.markRedraw(),e==="horizontal"?o=h+r:i=v+r)})}var oi=uh;be(uh,"vertical"),be(uh,"horizontal");function qn(e,t,r){r=_l(r||0);var n=t.width,a=t.height,o=xe(e.left,n),i=xe(e.top,a),s=xe(e.right,n),l=xe(e.bottom,a),u=xe(e.width,n),c=xe(e.height,a),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(c)&&(c=a-l-f-i),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=n-s-u-d),isNaN(i)&&(i=a-l-c-f),e.left||e.right){case"center":o=n/2-u/2-r[3];break;case"right":o=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":i=a/2-c/2-r[0];break;case"bottom":i=a-c-f;break}o=o||0,i=i||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(c)&&(c=a-f-i-(l||0));var v=new ye(o+r[3],i+r[0],u,c);return v.margin=r,v}function ii(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function Ya(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var a=i(bl[0],0),o=i(bl[1],1);u(bl[0],e,a),u(bl[1],e,o);function i(c,f){var d={},h=0,v={},m=0,g=2;if(wl(c,function(_){v[_]=e[_]}),wl(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&m++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===g||!h)return v;if(h>=g)return d;for(var y=0;y<c.length;y++){var w=c[y];if(!s(d,w)&&s(e,w)){d[w]=e[w];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){wl(c,function(h){f[h]=d[h]})}}function si(e){return zM({},e)}function zM(e,t){return t&&e&&wl(FM,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var GM=Ne(),qa=function(e){W(t,e);function t(r,n,a){var o=e.call(this,r,n,a)||this;return o.uid=ul("ec_cpt_model"),o}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=ii(this),o=a?si(r):{},i=n.getTheme();pe(r,i.get(this.mainType)),pe(r,this.getDefaultOption()),a&&Ya(r,o,a)},t.prototype.mergeOption=function(r,n){pe(this.option,r,!0);var a=ii(this);a&&Ya(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!lD(r))return r.defaultOption;var n=GM(this);if(!n.defaultOption){for(var a=[],o=r;o;){var i=o.prototype.defaultOption;i&&a.push(i),o=o.superClass}for(var s={},l=a.length-1;l>=0;l--)s=pe(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",o=r+"Id";return Go(this.ecModel,r,{index:this.get(a,!0),id:this.get(o,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Qe);Mg(qa,Qe),Ls(qa),AM(qa),MM(qa,HM);function HM(e){var t=[];return k(qa.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=j(t,function(r){return ur(r).main}),e!=="dataset"&&fe(t,"dataset")<=0&&t.unshift("dataset"),t}const Te=qa;var Ey="";typeof navigator<"u"&&(Ey=navigator.platform||"");var ja="rgba(0, 0, 0, 0.2)";const WM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ja,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ja,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ja,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ja,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ja,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ja,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ey.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var ch=ie(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Lt="original",pt="arrayRows",Kt="objectRows",pr="keyedColumns",Ar="typedArray",Py="unknown",Mr="column",Xa="row",qe={Must:1,Might:2,Not:3},Iy=Ne();function UM(e){Iy(e).datasetMap=ie()}function YM(e,t,r){var n={},a=fh(t);if(!a||!e)return n;var o=[],i=[],s=t.ecModel,l=Iy(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),k(e,function(m,g){var y=K(m)?m:e[g]={name:m};y.type==="ordinal"&&c==null&&(c=g,f=v(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(e,function(m,g){var y=m.name,w=v(m);if(c==null){var _=d.valueWayDim;h(n[y],_,w),h(i,_,w),d.valueWayDim+=w}else if(c===g)h(n[y],0,w),h(o,0,w);else{var _=d.categoryWayDim;h(n[y],_,w),h(i,_,w),d.categoryWayDim+=w}});function h(m,g,y){for(var w=0;w<y;w++)m.push(g+w)}function v(m){var g=m.dimsDef;return g?g.length:1}return o.length&&(n.itemName=o),i.length&&(n.seriesName=i),n}function qM(e,t,r){var n={},a=fh(e);if(!a)return n;var o=t.sourceFormat,i=t.dimensionsDefine,s;(o===Kt||o===pr)&&k(i,function(c,f){(K(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var m=Oy(t.data,o,t.seriesLayoutBy,i,t.startIndex,h);d.push(m);var g=m===qe.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===qe.Not)&&(c.n=h),y(c)&&d[c.n]!==qe.Not)return c;g||(m===qe.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(w){return w.v!=null&&w.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function fh(e){var t=e.get("data",!0);if(!t)return Go(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ft).models[0]}function jM(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Go(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ft).models}function Ly(e,t){return Oy(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Oy(e,t,r,n,a,o){var i,s=5;if(at(e))return qe.Not;var l,u;if(n){var c=n[o];K(c)?(l=c.name,u=c.type):X(c)&&(l=c)}if(u!=null)return u==="ordinal"?qe.Must:qe.Not;if(t===pt){var f=e;if(r===Xa){for(var d=f[o],h=0;h<(d||[]).length&&h<s;h++)if((i=S(d[a+h]))!=null)return i}else for(var h=0;h<f.length&&h<s;h++){var v=f[a+h];if(v&&(i=S(v[o]))!=null)return i}}else if(t===Kt){var m=e;if(!l)return qe.Not;for(var h=0;h<m.length&&h<s;h++){var g=m[h];if(g&&(i=S(g[l]))!=null)return i}}else if(t===pr){var y=e;if(!l)return qe.Not;var d=y[l];if(!d||at(d))return qe.Not;for(var h=0;h<d.length&&h<s;h++)if((i=S(d[h]))!=null)return i}else if(t===Lt)for(var w=e,h=0;h<w.length&&h<s;h++){var g=w[h],_=Fo(g);if(!U(_))return qe.Not;if((i=S(_[o]))!=null)return i}function S(x){var C=X(x);if(x!=null&&isFinite(x)&&x!=="")return C?qe.Might:qe.Not;if(C&&x!=="-")return qe.Must}return qe.Not}var XM=ie();function ZM(e,t,r){var n=XM.get(t);if(!n)return r;var a=n(e);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var o=0;o<a.length;o++)te(Ia(a[o]));return r.concat(a)}var Ry=Ne();Ne();var hh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=He(this.get("color",!0)),o=this.get("colorLayer",!0);return JM(this,Ry,a,o,t,r,n)},e.prototype.clearColorPalette=function(){QM(this,Ry)},e}();function KM(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function JM(e,t,r,n,a,o,i){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=i==null||!n?r:KM(n,i);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function QM(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Sl,li,By,dh="\0_ec_inner",Vy=1,ek={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},tk={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Cl={};function rk(e){k(e,function(t,r){if(!Te.hasClass(r)){var n=ek[r];n&&!Cl[n]&&(Ze("Component "+r+` is used but not imported.
30
30
  import { `+n+` } from 'echarts/components';
31
31
  echarts.use([`+n+"]);"),Cl[n]=!0)}})}var ph=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,o,i,s){o=o||{},this.option=null,this._theme=new Qe(o),this._locale=new Qe(i),this._optionManager=s},t.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(te(r!=null,"option is null/undefined"),te(r[dh]!==Vy,"please use chart.getOption()"));var o=zy(n);this._optionManager.setOption(r,a,o),this._resetOption(null,o)},t.prototype.resetOption=function(r,n){return this._resetOption(r,zy(n))},t.prototype._resetOption=function(r,n){var a=!1,o=this._optionManager;if(!r||r==="recreate"){var i=o.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&rk(i),!this.option||r==="recreate"?By(this,i):(this.restoreData(),this._mergeOption(i,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=o.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=o.getMediaOption(this);l.length&&k(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,o=this._componentsMap,i=this._componentsCount,s=[],l=ie(),u=n&&n.replaceMergeMainTypeMap;UM(this),k(r,function(f,d){f!=null&&(Te.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?ce(f):pe(a[d],f,!0))}),u&&u.each(function(f,d){Te.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Te.topologicalTravel(s,Te.getAllClassMainTypes(),c,this);function c(f){var d=ZM(this,f,He(r[f])),h=o.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=YN(h,d,v);QN(m,f,Te),a[f]=null,o.set(f,null),i.set(f,0);var g=[],y=[],w=0,_,S;k(m,function(x,C){var T=x.existing,b=x.newOption;if(!b)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var D=f==="series",N=Te.getClass(f,x.keyInfo.subType,!D);if(!N){if(process.env.NODE_ENV!=="production"){var A=x.keyInfo.subType,M=tk[A];Cl[A]||(Cl[A]=!0,Ze(M?"Series "+A+` is used but not imported.
32
32
  import { `+M+` } from 'echarts/charts';
33
- echarts.use([`+M+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(Fe("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(T&&T.constructor===N)T.name=x.keyInfo.name,T.mergeOption(b,this),T.optionUpdated(b,!1);else{var I=H({componentIndex:C},x.keyInfo);T=new N(b,this,this,I),H(T,I),x.brandNew&&(T.__requireNewView=!0),T.init(b,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),y.push(T),w++):(g.push(void 0),y.push(void 0))},this),a[f]=g,o.set(f,y),i.set(f,w),f==="series"&&Sl(this)}this._seriesIndices||Sl(this)},t.prototype.getOption=function(){var r=ce(this.option);return k(r,function(n,a){if(Te.hasClass(a)){for(var o=He(n),i=o.length,s=!1,l=i-1;l>=0;l--)o[l]&&!Ia(o[l])?s=!0:(o[l]=null,!s&&i--);o.length=i,r[a]=o}}),delete r[dh],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var o=a[n||0];if(o)return o;if(n==null){for(var i=0;i<a.length;i++)if(a[i])return a[i]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,o=r.id,i=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],k(He(a),function(u){s[u]&&l.push(s[u])})):o!=null?l=$y("id",o,s):i!=null?l=$y("name",i,s):l=Ue(s,function(u){return!!u}),Fy(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,o=s(n),i=o?this.queryComponents(o):Ue(this._componentsMap.get(a),function(u){return!!u});return l(Fy(i,r));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?Ue(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var o=this._componentsMap;if(ae(r)){var i=n,s=r;o.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(i,d,v,v.componentIndex)}})}else for(var l=X(r)?o.get(r):K(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=lr(r,null);return Ue(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ue(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ue(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ui(this),k(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)},this)},t.prototype.eachRawSeries=function(r,n){k(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){ui(this),k(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];i.subType===r&&n.call(a,i,o)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return k(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return ui(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ui(this);var a=[];k(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];r.call(n,i,o)&&a.push(o)},this),this._seriesIndices=a,this._seriesIndicesMap=ie(a)},t.prototype.restoreData=function(r){Sl(this);var n=this._componentsMap,a=[];n.each(function(o,i){Te.hasClass(i)&&a.push(i)}),Te.topologicalTravel(a,Te.getAllClassMainTypes(),function(o){k(n.get(o),function(i){i&&(o!=="series"||!nk(i,r))&&i.restoreData()})})},t.internalField=function(){Sl=function(r){var n=r._seriesIndices=[];k(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ie(n)},ui=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},By=function(r,n){r.option={},r.option[dh]=Vy,r._componentsMap=ie({series:[]}),r._componentsCount=ie();var a=n.aria;K(a)&&a.enabled==null&&(a.enabled=!0),ak(n,r._theme.option),pe(n,WM,!1),r._mergeOption(n,null)}}(),t}(Qe);function nk(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function ak(e,t){var r=e.color&&!e.colorLayer;k(t,function(n,a){a==="colorLayer"&&r||Te.hasClass(a)||(typeof n=="object"?e[a]=e[a]?pe(e[a],n,!1):ce(n):e[a]==null&&(e[a]=n))})}function $y(e,t,r){if(U(t)){var n=ie();return k(t,function(o){if(o!=null){var i=lr(o,null);i!=null&&n.set(o,!0)}}),Ue(r,function(o){return o&&n.get(o[e])})}else{var a=lr(t,null);return Ue(r,function(o){return o&&a!=null&&o[e]===a})}}function Fy(e,t){return t.hasOwnProperty("subType")?Ue(e,function(r){return r&&r.subType===t.subType}):e}function zy(e){var t=ie();return e&&k(He(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&te(Te.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Wt(ph,hh);var ok=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ik=function(){function e(t){k(ok,function(r){this[r]=Q(t[r],t)},this)}return e}();const Gy=ik;var vh={},gh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];k(vh,function(a,o){var i=a.create(t,r);n=n.concat(i||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){k(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){vh[t]=r},e.get=function(t){return vh[t]},e}(),sk=/^(min|max)?(.+)$/,lk=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(k(He(t.series),function(i){i&&i.data&&at(i.data)&&hc(i.data)}),k(He(t.dataset),function(i){i&&i.source&&at(i.source)&&hc(i.source)})),t=ce(t);var a=this._optionBackup,o=uk(t,r,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ce(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=ce(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,i=[],s=[];if(!a.length&&!o)return s;for(var l=0,u=a.length;l<u;l++)ck(a[l].query,r,n)&&i.push(l);return!i.length&&o&&(i=[-1]),i.length&&!hk(i,this._currentMediaIndices)&&(s=j(i,function(c){return ce(c===-1?o.option:a[c].option)})),this._currentMediaIndices=i,s},e}();function uk(e,t,r){var n=[],a,o,i=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||i&&i.timeline);i?(o=i,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&(U(u)?k(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&K(h.query)&&K(h.query.option)&&Ze("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):a||(a=h))}):process.env.NODE_ENV!=="production"&&Ze("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(o),k(l,function(h){return d(h)}),k(n,function(h){return d(h.option)});function d(h){k(t,function(v){v(h,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function ck(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return k(e,function(o,i){var s=i.match(sk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();fk(n[u],o,l)||(a=!1)}}),a}function fk(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function hk(e,t){return e.join(",")===t.join(",")}const dk=lk;var Ot=k,ci=K,Hy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function mh(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Hy.length;r<n;r++){var a=Hy[r],o=t.normal,i=t.emphasis;o&&o[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?pe(e[a].normal,o[a]):e[a].normal=o[a],o[a]=null),i&&i[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?pe(e[a].emphasis,i[a]):e[a].emphasis=i[a],i[a]=null)}}function et(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&qt("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,he(e[t],n)):e[t]=n),a&&(process.env.NODE_ENV!=="production"&&qt(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function fi(e){et(e,"itemStyle"),et(e,"lineStyle"),et(e,"areaStyle"),et(e,"label"),et(e,"labelLine"),et(e,"upperLabel"),et(e,"edgeLabel")}function Re(e,t){var r=ci(e)&&e[t],n=ci(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&qt("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,o=Cg.length;a<o;a++){var i=Cg[a];n.hasOwnProperty(i)&&(r[i]=n[i])}}}function Rt(e){e&&(fi(e),Re(e,"label"),e.emphasis&&Re(e.emphasis,"label"))}function pk(e){if(ci(e)){mh(e),fi(e),Re(e,"label"),Re(e,"upperLabel"),Re(e,"edgeLabel"),e.emphasis&&(Re(e.emphasis,"label"),Re(e.emphasis,"upperLabel"),Re(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(mh(t),Rt(t));var r=e.markLine;r&&(mh(r),Rt(r));var n=e.markArea;n&&Rt(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var o=e.links||e.edges;if(o&&!at(o))for(var i=0;i<o.length;i++)Rt(o[i]);k(e.categories,function(u){fi(u)})}if(a&&!at(a))for(var i=0;i<a.length;i++)Rt(a[i]);if(t=e.markPoint,t&&t.data)for(var s=t.data,i=0;i<s.length;i++)Rt(s[i]);if(r=e.markLine,r&&r.data)for(var l=r.data,i=0;i<l.length;i++)U(l[i])?(Rt(l[i][0]),Rt(l[i][1])):Rt(l[i]);e.type==="gauge"?(Re(e,"axisLabel"),Re(e,"title"),Re(e,"detail")):e.type==="treemap"?(et(e.breadcrumb,"itemStyle"),k(e.levels,function(u){fi(u)})):e.type==="tree"&&fi(e.leaves)}}function kr(e){return U(e)?e:e?[e]:[]}function Wy(e){return(U(e)?e[0]:e)||{}}function vk(e,t){Ot(kr(e.series),function(n){ci(n)&&pk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ot(r,function(n){Ot(kr(e[n]),function(a){a&&(Re(a,"axisLabel"),Re(a.axisPointer,"label"))})}),Ot(kr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Re(a,"axisLabel"),Re(a&&a.axisPointer,"label")}),Ot(kr(e.calendar),function(n){et(n,"itemStyle"),Re(n,"dayLabel"),Re(n,"monthLabel"),Re(n,"yearLabel")}),Ot(kr(e.radar),function(n){Re(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&qt("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&qt("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Ot(n.indicator,function(a){a.text&&ze("text","name","radar.indicator")})}),Ot(kr(e.geo),function(n){ci(n)&&(Rt(n),Ot(kr(n.regions),function(a){Rt(a)}))}),Ot(kr(e.timeline),function(n){Rt(n),et(n,"label"),et(n,"itemStyle"),et(n,"controlStyle",!0);var a=n.data;U(a)&&k(a,function(o){K(o)&&(et(o,"label"),et(o,"itemStyle"))})}),Ot(kr(e.toolbox),function(n){et(n,"iconStyle"),Ot(n.feature,function(a){et(a,"iconStyle")})}),Re(Wy(e.axisPointer),"label"),Re(Wy(e.tooltip).axisPointer,"label")}function gk(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function mk(e,t,r,n){for(var a=t.split(","),o=e,i,s=0;s<a.length-1;s++)i=a[s],o[i]==null&&(o[i]={}),o=o[i];(n||o[a[s]]==null)&&(o[a[s]]=r)}function Uy(e){e&&k(yk,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var yk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_k=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function hi(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<yh.length;r++){var n=yh[r][1],a=yh[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&ze(n,a))}}function Yy(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&ze("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function qy(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&ze("downplay","blur","sunburst"))}function wk(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&ze("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function jy(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&jy(e[r].children,t)}function Xy(e,t){vk(e,t),e.series=He(e.series),k(e.series,function(r){if(K(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&ze("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&ze("clockWise","clockwise")),Yy(r.label);var a=r.data;if(a&&!at(a))for(var o=0;o<a.length;o++)Yy(a[o]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&ze("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var i=gk(r,"pointer.color");i!=null&&mk(r,"itemStyle.color",i)}else if(n==="bar"){hi(r),hi(r.backgroundStyle),hi(r.emphasis);var a=r.data;if(a&&!at(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&(hi(a[o]),hi(a[o]&&a[o].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&ze("highlightPolicy","emphasis.focus","sunburst"))),qy(r),jy(r.data,qy)}else n==="graph"||n==="sankey"?wk(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&ze("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&qt("`mapLocation` is not used anymore."),he(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&ze("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Uy(r)}}),e.dataRange&&(e.visualMap=e.dataRange),k(_k,function(r){var n=e[r];n&&(U(n)||(n=[n]),k(n,function(a){Uy(a)}))})}function bk(e){var t=ie();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),o=r.getData(),i={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:r};if(!i.stackedDimension||!(i.isStackedByIndex||i.stackedByDimension))return;a.length&&o.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(i)}}),t.each(Sk)}function Sk(e){k(e,function(t,r){var n=[],a=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],i=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";i.modify(o,function(u,c,f){var d=i.get(t.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=i.getRawIndex(f):h=i.get(t.stackedByDimension,f);for(var m=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,h)),v>=0){var w=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&d>=0&&w>0||l==="samesign"&&d<=0&&w<0){d=VN(d,w),m=w;break}}}return n[0]=d,n[1]=m,n})})}var xl=function(){function e(t){this.data=t.data||(t.sourceFormat===pr?{}:[]),this.sourceFormat=t.sourceFormat||Py,this.seriesLayoutBy=t.seriesLayoutBy||Mr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&Ly(this,n)===qe.Must&&(a.type="ordinal")}}return e}();function _h(e){return e instanceof xl}function wh(e,t,r){r=r||Zy(e);var n=t.seriesLayoutBy,a=xk(e,r,n,t.sourceHeader,t.dimensions),o=new xl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ce(t)});return o}function bh(e){return new xl({data:e,sourceFormat:at(e)?Ar:Lt})}function Ck(e){return new xl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ce(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Zy(e){var t=Py;if(at(e))t=Ar;else if(U(e)){e.length===0&&(t=pt);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(U(a)||at(a)){t=pt;break}else if(K(a)){t=Kt;break}}}}else if(K(e)){for(var o in e)if(Y(e,o)&&nt(e[o])){t=pr;break}}return t}function xk(e,t,r,n,a){var o,i;if(!e)return{dimensionsDefine:Ky(a),startIndex:i,dimensionsDetectedCount:o};if(t===pt){var s=e;n==="auto"||n==null?Jy(function(u){u!=null&&u!=="-"&&(X(u)?i==null&&(i=1):i=0)},r,s,10):i=Ce(n)?n:n?1:0,!a&&i===1&&(a=[],Jy(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),o=a?a.length:r===Xa?s.length:s[0]?s[0].length:null}else if(t===Kt)a||(a=Tk(e));else if(t===pr)a||(a=[],k(e,function(u,c){a.push(c)}));else if(t===Lt){var l=zo(e[0]);o=U(l)&&l.length||1}else t===Ar&&process.env.NODE_ENV!=="production"&&te(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:i,dimensionsDefine:Ky(a),dimensionsDetectedCount:o}}function Tk(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return me(r)}function Ky(e){if(e){var t=ie();return j(e,function(r,n){r=K(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var o=t.get(a.name);return o?a.name+="-"+o.count++:t.set(a.name,{count:1}),a})}}function Jy(e,t,r,n){if(t===Xa)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var o=r[0]||[],a=0;a<o.length&&a<n;a++)e(o[a],a)}function Qy(e){var t=e.sourceFormat;return t===Kt||t===pr}var jn,Xn,Zn,e0,t0,r0=function(){function e(t,r){var n=_h(t)?t:bh(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Ar){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=a}t0(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;t0=function(i,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=e0[Ch(u,c)];if(process.env.NODE_ENV!=="production"&&te(h,"Invalide sourceFormat: "+u),H(i,h),u===Ar)i.getItem=r,i.count=a,i.fillStorage=n;else{var v=a0(u,c);i.getItem=Q(v,null,s,f,d);var m=i0(u,c);i.count=Q(m,null,s,f,d)}};var r=function(i,s){i=i-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*i,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(i,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],g=s-i,y=l[d],w=0;w<g;w++){var _=c[w*f+d];y[i+w]=_,_<v&&(v=_),_>m&&(m=_)}h[0]=v,h[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};e0=(t={},t[pt+"_"+Mr]={pure:!0,appendData:o},t[pt+"_"+Xa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Kt]={pure:!0,appendData:o},t[pr]={pure:!0,appendData:function(i){var s=this._data;k(i,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Lt]={appendData:o},t[Ar]={persistent:!1,pure:!0,appendData:function(i){process.env.NODE_ENV!=="production"&&te(at(i),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=i},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(i){for(var s=0;s<i.length;s++)this._data.push(i[s])}}(),e}(),n0=function(e,t,r,n){return e[n]},Nk=(jn={},jn[pt+"_"+Mr]=function(e,t,r,n){return e[n+t]},jn[pt+"_"+Xa]=function(e,t,r,n,a){n+=t;for(var o=a||[],i=e,s=0;s<i.length;s++){var l=i[s];o[s]=l?l[n]:null}return o},jn[Kt]=n0,jn[pr]=function(e,t,r,n,a){for(var o=a||[],i=0;i<r.length;i++){var s=r[i].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];o[i]=l?l[n]:null}return o},jn[Lt]=n0,jn);function a0(e,t){var r=Nk[Ch(e,t)];return process.env.NODE_ENV!=="production"&&te(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var o0=function(e,t,r){return e.length},Dk=(Xn={},Xn[pt+"_"+Mr]=function(e,t,r){return Math.max(0,e.length-t)},Xn[pt+"_"+Xa]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Xn[Kt]=o0,Xn[pr]=function(e,t,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=e[n];return a?a.length:0},Xn[Lt]=o0,Xn);function i0(e,t){var r=Dk[Ch(e,t)];return process.env.NODE_ENV!=="production"&&te(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Sh=function(e,t,r){return e[t]},Ak=(Zn={},Zn[pt]=Sh,Zn[Kt]=function(e,t,r){return e[r]},Zn[pr]=Sh,Zn[Lt]=function(e,t,r){var n=zo(e);return n instanceof Array?n[t]:n},Zn[Ar]=Sh,Zn);function s0(e){var t=Ak[e];return process.env.NODE_ENV!=="production"&&te(t,'Do not support get value on "'+e+'".'),t}function Ch(e,t){return e===pt?e+"_"+t:e}function Za(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),o=a.getSource().sourceFormat;if(r!=null){var i=e.getDimensionIndex(r),s=a.getDimensionProperty(i);return s0(o)(n,i,s)}else{var l=n;return o===Lt&&(l=zo(n)),l}}}}var Mk=/\{@(.+?)\}/g,l0=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),o=n.getRawIndex(t),i=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,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:i,dataIndex:o,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,o,i){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(i&&(l.value=i.interpolatedValue),a!=null&&U(l.value)&&(l.value=l.value[a]),!o){var u=s.getItemModel(t);o=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ae(o))return l.status=r,l.dimensionIndex=a,o(l);if(X(o)){var c=My(o,l);return c.replace(Mk,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&Ze("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var m=Za(s,t,v);if(i&&U(i.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(m=i.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Za(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function u0(e){var t,r;return K(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ps(e)):t=e,{text:t,frag:r}}function di(e){return new kk(e)}var kk=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var i=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(i!==l||s!==u)&&(o="reset");function c(w){return!(w>=1)&&(w=1),w}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&te(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&te(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var m=this._progress;if(U(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&te(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,o){c0.reset(r,n,a,o),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:c0.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),U(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&te(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),c0=function(){var e,t,r,n,a,o={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,a=Math.ceil(n/r),o.next=r>1&&n>0?s:i}};return o;function i(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function Ka(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Ce(e)&&e!=null&&e!=="-"&&(e=+Tr(e)),e==null||e===""?NaN:+e)}ie({number:function(e){return parseFloat(e)},time:function(e){return+Tr(e)},trim:function(e){return X(e)?ar(e):e}});var Ek=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Ce(t)?t:ks(t),a=Ce(r)?r:ks(r),o=isNaN(n),i=isNaN(a);if(o&&(n=this._incomparable),i&&(a=this._incomparable),o&&i){var s=X(t),l=X(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),Pk=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ka(t,r)},e}();function Ik(e,t){var r=new Pk,n=e.data,a=r.sourceFormat=e.sourceFormat,o=e.startIndex,i="";e.seriesLayoutBy!==Mr&&(process.env.NODE_ENV!=="production"&&(i='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),it(i));var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(m,g){var y=m.name,w={index:g,name:y,displayName:m.displayName};if(s.push(w),y!=null){var _="";Y(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),it(_)),l[y]=w}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=a0(a,Mr);t.__isBuiltIn&&(r.getRawDataItem=function(m){return f(n,o,s,m)},r.getRawData=Q(Lk,null,e)),r.cloneRawData=Q(Ok,null,e);var d=i0(a,Mr);r.count=Q(d,null,n,o,s);var h=s0(a);r.retrieveValue=function(m,g){var y=f(n,o,s,m);return v(y,g)};var v=r.retrieveValueFromItem=function(m,g){if(m!=null){var y=s[g];if(y)return h(m,g,y.name)}};return r.getDimensionInfo=Q(Rk,null,s,l),r.cloneAllDimensionInfo=Q(Bk,null,s),r}function Lk(e){var t=e.sourceFormat;if(!xh(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),it(r)}return e.data}function Ok(e){var t=e.sourceFormat,r=e.data;if(!xh(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),it(n)}if(t===pt){for(var a=[],o=0,i=r.length;o<i;o++)a.push(r[o].slice());return a}else if(t===Kt){for(var a=[],o=0,i=r.length;o<i;o++)a.push(H({},r[o]));return a}}function Rk(e,t,r){if(r!=null){if(Ce(r)||!isNaN(r)&&!Y(t,r))return e[r];if(Y(t,r))return t[r]}}function Bk(e){return ce(e)}var f0=ie();function Vk(e){e=ce(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),it(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),it(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,f0.set(t,e)}function $k(e,t,r){var n=He(e),a=n.length,o="";a||(process.env.NODE_ENV!=="production"&&(o="If `transform` declared, it should at least contain one transform."),it(o));for(var i=0,s=a;i<s;i++){var l=n[i];t=Fk(l,t,r,a===1?null:i),i!==s-1&&(t.length=Math.max(t.length,1))}return t}function Fk(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),it(a)),K(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),it(a));var o=e.type,i=f0.get(o);i||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+o+'".'),it(a));var s=j(t,function(c){return Ik(c,i)}),l=He(i.transform({upstream:s[0],upstreamList:s,config:ce(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=j(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",Ps(c.data),"- transform result dimensions:",Ps(c.dimensions)].join(`
33
+ echarts.use([`+M+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(Fe("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(T&&T.constructor===N)T.name=x.keyInfo.name,T.mergeOption(b,this),T.optionUpdated(b,!1);else{var I=H({componentIndex:C},x.keyInfo);T=new N(b,this,this,I),H(T,I),x.brandNew&&(T.__requireNewView=!0),T.init(b,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),y.push(T),w++):(g.push(void 0),y.push(void 0))},this),a[f]=g,o.set(f,y),i.set(f,w),f==="series"&&Sl(this)}this._seriesIndices||Sl(this)},t.prototype.getOption=function(){var r=ce(this.option);return k(r,function(n,a){if(Te.hasClass(a)){for(var o=He(n),i=o.length,s=!1,l=i-1;l>=0;l--)o[l]&&!Ia(o[l])?s=!0:(o[l]=null,!s&&i--);o.length=i,r[a]=o}}),delete r[dh],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var o=a[n||0];if(o)return o;if(n==null){for(var i=0;i<a.length;i++)if(a[i])return a[i]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,o=r.id,i=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],k(He(a),function(u){s[u]&&l.push(s[u])})):o!=null?l=$y("id",o,s):i!=null?l=$y("name",i,s):l=Ue(s,function(u){return!!u}),Fy(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,o=s(n),i=o?this.queryComponents(o):Ue(this._componentsMap.get(a),function(u){return!!u});return l(Fy(i,r));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?Ue(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var o=this._componentsMap;if(ae(r)){var i=n,s=r;o.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(i,d,v,v.componentIndex)}})}else for(var l=X(r)?o.get(r):K(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=lr(r,null);return Ue(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ue(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ue(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){li(this),k(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)},this)},t.prototype.eachRawSeries=function(r,n){k(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){li(this),k(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];i.subType===r&&n.call(a,i,o)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return k(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return li(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){li(this);var a=[];k(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];r.call(n,i,o)&&a.push(o)},this),this._seriesIndices=a,this._seriesIndicesMap=ie(a)},t.prototype.restoreData=function(r){Sl(this);var n=this._componentsMap,a=[];n.each(function(o,i){Te.hasClass(i)&&a.push(i)}),Te.topologicalTravel(a,Te.getAllClassMainTypes(),function(o){k(n.get(o),function(i){i&&(o!=="series"||!nk(i,r))&&i.restoreData()})})},t.internalField=function(){Sl=function(r){var n=r._seriesIndices=[];k(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ie(n)},li=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},By=function(r,n){r.option={},r.option[dh]=Vy,r._componentsMap=ie({series:[]}),r._componentsCount=ie();var a=n.aria;K(a)&&a.enabled==null&&(a.enabled=!0),ak(n,r._theme.option),pe(n,WM,!1),r._mergeOption(n,null)}}(),t}(Qe);function nk(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function ak(e,t){var r=e.color&&!e.colorLayer;k(t,function(n,a){a==="colorLayer"&&r||Te.hasClass(a)||(typeof n=="object"?e[a]=e[a]?pe(e[a],n,!1):ce(n):e[a]==null&&(e[a]=n))})}function $y(e,t,r){if(U(t)){var n=ie();return k(t,function(o){if(o!=null){var i=lr(o,null);i!=null&&n.set(o,!0)}}),Ue(r,function(o){return o&&n.get(o[e])})}else{var a=lr(t,null);return Ue(r,function(o){return o&&a!=null&&o[e]===a})}}function Fy(e,t){return t.hasOwnProperty("subType")?Ue(e,function(r){return r&&r.subType===t.subType}):e}function zy(e){var t=ie();return e&&k(He(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&te(Te.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Wt(ph,hh);var ok=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ik=function(){function e(t){k(ok,function(r){this[r]=Q(t[r],t)},this)}return e}();const Gy=ik;var vh={},gh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];k(vh,function(a,o){var i=a.create(t,r);n=n.concat(i||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){k(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){vh[t]=r},e.get=function(t){return vh[t]},e}(),sk=/^(min|max)?(.+)$/,lk=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(k(He(t.series),function(i){i&&i.data&&at(i.data)&&hc(i.data)}),k(He(t.dataset),function(i){i&&i.source&&at(i.source)&&hc(i.source)})),t=ce(t);var a=this._optionBackup,o=uk(t,r,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ce(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=ce(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,i=[],s=[];if(!a.length&&!o)return s;for(var l=0,u=a.length;l<u;l++)ck(a[l].query,r,n)&&i.push(l);return!i.length&&o&&(i=[-1]),i.length&&!hk(i,this._currentMediaIndices)&&(s=j(i,function(c){return ce(c===-1?o.option:a[c].option)})),this._currentMediaIndices=i,s},e}();function uk(e,t,r){var n=[],a,o,i=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||i&&i.timeline);i?(o=i,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&(U(u)?k(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&K(h.query)&&K(h.query.option)&&Ze("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):a||(a=h))}):process.env.NODE_ENV!=="production"&&Ze("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(o),k(l,function(h){return d(h)}),k(n,function(h){return d(h.option)});function d(h){k(t,function(v){v(h,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function ck(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return k(e,function(o,i){var s=i.match(sk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();fk(n[u],o,l)||(a=!1)}}),a}function fk(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function hk(e,t){return e.join(",")===t.join(",")}const dk=lk;var Ot=k,ui=K,Hy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function mh(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Hy.length;r<n;r++){var a=Hy[r],o=t.normal,i=t.emphasis;o&&o[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?pe(e[a].normal,o[a]):e[a].normal=o[a],o[a]=null),i&&i[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?pe(e[a].emphasis,i[a]):e[a].emphasis=i[a],i[a]=null)}}function et(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&qt("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,he(e[t],n)):e[t]=n),a&&(process.env.NODE_ENV!=="production"&&qt(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function ci(e){et(e,"itemStyle"),et(e,"lineStyle"),et(e,"areaStyle"),et(e,"label"),et(e,"labelLine"),et(e,"upperLabel"),et(e,"edgeLabel")}function Re(e,t){var r=ui(e)&&e[t],n=ui(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&qt("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,o=Cg.length;a<o;a++){var i=Cg[a];n.hasOwnProperty(i)&&(r[i]=n[i])}}}function Rt(e){e&&(ci(e),Re(e,"label"),e.emphasis&&Re(e.emphasis,"label"))}function pk(e){if(ui(e)){mh(e),ci(e),Re(e,"label"),Re(e,"upperLabel"),Re(e,"edgeLabel"),e.emphasis&&(Re(e.emphasis,"label"),Re(e.emphasis,"upperLabel"),Re(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(mh(t),Rt(t));var r=e.markLine;r&&(mh(r),Rt(r));var n=e.markArea;n&&Rt(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var o=e.links||e.edges;if(o&&!at(o))for(var i=0;i<o.length;i++)Rt(o[i]);k(e.categories,function(u){ci(u)})}if(a&&!at(a))for(var i=0;i<a.length;i++)Rt(a[i]);if(t=e.markPoint,t&&t.data)for(var s=t.data,i=0;i<s.length;i++)Rt(s[i]);if(r=e.markLine,r&&r.data)for(var l=r.data,i=0;i<l.length;i++)U(l[i])?(Rt(l[i][0]),Rt(l[i][1])):Rt(l[i]);e.type==="gauge"?(Re(e,"axisLabel"),Re(e,"title"),Re(e,"detail")):e.type==="treemap"?(et(e.breadcrumb,"itemStyle"),k(e.levels,function(u){ci(u)})):e.type==="tree"&&ci(e.leaves)}}function kr(e){return U(e)?e:e?[e]:[]}function Wy(e){return(U(e)?e[0]:e)||{}}function vk(e,t){Ot(kr(e.series),function(n){ui(n)&&pk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ot(r,function(n){Ot(kr(e[n]),function(a){a&&(Re(a,"axisLabel"),Re(a.axisPointer,"label"))})}),Ot(kr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Re(a,"axisLabel"),Re(a&&a.axisPointer,"label")}),Ot(kr(e.calendar),function(n){et(n,"itemStyle"),Re(n,"dayLabel"),Re(n,"monthLabel"),Re(n,"yearLabel")}),Ot(kr(e.radar),function(n){Re(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&qt("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&qt("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Ot(n.indicator,function(a){a.text&&ze("text","name","radar.indicator")})}),Ot(kr(e.geo),function(n){ui(n)&&(Rt(n),Ot(kr(n.regions),function(a){Rt(a)}))}),Ot(kr(e.timeline),function(n){Rt(n),et(n,"label"),et(n,"itemStyle"),et(n,"controlStyle",!0);var a=n.data;U(a)&&k(a,function(o){K(o)&&(et(o,"label"),et(o,"itemStyle"))})}),Ot(kr(e.toolbox),function(n){et(n,"iconStyle"),Ot(n.feature,function(a){et(a,"iconStyle")})}),Re(Wy(e.axisPointer),"label"),Re(Wy(e.tooltip).axisPointer,"label")}function gk(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function mk(e,t,r,n){for(var a=t.split(","),o=e,i,s=0;s<a.length-1;s++)i=a[s],o[i]==null&&(o[i]={}),o=o[i];(n||o[a[s]]==null)&&(o[a[s]]=r)}function Uy(e){e&&k(yk,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var yk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_k=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fi(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<yh.length;r++){var n=yh[r][1],a=yh[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&ze(n,a))}}function Yy(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&ze("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function qy(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&ze("downplay","blur","sunburst"))}function wk(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&ze("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function jy(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&jy(e[r].children,t)}function Xy(e,t){vk(e,t),e.series=He(e.series),k(e.series,function(r){if(K(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&ze("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&ze("clockWise","clockwise")),Yy(r.label);var a=r.data;if(a&&!at(a))for(var o=0;o<a.length;o++)Yy(a[o]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&ze("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var i=gk(r,"pointer.color");i!=null&&mk(r,"itemStyle.color",i)}else if(n==="bar"){fi(r),fi(r.backgroundStyle),fi(r.emphasis);var a=r.data;if(a&&!at(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&(fi(a[o]),fi(a[o]&&a[o].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&ze("highlightPolicy","emphasis.focus","sunburst"))),qy(r),jy(r.data,qy)}else n==="graph"||n==="sankey"?wk(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&ze("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&qt("`mapLocation` is not used anymore."),he(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&ze("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Uy(r)}}),e.dataRange&&(e.visualMap=e.dataRange),k(_k,function(r){var n=e[r];n&&(U(n)||(n=[n]),k(n,function(a){Uy(a)}))})}function bk(e){var t=ie();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),o=r.getData(),i={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:r};if(!i.stackedDimension||!(i.isStackedByIndex||i.stackedByDimension))return;a.length&&o.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(i)}}),t.each(Sk)}function Sk(e){k(e,function(t,r){var n=[],a=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],i=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";i.modify(o,function(u,c,f){var d=i.get(t.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=i.getRawIndex(f):h=i.get(t.stackedByDimension,f);for(var m=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,h)),v>=0){var w=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&d>=0&&w>0||l==="samesign"&&d<=0&&w<0){d=VN(d,w),m=w;break}}}return n[0]=d,n[1]=m,n})})}var xl=function(){function e(t){this.data=t.data||(t.sourceFormat===pr?{}:[]),this.sourceFormat=t.sourceFormat||Py,this.seriesLayoutBy=t.seriesLayoutBy||Mr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&Ly(this,n)===qe.Must&&(a.type="ordinal")}}return e}();function _h(e){return e instanceof xl}function wh(e,t,r){r=r||Zy(e);var n=t.seriesLayoutBy,a=xk(e,r,n,t.sourceHeader,t.dimensions),o=new xl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ce(t)});return o}function bh(e){return new xl({data:e,sourceFormat:at(e)?Ar:Lt})}function Ck(e){return new xl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ce(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Zy(e){var t=Py;if(at(e))t=Ar;else if(U(e)){e.length===0&&(t=pt);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(U(a)||at(a)){t=pt;break}else if(K(a)){t=Kt;break}}}}else if(K(e)){for(var o in e)if(Y(e,o)&&nt(e[o])){t=pr;break}}return t}function xk(e,t,r,n,a){var o,i;if(!e)return{dimensionsDefine:Ky(a),startIndex:i,dimensionsDetectedCount:o};if(t===pt){var s=e;n==="auto"||n==null?Jy(function(u){u!=null&&u!=="-"&&(X(u)?i==null&&(i=1):i=0)},r,s,10):i=Ce(n)?n:n?1:0,!a&&i===1&&(a=[],Jy(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),o=a?a.length:r===Xa?s.length:s[0]?s[0].length:null}else if(t===Kt)a||(a=Tk(e));else if(t===pr)a||(a=[],k(e,function(u,c){a.push(c)}));else if(t===Lt){var l=Fo(e[0]);o=U(l)&&l.length||1}else t===Ar&&process.env.NODE_ENV!=="production"&&te(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:i,dimensionsDefine:Ky(a),dimensionsDetectedCount:o}}function Tk(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return me(r)}function Ky(e){if(e){var t=ie();return j(e,function(r,n){r=K(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var o=t.get(a.name);return o?a.name+="-"+o.count++:t.set(a.name,{count:1}),a})}}function Jy(e,t,r,n){if(t===Xa)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var o=r[0]||[],a=0;a<o.length&&a<n;a++)e(o[a],a)}function Qy(e){var t=e.sourceFormat;return t===Kt||t===pr}var jn,Xn,Zn,e0,t0,r0=function(){function e(t,r){var n=_h(t)?t:bh(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Ar){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=a}t0(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;t0=function(i,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=e0[Ch(u,c)];if(process.env.NODE_ENV!=="production"&&te(h,"Invalide sourceFormat: "+u),H(i,h),u===Ar)i.getItem=r,i.count=a,i.fillStorage=n;else{var v=a0(u,c);i.getItem=Q(v,null,s,f,d);var m=i0(u,c);i.count=Q(m,null,s,f,d)}};var r=function(i,s){i=i-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*i,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(i,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],g=s-i,y=l[d],w=0;w<g;w++){var _=c[w*f+d];y[i+w]=_,_<v&&(v=_),_>m&&(m=_)}h[0]=v,h[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};e0=(t={},t[pt+"_"+Mr]={pure:!0,appendData:o},t[pt+"_"+Xa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Kt]={pure:!0,appendData:o},t[pr]={pure:!0,appendData:function(i){var s=this._data;k(i,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Lt]={appendData:o},t[Ar]={persistent:!1,pure:!0,appendData:function(i){process.env.NODE_ENV!=="production"&&te(at(i),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=i},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(i){for(var s=0;s<i.length;s++)this._data.push(i[s])}}(),e}(),n0=function(e,t,r,n){return e[n]},Nk=(jn={},jn[pt+"_"+Mr]=function(e,t,r,n){return e[n+t]},jn[pt+"_"+Xa]=function(e,t,r,n,a){n+=t;for(var o=a||[],i=e,s=0;s<i.length;s++){var l=i[s];o[s]=l?l[n]:null}return o},jn[Kt]=n0,jn[pr]=function(e,t,r,n,a){for(var o=a||[],i=0;i<r.length;i++){var s=r[i].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];o[i]=l?l[n]:null}return o},jn[Lt]=n0,jn);function a0(e,t){var r=Nk[Ch(e,t)];return process.env.NODE_ENV!=="production"&&te(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var o0=function(e,t,r){return e.length},Dk=(Xn={},Xn[pt+"_"+Mr]=function(e,t,r){return Math.max(0,e.length-t)},Xn[pt+"_"+Xa]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Xn[Kt]=o0,Xn[pr]=function(e,t,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=e[n];return a?a.length:0},Xn[Lt]=o0,Xn);function i0(e,t){var r=Dk[Ch(e,t)];return process.env.NODE_ENV!=="production"&&te(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Sh=function(e,t,r){return e[t]},Ak=(Zn={},Zn[pt]=Sh,Zn[Kt]=function(e,t,r){return e[r]},Zn[pr]=Sh,Zn[Lt]=function(e,t,r){var n=Fo(e);return n instanceof Array?n[t]:n},Zn[Ar]=Sh,Zn);function s0(e){var t=Ak[e];return process.env.NODE_ENV!=="production"&&te(t,'Do not support get value on "'+e+'".'),t}function Ch(e,t){return e===pt?e+"_"+t:e}function Za(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),o=a.getSource().sourceFormat;if(r!=null){var i=e.getDimensionIndex(r),s=a.getDimensionProperty(i);return s0(o)(n,i,s)}else{var l=n;return o===Lt&&(l=Fo(n)),l}}}}var Mk=/\{@(.+?)\}/g,l0=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),o=n.getRawIndex(t),i=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,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:i,dataIndex:o,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,o,i){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(i&&(l.value=i.interpolatedValue),a!=null&&U(l.value)&&(l.value=l.value[a]),!o){var u=s.getItemModel(t);o=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ae(o))return l.status=r,l.dimensionIndex=a,o(l);if(X(o)){var c=My(o,l);return c.replace(Mk,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&Ze("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var m=Za(s,t,v);if(i&&U(i.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(m=i.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Za(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function u0(e){var t,r;return K(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ps(e)):t=e,{text:t,frag:r}}function hi(e){return new kk(e)}var kk=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var i=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(i!==l||s!==u)&&(o="reset");function c(w){return!(w>=1)&&(w=1),w}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&te(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&te(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var m=this._progress;if(U(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&te(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,o){c0.reset(r,n,a,o),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:c0.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),U(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&te(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),c0=function(){var e,t,r,n,a,o={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,a=Math.ceil(n/r),o.next=r>1&&n>0?s:i}};return o;function i(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function Ka(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Ce(e)&&e!=null&&e!=="-"&&(e=+Tr(e)),e==null||e===""?NaN:+e)}ie({number:function(e){return parseFloat(e)},time:function(e){return+Tr(e)},trim:function(e){return X(e)?ar(e):e}});var Ek=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Ce(t)?t:ks(t),a=Ce(r)?r:ks(r),o=isNaN(n),i=isNaN(a);if(o&&(n=this._incomparable),i&&(a=this._incomparable),o&&i){var s=X(t),l=X(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),Pk=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ka(t,r)},e}();function Ik(e,t){var r=new Pk,n=e.data,a=r.sourceFormat=e.sourceFormat,o=e.startIndex,i="";e.seriesLayoutBy!==Mr&&(process.env.NODE_ENV!=="production"&&(i='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),it(i));var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(m,g){var y=m.name,w={index:g,name:y,displayName:m.displayName};if(s.push(w),y!=null){var _="";Y(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),it(_)),l[y]=w}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=a0(a,Mr);t.__isBuiltIn&&(r.getRawDataItem=function(m){return f(n,o,s,m)},r.getRawData=Q(Lk,null,e)),r.cloneRawData=Q(Ok,null,e);var d=i0(a,Mr);r.count=Q(d,null,n,o,s);var h=s0(a);r.retrieveValue=function(m,g){var y=f(n,o,s,m);return v(y,g)};var v=r.retrieveValueFromItem=function(m,g){if(m!=null){var y=s[g];if(y)return h(m,g,y.name)}};return r.getDimensionInfo=Q(Rk,null,s,l),r.cloneAllDimensionInfo=Q(Bk,null,s),r}function Lk(e){var t=e.sourceFormat;if(!xh(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),it(r)}return e.data}function Ok(e){var t=e.sourceFormat,r=e.data;if(!xh(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),it(n)}if(t===pt){for(var a=[],o=0,i=r.length;o<i;o++)a.push(r[o].slice());return a}else if(t===Kt){for(var a=[],o=0,i=r.length;o<i;o++)a.push(H({},r[o]));return a}}function Rk(e,t,r){if(r!=null){if(Ce(r)||!isNaN(r)&&!Y(t,r))return e[r];if(Y(t,r))return t[r]}}function Bk(e){return ce(e)}var f0=ie();function Vk(e){e=ce(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),it(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),it(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,f0.set(t,e)}function $k(e,t,r){var n=He(e),a=n.length,o="";a||(process.env.NODE_ENV!=="production"&&(o="If `transform` declared, it should at least contain one transform."),it(o));for(var i=0,s=a;i<s;i++){var l=n[i];t=Fk(l,t,r,a===1?null:i),i!==s-1&&(t.length=Math.max(t.length,1))}return t}function Fk(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),it(a)),K(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),it(a));var o=e.type,i=f0.get(o);i||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+o+'".'),it(a));var s=j(t,function(c){return Ik(c,i)}),l=He(i.transform({upstream:s[0],upstreamList:s,config:ce(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=j(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",Ps(c.data),"- transform result dimensions:",Ps(c.dimensions)].join(`
34
34
  `)}).join(`
35
- `);HN(u)}return j(l,function(c,f){var d="";K(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),it(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),it(d));var h=Zy(c.data);xh(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),it(d));var v,m=t[0];if(m&&f===0&&!c.dimensions){var g=m.startIndex;g&&(c.data=m.data.slice(0,g).concat(c.data)),v={seriesLayoutBy:Mr,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else v={seriesLayoutBy:Mr,sourceHeader:0,dimensions:c.dimensions};return wh(c.data,v,null)})}function xh(e){return e===pt||e===Kt}var Tl="undefined",zk=typeof Uint32Array===Tl?Array:Uint32Array,Gk=typeof Uint16Array===Tl?Array:Uint16Array,h0=typeof Int32Array===Tl?Array:Int32Array,d0=typeof Float64Array===Tl?Array:Float64Array,p0={float:d0,int:h0,ordinal:Array,number:Array,time:d0},Th;function pi(e){return e>65535?zk:Gk}function Ja(){return[1/0,-1/0]}function Hk(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function v0(e,t,r,n,a){var o=p0[r||"float"];if(a){var i=e[t],s=i&&i.length;if(s!==n){for(var l=new o(n),u=0;u<s;u++)l[u]=i[u];e[t]=l}}else e[t]=new o(n)}var Nh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ie()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&te(ae(t.getItem)&&ae(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),o=this.defaultDimValueGetter=Th[a.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];var i=Qy(a);this._dimensions=j(r,function(s){return process.env.NODE_ENV!=="production"&&i&&te(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,o=n.get(t);if(o!=null){if(a[o].type===r)return o}else o=a.length;return a[o]={type:r},n.set(t,o),this._chunks[o]=new p0[r||"float"](this._rawCount),this._rawExtent[o]=Ja(),o},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],o=this._rawExtent,i=a.ordinalOffset||0,s=n.length;i===0&&(o[t]=Ja());for(var l=o[t],u=i;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&te(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,o=a.length,i=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<o;u++){var c=a[u];v0(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<o;v++){var c=a[v],m=Th.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=m;var g=i[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,o=this._chunks,i=this._dimensions,s=i.length,l=this._rawExtent,u=j(i,function(w){return w.property}),c=0;c<s;c++){var f=i[c];l[c]||(l[c]=Ja()),v0(o,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,o,l);else for(var d=[],h=t;h<r;h++){d=a.getItem(h,d);for(var v=0;v<s;v++){var m=o[v],g=this._dimValueGetter(d,u[v],h,v);m[h]=g;var y=l[v];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var o=0;o<this._dimensions.length;o++)a.push(o)}else a=t;for(var o=0,i=a.length;o<i;o++)n.push(this.get(a[o],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,o=this.count();a<o;a++){var i=this.get(t,a);isNaN(i)||(n+=i)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(o){isNaN(o)||r.push(o)});var n=r.sort(function(o,i){return o-i}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,o=this._count-1;a<=o;){var i=(a+o)/2|0;if(r[i]<t)a=i+1;else if(r[i]>t)o=i-1;else return i}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,o=a[t],i=[];if(!o)return i;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-o[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(i[u++]=c))}return i.length=u,i},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var o=0;o<a;o++)t[o]=r[o]}else t=new n(r.buffer,0,a)}else{var n=pi(this._rawCount);t=new n(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),o=pi(n._rawCount),i=new o(a),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<a;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var m=f[c][v];h=r(m,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(i[u++]=v)}return u<a&&(n._indices=i),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=me(t),o=a.length;if(!o)return this;var i=r.count(),s=pi(r._rawCount),l=new s(i),u=0,c=a[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var m=0;if(o===1){for(var g=h[a[0]],y=0;y<n;y++){var w=g[y];(w>=f&&w<=d||isNaN(w))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],x=t[a[1]][1],y=0;y<n;y++){var w=g[y],C=_[y];(w>=f&&w<=d||isNaN(w))&&(C>=S&&C<=x||isNaN(C))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var y=0;y<i;y++){var T=r.getRawIndex(y),w=h[a[0]][T];(w>=f&&w<=d||isNaN(w))&&(l[u++]=T)}else for(var y=0;y<i;y++){for(var b=!0,T=r.getRawIndex(y),D=0;D<o;D++){var N=a[D],w=h[N][T];(w<t[N][0]||w>t[N][1])&&(b=!1)}b&&(l[u++]=r.getRawIndex(y))}return u<i&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,o=[],i=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Ja();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<i;h++)l[h]=a[r[h]][d];l[i]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var c=0;c<v.length;c++){var m=r[c],g=v[c],y=u[m],w=a[m];w&&(w[d]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,o=a[t],i=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(pi(this._rawCount))(Math.min((Math.ceil(i/l)+2)*2,i));h[s++]=u;for(var v=1;v<i-1;v+=l){for(var m=Math.min(v+l,i-1),g=Math.min(v+l*2,i),y=(g+m)/2,w=0,_=m;_<g;_++){var S=this.getRawIndex(_),x=o[S];isNaN(x)||(w+=x)}w/=g-m;var C=v,T=Math.min(v+l,i),b=v-1,D=o[u];c=-1,d=C;for(var N=-1,A=0,_=C;_<T;_++){var S=this.getRawIndex(_),x=o[S];if(isNaN(x)){A++,N<0&&(N=S);continue}f=Math.abs((b-y)*(x-D)-(b-_)*(w-D)),f>c&&(c=f,d=S)}A>0&&A<T-C&&(h[s++]=Math.min(N,d),d=Math.max(N,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(i-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var o=this.clone([t],!0),i=o._chunks,s=[],l=Math.floor(1/r),u=i[t],c=this.count(),f=o._rawExtent[t]=Ja(),d=new(pi(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var g=this.getRawIndex(v+m);s[m]=u[g]}var y=n(s),w=this.getRawIndex(Math.min(v+a(s,y)||0,c-1));u[w]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=w}return o._count=h,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,o=0,i=this.count();o<i;o++){var s=this.getRawIndex(o);switch(n){case 0:r(o);break;case 1:r(a[t[0]][s],o);break;case 2:r(a[t[0]][s],a[t[1]][s],o);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=o,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Ja();if(!r)return n;var a=this.count(),o=!this._indices,i;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var s=i[0],l=i[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return i=[s,l],this._extent[t]=i,i},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,o=0;o<a.length;o++)n.push(a[o][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,o=t&&Sr(t,function(s,l){return s[l]=!0,s},{});if(o)for(var i=0;i<a.length;i++)n._chunks[i]=o[i]?Hk(a[i]):a[i];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ce(this._extent),t._rawExtent=ce(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,o){return Ka(r[o],this._dimensions[o])}Th={arrayRows:t,objectRows:function(r,n,a,o){return Ka(r[n],this._dimensions[o])},keyedColumns:t,original:function(r,n,a,o){var i=r&&(r.value==null?r:r.value);return Ka(i instanceof Array?i[o]:i,this._dimensions[o])},typedArray:function(r,n,a,o){return r[o]}}}(),e}(),Wk=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,o;if(vi(t)){var i=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=i.get("data",!0),l=at(s)?Ar:Lt,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=oe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=oe(f.sourceHeader,d.sourceHeader),m=oe(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;a=g?[wh(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var y=t;if(n){var w=this._applyTransform(r);a=w.sourceList,o=w.upstreamSignList}else{var _=y.get("source",!0);a=[wh(_,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&te(a&&o),this._setLocalSource(a,o)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&te(a!=null||n!=null),a!=null){var o="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),g0(o))}var i,s=[],l=[];return k(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+a),g0(f)),s.push(c),l.push(u._getVersionSign())}),n?i=$k(n,s,{datasetIndex:r.componentIndex}):a!=null&&(i=[Ck(s[0])]),{sourceList:i,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&te(vi(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,o=this._storeList,i=o[a];i||(i=o[a]={});var s=i[n];if(!s){var l=this._getUpstreamSourceManagers()[0];vi(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Nh,s.initData(new r0(r,t.length),t)),i[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(vi(t)){var r=fh(t);return r?[r.getSourceManager()]:[]}else return j(jM(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(vi(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;r=o.get("seriesLayoutBy",!0),n=o.get("sourceHeader",!0),a=o.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function vi(e){return e.mainType==="series"}function g0(e){throw new Error(e)}var m0="line-height:1";function y0(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",o=e.color||"#464646",i=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Nt(n+"")+"px;color:"+Nt(r)+";font-weight:"+Nt(a+""),valueStyle:"font-size:"+Nt(i+"")+"px;color:"+Nt(o)+";font-weight:"+Nt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:i,fill:o,fontWeight:s}}}var Uk=[0,10,20,30],Yk=["",`
35
+ `);HN(u)}return j(l,function(c,f){var d="";K(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),it(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),it(d));var h=Zy(c.data);xh(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),it(d));var v,m=t[0];if(m&&f===0&&!c.dimensions){var g=m.startIndex;g&&(c.data=m.data.slice(0,g).concat(c.data)),v={seriesLayoutBy:Mr,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else v={seriesLayoutBy:Mr,sourceHeader:0,dimensions:c.dimensions};return wh(c.data,v,null)})}function xh(e){return e===pt||e===Kt}var Tl="undefined",zk=typeof Uint32Array===Tl?Array:Uint32Array,Gk=typeof Uint16Array===Tl?Array:Uint16Array,h0=typeof Int32Array===Tl?Array:Int32Array,d0=typeof Float64Array===Tl?Array:Float64Array,p0={float:d0,int:h0,ordinal:Array,number:Array,time:d0},Th;function di(e){return e>65535?zk:Gk}function Ja(){return[1/0,-1/0]}function Hk(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function v0(e,t,r,n,a){var o=p0[r||"float"];if(a){var i=e[t],s=i&&i.length;if(s!==n){for(var l=new o(n),u=0;u<s;u++)l[u]=i[u];e[t]=l}}else e[t]=new o(n)}var Nh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ie()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&te(ae(t.getItem)&&ae(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),o=this.defaultDimValueGetter=Th[a.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];var i=Qy(a);this._dimensions=j(r,function(s){return process.env.NODE_ENV!=="production"&&i&&te(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,o=n.get(t);if(o!=null){if(a[o].type===r)return o}else o=a.length;return a[o]={type:r},n.set(t,o),this._chunks[o]=new p0[r||"float"](this._rawCount),this._rawExtent[o]=Ja(),o},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],o=this._rawExtent,i=a.ordinalOffset||0,s=n.length;i===0&&(o[t]=Ja());for(var l=o[t],u=i;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&te(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,o=a.length,i=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<o;u++){var c=a[u];v0(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<o;v++){var c=a[v],m=Th.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=m;var g=i[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,o=this._chunks,i=this._dimensions,s=i.length,l=this._rawExtent,u=j(i,function(w){return w.property}),c=0;c<s;c++){var f=i[c];l[c]||(l[c]=Ja()),v0(o,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,o,l);else for(var d=[],h=t;h<r;h++){d=a.getItem(h,d);for(var v=0;v<s;v++){var m=o[v],g=this._dimValueGetter(d,u[v],h,v);m[h]=g;var y=l[v];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var o=0;o<this._dimensions.length;o++)a.push(o)}else a=t;for(var o=0,i=a.length;o<i;o++)n.push(this.get(a[o],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,o=this.count();a<o;a++){var i=this.get(t,a);isNaN(i)||(n+=i)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(o){isNaN(o)||r.push(o)});var n=r.sort(function(o,i){return o-i}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,o=this._count-1;a<=o;){var i=(a+o)/2|0;if(r[i]<t)a=i+1;else if(r[i]>t)o=i-1;else return i}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,o=a[t],i=[];if(!o)return i;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-o[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(i[u++]=c))}return i.length=u,i},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var o=0;o<a;o++)t[o]=r[o]}else t=new n(r.buffer,0,a)}else{var n=di(this._rawCount);t=new n(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),o=di(n._rawCount),i=new o(a),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<a;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var m=f[c][v];h=r(m,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(i[u++]=v)}return u<a&&(n._indices=i),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=me(t),o=a.length;if(!o)return this;var i=r.count(),s=di(r._rawCount),l=new s(i),u=0,c=a[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var m=0;if(o===1){for(var g=h[a[0]],y=0;y<n;y++){var w=g[y];(w>=f&&w<=d||isNaN(w))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],x=t[a[1]][1],y=0;y<n;y++){var w=g[y],C=_[y];(w>=f&&w<=d||isNaN(w))&&(C>=S&&C<=x||isNaN(C))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var y=0;y<i;y++){var T=r.getRawIndex(y),w=h[a[0]][T];(w>=f&&w<=d||isNaN(w))&&(l[u++]=T)}else for(var y=0;y<i;y++){for(var b=!0,T=r.getRawIndex(y),D=0;D<o;D++){var N=a[D],w=h[N][T];(w<t[N][0]||w>t[N][1])&&(b=!1)}b&&(l[u++]=r.getRawIndex(y))}return u<i&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,o=[],i=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Ja();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<i;h++)l[h]=a[r[h]][d];l[i]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var c=0;c<v.length;c++){var m=r[c],g=v[c],y=u[m],w=a[m];w&&(w[d]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,o=a[t],i=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(di(this._rawCount))(Math.min((Math.ceil(i/l)+2)*2,i));h[s++]=u;for(var v=1;v<i-1;v+=l){for(var m=Math.min(v+l,i-1),g=Math.min(v+l*2,i),y=(g+m)/2,w=0,_=m;_<g;_++){var S=this.getRawIndex(_),x=o[S];isNaN(x)||(w+=x)}w/=g-m;var C=v,T=Math.min(v+l,i),b=v-1,D=o[u];c=-1,d=C;for(var N=-1,A=0,_=C;_<T;_++){var S=this.getRawIndex(_),x=o[S];if(isNaN(x)){A++,N<0&&(N=S);continue}f=Math.abs((b-y)*(x-D)-(b-_)*(w-D)),f>c&&(c=f,d=S)}A>0&&A<T-C&&(h[s++]=Math.min(N,d),d=Math.max(N,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(i-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var o=this.clone([t],!0),i=o._chunks,s=[],l=Math.floor(1/r),u=i[t],c=this.count(),f=o._rawExtent[t]=Ja(),d=new(di(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var g=this.getRawIndex(v+m);s[m]=u[g]}var y=n(s),w=this.getRawIndex(Math.min(v+a(s,y)||0,c-1));u[w]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=w}return o._count=h,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,o=0,i=this.count();o<i;o++){var s=this.getRawIndex(o);switch(n){case 0:r(o);break;case 1:r(a[t[0]][s],o);break;case 2:r(a[t[0]][s],a[t[1]][s],o);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=o,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Ja();if(!r)return n;var a=this.count(),o=!this._indices,i;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var s=i[0],l=i[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return i=[s,l],this._extent[t]=i,i},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,o=0;o<a.length;o++)n.push(a[o][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,o=t&&Sr(t,function(s,l){return s[l]=!0,s},{});if(o)for(var i=0;i<a.length;i++)n._chunks[i]=o[i]?Hk(a[i]):a[i];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ce(this._extent),t._rawExtent=ce(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,o){return Ka(r[o],this._dimensions[o])}Th={arrayRows:t,objectRows:function(r,n,a,o){return Ka(r[n],this._dimensions[o])},keyedColumns:t,original:function(r,n,a,o){var i=r&&(r.value==null?r:r.value);return Ka(i instanceof Array?i[o]:i,this._dimensions[o])},typedArray:function(r,n,a,o){return r[o]}}}(),e}(),Wk=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,o;if(pi(t)){var i=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=i.get("data",!0),l=at(s)?Ar:Lt,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=oe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=oe(f.sourceHeader,d.sourceHeader),m=oe(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;a=g?[wh(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var y=t;if(n){var w=this._applyTransform(r);a=w.sourceList,o=w.upstreamSignList}else{var _=y.get("source",!0);a=[wh(_,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&te(a&&o),this._setLocalSource(a,o)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&te(a!=null||n!=null),a!=null){var o="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),g0(o))}var i,s=[],l=[];return k(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+a),g0(f)),s.push(c),l.push(u._getVersionSign())}),n?i=$k(n,s,{datasetIndex:r.componentIndex}):a!=null&&(i=[Ck(s[0])]),{sourceList:i,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&te(pi(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,o=this._storeList,i=o[a];i||(i=o[a]={});var s=i[n];if(!s){var l=this._getUpstreamSourceManagers()[0];pi(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Nh,s.initData(new r0(r,t.length),t)),i[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(pi(t)){var r=fh(t);return r?[r.getSourceManager()]:[]}else return j(jM(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(pi(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;r=o.get("seriesLayoutBy",!0),n=o.get("sourceHeader",!0),a=o.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function pi(e){return e.mainType==="series"}function g0(e){throw new Error(e)}var m0="line-height:1";function y0(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",o=e.color||"#464646",i=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Nt(n+"")+"px;color:"+Nt(r)+";font-weight:"+Nt(a+""),valueStyle:"font-size:"+Nt(i+"")+"px;color:"+Nt(o)+";font-weight:"+Nt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:i,fill:o,fontWeight:s}}}var Uk=[0,10,20,30],Yk=["",`
36
36
  `,`
37
37
 
38
38
  `,`
39
39
 
40
40
 
41
- `];function Kn(e,t){return t.type=e,t}function Dh(e){return e.type==="section"}function _0(e){return Dh(e)?qk:jk}function w0(e){if(Dh(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return k(e.blocks,function(a){var o=w0(a);o>=t&&(t=o+ +(n&&(!o||Dh(a)&&!a.noHeader)))}),t}return 0}function qk(e,t,r,n){var a=t.noHeader,o=Xk(w0(t)),i=[],s=t.blocks||[];te(!s||U(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Y(u,l)){var c=new Ek(u[l],null);s.sort(function(v,m){return c.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(v,m){var g=t.valueFormatter,y=_0(v)(g?H(H({},e),{valueFormatter:g}):e,v,m>0?o.html:0,n);y!=null&&i.push(y)});var f=e.renderMode==="richText"?i.join(o.richText):Ah(i.join(""),a?r:o.html);if(a)return f;var d=sh(t.header,"ordinal",e.useUTC),h=y0(n,e.renderMode).nameStyle;return e.renderMode==="richText"?S0(e,d,h)+o.richText+f:Ah('<div style="'+h+";"+m0+';">'+Nt(d)+"</div>"+f,r)}function jk(e,t,r,n){var a=e.renderMode,o=t.noName,i=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=U(S)?S:[S],j(S,function(x,C){return sh(x,U(h)?h[C]:h,u)})};if(!(o&&i)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=o?"":sh(l,"ordinal",u),h=t.valueType,v=i?[]:c(t.value,t.dataIndex),m=!s||!o,g=!s&&o,y=y0(n,a),w=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":f)+(o?"":S0(e,d,w))+(i?"":Jk(e,v,m,g,_)):Ah((s?"":f)+(o?"":Zk(d,!s,w))+(i?"":Kk(v,m,g,_)),r)}}function b0(e,t,r,n,a,o){if(e){var i=_0(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return i(s,e,0,o)}}function Xk(e){return{html:Uk[e],richText:Yk[e]}}function Ah(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+m0+';">'+e+r+"</div>"}function Zk(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Nt(e)+"</span>"}function Kk(e,t,r,n){var a=r?"10px":"20px",o=t?"float:right;margin-left:"+a:"";return e=U(e)?e:[e],'<span style="'+o+";"+n+'">'+j(e,function(i){return Nt(i)}).join("&nbsp;&nbsp;")+"</span>"}function S0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Jk(e,t,r,n,a){var o=[a],i=n?10:20;return r&&o.push({padding:[0,0,0,i],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,o)}function Qk(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Yn(n)}function C0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Mh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=mg()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,o=$M({color:r,type:t,renderMode:n,markerId:a});return X(o)?o:(process.env.NODE_ENV!=="production"&&te(a),this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};U(r)?k(r,function(o){return H(n,o)}):H(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function eE(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),o=a.mapDimensionsAll("defaultedTooltip"),i=o.length,s=t.getRawValue(r),l=U(s),u=Qk(t,r),c,f,d,h;if(i>1||l&&!i){var v=tE(s,t,r,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(i){var m=a.getDimensionInfo(o[0]);h=c=Za(a,r,o[0]),f=m.type}else h=c=l?s[0]:s;var g=cf(t),y=g&&t.name||"",w=a.getName(r),_=n?y:w;return Kn("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[Kn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ar(_),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function tE(e,t,r,n,a){var o=t.getData(),i=Sr(e,function(f,d,h){var v=o.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?k(n,function(f){c(Za(o,r,f),f)}):k(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(i?u.push(Kn("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var rn=Ne();function Nl(e,t){return e.getName(t)||e.getId(t)}var rE="__universalTransitionEnabled",Dl=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=di({count:aE,reset:oE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var o=rn(this).sourceManager=new Wk(this);o.prepareSource();var i=this.getInitialData(r,a);T0(i,this),this.dataTask.context.data=i,process.env.NODE_ENV!=="production"&&te(i,"getInitialData returned invalid data."),rn(this).dataBeforeProcessed=i,x0(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=si(this),o=a?li(r):{},i=this.subType;Te.hasClass(i)&&(i+="Series"),pe(r,n.getTheme().get(this.subType)),pe(r,this.getDefaultOption()),Is(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Ya(r,o,a)},t.prototype.mergeOption=function(r,n){r=pe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=si(this);a&&Ya(this.option,r,a);var o=rn(this).sourceManager;o.dirty(),o.prepareSource();var i=this.getInitialData(r,n);T0(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,rn(this).dataBeforeProcessed=i,x0(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(r){if(r&&!at(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Is(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=kh(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return rn(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=kh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}rn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ie(r)},t.prototype.getSourceManager=function(){return rn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return rn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return eE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ne.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var o=this.ecModel,i=hh.prototype.getColorFromPalette.call(this,r,n,a);return i||(i=o.getColorFromPalette(r,n,a)),i},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var o=this.option.selectedMode,i=this.getData(n);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Nl(i,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],o=0;o<r.length;o++)a[0]=r[o],this.isSelected(r[o],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=me(r),a=[],o=0;o<n.length;o++){var i=r[n[o]];i>=0&&a.push(i)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(n);return(a==="all"||a[Nl(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[rE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,o,i=this.option,s=i.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")i.selectedMap="all";else if(s==="multiple"){K(i.selectedMap)||(i.selectedMap={});for(var u=i.selectedMap,c=0;c<l;c++){var f=n[c],d=Nl(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=Nl(r,h);i.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(o={},o[d]=r.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var o=r.getRawDataItem(a);o&&o.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Te.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Te);Wt(Dl,l0),Wt(Dl,hh),Mg(Dl,Te);function x0(e){var t=e.name;cf(e)||(e.name=nE(e)||t)}function nE(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return k(r,function(a){var o=t.getDimensionInfo(a);o.displayName&&n.push(o.displayName)}),n.join(" ")}function aE(e){return e.model.getRawData().count()}function oE(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),iE}function iE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function T0(e,t){k(yT(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,be(sE,t))})}function sE(e,t){var r=kh(e);return r&&r.setOutputEnd((t||this).count()),t}function kh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const Er=Dl;var Eh=function(){function e(){this.group=new Pe,this.uid=ul("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();df(Eh),Ls(Eh);const Jt=Eh;function Ph(){var e=Ne();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,o=!!r.progressiveRender,i=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==i||o!==s)&&"reset"}}var N0=Ne(),lE=Ph(),Ih=function(){function e(){this.group=new Pe,this.uid=ul("viewChart"),this.renderTask=di({plan:uE,reset:cE}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,a){var o=t.getData(a&&a.dataType);if(!o){process.env.NODE_ENV!=="production"&&Ze("Unknown dataType "+a.dataType);return}A0(o,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var o=t.getData(a&&a.dataType);if(!o){process.env.NODE_ENV!=="production"&&Ze("Unknown dataType "+a.dataType);return}A0(o,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){za(this.group,t)},e.markUpdateMethod=function(t,r){N0(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function D0(e,t,r){e&&Ba(e)&&(t==="emphasis"?Xo:Zo)(e,r)}function A0(e,t,r){var n=Tn(e,t),a=t&&t.highlightKey!=null?SA(t.highlightKey):null;n!=null?k(He(n),function(o){D0(e.getItemGraphicEl(o),r,a)}):e.eachItemGraphicEl(function(o){D0(o,r,a)})}df(Ih,["dispose"]),Ls(Ih);function uE(e){return lE(e.model)}function cE(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,o=t.pipelineContext.progressiveRender,i=e.view,s=a&&N0(a).updateMethod,l=o?"incrementalPrepareRender":s&&i[s]?s:"render";return l!=="render"&&i[l](t,r,n,a),fE[l]}var fE={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Qt=Ih;var Al="\0__throttleOriginMethod",M0="\0__throttleRate",k0="\0__throttleType";function Lh(e,t,r){var n,a=0,o=0,i=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),i=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var m=c||t,g=c||r;c=null,s=n-(g?a:o)-m,clearTimeout(i),g?i=setTimeout(f,m):s>=0?f():i=setTimeout(f,-s),a=n};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.debounceNextCall=function(h){c=h},d}function Ml(e,t,r,n){var a=e[t];if(a){var o=a[Al]||a,i=a[k0],s=a[M0];if(s!==r||i!==n){if(r==null||!n)return e[t]=o;a=e[t]=Lh(o,r,n==="debounce"),a[Al]=o,a[k0]=n,a[M0]=r}return a}}function kl(e,t){var r=e[t];r&&r[Al]&&(r.clear&&r.clear(),e[t]=r[Al])}var E0=Ne(),P0={itemStyle:Wo(hy,!0),lineStyle:Wo(fy,!0)},hE={lineStyle:"stroke",itemStyle:"fill"};function I0(e,t){var r=e.visualStyleMapper||P0[t];return r||(console.warn("Unknown style type '"+t+"'."),P0.itemStyle)}function L0(e,t){var r=e.visualDrawType||hE[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var dE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),o=I0(e,n),i=o(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=L0(e,n),u=i[l],c=ae(u)?u:null,f=i.fill==="auto"||i.stroke==="auto";if(!i[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());i[l]||(i[l]=d,r.setVisual("colorFromPalette",!0)),i.fill=i.fill==="auto"||ae(i.fill)?d:i.fill,i.stroke=i.stroke==="auto"||ae(i.stroke)?d:i.stroke}if(r.setVisual("style",i),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),g=H({},i);g[l]=c(m),h.setItemVisual(v,"style",g)}}}},gi=new Qe,pE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=I0(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(i,s){var l=i.getRawDataItem(s);if(l&&l[n]){gi.option=l[n];var u=a(gi),c=i.ensureUniqueItemVisual(s,"style");H(c,u),gi.option.decal&&(i.setItemVisual(s,"decal",gi.option.decal),gi.option.decal.dirty=!0),o in u&&i.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vE={performRawSeries:!0,overallReset:function(e){var t=ie();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,o=t.get(a);o||(o={},t.set(a,o)),E0(r).scope=o}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},o=r.getData(),i=E0(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=L0(r,s);o.each(function(u){var c=o.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,i,v)}})}})}},El=Math.PI;function gE(e,t){t=t||{},he(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Pe,n=new Ee({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new We({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Ee({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(o);var i;return t.showSpinner&&(i=new Uf({shape:{startAngle:-El/2,endAngle:-El/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:El*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:El*3/2}).delay(300).start("circularInOut"),r.add(i)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var O0=function(){function e(t,r,n,a){this._stageTaskMap=ie(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,o=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,i=o?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/i):null;return{step:i,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),o=a.count(),i=n.progressiveEnabled&&r.incrementalPrepareRender&&o>=n.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ie();t.eachSeries(function(a){var o=a.getProgressive(),i=a.uid;n.set(i,{id:i,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;k(this._allHandlers,function(a){var o=t.get(a.uid)||t.set(a.uid,{}),i="";process.env.NODE_ENV!=="production"&&(i='"reset" and "overallReset" must not be both specified.'),te(!(a.reset&&a.overallReset),i),a.reset&&this._createSeriesStageTask(a,o,r,n),a.overallReset&&this._createOverallStageTask(a,o,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var o=t.renderTask,i=o.context;i.model=r,i.ecModel=n,i.api=a,o.__block=!t.incrementalPrepareRender,this._pipe(r,o)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var o=!1,i=this;k(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=i._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),i.updatePayload(d,n);var m=i.getPerformArgs(d,a.block);v.each(function(g){g.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var w=i.getPerformArgs(g,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),i.updatePayload(g,n),g.perform(w)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var o=this,i=r.seriesTaskMap,s=r.seriesTaskMap=ie(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,h=s.set(d,i&&i.get(d)||di({plan:bE,reset:SE,count:xE}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var o=this,i=r.overallTask=r.overallTask||di({reset:mE});i.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:o};var s=i.agentStubMap,l=i.agentStubMap=ie(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),te(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,a).each(v):(f=!1,k(n.getSeries(),v));function v(m){var g=m.uid,y=l.set(g,s&&s.get(g)||(d=!0,di({reset:yE,onDirty:wE})));y.context={model:m,overallProgress:f},y.agent=i,y.__block=f,o._pipe(m,y)}d&&i.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ae(t)&&(t={overallReset:t,seriesType:TE(t)}),t.uid=ul("stageHandler"),r&&(t.visualType=r),t},e}();function mE(e){e.overallReset(e.ecModel,e.api,e.payload)}function yE(e){return e.overallProgress&&_E}function _E(){this.agent.dirty(),this.getDownstream().dirty()}function wE(){this.agent&&this.agent.dirty()}function bE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function SE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=He(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?j(t,function(r,n){return R0(n)}):CE}var CE=R0(0);function R0(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var o=t.start;o<t.end;o++)a.dataEach(n,o);else a&&a.progress&&a.progress(t,n)}}function xE(e){return e.data.count()}function TE(e){Pl=null;try{e(mi,B0)}catch{}return Pl}var mi={},B0={},Pl;V0(mi,ph),V0(B0,Gy),mi.eachSeriesByType=mi.eachRawSeriesByType=function(e){Pl=e},mi.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Pl=e.subType)};function V0(e,t){for(var r in t.prototype)e[r]=ot}var $0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const NE={color:$0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$0]};var lt="#B9B8CE",F0="#100C2A",Il=function(){return{axisLine:{lineStyle:{color:lt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},z0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],G0={darkMode:!0,color:z0,backgroundColor:F0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lt}},textStyle:{color:lt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lt}},dataZoom:{borderColor:"#71708A",textStyle:{color:lt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:lt}},timeline:{lineStyle:{color:lt},label:{color:lt},controlStyle:{color:lt,borderColor:lt}},calendar:{itemStyle:{color:F0},dayLabel:{color:lt},monthLabel:{color:lt},yearLabel:{color:lt}},timeAxis:Il(),logAxis:Il(),valueAxis:Il(),categoryAxis:Il(),line:{symbol:"circle"},graph:{color:z0},gauge:{title:{color:lt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};G0.categoryAxis.splitLine.show=!1;const DE=G0;var AE=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(X(t)){var o=ur(t);r.mainType=o.main||null,r.subType=o.sub||null}else{var i=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(t,function(l,u){for(var c=!1,f=0;f<i.length;f++){var d=i[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,o=n.packedEvent,i=n.model,s=n.view;if(!i||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,i,"mainType")&&c(l,i,"subType")&&c(l,i,"index","componentIndex")&&c(l,i,"name")&&c(l,i,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,o));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Oh=["symbol","symbolSize","symbolRotate","symbolOffset"],H0=Oh.concat(["symbolKeepAspect"]),ME={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},o=!1,i=0;i<Oh.length;i++){var s=Oh[i],l=e.get(s);ae(l)?(o=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(H({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=me(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),m=0;m<u.length;m++){var g=u[m];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:o?c:null}}},kE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,o){for(var i=a.getItemModel(o),s=0;s<H0.length;s++){var l=H0[s],u=i.getShallow(l,!0);u!=null&&a.setItemVisual(o,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function EE(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function W0(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function PE(e,t){function r(n,a){var o=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(i){o.push(i.seriesIndex)}),o}k([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,o,i){a=H({},a),process.env.NODE_ENV!=="production"&&ze(a.type,n[1]),i.dispatchAction(H(a,{type:n[1],seriesIndex:r(o,a)}))})})}function Qa(e,t,r,n,a){var o=e+t;r.isSilent(o)||(process.env.NODE_ENV!=="production"&&qt("event "+o+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(i){for(var s=i.seriesIndex,l=i.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=i.getData(),d=Tn(f,a.fromActionPayload);r.trigger(o,{type:o,seriesId:i.id,name:U(d)?f.getName(d[0]):f.getName(d),selected:X(l)?l:H({},l)})}}))}function IE(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Qa("map","selectchanged",t,a,n),Qa("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Qa("map","selected",t,a,n),Qa("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Qa("map","unselected",t,a,n),Qa("pie","unselected",t,a,n))})}function yi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var LE=Math.round(Math.random()*9),OE=typeof Object.defineProperty=="function",RE=function(){function e(){this._id="__ec_inner_"+LE++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return OE?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),BE=ge.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+a,n+o),e.lineTo(r-a,n+o),e.closePath()}}),VE=ge.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+a,n),e.lineTo(r,n+o),e.lineTo(r-a,n),e.closePath()}}),$E=ge.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,o=Math.max(a,t.height),i=a/2,s=i*i/(o-i),l=n-o+i+s,u=Math.asin(s/i),c=Math.cos(u)*i,f=Math.sin(u),d=Math.cos(u),h=i*.6,v=i*.7;e.moveTo(r-c,l+s),e.arc(r,l,i,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),FE=ge.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,o=t.y,i=n/3*2;e.moveTo(a,o),e.lineTo(a+i,o+r),e.lineTo(a,o+r/4*3),e.lineTo(a-i,o+r),e.lineTo(a,o),e.closePath()}}),zE={line:en,rect:Ee,roundRect:Ee,square:Ee,circle:zf,diamond:VE,pin:$E,arrow:FE,triangle:BE},GE={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var o=Math.min(r,n);a.x=e,a.y=t,a.width=o,a.height=o},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},Ll={};k(zE,function(e,t){Ll[t]=new e});var HE=ge.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Ds(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=Ll[n];a||(n="rect",a=Ll[n]),GE[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function WE(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Pr(e,t,r,n,a,o,i){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=Zm(e.slice(8),new ye(t,r,n,a),i?"center":"cover"):e.indexOf("path://")===0?l=ol(e.slice(7),{},new ye(t,r,n,a),i?"center":"cover"):l=new HE({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=WE,o&&l.setColor(o),l}function Rh(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ol(e,t){if(e!=null)return U(e)||(e=[e,e]),[xe(e[0],t[0])||0,xe(oe(e[1],e[0]),t[1])||0]}function Jn(e){return isFinite(e)}function UE(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,o=t.y==null?0:t.y,i=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,o=o*r.height+r.y,i=i*r.height+r.y),n=Jn(n)?n:0,a=Jn(a)?a:1,o=Jn(o)?o:0,i=Jn(i)?i:0;var s=e.createLinearGradient(n,o,a,i);return s}function YE(e,t,r){var n=r.width,a=r.height,o=Math.min(n,a),i=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(i=i*n+r.x,s=s*a+r.y,l=l*o),i=Jn(i)?i:.5,s=Jn(s)?s:.5,l=l>=0&&Jn(l)?l:.5;var u=e.createRadialGradient(i,s,0,i,s,l);return u}function Bh(e,t,r){for(var n=t.type==="radial"?YE(e,t,r):UE(e,t,r),a=t.colorStops,o=0;o<a.length;o++)n.addColorStop(a[o].offset,a[o].color);return n}function qE(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Rl(e){return parseInt(e,10)}function Bl(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],i=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||Rl(s[n])||Rl(e.style[n]))-(Rl(s[o])||0)-(Rl(s[i])||0)|0}function jE(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Ce(e)?[e]:U(e)?e:null}function U0(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&jE(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=j(r,function(o){return o/a}),n/=a)}return[r,n]}var XE=new Ln(!0);function Vl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Y0(e){return typeof e=="string"&&e!=="none"}function $l(e){var t=e.fill;return t!=null&&t!=="none"}function q0(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function j0(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Vh(e,t,r){var n=kg(t.image,t.__image,r);if(Os(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*_T),o.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(o)}return a}}function ZE(e,t,r,n){var a,o=Vl(r),i=$l(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||XE,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=i&&!!d.colorStops,m=o&&!!h.colorStops,g=i&&!!d.image,y=o&&!!h.image,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0;(v||m)&&(C=t.getBoundingRect()),v&&(w=f?Bh(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=w),m&&(_=f?Bh(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=f||!t.__canvasFillPattern?Vh(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=f||!t.__canvasStrokePattern?Vh(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=w:g&&(S?e.fillStyle=S:i=!1),m?e.strokeStyle=_:y&&(x?e.strokeStyle=x:o=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var b,D;e.setLineDash&&r.lineDash&&(a=U0(t),b=a[0],D=a[1]);var N=!0;(u||f&Na)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),N=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),N&&c.rebuildPath(e,l?s:1),b&&(e.setLineDash(b),e.lineDashOffset=D),n||(r.strokeFirst?(o&&j0(e,r),i&&q0(e,r)):(i&&q0(e,r),o&&j0(e,r))),b&&e.setLineDash([])}function KE(e,t,r){var n=t.__image=kg(r.image,t.__image,t,t.onload);if(!(!n||!Os(n))){var a=r.x||0,o=r.y||0,i=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(i==null&&s!=null?i=s*l:s==null&&i!=null?s=i/l:i==null&&s==null&&(i=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,o,i,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=i-u,d=s-c;e.drawImage(n,u,c,f,d,a,o,i,s)}else e.drawImage(n,a,o,i,s)}}function JE(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||yn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,i=void 0;e.setLineDash&&r.lineDash&&(n=U0(t),o=n[0],i=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=i),r.strokeFirst?(Vl(r)&&e.strokeText(a,r.x,r.y),$l(r)&&e.fillText(a,r.x,r.y)):($l(r)&&e.fillText(a,r.x,r.y),Vl(r)&&e.strokeText(a,r.x,r.y)),o&&e.setLineDash([])}}var X0=["shadowBlur","shadowOffsetX","shadowOffsetY"],Z0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function K0(e,t,r,n,a){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){vt(e,a),o=!0;var i=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(i)?Dn.opacity:i}(n||t.blend!==r.blend)&&(o||(vt(e,a),o=!0),e.globalCompositeOperation=t.blend||Dn.blend);for(var s=0;s<X0.length;s++){var l=X0[s];(n||t[l]!==r[l])&&(o||(vt(e,a),o=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(o||(vt(e,a),o=!0),e.shadowColor=t.shadowColor||Dn.shadowColor),o}function J0(e,t,r,n,a){var o=_i(t,a.inHover),i=n?null:r&&_i(r,a.inHover)||{};if(o===i)return!1;var s=K0(e,o,i,n,a);if((n||o.fill!==i.fill)&&(s||(vt(e,a),s=!0),Y0(o.fill)&&(e.fillStyle=o.fill)),(n||o.stroke!==i.stroke)&&(s||(vt(e,a),s=!0),Y0(o.stroke)&&(e.strokeStyle=o.stroke)),(n||o.opacity!==i.opacity)&&(s||(vt(e,a),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(vt(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<Z0.length;c++){var f=Z0[c],d=f[0];(n||o[d]!==i[d])&&(s||(vt(e,a),s=!0),e[d]=o[d]||f[1])}return s}function QE(e,t,r,n,a){return K0(e,_i(t,a.inHover),r&&_i(r,a.inHover),n,a)}function Q0(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function e5(e,t,r){for(var n=!1,a=0;a<e.length;a++){var o=e[a];n=n||o.isZeroArea(),Q0(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}r.allClipped=n}function t5(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var e_=1,t_=2,r_=3,n_=4;function r5(e){var t=$l(e),r=Vl(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function vt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function _i(e,t){return t&&e.__hoverStyle||e.style}function a_(e,t){Qn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Qn(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~yt,t.__isRendered=!1;return}var o=t.__clipPaths,i=r.prevElClipPaths,s=!1,l=!1;if((!i||qE(o,i))&&(i&&i.length&&(vt(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),o&&o.length&&(vt(e,r),e.save(),e5(o,e,r),s=!0),r.prevElClipPaths=o),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof ge&&t.autoBatch&&r5(t.style);s||t5(a,u.transform)?(vt(e,r),Q0(e,t)):c||vt(e,r);var f=_i(t,r.inHover);t instanceof ge?(r.lastDrawType!==e_&&(l=!0,r.lastDrawType=e_),J0(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),ZE(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Af?(r.lastDrawType!==r_&&(l=!0,r.lastDrawType=r_),J0(e,t,u,l,r),JE(e,t,f)):t instanceof Qr?(r.lastDrawType!==t_&&(l=!0,r.lastDrawType=t_),QE(e,t,u,l,r),KE(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==n_&&(l=!0,r.lastDrawType=n_),n5(e,t,r)),c&&n&&vt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function n5(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},i,s;for(i=t.getCursor(),s=n.length;i<s;i++){var l=n[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qn(e,l,o,i===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qn(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var $h=new RE,o_=new Io(100),i_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Fl(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&$h.delete(e);var o=$h.get(e);if(o)return o;var i=he(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});i.backgroundColor==="none"&&(i.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=i.rotation,s.scaleX=s.scaleY=a?1:1/r,$h.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<i_.length;++d){var h=i[i_[d]];if(h!=null&&!U(h)&&!X(h)&&!Ce(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var m=o_.get(v);m&&(a?u.svgElement=m:u.image=m)}var g=l_(i.dashArrayX),y=a5(i.dashArrayY),w=s_(i.symbol),_=o5(g),S=u_(y),x=!a&&pa.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),b;x&&(x.width=T.width*r,x.height=T.height*r,b=x.getContext("2d")),N(),f&&o_.put(v,x||C),u.image=x,u.svgElement=C,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var A=1,M=0,I=_.length;M<I;++M)A=_g(A,_[M]);for(var P=1,M=0,I=w.length;M<I;++M)P=_g(P,w[M].length);A*=P;var L=S*_.length*w.length;if(process.env.NODE_ENV!=="production"){var E=function(B){console.warn("Calculated decal size is greater than "+B+" due to decal option settings so "+B+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+B+" to be larger to avoid incontinuity.")};A>i.maxTileWidth&&E("maxTileWidth"),L>i.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(A,i.maxTileWidth)),height:Math.max(1,Math.min(L,i.maxTileHeight))}}function N(){b&&(b.clearRect(0,0,x.width,x.height),i.backgroundColor&&(b.fillStyle=i.backgroundColor,b.fillRect(0,0,x.width,x.height)));for(var A=0,M=0;M<y.length;++M)A+=y[M];if(A<=0)return;for(var I=-S,P=0,L=0,E=0;I<T.height;){if(P%2===0){for(var B=L/2%w.length,R=0,V=0,G=0;R<T.width*2;){for(var q=0,M=0;M<g[E].length;++M)q+=g[E][M];if(q<=0)break;if(V%2===0){var J=(1-i.symbolSize)*.5,z=R+g[E][V]*J,ee=I+y[P]*J,De=g[E][V]*i.symbolSize,de=y[P]*i.symbolSize,Ge=G/2%w[B].length;rt(z,ee,De,de,w[B][Ge])}R+=g[E][V],++G,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}I+=y[P],++L,++P,P===y.length&&(P=0)}function rt(Ve,ke,re,ue,St){var Be=a?1:r,nr=Pr(St,Ve*Be,ke*Be,re*Be,ue*Be,i.color,i.symbolKeepAspect);if(a){var zt=n.painter.renderOneToVNode(nr);zt&&C.children.push(zt)}else a_(b,nr)}}}}function s_(e){if(!e||e.length===0)return[["rect"]];if(X(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!X(e[r])){t=!1;break}if(t)return s_([e]);for(var n=[],r=0;r<e.length;++r)X(e[r])?n.push([e[r]]):n.push(e[r]);return n}function l_(e){if(!e||e.length===0)return[[0,0]];if(Ce(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Ce(e[n])){r=!1;break}if(r)return l_([e]);for(var a=[],n=0;n<e.length;++n)if(Ce(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=j(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function a5(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Ce(e)){var t=Math.ceil(e);return[t,t]}var r=j(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function o5(e){return j(e,function(t){return u_(t)})}function u_(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function i5(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(i){var s=n.getItemVisual(i,"decal");if(s){var l=n.ensureUniqueItemVisual(i,"style");l.decal=Fl(s,t)}});var a=n.getVisual("decal");if(a){var o=n.getVisual("style");o.decal=Fl(a,t)}}})}var er=new Ut,zl={};function s5(e,t){process.env.NODE_ENV!=="production"&&zl[e]&&Ze("Already has an implementation of "+e+"."),zl[e]=t}function l5(e){return process.env.NODE_ENV!=="production"&&(zl[e]||Ze("Implementation of "+e+" doesn't exists.")),zl[e]}var u5=1,c5=800,f5=900,h5=1e3,d5=2e3,p5=5e3,c_=1e3,v5=1100,Fh=2e3,f_=3e3,g5=4e3,Gl=4500,m5=4600,y5=5e3,_5=6e3,h_=7e3,w5={PROCESSOR:{FILTER:h5,SERIES_FILTER:c5,STATISTIC:p5},VISUAL:{LAYOUT:c_,PROGRESSIVE_LAYOUT:v5,GLOBAL:Fh,CHART:f_,POST_CHART_LAYOUT:m5,COMPONENT:g5,BRUSH:y5,CHART_ITEM:Gl,ARIA:_5,DECAL:h_}},tt="__flagInMainProcess",gt="__pendingUpdate",zh="__needsUpdateStatus",d_=/^[a-zA-Z0-9_]+$/,Gh="__connectUpdateStatus",p_=0,b5=1,S5=2;function v_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){bt(this.id);return}return m_(this,e,t)}}function g_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return m_(this,e,t)}}function m_(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ut.prototype[t].apply(e,r)}var y_=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ut),__=y_.prototype;__.on=g_("on"),__.off=g_("off");var eo,Hh,Hl,nn,Wh,Uh,Yh,wi,bi,w_,b_,qh,S_,Wl,C_,x_,Bt,T_,N_=function(e){W(t,e);function t(r,n,a){var o=e.call(this,new AE)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},X(n)&&(n=D_[n]),o._dom=r;var i="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=ne.hasGlobalWindow?window:global;u&&(i=oe(u.__ECHARTS__DEFAULT__RENDERER__,i),s=oe(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=oe(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var c=o._zr=cg(r,{renderer:a.renderer||i,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:oe(a.useDirtyRect,l),useCoarsePointer:oe(a.useCoarsePointer,s),pointerSize:a.pointerSize});o._ssr=a.ssr,o._throttledZrFlush=Lh(Q(c.flush,c),17),n=ce(n),n&&Xy(n,!0),o._theme=n,o._locale=PM(a.locale||dy),o._coordSysMgr=new gh;var f=o._api=C_(o);function d(h,v){return h.__prio-v.__prio}return us(Yl,d),us(Xh,d),o._scheduler=new O0(o,f,Xh,Yl),o._messageCenter=new y_,o._initEvents(),o.resize=Q(o.resize,o),c.animation.on("frame",o._onframe,o),w_(c,o),b_(c,o),hc(o),o}return t.prototype._onframe=function(){if(!this._disposed){T_(this);var r=this._scheduler;if(this[gt]){var n=this[gt].silent;this[tt]=!0;try{eo(this),nn.update.call(this,null,this[gt].updateParams)}catch(l){throw this[tt]=!1,this[gt]=null,l}this._zr.flush(),this[tt]=!1,this[gt]=null,wi.call(this,n),bi.call(this,n)}else if(r.unfinished){var a=u5,o=this._model,i=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(o),r.performDataProcessorTasks(o),Uh(this,o),r.performVisualTasks(o),Wl(this,this._model,i,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(this[tt]){process.env.NODE_ENV!=="production"&&Ze("`setOption` should not be called during main process.");return}if(this._disposed){bt(this.id);return}var o,i,s;if(K(n)&&(a=n.lazyUpdate,o=n.silent,i=n.replaceMerge,s=n.transition,n=n.notMerge),this[tt]=!0,!this._model||n){var l=new dk(this._api),u=this._theme,c=this._model=new ph;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:i},Zh);var f={seriesTransition:s,optionChanged:!0};if(a)this[gt]={silent:o,updateParams:f},this[tt]=!1,this.getZr().wakeUp();else{try{eo(this),nn.update.call(this,null,f)}catch(d){throw this[gt]=null,this[tt]=!1,d}this._ssr||this._zr.flush(),this[gt]=null,this[tt]=!1,wi.call(this,o),bi.call(this,o)}},t.prototype.setTheme=function(){qt("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ne.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&ze("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(ne.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return k(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){bt(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,o=[],i=this;k(n,function(l){a.eachComponent({mainType:l},function(u){var c=i._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return k(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){bt(this.id);return}var n=r.type==="svg",a=this.group,o=Math.min,i=Math.max,s=1/0;if(A_[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();k(Ci,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ce(r)),C=_.getDom().getBoundingClientRect();l=o(C.left,l),u=o(C.top,u),c=i(C.right,c),f=i(C.bottom,f),d.push({dom:x,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,g=pa.createCanvas(),y=cg(g,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:m}),n){var w="";return k(d,function(_){var S=_.left-l,x=_.top-u;w+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ee({shape:{x:0,y:0,width:v,height:m},style:{fill:r.connectedBackgroundColor}})),k(d,function(_){var S=new Qr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Wh(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Wh(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){bt(this.id);return}var a=this._model,o,i=ff(a,r);return k(i,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?o=o||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&Fe(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Fe(l+": containPoint is not supported")},this)},this),!!o},t.prototype.getVisual=function(r,n){var a=this._model,o=ff(a,r,{defaultMainType:"series"}),i=o.seriesModel;process.env.NODE_ENV!=="production"&&(i||Fe("There is no specified series model"));var s=i.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?EE(s,l,n):W0(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;k(C5,function(n){var a=function(o){var i=r.getModel(),s=o.target,l,u=n==="globalout";if(u?l={}:s&&yi(s,function(v){var m=ve(v);if(m&&m.dataIndex!=null){var g=m.dataModel||i.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=H({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&i.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&h)&&Fe("model or view can not be found by params"),l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),k(Si,function(n,a){r._messageCenter.on(a,function(o){this.trigger(a,o)},r)}),k(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),IE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){bt(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){bt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Dg(this.getDom(),Jh,"");var n=this,a=n._api,o=n._model;k(n._componentsViews,function(i){i.dispose(o,a)}),k(n._chartsViews,function(i){i.dispose(o,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ci[n.id]},t.prototype.resize=function(r){if(this[tt]){process.env.NODE_ENV!=="production"&&Ze("`resize` should not be called during main process.");return}if(this._disposed){bt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),o=r&&r.silent;this[gt]&&(o==null&&(o=this[gt].silent),a=!0,this[gt]=null),this[tt]=!0;try{a&&eo(this),nn.update.call(this,{type:"resize",animation:H({duration:0},r&&r.animation)})}catch(i){throw this[tt]=!1,i}this[tt]=!1,wi.call(this,o),bi.call(this,o)}},t.prototype.showLoading=function(r,n){if(this._disposed){bt(this.id);return}if(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Kh[r]){process.env.NODE_ENV!=="production"&&Fe("Loading effects "+r+" not exists.");return}var a=Kh[r](this._api,n),o=this._zr;this._loadingFX=a,o.add(a)},t.prototype.hideLoading=function(){if(this._disposed){bt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=H({},r);return n.type=Si[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){bt(this.id);return}if(K(n)||(n={silent:!!n}),!!Ul[r.type]&&this._model){if(this[tt]){this._pendingActions.push(r);return}var a=n.silent;Yh.call(this,r,a);var o=n.flush;o?this._zr.flush():o!==!1&&ne.browser.weChat&&this._throttledZrFlush(),wi.call(this,a),bi.call(this,a)}},t.prototype.updateLabelLayout=function(){er.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){bt(this.id);return}var n=r.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&te(r.data&&o),o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){eo=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Hh(f,!0),Hh(f,!1),d.plan()},Hh=function(f,d){for(var h=f._model,v=f._scheduler,m=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,w=f._api,_=0;_<m.length;_++)m[_].__alive=!1;d?h.eachComponent(function(C,T){C!=="series"&&S(T)}):h.eachSeries(S);function S(C){var T=C.__requireNewView;C.__requireNewView=!1;var b="_ec_"+C.id+"_"+C.type,D=!T&&g[b];if(!D){var N=ur(C.type),A=d?Jt.getClass(N.main,N.sub):Qt.getClass(N.sub);process.env.NODE_ENV!=="production"&&te(A,N.sub+" does not exist."),D=new A,D.init(h,w),g[b]=D,m.push(D),y.add(D.group)}C.__viewId=D.__id=b,D.__alive=!0,D.__model=C,D.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(D,C,h,w)}for(var _=0;_<m.length;){var x=m[_];x.__alive?_++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,w),m.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Hl=function(f,d,h,v,m){var g=f._model;if(g.setUpdatePayload(h),!v){k([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[v+"Id"]=h[v+"Id"],y[v+"Index"]=h[v+"Index"],y[v+"Name"]=h[v+"Name"];var w={mainType:v,query:y};m&&(w.subType=m);var _=h.excludeSeriesId,S;_!=null&&(S=ie(),k(He(_),function(C){var T=lr(C,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;if(!T)if(xm(h))if(C instanceof Er)h.type===Vn&&!h.notBlur&&!C.get(["emphasis","disabled"])&&pA(C,h,f._api);else{var b=Bf(C.mainType,C.componentIndex,h.name,f._api),D=b.focusSelf,N=b.dispatchers;h.type===Vn&&D&&!h.notBlur&&Rf(C.mainType,C.componentIndex,f._api),N&&k(N,function(A){h.type===Vn?Xo(A):Zo(A)})}else Vf(h)&&C instanceof Er&&(mA(C,h,f._api),bm(C),Bt(f))},f),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;T||x(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function x(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},nn={prepareAndUpdate:function(f){eo(this),nn.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,m=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,v),y.performDataProcessorTasks(h,f),Uh(this,h),g.update(h,v),r(h),y.performVisualTasks(h,f),qh(this,h,v,f,d);var w=h.get("backgroundColor")||"transparent",_=h.get("darkMode");m.setBackgroundColor(w),_!=null&&_!=="auto"&&m.setDarkMode(_),er.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(y,w){if(y!=="series"){var _=d.getViewOfComponentModel(w);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(w,h,v,f);S&&S.update&&m.push(_)}else m.push(_)}});var g=ie();h.eachSeries(function(y){var w=d._chartsMap[y.__viewId];if(w.updateTransform){var _=w.updateTransform(y,h,v,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Wl(this,h,v,f,{},g),er.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Qt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),qh(this,d,this._api,f,{}),er.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Qt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var g=d.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(v){var m=d._chartsMap[v.__viewId];m.updateVisual(v,h,d._api,f)}),er.trigger("afterupdate",h,this._api))},updateLayout:function(f){nn.update.call(this,f)}},Wh=function(f,d,h,v){if(f._disposed){bt(f.id);return}for(var m=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,w=ff(m,h),_=0;_<g.length;_++){var S=g[_];if(S[d]&&(y=S[d](m,w,v))!=null)return y}process.env.NODE_ENV!=="production"&&Fe("No coordinate system that supports "+d+" found by the given finder.")},Uh=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},Yh=function(f,d){var h=this,v=this.getModel(),m=f.type,g=f.escapeConnect,y=Ul[m],w=y.actionInfo,_=(w.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&ur(_[0]);this[tt]=!0;var C=[f],T=!1;f.batch&&(T=!0,C=j(f.batch,function(P){return P=he(H({},P),f),P.batch=null,P}));var b=[],D,N=Vf(f),A=xm(f);if(A&&wm(this._api),k(C,function(P){if(D=y.action(P,h._model,h._api),D=D||H({},P),D.type=w.event||D.type,b.push(D),A){var L=hf(f),E=L.queryOptionMap,B=L.mainTypeSpecified,R=B?E.keys()[0]:"series";Hl(h,S,P,R),Bt(h)}else N?(Hl(h,S,P,"series"),Bt(h)):x&&Hl(h,S,P,x.main,x.sub)}),S!=="none"&&!A&&!N&&!x)try{this[gt]?(eo(this),nn.update.call(this,f),this[gt]=null):nn[S].call(this,f)}catch(P){throw this[tt]=!1,P}if(T?D={type:w.event||m,escapeConnect:g,batch:b}:D=b[0],this[tt]=!1,!d){var M=this._messageCenter;if(M.trigger(D.type,D),N){var I={type:"selectchanged",escapeConnect:g,selected:yA(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};M.trigger(I.type,I)}}},wi=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Yh.call(this,h,f)}},bi=function(f){!f&&this.trigger("updated")},w_=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[gt]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},b_=function(f,d){f.on("mouseover",function(h){var v=h.target,m=yi(v,Ba);m&&(vA(m,h,d._api),Bt(d))}).on("mouseout",function(h){var v=h.target,m=yi(v,Ba);m&&(gA(m,h,d._api),Bt(d))}).on("click",function(h){var v=h.target,m=yi(v,function(w){return ve(w).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",y=ve(m);d._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(w,_){var S=_.get("zlevel")||0,x=_.get("z")||0,C=_.getZLevelKey();v=v||!!C,(w==="series"?h:d).push({zlevel:S,z:x,idx:_.componentIndex,type:w,key:C})}),v){var m=d.concat(h),g,y;us(m,function(w,_){return w.zlevel===_.zlevel?w.z-_.z:w.zlevel-_.zlevel}),k(m,function(w){var _=f.getComponent(w.type,w.idx),S=w.zlevel,x=w.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}qh=function(f,d,h,v,m){n(d),S_(f,d,h,v,m),k(f._chartsViews,function(g){g.__alive=!1}),Wl(f,d,h,v,m),k(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},S_=function(f,d,h,v,m,g){k(g||f._componentsViews,function(y){var w=y.__model;u(w,y),y.render(w,d,h,v),s(w,y),c(w,y)})},Wl=function(f,d,h,v,m,g){var y=f._scheduler;m=H(m||{},{updatedSeries:d.getSeries()}),er.trigger("series:beforeupdate",d,h,m);var w=!1;d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,v),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(w=!0),S.group.silent=!!_.get("silent"),i(_,S),bm(_)}),y.unfinished=w||y.unfinished,er.trigger("series:layoutlabels",d,h,m),er.trigger("series:transition",d,h,m),d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];s(_,S),c(_,S)}),o(f,d),er.trigger("series:afterupdate",d,h,m)},Bt=function(f){f[zh]=!0,f.getZr().wakeUp()},T_=function(f){f[zh]&&(f.getZr().storage.traverse(function(d){ei(d)||a(d)}),f[zh]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Gs&&f.states.emphasis?d.push("emphasis"):f.hoverState===zs&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr,v=h.storage,m=0;v.traverse(function(g){g.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!ne.node&&!ne.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function i(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var w=f.childrenRef(),_=0;_<w.length;_++)v=Math.max(l(w[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(m&&(m.z=d,m.zlevel=h,isFinite(v)&&(m.z2=v+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!ei(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),m=h.get("duration"),g=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ei(y))return;if(y instanceof ge&&CA(y),y.__dirty){var w=y.prevStates;w&&y.useStates(w)}if(v){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}C_=function(f){return new(function(d){W(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){Xo(v,m),Bt(f)},h.prototype.leaveEmphasis=function(v,m){Zo(v,m),Bt(f)},h.prototype.enterBlur=function(v){gm(v),Bt(f)},h.prototype.leaveBlur=function(v){Lf(v),Bt(f)},h.prototype.enterSelect=function(v){mm(v),Bt(f)},h.prototype.leaveSelect=function(v){ym(v),Bt(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(Gy))(f)},x_=function(f){function d(h,v){for(var m=0;m<h.length;m++){var g=h[m];g[Gh]=v}}k(Si,function(h,v){f._messageCenter.on(v,function(m){if(A_[f.group]&&f[Gh]!==p_){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),y=[];k(Ci,function(w){w!==f&&w.group===f.group&&y.push(w)}),d(y,p_),k(y,function(w){w[Gh]!==b5&&w.dispatchAction(g)}),d(y,S5)}})})}}(),t}(Ut),jh=N_.prototype;jh.on=v_("on"),jh.off=v_("off"),jh.one=function(e,t,r){var n=this;qt("ECharts#one is deprecated.");function a(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];t&&t.apply&&t.apply(this,o),n.off(e,a)}this.on.call(this,e,a,r)};var C5=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function bt(e){process.env.NODE_ENV!=="production"&&Fe("Instance "+e+" has been disposed")}var Ul={},Si={},Xh=[],Zh=[],Yl=[],D_={},Kh={},Ci={},A_={},x5=+new Date-0,Jh="_echarts_instance_";function T5(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var a=N5(e);if(a)return process.env.NODE_ENV!=="production"&&Fe("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&ga(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&Fe("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new N_(e,t,r);return o.id="ec_"+x5++,Ci[o.id]=o,n&&Dg(e,Jh,o.id),x_(o),er.trigger("afterinit",o),o}function N5(e){return Ci[nD(e,Jh)]}function ql(e,t){D_[e]=t}function M_(e){fe(Zh,e)<0&&Zh.push(e)}function k_(e,t){ed(Xh,e,t,d5)}function D5(e){Qh("afterinit",e)}function A5(e){Qh("afterupdate",e)}function Qh(e,t){er.on(e,t)}function ea(e,t,r){ae(t)&&(r=t,t="");var n=K(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Si[t]&&(te(d_.test(n)&&d_.test(t)),Ul[n]||(Ul[n]={action:r,actionInfo:e}),Si[t]=n)}function M5(e,t){gh.register(e,t)}function k5(e,t){ed(Yl,e,t,c_,"layout")}function ta(e,t){ed(Yl,e,t,f_,"visual")}var E_=[];function ed(e,t,r,n,a){if((ae(t)||K(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");k(e,function(i){te(i.__raw!==r)})}if(!(fe(E_,r)>=0)){E_.push(r);var o=O0.wrapStageHandler(r,a);o.__prio=t,o.__raw=r,e.push(o)}}function P_(e,t){Kh[e]=t}function E5(e,t,r){var n=l5("registerMap");n&&n(e,t,r)}var P5=Vk;ta(Fh,dE),ta(Gl,pE),ta(Gl,vE),ta(Fh,ME),ta(Gl,kE),ta(h_,i5),M_(Xy),k_(f5,bk),P_("default",gE),ea({type:Vn,event:Vn,update:Vn},ot),ea({type:Ws,event:Ws,update:Ws},ot),ea({type:qo,event:qo,update:qo},ot),ea({type:Us,event:Us,update:Us},ot),ea({type:jo,event:jo,update:jo},ot),ql("light",NE),ql("dark",DE);function xi(e){return e==null?0:e.length||1}function I_(e){return e}var I5=function(){function e(t,r,n,a,o,i){this._old=t,this._new=r,this._oldKeyGetter=n||I_,this._newKeyGetter=a||I_,this.context=o,this._diffModeMultiple=i==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),o=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var i=0;i<t.length;i++){var s=a[i],l=n[s],u=xi(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,i)}else u===1?(n[s]=null,this._update&&this._update(l,i)):this._remove&&this._remove(i)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},o=[],i=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(r,a,i,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=n[l],c=a[l],f=xi(u),d=xi(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(i,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],o=r[a],i=xi(o);if(i>1)for(var s=0;s<i;s++)this._add&&this._add(o[s]);else i===1&&this._add&&this._add(o);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var o=this._diffModeMultiple,i=0;i<t.length;i++){var s="_ec_"+this[a](t[i],i);if(o||(n[i]=s),!!r){var l=r[s],u=xi(l);u===0?(r[s]=i,o&&n.push(s)):u===1?r[s]=[l,i]:l.push(i)}}},e}();const L_=I5;var L5=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function O5(e,t){var r={},n=r.encode={},a=ie(),o=[],i=[],s={};k(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){process.env.NODE_ENV!=="production"&&te(ch.get(v)==null);var m=h.coordDimIndex;td(n,v)[m]=d,h.isExtraCoord||(a.set(v,1),B5(h.type)&&(o[0]=d),td(s,v)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&i.push(d)}ch.each(function(g,y){var w=td(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(w[_]=h.name)})});var l=[],u={};a.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=j(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(o=c.slice());var f=n.tooltip;return f&&f.length?i=f.slice():i.length||(i=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=i,r.userOutput=new L5(s,t),r}function td(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function R5(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function B5(e){return!(e==="ordinal"||e==="time")}var jl=function(){function e(t){this.otherDims={},t!=null&&H(this,t)}return e}(),V5=Ne(),$5={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},O_=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=V_(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return oe(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Qy(this.source),n=!$_(t),a="",o=[],i=0,s=0;i<t;i++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===i)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(i);d&&(l=r?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=$5[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:o,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===r)o.isCalculationCoord||(a=o.name),n++;else{var i=this.getSourceDimension(r);i&&(a=i.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function R_(e){return e instanceof O_}function B_(e){for(var t=ie(),r=0;r<(e||[]).length;r++){var n=e[r],a=K(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function V_(e){var t=V5(e);return t.dimNameMap||(t.dimNameMap=B_(e.dimensionsDefine))}function $_(e){return e>30}var Ti=K,an=j,F5=typeof Int32Array>"u"?Array:Int32Array,z5="e\0\0",F_=-1,G5=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],H5=["_approximateExtent"],z_,Xl,Ni,to,rd,Zl,nd,Di=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;R_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var o={},i=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=X(f)?new jl({name:f}):f instanceof jl?f:new jl(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};i.push(h),o[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&te(a||d.storeDimIndex>=0),a&&(d.storeDimIndex=c)}if(this.dimensions=i,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=ie();k(i,function(g){m.set(o[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Ce(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,o;if(t instanceof Nh&&(o=t),!o){var i=this.dimensions,s=_h(t)||nt(t)?new r0(t,i.length):t;o=new Nh;var l=an(i,function(u){return{type:a._dimInfos[u].type,property:u}});o.initData(s,l,n)}this._store=o,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=O5(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,o=n.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<o;s++){var l=s-a;this._nameList[s]=r[l],i&&nd(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ar&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,i=this._idList,s=a.getSource().sourceFormat,l=s===Lt;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&UN(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=lr(d,null));var h=f.id;i[c]==null&&h!=null&&(i[c]=lr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)nd(this,c);z_(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Ti(t)?H(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ni(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return Xl(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return U(t)?a.getValues(an(t,function(o){return n._getStoreDimIndex(o)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n[r];return a==null||isNaN(a)?F_:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ae(t)&&(n=r,r=t,t=[]);var a=n||this,o=an(to(t),this._getStoreDimIndex,this);this._store.each(o,a?Q(r,a):r)},e.prototype.filterSelf=function(t,r,n){ae(t)&&(n=r,r=t,t=[]);var a=n||this,o=an(to(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?Q(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=me(t);return k(a,function(o){var i=r._getStoreDimIndex(o);n[i]=t[o]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ae(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var o=n||a||this,i=an(to(t),this._getStoreDimIndex,this),s=Zl(this);return s._store=this._store.map(i,o?Q(r,o):r),s},e.prototype.modify=function(t,r,n,a){var o=this,i=n||a||this;process.env.NODE_ENV!=="production"&&k(to(t),function(l){var u=o.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=an(to(t),this._getStoreDimIndex,this);this._store.modify(s,i?Q(r,i):r)},e.prototype.downSample=function(t,r,n,a){var o=Zl(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),o},e.prototype.lttbDownSample=function(t,r){var n=Zl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Qe(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new L_(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xl(t,n)},function(n){return Xl(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Ti(t)?H(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var o=a[r];return o==null&&(o=this.getVisual(r),U(o)?o=o.slice():Ti(o)&&(o=H({},o)),a[r]=o),o},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Ti(r)?H(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ti(t)?H(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?H(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;oA(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){k(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:an(this.dimensions,this._getDimInfo,this),this.hostModel)),rd(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ae(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(fc(arguments)))})},e.internalField=function(){z_=function(t){var r=t._invertedIndicesMap;k(r,function(n,a){var o=t._dimInfos[a],i=o.ordinalMeta,s=t._store;if(i){n=r[a]=new F5(i.categories.length);for(var l=0;l<n.length;l++)n[l]=F_;for(var l=0;l<s.count();l++)n[s.get(o.storeDimIndex,l)]=l}})},Ni=function(t,r,n){return lr(t._getCategory(r,n),null)},Xl=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ni(t,t._idDimIdx,r)),n==null&&(n=z5+r),n},to=function(t){return U(t)||(t=t!=null?[t]:[]),t},Zl=function(t){var r=new e(t._schema?t._schema:an(t.dimensions,t._getDimInfo,t),t.hostModel);return rd(r,t),r},rd=function(t,r){k(G5.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,k(H5,function(n){t[n]=ce(r[n])}),t._calculationInfo=H({},r._calculationInfo)},nd=function(t,r){var n=t._nameList,a=t._idList,o=t._nameDimIdx,i=t._idDimIdx,s=n[r],l=a[r];if(s==null&&o!=null&&(n[r]=s=Ni(t,o,r)),l==null&&i!=null&&(a[r]=l=Ni(t,i,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}();function G_(e,t){_h(e)||(e=bh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=ie(),o=[],i=U5(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$_(i),l=n===e.dimensionsDefine,u=l?V_(e):B_(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,i));for(var f=ie(c),d=new h0(i),h=0;h<d.length;h++)d[h]=-1;function v(D){var N=d[D];if(N<0){var A=n[D],M=K(A)?A:{name:A},I=new jl,P=M.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),M.type!=null&&(I.type=M.type),M.displayName!=null&&(I.displayName=M.displayName);var L=o.length;return d[D]=L,I.storeDimIndex=D,o.push(I),I}return o[N]}if(!s)for(var h=0;h<i;h++)v(h);f.each(function(D,N){var A=He(D).slice();if(A.length===1&&!X(A[0])&&A[0]<0){f.set(N,!1);return}var M=f.set(N,[]);k(A,function(I,P){var L=X(I)?u.get(I):I;L!=null&&L<i&&(M[P]=L,g(v(L),N,P))})});var m=0;k(r,function(D){var N,A,M,I;if(X(D))N=D,I={};else{I=D,N=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=H({},I),I.ordinalMeta=P,A=I.dimsDef,M=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var L=f.get(N);if(L!==!1){if(L=He(L),!L.length)for(var E=0;E<(A&&A.length||1);E++){for(;m<i&&v(m).coordDim!=null;)m++;m<i&&L.push(m++)}k(L,function(B,R){var V=v(B);if(l&&I.type!=null&&(V.type=I.type),g(he(V,I),N,R),V.name==null&&A){var G=A[R];!K(G)&&(G={name:G}),V.name=V.displayName=G.name,V.defaultTooltip=G.defaultTooltip}M&&he(V.otherDims,M)})}});function g(D,N,A){ch.get(N)!=null?D.otherDims[N]=A:(D.coordDim=N,D.coordDimIndex=A,a.set(N,!0))}var y=t.generateCoord,w=t.generateCoordCount,_=w!=null;w=y?w||1:0;var S=y||"value";function x(D){D.name==null&&(D.name=D.coordDim)}if(s)k(o,function(D){x(D)}),o.sort(function(D,N){return D.storeDimIndex-N.storeDimIndex});else for(var C=0;C<i;C++){var T=v(C),b=T.coordDim;b==null&&(T.coordDim=Y5(S,a,_),T.coordDimIndex=0,(!y||w<=0)&&(T.isExtraCoord=!0),w--),x(T),T.type==null&&(Ly(e,C)===qe.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return W5(o),new O_({source:e,dimensions:o,fullDimensionCount:i,dimensionOmitted:s})}function W5(e){for(var t=ie(),r=0;r<e.length;r++){var n=e[r],a=n.name,o=t.get(a)||0;o>0&&(n.name=a+(o-1)),o++,t.set(a,o)}}function U5(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return k(t,function(o){var i;K(o)&&(i=o.dimsDef)&&(a=Math.max(a,i.length))}),a}function Y5(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var q5=function(){function e(t){this.coordSysDims=[],this.axisMap=ie(),this.categoryAxisMap=ie(),this.coordSysName=t}return e}();function j5(e){var t=e.get("coordinateSystem"),r=new q5(t),n=X5[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var X5={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",ft).models[0],o=e.getReferringComponents("yAxis",ft).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+Wr(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Wr(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",o),ro(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ro(o)&&(n.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",ft).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",a),ro(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",ft).models[0],o=a.findAxisModel("radiusAxis"),i=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!i)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",i),ro(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),ro(i)&&(n.set("angle",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,o=a.getComponent("parallel",e.get("parallelIndex")),i=t.coordSysDims=o.dimensions.slice();k(o.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=i[l];r.set(c,u),ro(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ro(e){return e.get("type")==="category"}function Z5(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,o,i,s;K5(t)?o=t:(i=t.schema,o=i.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(k(o,function(w,_){X(w)&&(o[_]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!u&&w.ordinalMeta&&(u=w),!c&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(c=w))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,m=0;k(o,function(w){w.coordDim===h&&m++});var g={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};i?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),i.appendCalculationDimension(g),i.appendCalculationDimension(y)):(o.push(g),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function K5(e){return!R_(e.schema)}function ra(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function H_(e,t){return ra(e,t)?e.getCalculationInfo("stackResultDimension"):t}function J5(e,t){var r=e.get("coordinateSystem"),n=gh.get(r),a;return t&&t.coordSysDims&&(a=j(t.coordSysDims,function(o){var i={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");i.type=R5(l)}return i})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Q5(e,t,r){var n,a;return r&&k(e,function(o,i){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=i),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function Kl(e,t,r){r=r||{};var n=t.getSourceManager(),a,o=!1;e?(o=!0,a=bh(e)):(a=n.getSource(),o=a.sourceFormat===Lt);var i=j5(t),s=J5(t,i),l=r.useEncodeDefaulter,u=ae(l)?l:l?be(YM,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=G_(a,c),d=Q5(f.dimensions,r.createInvertedIndices,i),h=o?null:n.getSharedDataStore(f),v=Z5(t,{schema:f,store:h}),m=new Di(f,t);m.setCalculationInfo(v);var g=d!=null&&eP(a)?function(y,w,_,S){return S===d?_:this.defaultDimValueGetter(y,w,_,S)}:null;return m.hasItemOption=!1,m.initData(o?a:h,null,g),m}function eP(e){if(e.sourceFormat===Lt){var t=tP(e.data||[]);return!U(zo(t))}}function tP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var vr=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Ls(vr);var rP=0,ad=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++rP}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&j(n,nP);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!X(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ie(this.categories))},e}();function nP(e){return K(e)&&e.value!=null?e.value:e+""}function aP(e){var t=Math.pow(10,Ms(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function od(e){return e.type==="interval"||e.type==="log"}function oP(e,t,r,n){var a={},o=e[1]-e[0],i=a.interval=vg(o/t,!0);r!=null&&i<r&&(i=a.interval=r),n!=null&&i>n&&(i=a.interval=n);var s=a.intervalPrecision=W_(i),l=a.niceTickExtent=[Oe(Math.ceil(e[0]/i)*i,s),Oe(Math.floor(e[1]/i)*i,s)];return iP(l,e),a}function id(e){var t=Math.pow(10,Ms(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Oe(r*t)}function W_(e){return sr(e)+2}function U_(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function iP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),U_(e,0,t),U_(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Jl(e,t){return e>=t[0]&&e<=t[1]}function Ql(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function eu(e,t){return e*(t[1]-t[0])+t[0]}var Y_=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new ad({})),U(a)&&(a=new ad({categories:j(a,function(o){return K(o)?o.value:o})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:X(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Jl(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ql(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(eu(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],i=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);i<l;++i){var u=n[i];a[i]=u,o[u]=i}for(var c=0;i<s;++i){for(;o[c]!=null;)c++;a.push(c),o[c]=i}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(vr);vr.registerClass(Y_);const q_=Y_;var na=Oe,j_=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Jl(r,this._extent)},t.prototype.normalize=function(r){return Ql(r,this._extent)},t.prototype.scale=function(r){return eu(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=W_(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,o=this._niceExtent,i=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<o[0]&&(r?s.push({value:na(o[0]-n,i)}):s.push({value:a[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=na(u+n,i),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:o[1];return a[1]>c&&(r?s.push({value:na(c+n,i)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],o=this.getExtent(),i=1;i<n.length;i++){for(var s=n[i],l=n[i-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=na(l.value+(u+1)*d);h>o[0]&&h<o[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=sr(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=na(r.value,a,!0);return Ny(o)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var o=this._extent,i=o[1]-o[0];if(isFinite(i)){i<0&&(i=-i,o.reverse());var s=oP(o,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var i=this._interval;r.fixMin||(n[0]=na(Math.floor(n[0]/i)*i)),r.fixMax||(n[1]=na(Math.ceil(n[1]/i)*i))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(vr);vr.registerClass(j_);const Ai=j_;var X_=typeof Float32Array<"u",sP=X_?Float32Array:Array;function Ir(e){return U(e)?X_?new Float32Array(e):e:new sP(e)}var sd="__ec_stack_";function ld(e){return e.get("stack")||sd+e.seriesIndex}function ud(e){return e.dim+e.index}function lP(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),o=0;o<e.count;o++)t.push(he({bandWidth:a,axisKey:n,stackId:sd+o},e));for(var i=J_(t),s=[],o=0;o<e.count;o++){var l=i[n][sd+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Z_(e,t){var r=[];return t.eachSeriesByType(e,function(n){Q_(n)&&r.push(n)}),r}function uP(e){var t={};k(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),m=0,g=v.count();m<g;++m){var y=v.get(h,m);t[d]?t[d].push(y):t[d]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var o=null,i=1;i<a.length;++i){var s=a[i]-a[i-1];s>0&&(o=o===null?s:Math.min(o,s))}r[n]=o}}return r}function K_(e){var t=uP(e),r=[];return k(e,function(n){var a=n.coordinateSystem,o=a.getBaseAxis(),i=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(i[1]-i[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(i[1]-i[0])/h.count()}var v=xe(n.get("barWidth"),s),m=xe(n.get("barMaxWidth"),s),g=xe(n.get("barMinWidth")||(e1(n)?.5:1),s),y=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:g,barGap:y,barCategoryGap:w,axisKey:ud(o),stackId:ld(n)})}),J_(r)}function J_(e){var t={};k(e,function(n,a){var o=n.axisKey,i=n.bandWidth,s=t[o]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return k(t,function(n,a){r[a]={};var o=n.stacks,i=n.bandWidth,s=n.categoryGap;if(s==null){var l=me(o).length;s=Math.max(35-l*4,15)+"%"}var u=xe(s,i),c=xe(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),k(o,function(y){var w=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;w&&(S=Math.min(S,w)),_&&(S=Math.max(S,_)),y.width=S,f-=S+c*S,d--}else{var S=h;w&&w<S&&(S=Math.min(w,f)),_&&_>S&&(S=_),S!==h&&(y.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,m;k(o,function(y,w){y.width||(y.width=h),m=y,v+=y.width*(1+c)}),m&&(v-=m.width*c);var g=-v/2;k(o,function(y,w){r[a][w]=r[a][w]||{bandWidth:i,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function cP(e,t,r){if(e&&t){var n=e[ud(t)];return n!=null&&r!=null?n[ld(r)]:n}}function fP(e,t){var r=Z_(e,t),n=K_(r);k(r,function(a){var o=a.getData(),i=a.coordinateSystem,s=i.getBaseAxis(),l=ld(a),u=n[ud(s)][l],c=u.offset,f=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function hP(e){return{seriesType:e,plan:Ph(),reset:function(t){if(Q_(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=n.getOtherAxis(a),i=r.getDimensionIndex(r.mapDimension(o.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(o.dim),c=r.getCalculationInfo("stackResultDimension"),f=ra(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),h=dP(a,o),v=e1(t),m=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(_,S){for(var x=_.count,C=v&&Ir(x*3),T=v&&l&&Ir(x*3),b=v&&Ir(x),D=n.master.getRect(),N=d?D.width:D.height,A,M=S.getStore(),I=0;(A=_.next())!=null;){var P=M.get(f?g:i,A),L=M.get(s,A),E=h,B=void 0;f&&(B=+P-M.get(i,A));var R=void 0,V=void 0,G=void 0,q=void 0;if(d){var J=n.dataToPoint([P,L]);if(f){var z=n.dataToPoint([B,L]);E=z[0]}R=E,V=J[1]+w,G=J[0]-E,q=y,Math.abs(G)<m&&(G=(G<0?-1:1)*m)}else{var J=n.dataToPoint([L,P]);if(f){var z=n.dataToPoint([L,B]);E=z[1]}R=J[0]+w,V=E,G=y,q=J[1]-E,Math.abs(q)<m&&(q=(q<=0?-1:1)*m)}v?(C[I]=R,C[I+1]=V,C[I+2]=d?G:q,T&&(T[I]=d?D.x:R,T[I+1]=d?V:D.y,T[I+2]=N),b[A]=A):S.setItemLayout(A,{x:R,y:V,width:G,height:q}),I+=3}v&&S.setLayout({largePoints:C,largeDataIndices:b,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function Q_(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function e1(e){return e.pipelineContext&&e.pipelineContext.large}function dP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var pP=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},t1=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pl(r.value,gy[RM(Wa(this._minLevelUnit))]||gy.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var o=this.getSetting("useUTC"),i=this.getSetting("locale");return BM(r,n,a,i,o)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var o=this.getSetting("useUTC"),i=bP(this._minLevelUnit,this._approxInterval,o,n);return a=a.concat(i),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=It,n[1]+=It),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-It}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var o=this._extent,i=o[1]-o[0];this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=tu.length,l=Math.min(pP(tu,this._approxInterval,0,s),s-1);this._interval=tu[l][1],this._minLevelUnit=tu[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Ce(r)?r:+Tr(r)},t.prototype.contain=function(r){return Jl(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ql(this.parse(r),this._extent)},t.prototype.scale=function(r){return eu(r,this._extent)},t.type="time",t}(Ai),tu=[["second",nh],["minute",ah],["hour",ni],["quarter-day",ni*6],["half-day",ni*12],["day",It*1.2],["half-week",It*3.5],["week",It*7],["month",It*31],["quarter",It*95],["half-year",vy/2],["year",vy]];function vP(e,t,r,n){var a=Tr(t),o=Tr(r),i=function(v){return _y(a,v,n)===_y(o,v,n)},s=function(){return i("year")},l=function(){return s()&&i("month")},u=function(){return l()&&i("day")},c=function(){return u()&&i("hour")},f=function(){return c()&&i("minute")},d=function(){return f()&&i("second")},h=function(){return d()&&i("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function gP(e,t){return e/=It,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function mP(e){var t=30*It;return e/=t,e>6?6:e>3?3:e>2?2:1}function yP(e){return e/=ni,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function r1(e,t){return e/=t?ah:nh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function _P(e){return vg(e,!0)}function wP(e,t,r){var n=new Date(e);switch(Wa(t)){case"year":case"month":n[wy(r)](0);case"day":n[by(r)](1);case"hour":n[Sy(r)](0);case"minute":n[Cy(r)](0);case"second":n[xy(r)](0),n[Ty(r)](0)}return n.getTime()}function bP(e,t,r,n){var a=1e4,o=my,i=0;function s(N,A,M,I,P,L,E){for(var B=new Date(A),R=A,V=B[I]();R<M&&R<=n[1];)E.push({value:R}),V+=N,B[P](V),R=B.getTime();E.push({value:R,notAdd:!0})}function l(N,A,M){var I=[],P=!A.length;if(!vP(Wa(N),n[0],n[1],r)){P&&(A=[{value:wP(new Date(n[0]),N,r)},{value:n[1]}]);for(var L=0;L<A.length-1;L++){var E=A[L].value,B=A[L+1].value;if(E!==B){var R=void 0,V=void 0,G=void 0,q=!1;switch(N){case"year":R=Math.max(1,Math.round(t/It/365)),V=ih(r),G=VM(r);break;case"half-year":case"quarter":case"month":R=mP(t),V=Ua(r),G=wy(r);break;case"week":case"half-week":case"day":R=gP(t),V=vl(r),G=by(r),q=!0;break;case"half-day":case"quarter-day":case"hour":R=yP(t),V=oi(r),G=Sy(r);break;case"minute":R=r1(t,!0),V=gl(r),G=Cy(r);break;case"second":R=r1(t,!1),V=ml(r),G=xy(r);break;case"millisecond":R=_P(t),V=yl(r),G=Ty(r);break}s(R,E,B,V,G,q,I),N==="year"&&M.length>1&&L===0&&M.unshift({value:M[0].value-R})}}for(var L=0;L<I.length;L++)M.push(I[L]);return I}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&i++<a;++h){var v=Wa(o[h]);if(OM(o[h])){l(o[h],u[u.length-1]||[],c);var m=o[h+1]?Wa(o[h+1]):null;if(v!==m){if(c.length){d=f,c.sort(function(N,A){return N.value-A.value});for(var g=[],y=0;y<c.length;++y){var w=c[y].value;(y===0||c[y-1].value!==w)&&(g.push(c[y]),w>=n[0]&&w<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===o[h]))break}c=[]}}}process.env.NODE_ENV!=="production"&&i>=a&&Fe("Exceed safe limit.");for(var S=Ue(j(u,function(N){return Ue(N,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(N){return N.length>0}),x=[],C=S.length-1,h=0;h<S.length;++h)for(var T=S[h],b=0;b<T.length;++b)x.push({value:T[b].value,level:C-h});x.sort(function(N,A){return N.value-A.value});for(var D=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&D.push(x[h]);return D}vr.registerClass(t1);const SP=t1;var n1=vr.prototype,Mi=Ai.prototype,CP=Oe,xP=Math.floor,TP=Math.ceil,ru=Math.pow,tr=Math.log,cd=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ai,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,o=n.getExtent(),i=Mi.getTicks.call(this,r);return j(i,function(s){var l=s.value,u=Oe(ru(this.base,l));return u=l===a[0]&&this._fixMin?nu(u,o[0]):u,u=l===a[1]&&this._fixMax?nu(u,o[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=tr(this.base);r=tr(Math.max(0,r))/a,n=tr(Math.max(0,n))/a,Mi.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=n1.getExtent.call(this);n[0]=ru(r,n[0]),n[1]=ru(r,n[1]);var a=this._originalScale,o=a.getExtent();return this._fixMin&&(n[0]=nu(n[0],o[0])),this._fixMax&&(n[1]=nu(n[1],o[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=tr(r[0])/tr(n),r[1]=tr(r[1])/tr(n),n1.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var o=FN(a),i=r/a*o;for(i<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Oe(TP(n[0]/o)*o),Oe(xP(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Mi.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=tr(r)/tr(this.base),Jl(r,this._extent)},t.prototype.normalize=function(r){return r=tr(r)/tr(this.base),Ql(r,this._extent)},t.prototype.scale=function(r){return r=eu(r,this._extent),ru(this.base,r)},t.type="log",t}(vr),a1=cd.prototype;a1.getMinorTicks=Mi.getMinorTicks,a1.getLabel=Mi.getLabel;function nu(e,t){return CP(e,sr(t))}vr.registerClass(cd);const NP=cd;var DP=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var o=this._modelMinRaw=r.get("min",!0);ae(o)?this._modelMinNum=au(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=au(t,o));var i=this._modelMaxRaw=r.get("max",!0);if(ae(i)?this._modelMaxNum=au(t,i({min:n[0],max:n[1]})):i!=="dataMax"&&(this._modelMaxNum=au(t,i)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=U(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Xr(l[0],1),Xr(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,i=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-o[0]*i),l==null&&(l=t?a?a-1:NaN:n+o[1]*i),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=ma(s)||ma(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&te(!this.frozen),this[MP[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=AP[t];process.env.NODE_ENV!=="production"&&te(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),AP={min:"_determinedMin",max:"_determinedMax"},MP={min:"_dataMin",max:"_dataMax"};function o1(e,t,r){var n=e.rawExtentInfo;return n||(n=new DP(e,t,r),e.rawExtentInfo=n,n)}function au(e,t){return t==null?null:ma(t)?NaN:e.parse(t)}function i1(e,t){var r=e.type,n=o1(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,o=n.max,i=t.ecModel;if(i&&r==="time"){var s=Z_("bar",i),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=K_(s),c=kP(a,o,t,u);a=c.min,o=c.max}}return{extent:[a,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function kP(e,t,r,n){var a=r.axis.getExtent(),o=a[1]-a[0],i=cP(n,r.axis);if(i===void 0)return{min:e,max:t};var s=1/0;k(i,function(h){s=Math.min(h.offset,s)});var l=-1/0;k(i,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function s1(e,t){var r=t,n=i1(e,r),a=n.extent,o=r.get("splitNumber");e instanceof NP&&(e.base=r.get("logBase"));var i=e.type,s=r.get("interval"),l=i==="interval"||i==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function EP(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new q_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new SP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(vr.getClass(t)||Ai)}}function PP(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function ki(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,o){return e.scale.getFormattedLabel(a,o,n)}}(t):X(t)?function(n){return function(a){var o=e.scale.getLabel(a),i=n.replace("{value}",o??"");return i}}(t):ae(t)?function(n){return function(a,o){return r!=null&&(o=a.value-r),n(fd(e,a),o,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function fd(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function IP(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,o=r.getExtent();r instanceof q_?a=r.count():(n=r.getTicks(),a=n.length);var i=e.getLabelModel(),s=ki(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=n?n[c]:{value:o[0]+c},d=s(f,c),h=i.getTextRect(d),v=LP(h,i.get("rotate")||0);l?l.union(v):l=v}return l}}function LP(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,o=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),i=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new ye(e.x,e.y,o,i);return s}function hd(e){var t=e.get("interval");return t??"auto"}function l1(e){return e.type==="category"&&hd(e.getLabelModel())===0}function u1(e,t){var r={};return k(e.mapDimensionsAll(t),function(n){r[H_(e,n)]=!0}),me(r)}function OP(e,t,r){t&&k(u1(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var RP=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),c1=[],BP={registerPreprocessor:M_,registerProcessor:k_,registerPostInit:D5,registerPostUpdate:A5,registerUpdateLifecycle:Qh,registerAction:ea,registerCoordinateSystem:M5,registerLayout:k5,registerVisual:ta,registerTransform:P5,registerLoading:P_,registerMap:E5,registerImpl:s5,PRIORITY:w5,ComponentModel:Te,ComponentView:Jt,SeriesModel:Er,ChartView:Qt,registerComponentModel:function(e){Te.registerClass(e)},registerComponentView:function(e){Jt.registerClass(e)},registerSeriesModel:function(e){Er.registerClass(e)},registerChartView:function(e){Qt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Te.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){ON(e,t)}};function gr(e){if(U(e)){k(e,function(t){gr(t)});return}fe(c1,e)>=0||(c1.push(e),ae(e)&&(e={install:e}),e.install(BP))}var Ei=Ne();function VP(e){return e.type==="category"?FP(e):GP(e)}function $P(e,t){return e.type==="category"?zP(e,t):{ticks:j(e.scale.getTicks(),function(r){return r.value})}}function FP(e){var t=e.getLabelModel(),r=f1(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function f1(e,t){var r=h1(e,"labels"),n=hd(t),a=d1(r,n);if(a)return a;var o,i;return ae(n)?o=g1(e,n):(i=n==="auto"?HP(e):n,o=v1(e,i)),p1(r,n,{labels:o,labelCategoryInterval:i})}function zP(e,t){var r=h1(e,"ticks"),n=hd(t),a=d1(r,n);if(a)return a;var o,i;if((!t.get("show")||e.scale.isBlank())&&(o=[]),ae(n))o=g1(e,n,!0);else if(n==="auto"){var s=f1(e,e.getLabelModel());i=s.labelCategoryInterval,o=j(s.labels,function(l){return l.tickValue})}else i=n,o=v1(e,i,!0);return p1(r,n,{ticks:o,tickCategoryInterval:i})}function GP(e){var t=e.scale.getTicks(),r=ki(e);return{labels:j(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function h1(e,t){return Ei(e)[t]||(Ei(e)[t]=[])}function d1(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function p1(e,t,r){return e.push({key:t,value:r}),r}function HP(e){var t=Ei(e).autoInterval;return t??(Ei(e).autoInterval=e.calculateCategoryInterval())}function WP(e){var t=UP(e),r=ki(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,o=a.getExtent(),i=a.count();if(o[1]-o[0]<1)return 0;var s=1;i>40&&(s=Math.max(1,Math.floor(i/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=o[1];l+=s){var v=0,m=0,g=tf(r({value:l}),t.font,"center","top");v=g.width*1.3,m=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,m,7)}var y=d/c,w=h/f;isNaN(y)&&(y=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(y,w))),S=Ei(e.model),x=e.getExtent(),C=S.lastAutoInterval,T=S.lastTickCount;return C!=null&&T!=null&&Math.abs(C-_)<=1&&Math.abs(T-i)<=1&&C>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=C:(S.lastTickCount=i,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function UP(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function v1(e,t,r){var n=ki(e),a=e.scale,o=a.getExtent(),i=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=l1(e),d=i.get("showMinLabel")||f,h=i.get("showMaxLabel")||f;d&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);h&&v-l!==o[1]&&m(o[1]);function m(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function g1(e,t,r){var n=e.scale,a=ki(e),o=[];return k(n.getTicks(),function(i){var s=n.getLabel(i),l=i.value;t(i.value,s)&&o.push(r?l:{formattedLabel:a(i),rawLabel:s,tickValue:l})}),o}var m1=[0,1],YP=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return dg(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),y1(n,a.count())),Ye(t,m1,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),y1(n,a.count()));var o=Ye(t,n,m1,r);return this.scale.scale(o)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=$P(this,r),a=n.ticks,o=j(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),i=r.get("alignWithLabel");return qP(this,o,i,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=j(n,function(o){return j(o,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this);return a},e.prototype.getViewLabels=function(){return VP(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return WP(this)},e}();function y1(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function qP(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var o=e.getExtent(),i,s;if(a===1)t[0].coord=o[0],i=t[1]={coord:o[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;k(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,i={coord:t[a-1].coord+u*s},t.push(i)}var f=o[0]>o[1];d(t[0].coord,o[0])&&(n?t[0].coord=o[0]:t.shift()),n&&d(o[0],t[0].coord)&&t.unshift({coord:o[0]}),d(o[1],i.coord)&&(n?i.coord=o[1]:t.pop()),n&&d(i.coord,o[1])&&t.push({coord:o[1]});function d(h,v){return h=Oe(h),v=Oe(v),f?h>v:h<v}}const jP=YP;function _1(e,t,r,n,a,o,i,s){var l=a-e,u=o-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var m=i[0]=e+v*c,g=i[1]=t+v*f;return Math.sqrt((m-a)*(m-a)+(g-o)*(g-o))}var on=new le,Ie=new le,je=new le,sn=new le,mr=new le,ou=[],ut=new le;function XP(e,t){if(t<=180&&t>0){t=t/180*Math.PI,on.fromArray(e[0]),Ie.fromArray(e[1]),je.fromArray(e[2]),le.sub(sn,on,Ie),le.sub(mr,je,Ie);var r=sn.len(),n=mr.len();if(!(r<.001||n<.001)){sn.scale(1/r),mr.scale(1/n);var a=sn.dot(mr),o=Math.cos(t);if(o<a){var i=_1(Ie.x,Ie.y,je.x,je.y,on.x,on.y,ou,!1);ut.fromArray(ou),ut.scaleAndAdd(mr,i/Math.tan(Math.PI-t));var s=je.x!==Ie.x?(ut.x-Ie.x)/(je.x-Ie.x):(ut.y-Ie.y)/(je.y-Ie.y);if(isNaN(s))return;s<0?le.copy(ut,Ie):s>1&&le.copy(ut,je),ut.toArray(e[1])}}}}function ZP(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,on.fromArray(e[0]),Ie.fromArray(e[1]),je.fromArray(e[2]),le.sub(sn,Ie,on),le.sub(mr,je,Ie);var n=sn.len(),a=mr.len();if(!(n<.001||a<.001)){sn.scale(1/n),mr.scale(1/a);var o=sn.dot(t),i=Math.cos(r);if(o<i){var s=_1(Ie.x,Ie.y,je.x,je.y,on.x,on.y,ou,!1);ut.fromArray(ou);var l=Math.PI/2,u=Math.acos(mr.dot(t)),c=l+u-r;if(c>=l)le.copy(ut,je);else{ut.scaleAndAdd(mr,s/Math.tan(Math.PI/2-c));var f=je.x!==Ie.x?(ut.x-Ie.x)/(je.x-Ie.x):(ut.y-Ie.y)/(je.y-Ie.y);if(isNaN(f))return;f<0?le.copy(ut,Ie):f>1&&le.copy(ut,je)}ut.toArray(e[1])}}}}function dd(e,t,r,n){var a=r==="normal",o=a?e:e.ensureState(r);o.ignore=t;var i=n.get("smooth");i&&i===!0&&(i=.3),o.shape=o.shape||{},i>0&&(o.shape.smooth=i);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):o.style=s}function KP(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=gc(n[0],n[1]),o=gc(n[1],n[2]);if(!a||!o){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var i=Math.min(a,o)*r,s=mc([],n[1],n[0],i/a),l=mc([],n[1],n[2],i/o),u=mc([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function JP(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var o=t.normal,i=o.get("show"),s=a.ignore,l=0;l<Hs.length;l++){var u=Hs[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:oe(a.states[u]&&a.states[u].ignore,s);if(h||!oe(d,i)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&dd(n,!0,u,c);continue}n||(n=new Fa,e.setTextGuideLine(n),!f&&(s||!i)&&dd(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),dd(n,!1,u,c)}}if(n){he(n.style,r),n.style.fill=null;var m=o.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=m||!1,n.buildPath=KP}}function QP(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<ht.length;n++){var a=ht[n];r[a]=e.getModel([a,t])}return r}function eI(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,o=a.getComputedTransform(),i=a.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=a.style.margin||0,u=i.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new el(i,o):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:i,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return t}function tI(e,t,r,n,a,o){var i=e.length;if(i<2)return;e.sort(function(b,D){return b.rect[t]-D.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<i;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&o&&x(-c/i,0,i);var m=e[0],g=e[i-1],y,w;_(),y<0&&C(-y,.8),w<0&&C(w,.8),_(),S(y,w,1),S(w,y,-1),_(),y<0&&T(-y),w<0&&T(w);function _(){y=m.rect[t]-n,w=a-g.rect[t]-g.rect[r]}function S(b,D,N){if(b<0){var A=Math.min(D,-b);if(A>0){x(A*N,0,i);var M=A+b;M<0&&C(-M*N,1)}else C(-b*N,1)}}function x(b,D,N){b!==0&&(u=!0);for(var A=D;A<N;A++){var M=e[A],I=M.rect;I[t]+=b,M.label[t]+=b}}function C(b,D){for(var N=[],A=0,M=1;M<i;M++){var I=e[M-1].rect,P=Math.max(e[M].rect[t]-I[t]-I[r],0);N.push(P),A+=P}if(A){var L=Math.min(Math.abs(b)/A,D);if(b>0)for(var M=0;M<i-1;M++){var E=N[M]*L;x(E,0,M+1)}else for(var M=i-1;M>0;M--){var E=N[M-1]*L;x(-E,M,i)}}}function T(b){var D=b<0?-1:1;b=Math.abs(b);for(var N=Math.ceil(b/(i-1)),A=0;A<i-1;A++)if(D>0?x(N,0,A+1):x(-N,i-A-1,i),b-=N,b<=0)return}return u}function rI(e,t,r,n){return tI(e,"y","height",t,r,n)}function nI(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var r=new ye(0,0,0,0);function n(m){if(!m.ignore){var g=m.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}m.ignore=!0}for(var a=0;a<e.length;a++){var o=e[a],i=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(i&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new el(v.localRect,v.transform)),f||(f=new el(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var aI=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Kl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Pe,a=Pr("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var o=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=r.itemHeight*.8,u=Pr(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?i:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Er);const oI=aI;function Pi(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Za(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var o=[],i=0;i<r.length;i++)o.push(Za(e,t,r[i]));return o.join(" ")}}function w1(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!U(t))return t+"";for(var n=[],a=0;a<r.length;a++){var o=e.getDimensionIndex(r[a]);o>=0&&n.push(t[o])}return n.join(" ")}var pd=function(e){W(t,e);function t(r,n,a,o){var i=e.call(this)||this;return i.updateData(r,n,a,o),i}return t.prototype._createSymbol=function(r,n,a,o,i){this.removeAll();var s=Pr(r,-1,-1,2,2,null,i);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=iI,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Xo(this.childAt(0))},t.prototype.downplay=function(){Zo(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,o){this.silent=!1;var i=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=i!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Je(d,h,s,n),jf(d)}if(this._updateCommon(r,n,l,a,o),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,wt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,o,i){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,v,m,g,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,h=o.blurScope,m=o.labelStatesModels,g=o.hoverScale,y=o.cursorStyle,v=o.emphasisDisabled),!o||r.hasItemOption){var w=o&&o.itemModel?o.itemModel:r.getItemModel(n),_=w.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=w.getModel(["select","itemStyle"]).getItemStyle(),c=w.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),m=Wn(w),g=_.getShallow("scale"),y=w.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Ol(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var C=r.getItemVisual(n,"style"),T=C.fill;if(s instanceof Qr){var b=s.style;s.useStyle(H({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},C))}else s.__isEmptyBrush?s.useStyle(H({},C)):s.useStyle(C),s.style.decal=null,s.setColor(T,i&&i.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),N=this._z2;D!=null?N==null&&(this._z2=s.z2,s.z2+=D):N!=null&&(s.z2=N,this._z2=null);var A=i&&i.useNameLabel;Ga(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:T,defaultOpacity:C.opacity});function M(L){return A?r.getName(L):Pi(r,L)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),$n(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var o=this.childAt(0),i=ve(this).dataIndex,s=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var l=o.getTextContent();l&&tl(l,{style:{opacity:0}},n,{dataIndex:i,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();tl(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:i,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Rh(r.getItemVisual(n,"symbolSize"))},t}(Pe);function iI(e,t){this.parent.drift(e,t)}function vd(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function b1(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function S1(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Wn(t),cursorStyle:t.get("cursor")}}var sI=function(){function e(t){this.group=new Pe,this._SymbolCtor=t||pd}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=b1(r);var n=this.group,a=t.hostModel,o=this._data,i=this._SymbolCtor,s=r.disableAnimation,l=S1(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};o||n.removeAll(),t.diff(o).add(function(f){var d=c(f);if(vd(t,d,f,r)){var h=new i(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=o.getItemGraphicEl(d),v=c(f);if(!vd(t,v,f,r)){n.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==m)n.remove(h),h=new i(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?h.attr(y):Je(h,y,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var o=t._getSymbolPoint(a);n.setPosition(o),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=S1(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=b1(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var i=r.getItemLayout(o);if(vd(r,i,o,n)){var s=new this._SymbolCtor(r,o,this._seriesScope);s.traverse(a),s.setPosition(i),this.group.add(s),r.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){za(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function C1(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),o=lI(a,r),i=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(i),c=s==="x"||s==="radius"?1:0,f=j(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return ra(t,f[0])&&(d=!0,f[0]=h),ra(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:i,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function lI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Ce(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function x1(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var o=e.baseDataOffset,i=[];return i[o]=r.get(e.baseDim,n),i[1-o]=a,t.dataToPoint(i)}function uI(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function cI(e,t,r,n,a,o,i,s){for(var l=uI(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],g=C1(a,t,i),y=e.getLayout("points")||[],w=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,C=void 0,T=void 0;switch(S.cmd){case"=":C=S.idx*2,T=S.idx1*2;var b=y[C],D=y[C+1],N=w[T],A=w[T+1];(isNaN(b)||isNaN(D))&&(b=N,D=A),u.push(b,D),c.push(N,A),f.push(r[C],r[C+1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var M=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([t.get(I[0],M),t.get(I[1],M)]);T=M*2,u.push(P[0],P[1]),c.push(w[T],w[T+1]);var L=x1(g,a,t,M);f.push(L[0],L[1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(M));break;case"-":x=!1}x&&(h.push(S),v.push(v.length))}v.sort(function(De,de){return m[De]-m[de]});for(var E=u.length,B=Ir(E),R=Ir(E),V=Ir(E),G=Ir(E),q=[],_=0;_<v.length;_++){var J=v[_],z=_*2,ee=J*2;B[z]=u[ee],B[z+1]=u[ee+1],R[z]=c[ee],R[z+1]=c[ee+1],V[z]=f[ee],V[z+1]=f[ee+1],G[z]=d[ee],G[z+1]=d[ee+1],q[_]=h[J]}return{current:B,next:R,stackedOnCurrent:V,stackedOnNext:G,status:q}}var ln=Math.min,un=Math.max;function aa(e,t){return isNaN(e)||isNaN(t)}function gd(e,t,r,n,a,o,i,s,l){for(var u,c,f,d,h,v,m=r,g=0;g<n;g++){var y=t[m*2],w=t[m*2+1];if(m>=a||m<0)break;if(aa(y,w)){if(l){m+=o;continue}break}if(m===r)e[o>0?"moveTo":"lineTo"](y,w),f=y,d=w;else{var _=y-u,S=w-c;if(_*_+S*S<.5){m+=o;continue}if(i>0){for(var x=m+o,C=t[x*2],T=t[x*2+1];C===y&&T===w&&g<n;)g++,x+=o,m+=o,C=t[x*2],T=t[x*2+1],y=t[m*2],w=t[m*2+1],_=y-u,S=w-c;var b=g+1;if(l)for(;aa(C,T)&&b<n;)b++,x+=o,C=t[x*2],T=t[x*2+1];var D=.5,N=0,A=0,M=void 0,I=void 0;if(b>=n||aa(C,T))h=y,v=w;else{N=C-u,A=T-c;var P=y-u,L=C-y,E=w-c,B=T-w,R=void 0,V=void 0;if(s==="x"){R=Math.abs(P),V=Math.abs(L);var G=N>0?1:-1;h=y-G*R*i,v=w,M=y+G*V*i,I=w}else if(s==="y"){R=Math.abs(E),V=Math.abs(B);var q=A>0?1:-1;h=y,v=w-q*R*i,M=y,I=w+q*V*i}else R=Math.sqrt(P*P+E*E),V=Math.sqrt(L*L+B*B),D=V/(V+R),h=y-N*i*(1-D),v=w-A*i*(1-D),M=y+N*i*D,I=w+A*i*D,M=ln(M,un(C,y)),I=ln(I,un(T,w)),M=un(M,ln(C,y)),I=un(I,ln(T,w)),N=M-y,A=I-w,h=y-N*R/V,v=w-A*R/V,h=ln(h,un(u,y)),v=ln(v,un(c,w)),h=un(h,ln(u,y)),v=un(v,ln(c,w)),N=y-h,A=w-v,M=y+N*V/R,I=w+A*V/R}e.bezierCurveTo(f,d,h,v,y,w),f=M,d=I}else e.lineTo(y,w)}u=y,c=w,m+=o}return g}var T1=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),fI=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new T1},t.prototype.buildPath=function(r,n){var a=n.points,o=0,i=a.length/2;if(n.connectNulls){for(;i>0&&aa(a[i*2-2],a[i*2-1]);i--);for(;o<i&&aa(a[o*2],a[o*2+1]);o++);}for(;o<i;)o+=gd(r,a,o,i,i,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,o=a.data,i=Ln.CMD,s,l,u=n==="x",c=[],f=0;f<o.length;){var d=o[f++],h=void 0,v=void 0,m=void 0,g=void 0,y=void 0,w=void 0,_=void 0;switch(d){case i.M:s=o[f++],l=o[f++];break;case i.L:if(h=o[f++],v=o[f++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var S=u?(v-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=v;break;case i.C:h=o[f++],v=o[f++],m=o[f++],g=o[f++],y=o[f++],w=o[f++];var x=u?ds(s,h,m,y,r,c):ds(l,v,g,w,r,c);if(x>0)for(var C=0;C<x;C++){var T=c[C];if(T<=1&&T>=0){var S=u?$e(l,v,g,w,T):$e(s,h,m,y,T);return u?[r,S]:[S,r]}}s=y,l=w;break}}},t}(ge),hI=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(T1),dI=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new hI},t.prototype.buildPath=function(r,n){var a=n.points,o=n.stackedOnPoints,i=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&aa(a[s*2-2],a[s*2-1]);s--);for(;i<s&&aa(a[i*2],a[i*2+1]);i++);}for(;i<s;){var u=gd(r,a,i,s,s,1,n.smooth,l,n.connectNulls);gd(r,o,i+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),i+=u+1,r.closePath()}},t}(ge);function N1(e,t,r,n,a){var o=e.getArea(),i=o.x,s=o.y,l=o.width,u=o.height,c=r.get(["lineStyle","width"])||2;i-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),i!==Math.floor(i)&&(i=Math.floor(i),l++);var f=new Ee({shape:{x:i,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=ae(a)?function(g){a(g,f)}:null;wt(f,{shape:{width:l,height:u,x:i,y:s}},r,null,n,m)}return f}function D1(e,t,r){var n=e.getArea(),a=Oe(n.r0,1),o=Oe(n.r,1),i=new zn({shape:{cx:Oe(e.cx,1),cy:Oe(e.cy,1),r0:a,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?i.shape.endAngle=n.startAngle:i.shape.r=a,wt(i,{shape:{endAngle:n.endAngle,r:o}},r)}return i}function A1(e,t,r,n,a){if(e){if(e.type==="polar")return D1(e,t,r);if(e.type==="cartesian2d")return N1(e,t,r,n,a)}else return null;return null}function iu(e,t){return e.type===t}function M1(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function k1(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,o=0;o<e.length;){var i=e[o++],s=e[o++];isNaN(i)||(t=Math.min(i,t),n=Math.max(i,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function E1(e,t){var r=k1(e),n=r[0],a=r[1],o=k1(t),i=o[0],s=o[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function P1(e){return Ce(e)?e:e?.5:0}function pI(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Ir(n*2),o=0;o<n;o++){var i=x1(r,e,t,o);a[o*2]=i[0],a[o*2+1]=i[1]}return a}function cn(e,t,r,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,i=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],i.push(u[0],u[1]),r){case"end":l[o]=c[o],l[1-o]=u[1-o],i.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,h=[];l[o]=h[o]=d,l[1-o]=u[1-o],h[1-o]=c[1-o],i.push(l[0],l[1]),i.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],i.push(l[0],l[1])}return i.push(e[s++],e[s++]),i}function vI(e,t){var r=[],n=e.length,a,o;function i(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),m=sN(v,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){o?r.push(i(o,l,t)):a&&r.push(i(a,l,0),i(a,l,t));break}else a&&(r.push(i(a,l,0)),a=null),r.push(l),o=l}return r}function gI(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,o,i=n.length-1;i>=0;i--){var s=e.getDimensionInfo(n[i].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){o=n[i];break}}if(!o){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(a),u=j(o.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=vI(u,a==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,m=d[0].coord-v,g=d[h-1].coord+v,y=g-m;if(y<.001)return"transparent";k(d,function(_){_.offset=(_.coord-m)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var w=new qm(0,0,0,0,d,!0);return w[a]=m,w[a+"2"]=g,w}}function mI(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(a&&yI(o,t))){var i=t.mapDimension(o.dim),s={};return k(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(i,l))}}}}function yI(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),o=Math.max(1,Math.round(a/5)),i=0;i<a;i+=o)if(pd.getSymbolSize(t,i)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function _I(e,t){return isNaN(e)||isNaN(t)}function wI(e){for(var t=e.length/2;t>0&&_I(e[t*2-2],e[t*2-1]);t--);return t-1}function I1(e,t){return[e[t*2],e[t*2+1]]}function bI(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,o,i,s=0,l=-1,u=0;u<n;u++)if(i=e[u*2+a],!(isNaN(i)||isNaN(e[u*2+1-a]))){if(u===0){o=i;continue}if(o<=t&&i>=t||o>=t&&i<=t){l=u;break}s=u,o=i}return{range:[s,l],t:(t-o)/(i-o)}}function L1(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ht.length;t++)if(e.get([ht[t],"endLabel","show"]))return!0;return!1}function md(e,t,r,n){if(iu(t,"cartesian2d")){var a=n.getModel("endLabel"),o=a.get("valueAnimation"),i=n.getData(),s={lastFrameIndex:0},l=L1(n)?function(h,v){e._endLabelOnDuring(h,v,i,s,o,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=N1(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),D1(t,r,n)}function SI(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,o=n?a?"right":"left":"center",i=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||i}}}var CI=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Pe,n=new sI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var o=this,i=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=i.type==="polar",h=this._coordSys,v=this._symbolDraw,m=this._polyline,g=this._polygon,y=this._lineGroup,w=!n.ssr&&r.get("animation"),_=!c.isEmpty(),S=c.get("origin"),x=C1(i,l,S),C=_&&pI(i,l,x),T=r.get("showSymbol"),b=r.get("connectNulls"),D=T&&!d&&mI(r,l,i),N=this._data;N&&N.eachItemGraphicEl(function(de,Ge){de.__temp&&(s.remove(de),N.setItemGraphicEl(Ge,null))}),T||v.remove(),s.add(y);var A=d?!1:r.get("step"),M;i&&i.getArea&&r.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=gI(l,i,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&h.type===i.type&&A===this._step))T&&v.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),w&&this._initSymbolLabelAnimation(l,i,M),A&&(f=cn(f,i,A,b),C&&(C=cn(C,i,A,b))),m=this._newPolyline(f),_?g=this._newPolygon(f,C):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,Yn(I)),y.setClipPath(md(this,i,!0,r));else{_&&!g?g=this._newPolygon(f,C):g&&!_&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,Yn(I));var P=y.getClipPath();if(P){var L=md(this,i,!1,r);wt(P,{shape:L.shape},r)}else y.setClipPath(md(this,i,!0,r));T&&v.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),(!M1(this._stackedOnPoints,C)||!M1(this._points,f))&&(w?this._doUpdateAnimation(l,C,i,a,A,S,b):(A&&(f=cn(f,i,A,b),C&&(C=cn(C,i,A,b))),m.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var E=r.getModel("emphasis"),B=E.get("focus"),R=E.get("blurScope"),V=E.get("disabled");if(m.useStyle(he(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),js(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var G=m.getState("emphasis").style;G.lineWidth=+m.style.lineWidth+1}ve(m).seriesIndex=r.seriesIndex,$n(m,B,R,V);var q=P1(r.get("smooth")),J=r.get("smoothMonotone");if(m.setShape({smooth:q,smoothMonotone:J,connectNulls:b}),g){var z=l.getCalculationInfo("stackedOnSeries"),ee=0;g.useStyle(he(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),z&&(ee=P1(z.get("smooth"))),g.setShape({smooth:q,stackedOnSmooth:ee,smoothMonotone:J,connectNulls:b}),js(g,r,"areaStyle"),ve(g).seriesIndex=r.seriesIndex,$n(g,B,R,V)}var De=function(de){o._changePolyState(de)};l.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=De)}),this._polyline.onHoverStateChange=De,this._data=l,this._coordSys=i,this._stackedOnPoints=C,this._points=f,this._step=A,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,m),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ve(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,o){var i=r.getData(),s=Tn(i,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=i.getLayout("points"),u=i.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new pd(i,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,r,n,a,o)},t.prototype.downplay=function(r,n,a,o){var i=r.getData(),s=Tn(i,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=i.getItemGraphicEl(s);l&&(l.__temp?(i.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,r,n,a,o)},t.prototype._changePolyState=function(r){var n=this._polygon;hm(this._polyline,r),n&&hm(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new fI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new dI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var o,i,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(o=s.isHorizontal(),i=!1):n.type==="polar"&&(o=s.dim==="angle",i=!0);var u=r.hostModel,c=u.get("animationDuration");ae(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ae(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var m=h;if(m){var g=[h.x,h.y],y=void 0,w=void 0,_=void 0;if(a)if(i){var S=a,x=n.pointToCoord(g);o?(y=S.startAngle,w=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,w=S.r,_=x[0])}else{var C=a;o?(y=C.x,w=C.x+C.width,_=h.x):(y=C.y+C.height,w=C.y,_=h.y)}var T=w===y?0:(_-y)/(w-y);l&&(T=1-T);var b=ae(f)?f(v):c*T+d,D=m.getSymbolPath(),N=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:b}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var o=r.getModel("endLabel");if(L1(r)){var i=r.getData(),s=this._polyline,l=i.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new We({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=wI(l);c>=0&&(Ga(s,Wn(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?w1(i,h):Pi(i,f)},enableTextSetter:!0},SI(o,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,o,i,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),w=g.inverse,_=n.shape,S=w?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?m:0)*(w?-1:1),C=(y?0:-m)*(w?-1:1),T=y?"x":"y",b=bI(f,S,T),D=b.range,N=D[1]-D[0],A=void 0;if(N>=1){if(N>1&&!h){var M=I1(f,D[0]);u.attr({x:M[0]+x,y:M[1]+C}),i&&(A=d.getRawValue(D[0]))}else{var M=c.getPointOn(S,T);M&&u.attr({x:M[0]+x,y:M[1]+C});var I=d.getRawValue(D[0]),P=d.getRawValue(D[1]);i&&(A=oD(a,v,I,P,b.t))}o.lastFrameIndex=D[0]}else{var L=r===1||o.lastFrameIndex>0?D[0]:0,M=I1(f,L);i&&(A=d.getRawValue(L)),u.attr({x:M[0]+x,y:M[1]+C})}if(i){var E=ll(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(r,n,a,o,i,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=cI(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,g=d.stackedOnNext;if(i&&(h=cn(d.current,a,i,l),v=cn(d.stackedOnCurrent,a,i,l),m=cn(d.next,a,i,l),g=cn(d.stackedOnNext,a,i,l)),E1(h,m)>3e3||c&&E1(v,g)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:m}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),Je(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Je(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var w=[],_=d.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var C=r.getItemGraphicEl(_[S].idx1);C&&w.push({el:C,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,b=0;b<w.length;b++){var D=w[b].el,N=w[b].ptIdx*2;D.x=T[N],D.y=T[N+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(o,i){o.__temp&&(n.remove(o),a.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Qt);const xI=CI;function TI(e,t){return{seriesType:e,plan:Ph(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,o=r.pipelineContext,i=t||o.large;if(a){var s=j(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ra(n,s[0])&&(s[0]=u),ra(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var m=h.end-h.start,g=i&&Ir(m*l),y=[],w=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var C=c.get(f,_);x=a.dataToPoint(C,null,w)}else y[0]=c.get(f,_),y[1]=c.get(d,_),x=a.dataToPoint(y,null,w);i?(g[S++]=x[0],g[S++]=x[1]):v.setItemLayout(_,x.slice())}i&&v.setLayout("points",g)}}}}}}var NI={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var a=e[n],o=Math.abs(a);o>t&&(t=o,r=a)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},DI=function(e){return Math.round(e.length/2)};function O1(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),o=t.get("sampling"),i=t.coordinateSystem,s=a.count();if(s>10&&i.type==="cartesian2d"&&o){var l=i.getBaseAxis(),u=i.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){o==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;X(o)?v=NI[o]:ae(o)&&(v=o),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,DI))}}}}}function AI(e){e.registerChartView(xI),e.registerSeriesModel(oI),e.registerLayout(TI("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,O1("line"))}var yd=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Kl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var o=this.coordinateSystem;if(o&&o.clampData){var i=o.clampData(r),s=o.dataToPoint(i);if(a)k(o.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),g=i[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!m&&(g+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var w=void 0,_=void 0,S=1,x=0;x<v.length;x++){var C=v[x].coord,T=x===v.length-1?v[x-1].tickValue+S:v[x].tickValue;if(T===g){_=C;break}else if(T<g)w=C;else if(w!=null&&T>g){_=(C+w)/2;break}x===1&&(S=T-v[0].tickValue)}_==null&&(w?w&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Er);Er.registerClass(yd);var MI=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Kl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=cl(yd.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(yd);const kI=MI;var EI=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),R1=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new EI},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-i)*.5,u=i+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var m=Math.cos(c),g=Math.sin(c),y=Math.cos(f),w=Math.sin(f);v?(r.moveTo(m*i+a,g*i+o),r.arc(m*u+a,g*u+o,l,-Math.PI+c,c,!d)):r.moveTo(m*s+a,g*s+o),r.arc(a,o,s,c,f,!d),r.arc(y*u+a,w*u+o,l,f-Math.PI*2,f-Math.PI,!d),i!==0&&r.arc(a,o,i,f,c,d)},t}(ge);function PI(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,o){var i=a.position;if(!i||i instanceof Array)return Ds(n,a,o);var s=e(i),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,m=u.startAngle,g=u.endAngle,y=(m+g)/2,w=r?Math.abs(d-h)/2:0,_=Math.cos,S=Math.sin,x=c+d*_(m),C=f+d*S(m),T="left",b="top";switch(s){case"startArc":x=c+(h-l)*_(y),C=f+(h-l)*S(y),T="center",b="top";break;case"insideStartArc":x=c+(h+l)*_(y),C=f+(h+l)*S(y),T="center",b="bottom";break;case"startAngle":x=c+v*_(m)+su(m,l+w,!1),C=f+v*S(m)+lu(m,l+w,!1),T="right",b="middle";break;case"insideStartAngle":x=c+v*_(m)+su(m,-l+w,!1),C=f+v*S(m)+lu(m,-l+w,!1),T="left",b="middle";break;case"middle":x=c+v*_(y),C=f+v*S(y),T="center",b="middle";break;case"endArc":x=c+(d+l)*_(y),C=f+(d+l)*S(y),T="center",b="bottom";break;case"insideEndArc":x=c+(d-l)*_(y),C=f+(d-l)*S(y),T="center",b="top";break;case"endAngle":x=c+v*_(g)+su(g,l+w,!0),C=f+v*S(g)+lu(g,l+w,!0),T="left",b="middle";break;case"insideEndAngle":x=c+v*_(g)+su(g,-l+w,!0),C=f+v*S(g)+lu(g,-l+w,!0),T="right",b="middle";break;default:return Ds(n,a,o)}return n=n||{},n.x=x,n.y=C,n.align=T,n.verticalAlign=b,n}}function II(e,t,r,n){if(Ce(n)){e.setTextConfig({rotation:n});return}else if(U(t)){e.setTextConfig({rotation:0});return}var a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,i=a.clockwise?a.endAngle:a.startAngle,s=(o+i)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=i;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function su(e,t,r){return t*Math.sin(e)*(r?-1:1)}function lu(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Ii(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:j(n,function(o){return Xr(o,a)})}}var _d=Math.max,wd=Math.min;function LI(e,t){var r=e.getArea&&e.getArea();if(iu(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var OI=function(e){W(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,o){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var i=r.get("coordinateSystem");i==="cartesian2d"||i==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,o)):process.env.NODE_ENV!=="production"&&Fe("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){za(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,o){var i=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=RI(r,u);h&&this._enableRealtimeSort(h,s,a);var v=r.get("clip",!0)||h,m=LI(u,s);i.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),w=r.getModel("backgroundStyle"),_=w.get("borderRadius")||0,S=[],x=this._backgroundEls,C=o&&o.isInitSort,T=o&&o.type==="changeAxisOrder";function b(A){var M=uu[u.type](s,A),I=HI(u,f,M);return I.useStyle(w.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[A]=I,I}s.diff(l).add(function(A){var M=s.getItemModel(A),I=uu[u.type](s,A,M);if(y&&b(A),!(!s.hasValue(A)||!z1[u.type](I))){var P=!1;v&&(P=B1[u.type](m,I));var L=V1[u.type](r,s,A,I,f,d,c.model,!1,g);h&&(L.forceLabelAnimation=!0),H1(L,s,A,M,I,r,f,u.type==="polar"),C?L.attr({shape:I}):h?$1(h,d,L,I,A,f,!1,!1):wt(L,{shape:I},r,A),s.setItemGraphicEl(A,L),i.add(L),L.ignore=P}}).update(function(A,M){var I=s.getItemModel(A),P=uu[u.type](s,A,I);if(y){var L=void 0;x.length===0?L=b(M):(L=x[M],L.useStyle(w.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[A]=L);var E=uu[u.type](s,A),B=q1(f,E,u);Je(L,{shape:B},d,A)}var R=l.getItemGraphicEl(M);if(!s.hasValue(A)||!z1[u.type](P)){i.remove(R);return}var V=!1;if(v&&(V=B1[u.type](m,P),V&&i.remove(R)),R?jf(R):R=V1[u.type](r,s,A,P,f,d,c.model,!!R,g),h&&(R.forceLabelAnimation=!0),T){var G=R.getTextContent();if(G){var q=ll(G);q.prevValue!=null&&(q.prevValue=q.value)}}else H1(R,s,A,I,P,r,f,u.type==="polar");C?R.attr({shape:P}):h?$1(h,d,R,P,A,f,!0,T):Je(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=V,i.add(R)}).remove(function(A){var M=l.getItemGraphicEl(A);M&&rl(M,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Pe);D.removeAll();for(var N=0;N<S.length;++N)D.add(S[N]);i.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),U1(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),U1(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&A1(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var o=this;if(n.count()){var i=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(i.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(n,s,i,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var o=[];return r.each(r.mapDimension(n.dim),function(i,s){var l=a(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:i})}),o.sort(function(i,s){return s.mappedValue-i.mappedValue}),{ordinalNumbers:j(o,function(i){return i.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var o=a.scale,i=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(i,o.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,o=a.getExtent(),i=Math.max(0,o[0]),s=Math.min(o[1],a.getOrdinalMeta().categories.length-1);i<=s;++i)if(r.ordinalNumbers[i]!==a.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,o){if(this._isOrderChangedWithinSameData(r,n,a)){var i=this._dataSort(r,a,n);this._isOrderDifferentInView(i,a)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(r,n,a){var o=n.baseAxis,i=this._dataSort(r,o,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:i})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(o){rl(o,r,ve(o).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Qt),B1={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,o=e.y+e.height,i=_d(t.x,e.x),s=wd(t.x+t.width,a),l=_d(t.y,e.y),u=wd(t.y+t.height,o),c=s<i,f=u<l;return t.x=c&&i>a?s:i,t.y=f&&l>o?u:l,t.width=c?0:s-i,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=wd(t.r,e.r),o=_d(t.r0,e.r0);t.r=a,t.r0=o;var i=a-o<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return i}},V1={cartesian2d:function(e,t,r,n,a,o,i,s,l){var u=new Ee({shape:H({},n),z2:1});if(u.__dataIndex=r,u.name="item",o){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,o,i,s,l){var u=!a&&l?R1:zn,c=new u({shape:n,z2:1});c.name="item";var f=G1(a);if(c.calculateTextPosition=PI(f,{isRoundCap:u===R1}),o){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?Je:wt)(c,{shape:v},o)}return c}};function RI(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&Fe("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Fe("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function $1(e,t,r,n,a,o,i,s){var l,u;o?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(i?Je:wt)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(i?Je:wt)(r,{shape:u},c,a)}function F1(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var BI=["x","y","width","height"],VI=["cx","cy","r","startAngle","endAngle"],z1={cartesian2d:function(e){return!F1(e,BI)},polar:function(e){return!F1(e,VI)}},uu={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?FI(r,n):0,o=n.width>0?1:-1,i=n.height>0?1:-1;return{x:n.x+o*a/2,y:n.y+i*a/2,width:n.width-o*a,height:n.height-i*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function $I(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function G1(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function H1(e,t,r,n,a,o,i,s){var l=t.getItemVisual(r,"style");if(s){if(!o.get("roundCap")){var c=e.shape,f=Ii(n.getModel("itemStyle"),c,!0);H(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?i?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":i?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Wn(n);Ga(e,v,{labelFetcher:o,labelDataIndex:r,defaultText:Pi(o.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,II(e,g==="outside"?h:g,G1(i),n.get(["label","rotate"]))}_M(m,v,o.getRawValue(r),function(w){return w1(t,w)});var y=n.getModel(["emphasis"]);$n(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),js(e,n),$I(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function FI(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,o)}var zI=function(){function e(){}return e}(),W1=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new zI},t.prototype.buildPath=function(r,n){for(var a=n.points,o=this.baseDimIdx,i=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[o]=u,l[i]=a[c+2],s[o]=a[c+o],s[i]=a[c+i],r.rect(s[0],s[1],l[0],l[1])},t}(ge);function U1(e,t,r,n){var a=e.getData(),o=a.getLayout("valueAxisHorizontal")?1:0,i=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new W1({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=i,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new W1({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=i,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),ve(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",Y1),f.on("mousemove",Y1)),r&&r.push(f)}var Y1=Lh(function(e){var t=this,r=GI(t,e.offsetX,e.offsetY);ve(t).dataIndex=r>=0?r:null},30,!1);function GI(e,t,r){for(var n=e.baseDimIdx,a=1-n,o=e.shape.points,i=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=o.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[a]=o[d+2],s[n]=o[d+n],s[a]=o[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return i[c]}return-1}function q1(e,t,r){if(iu(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),o=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:o.r0,r:e?a.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function HI(e,t,r){var n=e.type==="polar"?zn:Ee;return new n({shape:q1(t,r,e),silent:!0,z2:0})}const WI=OI;function UI(e){e.registerChartView(WI),e.registerSeriesModel(kI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,be(fP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,O1("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var j1=Math.PI*2,cu=Math.PI/180;function X1(e,t){return qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Z1(e,t){var r=X1(e,t),n=e.get("center"),a=e.get("radius");U(a)||(a=[0,a]);var o=xe(r.width,t.getWidth()),i=xe(r.height,t.getHeight()),s=Math.min(o,i),l=xe(a[0],s/2),u=xe(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else U(n)||(n=[n,n]),c=xe(n[0],o)+r.x,f=xe(n[1],i)+r.y;return{cx:c,cy:f,r0:l,r:u}}function YI(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),o=a.mapDimension("value"),i=X1(n,r),s=Z1(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*cu,h=n.get("endAngle"),v=n.get("padAngle")*cu;h=h==="auto"?d-j1:-h*cu;var m=n.get("minAngle")*cu,g=m+v,y=0;a.each(o,function(E){!isNaN(E)&&y++});var w=a.getSum(o),_=Math.PI/(w||y)*2,S=n.get("clockwise"),x=n.get("roseType"),C=n.get("stillShowZeroSum"),T=a.getDataExtent(o);T[0]=0;var b=S?1:-1,D=[d,h],N=b*v/2;Fg(D,!S),d=D[0],h=D[1];var A=Math.abs(h-d),M=A,I=0,P=d;if(a.setLayout({viewRect:i,r:c}),a.each(o,function(E,B){var R;if(isNaN(E)){a.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?R=w===0&&C?_:E*_:R=A/y,R<g?(R=g,M-=g):I+=E;var V=P+b*R,G=0,q=0;v>R?(G=P+b*R/2,q=G):(G=P+N,q=V-N),a.setItemLayout(B,{angle:R,startAngle:G,endAngle:q,clockwise:S,cx:l,cy:u,r0:f,r:x?Ye(E,T,[f,c]):c}),P=V}),M<j1&&y)if(M<=.001){var L=A/y;a.each(o,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B);R.angle=L;var V=0,G=0;L<v?(V=d+b*(B+1/2)*L,G=V):(V=d+b*B*L+N,G=d+b*(B+1)*L-N),R.startAngle=V,R.endAngle=G}})}else _=M/I,P=d,a.each(o,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B),V=R.angle===g?g:E*_,G=0,q=0;V<v?(G=P+b*V/2,q=G):(G=P+N,q=P+b*V-N),R.startAngle=G,R.endAngle=q,P+=b*V}})})}function qI(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(o){for(var i=a.getName(o),s=0;s<n.length;s++)if(!n[s].isSelected(i))return!1;return!0})}}}}var jI=Math.PI/180;function K1(e,t,r,n,a,o,i,s,l,u){if(e.length<2)return;function c(m){for(var g=m.rB,y=g*g,w=0;w<m.list.length;w++){var _=m.list[w],S=Math.abs(_.label.y-r),x=n+_.len,C=x*x,T=Math.sqrt((1-Math.abs(S*S/y))*C),b=t+(T+_.len2)*a,D=b-_.label.x,N=_.targetTextWidth-D*a;J1(_,N,!0),_.label.x=b}}function f(m){for(var g={list:[],maxY:0},y={list:[],maxY:0},w=0;w<m.length;w++)if(m[w].labelAlignTo==="none"){var _=m[w],S=_.label.y>r?y:g,x=Math.abs(_.label.y-r);if(x>=S.maxY){var C=_.label.x-t-_.len2*a,T=n+_.len,b=Math.abs(C)<T?Math.sqrt(x*x/(1-C*C/T/T)):T;S.rB=b,S.maxY=x}S.list.push(_)}c(g),c(y)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}rI(e,l,l+i)&&f(e)}function XI(e,t,r,n,a,o,i,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;bd(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!bd(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,m=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=m[2][0]-v.labelDistance-i-v.edgeDistance:g=i+a-v.edgeDistance-m[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-i-v.bleedMargin:g=i+a-f-v.bleedMargin:h.x<t?g=h.x-i-v.bleedMargin:g=i+a-h.x-v.bleedMargin,v.targetTextWidth=g,J1(v,g)}}K1(u,t,r,n,1,a,o,i,s,f),K1(l,t,r,n,-1,a,o,i,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!bd(v)&&v.linePoints){var h=v.label,m=v.linePoints,y=v.labelAlignTo==="edge",w=h.style.padding,_=w?w[1]+w[3]:0,S=h.style.backgroundColor?0:_,x=v.rect.width+S,C=m[1][0]-m[2][0];y?h.x<t?m[2][0]=i+v.edgeDistance+x+v.labelDistance:m[2][0]=i+a-v.edgeDistance-x-v.labelDistance:(h.x<t?m[2][0]=h.x+v.labelDistance:m[2][0]=h.x-v.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=h.y}}}function J1(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,o=e.rect,i=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=o.width+(i?0:l);if(t<c||r){var f=o.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",i)}else{var h=t-l,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var m=n.getBoundingRect();o.width=m.width;var g=(n.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-f)/2}}}function bd(e){return e.position==="center"}function ZI(e){var t=e.getData(),r=[],n,a,o=!1,i=(e.get("minShowLabelAngle")||0)*jI,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var T in C.states)if(C.states[T].ignore===!1)return!0;return!1}t.each(function(C){var T=t.getItemGraphicEl(C),b=T.shape,D=T.getTextContent(),N=T.getTextGuideLine(),A=t.getItemModel(C),M=A.getModel("label"),I=M.get("position")||A.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),L=M.get("alignTo"),E=xe(M.get("edgeDistance"),u),B=M.get("bleedMargin"),R=A.getModel("labelLine"),V=R.get("length");V=xe(V,u);var G=R.get("length2");if(G=xe(G,u),Math.abs(b.endAngle-b.startAngle)<i){k(D.states,h),D.ignore=!0,N&&(k(N.states,h),N.ignore=!0);return}if(v(D)){var q=(b.startAngle+b.endAngle)/2,J=Math.cos(q),z=Math.sin(q),ee,De,de,Ge;n=b.cx,a=b.cy;var rt=I==="inside"||I==="inner";if(I==="center")ee=b.cx,De=b.cy,Ge="center";else{var Ve=(rt?(b.r+b.r0)/2*J:b.r*J)+n,ke=(rt?(b.r+b.r0)/2*z:b.r*z)+a;if(ee=Ve+J*3,De=ke+z*3,!rt){var re=Ve+J*(V+l-b.r),ue=ke+z*(V+l-b.r),St=re+(J<0?-1:1)*G,Be=ue;L==="edge"?ee=J<0?c+E:c+u-E:ee=St+(J<0?-P:P),De=Be,de=[[Ve,ke],[re,ue],[St,Be]]}Ge=rt?"center":L==="edge"?J>0?"right":"left":J>0?"left":"right"}var nr=Math.PI,zt=0,gn=M.get("rotate");if(Ce(gn))zt=gn*(nr/180);else if(I==="center")zt=0;else if(gn==="radial"||gn===!0){var Fu=J<0?-q+nr:-q;zt=Fu}else if(gn==="tangential"&&I!=="outside"&&I!=="outer"){var Vr=Math.atan2(J,z);Vr<0&&(Vr=nr*2+Vr);var zu=z>0;zu&&(Vr=nr+Vr),zt=Vr-nr}if(o=!!zt,D.x=ee,D.y=De,D.rotation=zt,D.setStyle({verticalAlign:"middle"}),rt){D.setStyle({align:Ge});var yo=D.states.select;yo&&(yo.x+=D.x,yo.y+=D.y)}else{var mn=D.getBoundingRect().clone();mn.applyTransform(D.getComputedTransform());var zi=(D.style.margin||0)+2.1;mn.y-=zi/2,mn.height+=zi,r.push({label:D,labelLine:N,position:I,len:V,len2:G,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new le(J,z),linePoints:de,textAlign:Ge,labelDistance:P,labelAlignTo:L,edgeDistance:E,bleedMargin:B,rect:mn,unconstrainedWidth:mn.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:rt})}}),!o&&e.get("avoidLabelOverlap")&&XI(r,n,a,l,u,d,c,f);for(var m=0;m<r.length;m++){var g=r[m],y=g.label,w=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(k(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(w){var x=g.linePoints;_||!x?(k(w.states,h),w.ignore=!0):(XP(x,g.minTurnAngle),ZP(x,g.surfaceNormal,g.maxSurfaceAngle),w.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new le(x[0][0],x[0][1])})}}}var KI=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;o.z2=2;var i=new We;return o.setTextContent(i),o.updateData(r,n,a,!0),o}return t.prototype.updateData=function(r,n,a,o){var i=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=H(Ii(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){i.setShape(f);return}if(o){i.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(wt(i,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),i.originX=f.cx,i.originY=f.cy):d==="scale"?(i.shape.r=c.r0,wt(i,{shape:{r:c.r}},s,n)):a!=null?(i.setShape({startAngle:a,endAngle:a}),wt(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(i.shape.endAngle=c.startAngle,Je(i,{shape:{endAngle:c.endAngle}},s,n))}else jf(i),Je(i,{shape:f},s,n);i.useStyle(r.getItemVisual(n,"style")),js(i,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),m=Math.cos(h)*v,g=Math.sin(h)*v,y=l.getShallow("cursor");y&&i.attr("cursor",y),this._updateLabel(s,r,n),i.ensureState("emphasis").shape=H({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ii(u.getModel("itemStyle"),c)),H(i.ensureState("select"),{x:m,y:g,shape:Ii(l.getModel(["select","itemStyle"]),c)}),H(i.ensureState("blur"),{shape:Ii(l.getModel(["blur","itemStyle"]),c)});var w=i.getTextGuideLine(),_=i.getTextContent();w&&H(w.ensureState("select"),{x:m,y:g}),H(_.ensureState("select"),{x:m,y:g}),$n(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var o=this,i=n.getItemModel(a),s=i.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Ga(o,Wn(i),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var f=o.getTextContent();o.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Fa,this.setTextGuideLine(h)),JP(this,QP(i),{stroke:u,opacity:Ur(s.get(["lineStyle","opacity"]),c,1)})}},t}(zn),JI=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,o){var i=r.getData(),s=this._data,l=this.group,u;if(!s&&i.count()>0){for(var c=i.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<i.count();++f)c=i.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),i.count()===0&&r.get("showEmptyCircle")){var d=new zn({shape:Z1(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}i.diff(s).add(function(h){var v=new KI(i,h,u);i.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var m=s.getItemGraphicEl(v);m.updateData(i,h,u),m.off("click"),l.add(m),i.setItemGraphicEl(h,m)}).remove(function(h){var v=s.getItemGraphicEl(h);rl(v,r,h)}).execute(),ZI(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),o=a.getItemLayout(0);if(o){var i=r[0]-o.cx,s=r[1]-o.cy,l=Math.sqrt(i*i+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t}(Qt);const QI=JI;function eL(e,t,r){t=U(t)&&{coordDimensions:t}||H({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=G_(n,t).dimensions,o=new Di(a,e);return o.initData(n,r),o}var tL=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const rL=tL;var nL=Ne(),aL=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new rL(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return eL(this,{coordDimensions:["value"],encodeDefaulter:be(qM,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=nL(n),o=a.seats;if(!o){var i=[];n.each(n.mapDimension("value"),function(l){i.push(l)}),o=a.seats=BN(i,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=o[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Is(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Er);const oL=aL;function iL(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var o=n.mapDimension("value"),i=n.get(o,a);return!(Ce(i)&&!isNaN(i)&&i<0)})}}}function sL(e){e.registerChartView(QI),e.registerSeriesModel(oL),PE("pie",e.registerAction),e.registerLayout(be(YI,"pie")),e.registerProcessor(qI("pie")),e.registerProcessor(iL("pie"))}var lL=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Te);const uL=lL;var Sd=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ft).models[0]},t.type="cartesian2dAxis",t}(Te);Wt(Sd,RP);var Q1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},cL=pe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Q1),Cd=pe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Q1),fL=pe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Cd),hL=he({logBase:10},Cd);const dL={category:cL,value:Cd,time:fL,log:hL};var pL={value:1,category:1,time:1,log:1};function ew(e,t,r,n){k(pL,function(a,o){var i=pe(pe({},dL[o],!0),n,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=si(this),h=d?li(c):{},v=f.getTheme();pe(c,v.get(o+"Axis")),pe(c,this.getDefaultOption()),c.type=tw(c),d&&Ya(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=ad.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=i,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",tw)}function tw(e){return e.type||(e.data?"category":"value")}var vL=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return j(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ue(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const gL=vL;var xd=["x","y"];function rw(e){return e.type==="interval"||e.type==="time"}var mL=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=xd,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!rw(r)||!rw(n))){var a=r.getExtent(),o=n.getExtent(),i=this.dataToPoint([a[0],o[0]]),s=this.dataToPoint([a[1],o[1]]),l=a[1]-a[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-i[0])/l,f=(s[1]-i[1])/u,d=i[0]-a[0]*c,h=i[1]-o[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=Ac([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),o=this.dataToPoint(n),i=this.getArea(),s=new ye(a[0],a[1],o[0]-a[0],o[1]-a[1]);return i.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var o=r[0],i=r[1];if(this._transform&&o!=null&&isFinite(o)&&i!=null&&isFinite(i))return Tt(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(o,n)),a[1]=l.toGlobalCoord(l.dataToCoord(i,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,i=a.getExtent(),s=o.getExtent(),l=a.parse(r[0]),u=o.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(i[0],i[1]),l),Math.max(i[0],i[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return Tt(a,r,this._invTransform);var o=this.getAxis("x"),i=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(r[0]),n),a[1]=i.coordToData(i.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(n[0],n[1])-r,i=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-o+r,l=Math.max(a[0],a[1])-i+r;return new ye(o,i,s,l)},t}(gL),yL=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=o||"value",s.position=i||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(jP);const _L=yL;function Td(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,o={},i=a.getAxesOnZeroOf()[0],s=a.position,l=i?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(i){var m=i.toGlobalCoord(i.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=g[s],o.labelOffset=i?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Wr(r.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function nw(e){return e.get("coordinateSystem")==="cartesian2d"}function aw(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(r,n){var a=n.replace(/Model$/,""),o=e.getReferringComponents(a,ft).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(a+' "'+Ur(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=o}),t}var Nd=Math.log;function wL(e,t,r){var n=Ai.prototype,a=n.getTicks.call(r),o=n.getTicks.call(r,!0),i=a.length-1,s=n.getInterval.call(r),l=i1(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=Nd(e.base);u=[Nd(u[0])/d,Nd(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:i,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),m=u[0],g=u[1];if(c&&f)v=(g-m)/i;else if(c)for(g=u[0]+v*i;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=id(v),g=u[0]+v*i;else if(f)for(m=u[1]-v*i;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=id(v),m=u[1]-v*i;else{var y=e.getTicks().length-1;y>i&&(v=id(v));var w=v*i;g=Math.ceil(u[1]/v)*v,m=Oe(g-w),m<0&&u[0]>=0?(m=0,g=Oe(w)):g>0&&u[1]<=0&&(g=0,m=-Oe(w))}var _=(a[0].value-o[0].value)/s,S=(a[i].value-o[i].value)/s;if(n.setExtent.call(e,m+v*_,g+v*S),n.setInterval.call(e,v),(_||S)&&n.setNiceExtent.call(e,m+v,g-v),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(e);x[1]&&(!aP(v)||uf(x[1].value)>uf(v))&&Fe("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var bL=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=xd,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(i){var s,l=me(i),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=i[d],v=h.model,m=h.scale;od(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(s1(m,v),od(m)&&(s=h))}c.length&&(s||(s=c.pop(),s1(s.scale,s.model)),k(c,function(g){wL(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var o={};k(n.x,function(i){ow(n,"y",i,o)}),k(n.y,function(i){ow(n,"x",i,o)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),i=qn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=i;var s=this._axesList;l(),o&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=IP(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);i[f]-=c[f]+d,u.position==="top"?i.y+=c.height+d:u.position==="left"&&(i.x+=c.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),f=c?[0,i.width]:[0,i.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),SL(u,c?i.x:i.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}K(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===t||o[a].getAxis("y").index===r)return o[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",ft).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",ft).models[0],o=t.gridModel,i=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(i,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,o=this,i={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,k(s.x,function(c,f){k(s.y,function(d,h){var v="x"+f+"y"+h,m=new mL(v);m.master=a,m.model=t,a._coordsMap[v]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(Dd(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=i.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=i.left?"right":"left"),i[h]=!0;var v=new _L(c,EP(f),[0,0],f.get("type"),h),m=v.type==="category";v.onBand=m&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=o,v.index=d,o._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){k(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),t.eachSeries(function(a){if(nw(a)){var o=aw(a),i=o.xAxisModel,s=o.yAxisModel;if(!Dd(i,r)||!Dd(s,r))return;var l=this.getCartesian(i.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,o){k(u1(a,o.dim),function(i){o.scale.unionExtentFromData(a,i)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return k(this.getCartesians(),function(a){var o=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),i=a.getOtherAxis(o);fe(r,o)<0&&r.push(o),fe(n,i)<0&&n.push(i)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,o){var i=new e(a,t,r);i.name="grid_"+o,i.resize(a,r,!0),a.coordinateSystem=i,n.push(i)}),t.eachSeries(function(a){if(nw(a)){var o=aw(a),i=o.xAxisModel,s=o.yAxisModel,l=i.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Ur(i.get("gridIndex"),i.get("gridId"),0)+'" not found');if(i.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(i.componentIndex,s.componentIndex)}}),n},e.dimensions=xd,e}();function Dd(e,t){return e.getCoordSysModel()===t}function ow(e,t,r,n){r.getAxesOnZeroOf=function(){return o?[o]:[]};var a=e[t],o,i=r.model,s=i.get(["axisLine","onZero"]),l=i.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)iw(a[l])&&(o=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&iw(a[u])&&!n[c(a[u])]){o=a[u];break}o&&(n[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function iw(e){return e&&e.type!=="category"&&e.type!=="time"&&PP(e)}function SL(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const CL=bL;var fn=Math.PI,oa=function(){function e(t,r){this.group=new Pe,this.opt=r,this.axisModel=t,he(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Pe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!sw[t]},e.prototype.add=function(t){sw[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=pg(r-t),o,i;return As(a)?(i=n>0?"top":"bottom",o="center"):As(a-fn)?(i=n>0?"bottom":"top",o="center"):(i="middle",a>0&&a<fn?o=n>0?"right":"left":o=n>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:i}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),sw={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var o=t.axis.getExtent(),i=n.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];i&&(Tt(s,s,i),Tt(l,l,i));var c=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new en({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ti(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);X(d)&&(d=[d,d]),(X(h)||Ce(h))&&(h=[h,h]);var v=Ol(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[1];k([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,w){if(d[w]!=="none"&&d[w]!=null){var _=Pr(d[w],-m/2,-g/2,m,g,c.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(e.rotation),y:x[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=NL(r,n,t,e),o=AL(r,n,t,e);if(TL(t,o,a),DL(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var i=eI(j(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));nI(i)}},axisName:function(e,t,r,n){var a=Wr(e.axisName,t.get("name"));if(a){var o=t.get("nameLocation"),i=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,uw(o)?e.labelOffset+i*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*fn/180);var v;uw(o)?d=oa.innerTextLayout(e.rotation,h??e.rotation,i):(d=xL(e.rotation,o,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,w=Wr(e.nameTruncateMaxWidth,g.maxWidth,v),_=new We({x:f[0],y:f[1],rotation:d.rotation,silent:oa.isLabelSilent(t),style:Zt(s,{text:a,font:m,overflow:"truncate",width:w,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Jf({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=oa.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,ve(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function xL(e,t,r,n){var a=pg(r-e),o,i,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return As(a-fn/2)?(i=l?"bottom":"top",o="center"):As(a-fn*1.5)?(i=l?"top":"bottom",o="center"):(i="middle",a<fn*1.5&&a>fn/2?o=l?"left":"right":o=l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:i}}function TL(e,t,r){if(!l1(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var o=t[0],i=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Vt(o),Vt(u)):lw(o,i)&&(n?(Vt(i),Vt(c)):(Vt(o),Vt(u))),a===!1?(Vt(s),Vt(f)):lw(l,s)&&(a?(Vt(l),Vt(d)):(Vt(s),Vt(f)))}}function Vt(e){e&&(e.ignore=!0)}function lw(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=Tc([]);return Dc(a,a,-e.rotation),r.applyTransform(Ta([],a,e.getLocalTransform())),n.applyTransform(Ta([],a,t.getLocalTransform())),r.intersect(n)}}function uw(e){return e==="middle"||e==="center"}function cw(e,t,r,n,a){for(var o=[],i=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;i[0]=u,i[1]=0,s[0]=u,s[1]=r,t&&(Tt(i,i,t),Tt(s,s,t));var c=new en({shape:{x1:i[0],y1:i[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ti(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,o.push(c)}return o}function NL(e,t,r,n){var a=r.axis,o=r.getModel("axisTick"),i=o.get("show");if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisTick")),!(!i||a.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=a.getTicksCoords(),c=cw(u,t.transform,l,he(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function DL(e,t,r,n){var a=r.axis,o=r.getModel("minorTick");if(!(!o.get("show")||a.scale.isBlank())){var i=a.getMinorTicksCoords();if(i.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),u=he(s.getLineStyle(),he(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<i.length;c++)for(var f=cw(i[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function AL(e,t,r,n){var a=r.axis,o=Wr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!o||a.scale.isBlank())){var i=r.getModel("axisLabel"),s=i.get("margin"),l=a.getViewLabels(),u=(Wr(n.labelRotate,i.get("rotate"))||0)*fn/180,c=oa.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=oa.isLabelSilent(r),v=r.get("triggerEvent");return k(l,function(m,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,w=m.formattedLabel,_=m.rawLabel,S=i;if(f&&f[y]){var x=f[y];K(x)&&x.textStyle&&(S=new Qe(x.textStyle,i,r.ecModel))}var C=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(y),b=S.getShallow("align",!0)||c.textAlign,D=oe(S.getShallow("alignMinLabel",!0),b),N=oe(S.getShallow("alignMaxLabel",!0),b),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,M=oe(S.getShallow("verticalAlignMinLabel",!0),A),I=oe(S.getShallow("verticalAlignMaxLabel",!0),A),P=new We({x:T,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:Zt(S,{text:w,align:g===0?D:g===l.length-1?N:b,verticalAlign:g===0?M:g===l.length-1?I:A,fill:ae(C)?C(a.type==="category"?_:a.type==="value"?y+"":y,g):C})});if(P.anid="label_"+y,v){var L=oa.makeAxisEventDataBase(r);L.targetType="axisLabel",L.value=_,L.tickIndex=g,a.type==="category"&&(L.dataIndex=y),ve(P).eventData=L}t.add(P),P.updateTransform(),d.push(P),e.add(P),P.decomposeTransform()}),d}}const fw=oa;function ML(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kL(r,e,t),r.seriesInvolved&&PL(r,e),r}function kL(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),o=a.get("link",!0)||[],i=[];k(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Li(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(k(s.getAxes(),be(m,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&k(v.baseAxes,be(m,h?"cross":!0,d)),h&&k(v.otherAxes,be(m,"cross",!1))}function m(g,y,w){var _=w.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!kd(_))){y==null&&(y=_.get("triggerTooltip")),_=g?EL(w,f,a,t,g,y):_;var x=_.get("snap"),C=_.get("triggerEmphasis"),T=Li(w.model),b=y||x||w.type==="category",D=e.axesInfo[T]={key:T,axis:w,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:C,involveSeries:b,snap:x,useHandle:kd(_),seriesModels:[],linkGroup:null};u[T]=D,e.seriesInvolved=e.seriesInvolved||b;var N=IL(o,w);if(N!=null){var A=i[N]||(i[N]={axesInfo:{}});A.axesInfo[T]=D,A.mapper=o[N].mapper,D.linkGroup=A}}}})}function EL(e,t,r,n,a,o){var i=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};k(s,function(d){l[d]=ce(i.get(d))}),l.snap=e.type!=="category"&&!!o,i.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=i.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=i.get("crossStyle");f&&he(u,f.textStyle)}}return e.model.getModel("axisPointer",new Qe(l,r,n))}function PL(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),o=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||o===!1||r.get(["axisPointer","show"],!0)===!1||k(e.coordSysAxesInfo[Li(n.model)],function(i){var s=i.axis;n.getAxis(s.dim)===s&&(i.seriesModels.push(r),i.seriesDataCount==null&&(i.seriesDataCount=0),i.seriesDataCount+=r.getData().count())})})}function IL(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var o=e[a]||{};if(Ad(o[n+"AxisId"],r.id)||Ad(o[n+"AxisIndex"],r.componentIndex)||Ad(o[n+"AxisName"],r.name))return a}}function Ad(e,t){return e==="all"||U(e)&&fe(e,t)>=0||e===t}function LL(e){var t=Md(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,o=r.get("status"),i=r.get("value");i!=null&&(i=n.parse(i));var s=kd(r);o==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(i==null||i>l[1])&&(i=l[1]),i<l[0]&&(i=l[0]),a.value=i,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Md(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Li(e)]}function OL(e){var t=Md(e);return t&&t.axisPointerModel}function kd(e){return!!e.get(["handle","show"])}function Li(e){return e.type+"||"+e.id}var Ed={},hw=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this.axisPointerClass&&LL(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,o){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var i=OL(r);i?(this._axisPointer||(this._axisPointer=new o)).render(r,i,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&Ed[r])throw new Error("axisPointer "+r+" exists");Ed[r]=n},t.getAxisPointerClass=function(r){return r&&Ed[r]},t.type="axis",t}(Jt),Pd=Ne();function RL(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitArea"),i=o.getModel("areaStyle"),s=i.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=Pd(e).splitAreaColors,d=ie(),h=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){h=(m+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=i.getAreaStyle();s=U(s)?s:[s];for(var v=1;v<u.length;v++){var w=a.toGlobalCoord(u[v].coord),_=void 0,S=void 0,x=void 0,C=void 0;a.isHorizontal()?(_=g,S=l.y,x=w-_,C=l.height,g=_+x):(_=l.x,S=g,x=l.width,C=w-S,g=S+C);var T=u[v-1].tickValue;T!=null&&d.set(T,h),t.add(new Ee({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:x,height:C},style:he({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}Pd(e).splitAreaColors=d}}}function BL(e){Pd(e).splitAreaColors=null}var VL=["axisLine","axisTickLabel","axisName"],$L=["splitArea","splitLine","minorSplitLine"],dw=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,o){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Pe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Td(s,r),u=new fw(r,H({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(od(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));k(VL,u.add,u),this._axisGroup.add(u.getGroup()),k($L,function(f){r.get([f,"show"])&&FL[f](this,this._axisGroup,r,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||ry(i,this._axisGroup,r),e.prototype.render.call(this,r,n,a,o)}},t.prototype.remove=function(){BL(this)},t.type="cartesianAxis",t}(hw),FL={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),i=o.getModel("lineStyle"),s=i.get("color");s=U(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:o}),d=[],h=[],v=i.getLineStyle(),m=0;m<f.length;m++){var g=a.toGlobalCoord(f[m].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,w=f[m].tickValue,_=new en({anid:w!=null?"line_"+f[m].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:he({stroke:s[y]},v),silent:!0});ti(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,o=r.getModel("minorSplitLine"),i=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=i.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var m=a.toGlobalCoord(u[h][v].coord);l?(c[0]=m,c[1]=s.y,f[0]=m,f[1]=s.y+s.height):(c[0]=s.x,c[1]=m,f[0]=s.x+s.width,f[1]=m);var g=new en({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});ti(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){RL(e,t,r,n)}},pw=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(dw),zL=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=pw.type,r}return t.type="yAxis",t}(dw),GL=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ee({shape:r.coordinateSystem.getRect(),style:he({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Jt),vw={offset:0};function HL(e){e.registerComponentView(GL),e.registerComponentModel(uL),e.registerCoordinateSystem("cartesian2d",CL),ew(e,"x",Sd,vw),ew(e,"y",Sd,vw),e.registerComponentView(pw),e.registerComponentView(zL),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var gw="\0_ec_interaction_mutex";function mw(e,t){return!!WL(e)[t]}function WL(e){return e[gw]||(e[gw]={})}ea({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ot);var UL=function(e){W(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=Q(n._mousedownHandler,n),o=Q(n._mousemoveHandler,n),i=Q(n._mouseupHandler,n),s=Q(n._mousewheelHandler,n),l=Q(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=he(ce(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",o),r.on("mouseup",i)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",o),r.off("mouseup",i),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!bv(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,o=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,o)&&(this._x=a,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!fu("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||mw(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,o=this._x,i=this._y,s=n-o,l=a-i;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Ca(r.event),yw(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:o,oldY:i,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){bv(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=fu("zoomOnMouseWheel",r,this._opt),a=fu("moveOnMouseWheel",r,this._opt),o=r.wheelDelta,i=Math.abs(o),s=r.offsetX,l=r.offsetY;if(!(o===0||!n&&!a)){if(n){var u=i>3?1.4:i>1?1.2:1.1,c=o>0?u:1/u;Id(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(o),d=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);Id(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!mw(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Id(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ut);function Id(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Ca(n.event),yw(e,t,r,n,a))}function yw(e,t,r,n,a){a.isAvailableBehavior=Q(fu,null,r,n),e.trigger(t,a)}function fu(e,t,r){var n=r[e];return!e||n&&(!X(n)||t.event[n+"Key"])}const YL=UL;var _w=en.prototype,Ld=Wf.prototype,ww=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(ww);function Od(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var qL=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ww},t.prototype.buildPath=function(r,n){Od(n)?_w.buildPath.call(this,r,n):Ld.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Od(this.shape)?_w.pointAt.call(this,r):Ld.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=Od(n)?[n.x2-n.x1,n.y2-n.y1]:Ld.tangentAt.call(this,r);return pc(a,a)},t}(ge),Rd=["fromSymbol","toSymbol"];function bw(e){return"_"+e+"Type"}function Sw(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),o=t.getItemVisual(r,e+"Rotate"),i=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Rh(a),u=Ol(i||0,l);return n+l+u+(o||"")+(s||"")}function Cw(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),o=t.getItemVisual(r,e+"Rotate"),i=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Rh(a),u=Ol(i||0,l),c=Pr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function jL(e){var t=new qL({name:"line",subPixelOptimize:!0});return Bd(t.shape,e),t}function Bd(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var XL=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;return o._createLine(r,n,a),o}return t.prototype._createLine=function(r,n,a){var o=r.hostModel,i=r.getItemLayout(n),s=jL(i);s.shape.percent=0,wt(s,{shape:{percent:1}},o,n),this.add(s),k(Rd,function(l){var u=Cw(l,r,n);this.add(u),this[bw(l)]=Sw(l,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Bd(l.shape,s),Je(i,l,o,n),k(Rd,function(u){var c=Sw(u,r,n),f=bw(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Cw(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||r.hasItemOption){var v=r.getItemModel(n),m=v.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=m.get("disabled"),d=m.get("focus"),h=m.get("blurScope"),c=Wn(v)}var g=r.getItemVisual(n,"style"),y=g.stroke;i.useStyle(g),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,i.ensureState("blur").style=l,i.ensureState("select").style=u,k(Rd,function(C){var T=this.childOfName(C);if(T){T.setColor(y),T.style.opacity=g.opacity;for(var b=0;b<ht.length;b++){var D=ht[b],N=i.getState(D);if(N){var A=N.style||{},M=T.ensureState(D),I=M.style||(M.style={});A.stroke!=null&&(I[T.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(I.opacity=A.opacity)}}T.markRedraw()}},this);var w=o.getRawValue(n);Ga(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,T){return o.getFormattedLabel(C,T,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(w==null?r.getName(n):isFinite(w)?Oe(w):w)+""});var _=this.getTextContent();if(_){var S=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");U(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),$n(this,d,h,f)},t.prototype.highlight=function(){Xo(this)},t.prototype.downplay=function(){Zo(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Bd(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),o=r.getTextContent();if(!n&&!a&&(!o||o.ignore))return;for(var i=1,s=this.parent;s;)s.scaleX&&(i/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=gv([],f,c);pc(d,d);function h(N,A){var M=N.__specifiedRotation;if(M==null){var I=l.tangentAt(A);N.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else N.attr("rotation",M)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=i*u,n.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=i*u,a.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var v=void 0,m=void 0,g=o.__labelDistance,y=g[0]*i,w=g[1]*i,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],C=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var T=S[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var b=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(b=Math.PI+b),o.rotation=b}var D=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-w,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=w,m="top";break;default:D=0,m="middle"}switch(o.__position){case"end":o.x=d[0]*y+f[0],o.y=d[1]*w+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*y+c[0],o.y=-d[1]*w+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*T+c[0],o.y=c[1]+D,v=S[0]<0?"right":"left",o.originX=-y*T,o.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=C[0],o.y=C[1]+D,v="center",o.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*T+f[0],o.y=f[1]+D,v=S[0]>=0?"right":"left",o.originX=y*T,o.originY=-D;break}o.scaleX=o.scaleY=i,o.setStyle({verticalAlign:o.__verticalAlign||m,align:o.__align||v})}},t}(Pe);const ZL=XL;var KL=function(){function e(t){this.group=new Pe,this._LineCtor=t||ZL}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,o=n._lineData;n._lineData=t,o||a.removeAll();var i=xw(t);t.diff(o).add(function(s){r._doAdd(t,s,i)}).update(function(s,l){r._doUpdate(o,t,l,s,i)}).remove(function(s){a.remove(o.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=xw(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!JL(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(Vd(o)){var i=new this._LineCtor(r,a,this._seriesScope);i.traverse(n),this.group.add(i),r.setItemGraphicEl(a,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){za(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(Vd(a)){var o=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,o),this.group.add(o)}},e.prototype._doUpdate=function(t,r,n,a,o){var i=t.getItemGraphicEl(n);if(!Vd(r.getItemLayout(a))){this.group.remove(i);return}i?i.updateData(r,a,o):i=new this._LineCtor(r,a,o),r.setItemGraphicEl(a,i),this.group.add(i)},e}();function JL(e){return e.animators&&e.animators.length>0}function xw(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Wn(t)}}function Tw(e){return isNaN(e[0])||isNaN(e[1])}function Vd(e){return e&&!Tw(e[0])&&!Tw(e[1])}const QL=KL;function hu(e,t,r,n,a,o){e=e||0;var i=r[1]-r[0];if(a!=null&&(a=no(a,[0,i])),o!=null&&(o=Math.max(o,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=no(s,[0,i]),a=o=no(s,[a,o]),n=0}t[0]=no(t[0],r),t[1]=no(t[1],r);var l=$d(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=no(t[n],c);var f;return f=$d(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=$d(t,n),o!=null&&f.span>o&&(t[1-n]=t[n]+f.sign*o),t}function $d(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function no(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Nw={color:"fill",borderColor:"stroke"},eO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lr=Ne(),tO=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Kl(null,this)},t.prototype.getDataParams=function(r,n,a){var o=e.prototype.getDataParams.call(this,r,n);return a&&(o.info=Lr(a).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Er);const rO=tO;function nO(e,t){return t=t||[0,0],j(["x","y"],function(r,n){var a=this.getAxis(r),o=t[n],i=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-i)-a.dataToCoord(o+i))},this)}function aO(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(nO,e)}}}function oO(e,t){return t=t||[0,0],j([0,1],function(r){var n=t[r],a=e[r]/2,o=[],i=[];return o[r]=n-a,i[r]=n+a,o[1-r]=i[1-r]=t[1-r],Math.abs(this.dataToPoint(o)[r]-this.dataToPoint(i)[r])},this)}function iO(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:Q(oO,e)}}}function sO(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function lO(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(sO,e)}}}function uO(e,t){return t=t||[0,0],j(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",o=this[a](),i=t[n],s=e[n]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(i-s)-o.dataToCoord(i+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function cO(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var o=t.dataToRadius(a[0]),i=r.dataToAngle(a[1]),s=e.coordToPoint([o,i]);return s.push(o,i*Math.PI/180),s},size:Q(uO,e)}}}function fO(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}var Dw={};function hO(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Y(e,"text")))}function dO(e,t,r){var n=e,a,o,i;if(t==="text")i=n;else{i={},Y(n,"text")&&(i.text=n.text),Y(n,"rich")&&(i.rich=n.rich),Y(n,"textFill")&&(i.fill=n.textFill),Y(n,"textStroke")&&(i.stroke=n.textStroke),Y(n,"fontFamily")&&(i.fontFamily=n.fontFamily),Y(n,"fontSize")&&(i.fontSize=n.fontSize),Y(n,"fontStyle")&&(i.fontStyle=n.fontStyle),Y(n,"fontWeight")&&(i.fontWeight=n.fontWeight),o={type:"text",style:i,silent:!0},a={};var s=Y(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Y(n,"textPosition")&&(a.position=n.textPosition),Y(n,"textOffset")&&(a.offset=n.textOffset),Y(n,"textRotation")&&(a.rotation=n.textRotation),Y(n,"textDistance")&&(a.distance=n.textDistance)}return Aw(i,e),k(i.rich,function(l){Aw(l,l)}),{textConfig:a,textContent:o}}function Aw(e,t){t&&(t.font=t.textFont||t.font,Y(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Y(t,"textAlign")&&(e.align=t.textAlign),Y(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Y(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Y(t,"textWidth")&&(e.width=t.textWidth),Y(t,"textHeight")&&(e.height=t.textHeight),Y(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Y(t,"textPadding")&&(e.padding=t.textPadding),Y(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Y(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Y(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Y(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Y(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Y(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Y(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Mw(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,o=e.fill||"#000";kw(n,t);var i=n.textFill==null;return a?i&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=o),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(i&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,k(t.rich,function(s){kw(s,s)}),n}function kw(e,t){t&&(Y(t,"fill")&&(e.textFill=t.fill),Y(t,"stroke")&&(e.textStroke=t.fill),Y(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Y(t,"font")&&(e.font=t.font),Y(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Y(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Y(t,"fontSize")&&(e.fontSize=t.fontSize),Y(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Y(t,"align")&&(e.textAlign=t.align),Y(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Y(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Y(t,"width")&&(e.textWidth=t.width),Y(t,"height")&&(e.textHeight=t.height),Y(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Y(t,"padding")&&(e.textPadding=t.padding),Y(t,"borderColor")&&(e.textBorderColor=t.borderColor),Y(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Y(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Y(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Y(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Y(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Y(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Y(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Y(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Y(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Y(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function Ew(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;Dw[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),Dw[r]=!0)}}var Pw={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Iw=me(Pw),du=Sr(ir,function(e,t){return e[t]=1,e},{}),Lw=ir.join(", "),pu=["","style","shape","extra"],ao=Ne();function Fd(e,t,r,n,a){var o=e+"Animation",i=Yf(e,n,a)||{},s=ao(t).userDuring;return i.duration>0&&(i.during=s?Q(wO,{el:t,userDuring:s}):null,i.setToFinal=!0,i.scope=e),H(i,r[o]),i}function pO(e,t,r,n){n=n||{};var a=n.dataIndex,o=n.isInit,i=n.clearStyle,s=r.isAnimationEnabled(),l=ao(e),u=t.style;l.userDuring=t.during;var c={},f={};if(SO(e,t,f),Rw("shape",t,f),Rw("extra",t,f),!o&&s&&(bO(e,t,c),Ow("shape",e,t,c),Ow("extra",e,t,c),CO(e,t,u,c)),f.style=u,gO(e,f,i),yO(e,t),s)if(o){var d={};k(pu,function(v){var m=v?t[v]:t;m&&m.enterFrom&&(v&&(d[v]=d[v]||{}),H(v?d[v]:d,m.enterFrom))});var h=Fd("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else mO(e,t,a||0,r,c);vO(e,t),u?e.dirty():e.markRedraw()}function vO(e,t){for(var r=ao(e).leaveToProps,n=0;n<pu.length;n++){var a=pu[n],o=a?t[a]:t;o&&o.leaveTo&&(r||(r=ao(e).leaveToProps={}),a&&(r[a]=r[a]||{}),H(a?r[a]:r,o.leaveTo))}}function zd(e,t,r,n){if(e){var a=e.parent,o=ao(e).leaveToProps;if(o){var i=Fd("update",e,t,r,0);i.done=function(){a.remove(e),n&&n()},e.animateTo(o,i)}else a.remove(e),n&&n()}}function oo(e){return e==="all"}function gO(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,o=0;o<a.length;o++){var i=a[o];i.targetName==="style"&&i.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function mO(e,t,r,n,a){if(a){var o=Fd("update",e,t,n,r);o.duration>0&&e.animateFrom(a,o)}}function yO(e,t){Y(t,"silent")&&(e.silent=t.silent),Y(t,"ignore")&&(e.ignore=t.ignore),e instanceof An&&Y(t,"invisible")&&(e.invisible=t.invisible),e instanceof ge&&Y(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var yr={},_O={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&te(Y(du,e),"Only "+Lw+" available in `setTransform`."),yr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&te(Y(du,e),"Only "+Lw+" available in `getTransform`."),yr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&io(e);var r=yr.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&io(e);var t=yr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&io(e);var r=yr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&ma(t)&&Fe("style."+e+" must not be assigned with NaN."),n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!=="production"&&io(e);var t=yr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&io(e);var r=yr.el.extra||(yr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&io(e);var t=yr.el.extra;if(t)return t[e]}};function io(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function wO(){var e=this,t=e.el;if(t){var r=ao(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}yr.el=t,n(_O)}}function Ow(e,t,r,n){var a=r[e];if(a){var o=t[e],i;if(o){var s=r.transition,l=a.transition;if(l)if(!i&&(i=n[e]={}),oo(l))H(i,o);else for(var u=He(l),c=0;c<u.length;c++){var f=u[c],d=o[f];i[f]=d}else if(oo(s)||fe(s,e)>=0){!i&&(i=n[e]={});for(var h=me(o),c=0;c<h.length;c++){var f=h[c],d=o[f];xO(a[f],d)&&(i[f]=d)}}}}}function Rw(e,t,r){var n=t[e];if(n)for(var a=r[e]={},o=me(n),i=0;i<o.length;i++){var s=o[i];a[s]=Oo(n[s])}}function bO(e,t,r){for(var n=t.transition,a=oo(n)?ir:He(n||[]),o=0;o<a.length;o++){var i=a[o];if(!(i==="style"||i==="shape"||i==="extra")){var s=e[i];process.env.NODE_ENV!=="production"&&Bw(i,"el.transition"),r[i]=s}}}function SO(e,t,r){for(var n=0;n<Iw.length;n++){var a=Iw[n],o=Pw[a],i=t[a];i&&(r[o[0]]=i[0],r[o[1]]=i[1])}for(var n=0;n<ir.length;n++){var s=ir[n];t[s]!=null&&(r[s]=t[s])}}function CO(e,t,r,n){if(r){var a=e.style,o;if(a){var i=r.transition,s=t.transition;if(i&&!oo(i)){var l=He(i);!o&&(o=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];o[c]=f}}else if(e.getAnimationStyleProps&&(oo(s)||oo(i)||fe(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!o&&(o=n.style={});for(var v=me(r),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];o[c]=f}}}}}}}function xO(e,t){return nt(e)?e!==t:e!=null&&isFinite(e)}var Bw;process.env.NODE_ENV!=="production"&&(Bw=function(e,t){Y(du,e)||Fe("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+me(du).join("`, `")+"` are permitted.")});var Vw=Ne(),TO=["percent","easing","shape","style","extra"];function NO(e){e.stopAnimation("keyframe"),e.attr(Vw(e))}function $w(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(U(t)){k(t,function(s){$w(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var o=Yf("enter",r,0);a=o&&o.duration}if(!(!n||!a)){var i=Vw(e);k(pu,function(s){if(!(s&&!e[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),k(n,function(c){var f=e.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var h=me(d);if(s||(h=Ue(h,function(g){return fe(TO,g)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(i[s]=i[s]||{});var m=s?i[s]:i;k(h,function(g){m[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(a*c.percent,d,h,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Fe("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(t.delay||0).duration(a).start(t.easing))}})}}}var Or="emphasis",hn="normal",Gd="blur",Hd="select",dn=[hn,Or,Gd,Hd],Wd={normal:["itemStyle"],emphasis:[Or,"itemStyle"],blur:[Gd,"itemStyle"],select:[Hd,"itemStyle"]},Ud={normal:["label"],emphasis:[Or,"label"],blur:[Gd,"label"],select:[Hd,"label"]},DO=["x","y"],AO="e\0\0",$t={normal:{},emphasis:{},blur:{},select:{}},Fw={cartesian2d:aO,geo:iO,single:lO,polar:cO,calendar:fO};function vu(e){return e instanceof ge}function Yd(e){return e instanceof An}function MO(e,t){t.copyTransform(e),Yd(t)&&Yd(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,vu(t)&&vu(e)&&t.setShape(e.shape))}var kO=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this._progressiveEls=null;var i=this._data,s=r.getData(),l=this.group,u=Gw(r,s,n,a);i||l.removeAll(),s.diff(i).add(function(f){Xd(a,null,f,u(f,o),r,l,s)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&zd(d,Lr(d).option,r)}).update(function(f,d){var h=i.getItemGraphicEl(d);Xd(a,h,f,u(f,o),r,l,s)}).execute();var c=r.get("clip",!0)?A1(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,o,i){var s=n.getData(),l=Gw(n,s,a,o),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=Xd(null,null,f,l(f,i),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){za(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,o){var i=n.element;if(i==null||a.name===i)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===i)return!0;return!1},t.type="custom",t}(Qt);const EO=kO;function qd(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=qw(n);r=ol(o,null,a,n.layout||"center"),Lr(r).customPathData=o}else if(t==="image")r=new Qr({}),Lr(r).customImagePath=e.style.image;else if(t==="text")r=new We({});else if(t==="group")r=new Pe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var i=Xm(t);if(!i){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),it(s)}r=new i}return Lr(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function jd(e,t,r,n,a,o,i){NO(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=DO);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Y(u,"textFill")&&(u.fill=u.textFill),Y(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=vu(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Fl(f,e)),l.__decalPattern=c}if(Yd(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}pO(t,n,o,{dataIndex:r,isInit:i,clearStyle:!0}),$w(t,n.keyframeAnimation,o)}function zw(e,t,r,n,a){var o=t.isGroup?null:t,i=a&&a[e].cfg;if(o){var s=o.ensureState(e);if(n===!1){var l=o.getState(e);l&&(l.style=null)}else s.style=n||null;i&&(s.textConfig=i),dm(o)}}function PO(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,o=r.currentZLevel;n.z=a,n.zlevel=o;var i=t.z2;i!=null&&(n.z2=i||0);for(var s=0;s<dn.length;s++)IO(n,t,dn[s])}}function IO(e,t,r){var n=r===hn,a=n?t:gu(t,r),o=a?a.z2:null,i;o!=null&&(i=n?e:e.ensureState(r),i.z2=o||0)}function Gw(e,t,r,n){var a=e.get("renderItem"),o=e.coordinateSystem,i={};o&&(process.env.NODE_ENV!=="production"&&(te(a,"series.render is required."),te(o.prepareCustoms||Fw[o.type],"This coordSys does not support custom series.")),i=o.prepareCustoms?o.prepareCustoms(o):Fw[o.type](o));for(var s=he({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:C,ordinalRawValue:x,styleEmphasis:T,visual:N,barLayout:A,currentSeriesIndices:M,font:I},i.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:i.coordSys,dataInsideLength:t.count(),encode:LO(e.getData())},u,c,f={},d={},h={},v={},m=0;m<dn.length;m++){var g=dn[m];h[g]=e.getModel(Wd[g]),v[g]=e.getModel(Ud[g])}function y(P){return P===u?c||(c=t.getItemModel(P)):t.getItemModel(P)}function w(P,L){return t.hasItemOption?P===u?f[L]||(f[L]=y(P).getModel(Wd[L])):y(P).getModel(Wd[L]):h[L]}function _(P,L){return t.hasItemOption?P===u?d[L]||(d[L]=y(P).getModel(Ud[L])):y(P).getModel(Ud[L]):v[L]}return function(P,L){return u=P,c=null,f={},d={},a&&a(he({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:L?L.type:null},l),s)};function S(P,L){return L==null&&(L=u),t.getStore().get(t.getDimensionIndex(P||0),L)}function x(P,L){L==null&&(L=u),P=P||0;var E=t.getDimensionInfo(P);if(!E){var B=t.getDimensionIndex(P);return B>=0?t.getStore().get(B,L):void 0}var R=t.get(E.name,L),V=E&&E.ordinalMeta;return V?V.categories[R]:R}function C(P,L){process.env.NODE_ENV!=="production"&&Ew("api.style","Please write literal style directly instead."),L==null&&(L=u);var E=t.getItemVisual(L,"style"),B=E&&E.fill,R=E&&E.opacity,V=w(L,hn).getItemStyle();B!=null&&(V.fill=B),R!=null&&(V.opacity=R);var G={inheritColor:X(B)?B:"#000"},q=_(L,hn),J=Zt(q,null,G,!1,!0);J.text=q.getShallow("show")?oe(e.getFormattedLabel(L,hn),Pi(t,L)):null;var z=sl(q,G,!1);return D(P,V),V=Mw(V,J,z),P&&b(V,P),V.legacy=!0,V}function T(P,L){process.env.NODE_ENV!=="production"&&Ew("api.styleEmphasis","Please write literal style directly instead."),L==null&&(L=u);var E=w(L,Or).getItemStyle(),B=_(L,Or),R=Zt(B,null,null,!0,!0);R.text=B.getShallow("show")?Ur(e.getFormattedLabel(L,Or),e.getFormattedLabel(L,hn),Pi(t,L)):null;var V=sl(B,null,!0);return D(P,E),E=Mw(E,R,V),P&&b(E,P),E.legacy=!0,E}function b(P,L){for(var E in L)Y(L,E)&&(P[E]=L[E])}function D(P,L){P&&(P.textFill&&(L.textFill=P.textFill),P.textPosition&&(L.textPosition=P.textPosition))}function N(P,L){if(L==null&&(L=u),Y(Nw,P)){var E=t.getItemVisual(L,"style");return E?E[Nw[P]]:null}if(Y(eO,P))return t.getItemVisual(L,P)}function A(P){if(o.type==="cartesian2d"){var L=o.getBaseAxis();return lP(he({axis:L},P))}}function M(){return r.getCurrentSeriesIndices()}function I(P){return cy(P,r)}}function LO(e){var t={};return k(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,o=t[a]=t[a]||[];o[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function Xd(e,t,r,n,a,o,i){if(!n){o.remove(t);return}var s=Zd(e,t,r,n,a,o);return s&&i.setItemGraphicEl(r,s),s&&$n(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Zd(e,t,r,n,a,o){process.env.NODE_ENV!=="production"&&te(n,"should not have an null/undefined element setting");var i=-1,s=t;t&&Hw(t,n,a)&&(i=fe(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=qd(n),s&&MO(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),$t.normal.cfg=$t.normal.conOpt=$t.emphasis.cfg=$t.emphasis.conOpt=$t.blur.cfg=$t.blur.conOpt=$t.select.cfg=$t.select.conOpt=null,$t.isLegacy=!1,RO(u,r,n,a,l,$t),OO(u,r,n,a,l),jd(e,u,r,n,$t,a,l),Y(n,"info")&&(Lr(u).info=n.info);for(var c=0;c<dn.length;c++){var f=dn[c];if(f!==hn){var d=gu(n,f),h=Kd(n,d,f);zw(f,u,d,h,$t)}}return PO(u,n,a),n.type==="group"&&BO(e,u,r,n,a),i>=0?o.replaceAt(u,i):o.add(u),u}function Hw(e,t,r){var n=Lr(e),a=t.type,o=t.shape,i=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&zO(o)&&qw(o)!==n.customPathData||a==="image"&&Y(i,"image")&&i.image!==n.customImagePath}function OO(e,t,r,n,a){var o=r.clipPath;if(o===!1)e&&e.getClipPath()&&e.removeClipPath();else if(o){var i=e.getClipPath();i&&Hw(i,o,n)&&(i=null),i||(i=qd(o),process.env.NODE_ENV!=="production"&&te(vu(i),"Only any type of `path` can be used in `clipPath`, rather than "+i.type+"."),e.setClipPath(i)),jd(null,i,t,o,null,n,a)}}function RO(e,t,r,n,a,o){if(!e.isGroup){Ww(r,null,o),Ww(r,Or,o);var i=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(i!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(i===!1)c&&e.removeTextContent();else{i=o.normal.conOpt=i||{type:"text"},c?c.clearStates():(c=qd(i),e.setTextContent(c)),jd(null,c,t,i,null,n,a);for(var f=i&&i.style,d=0;d<dn.length;d++){var h=dn[d];if(h!==hn){var v=o[h].conOpt;zw(h,c,v,Kd(i,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function Ww(e,t,r){var n=t?gu(e,t):e,a=t?Kd(e,n,Or):e.style,o=e.type,i=n?n.textConfig:null,s=e.textContent,l=s?t?gu(s,t):s:null;if(a&&(r.isLegacy||hO(a,o,!!i,!!l))){r.isLegacy=!0;var u=dO(a,o,!t);!i&&u.textConfig&&(i=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&te(c.type==="text",'textContent.type must be "text"')}var f=t?r[t]:r.normal;f.cfg=i,f.conOpt=l}function gu(e,t){return t?e?e[t]:null:e}function Kd(e,t,r){var n=t&&t.style;return n==null&&r===Or&&e&&(n=e.styleEmphasis),n}function BO(e,t,r,n,a){var o=n.children,i=o?o.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!i&&!l&&!u)){if(l){$O({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<i;c++){var f=o[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),Zd(e,d,r,f,a,t)):(process.env.NODE_ENV!=="production"&&te(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);VO(t,v,a)}}}function VO(e,t,r){t&&zd(t,Lr(e).option,r)}function $O(e){new L_(e.oldChildren,e.newChildren,Uw,Uw,e).add(Yw).update(Yw).remove(FO).execute()}function Uw(e,t){var r=e&&e.name;return r??AO+t}function Yw(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;Zd(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function FO(e){var t=this.context,r=t.oldChildren[e];r&&zd(r,Lr(r).option,t.seriesModel)}function qw(e){return e&&(e.pathData||e.d)}function zO(e){return e&&(Y(e,"pathData")||Y(e,"d"))}function GO(e){e.registerChartView(EO),e.registerSeriesModel(rO)}var ia=Ne(),jw=ce,Jd=Q,HO=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var o=r.get("value"),i=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===o&&this._lastStatus===i)){this._lastValue=o,this._lastStatus=i;var s=this._group,l=this._handle;if(!i||i==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Pe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=be(Xw,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Jw(s,r,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,o=a.type==="category",i=r.get("snap");if(!i&&!o)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(o&&a.getBandWidth()>s)return!0;if(i){var l=Md(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,o){},e.prototype.createPointerEl=function(t,r,n,a){var o=r.pointer;if(o){var i=ia(t).pointerEl=new vM[o.type](jw(r.pointer));t.add(i)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var o=ia(t).labelEl=new We(jw(r.label));t.add(o),Kw(o,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=ia(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var o=ia(t).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),Kw(o,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,o=r.getModel("handle"),i=r.get("status");if(!o.get("show")||!i||i==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Zf(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ca(u.event)},onmousedown:Jd(this._onHandleDragMove,this,0,0),drift:Jd(this._onHandleDragMove,this),ondragend:Jd(this._onHandleDragEnd,this)}),n.add(a)),Jw(a,r,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");U(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ml(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Xw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Qd(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Qd(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Qd(a)),ia(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),kl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function Xw(e,t,r,n){Zw(ia(r).lastProp,n)||(ia(r).lastProp=n,t?Je(r,n,e):(r.stopAnimation(),r.attr(n)))}function Zw(e,t){if(K(e)&&K(t)){var r=!0;return k(t,function(n,a){r=r&&Zw(e[a],n)}),!!r}else return e===t}function Kw(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Qd(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Jw(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),a!=null&&(o.zlevel=a),o.silent=r)})}const WO=HO;function UO(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function YO(e,t,r,n,a){var o=r.get("value"),i=Qw(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=_l(s.get("padding")||0),u=s.getFont(),c=tf(i,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=a.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),qO(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Zt(s,{text:i,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function qO(e,t,r,n){var a=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,o)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Qw(e,t,r,n,a){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:a.precision}),i=a.formatter;if(i){var s={value:fd(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),X(i)?o=i.replace("{value}",o):ae(i)&&(o=i(s))}return o}function eb(e,t,r){var n=xa();return Dc(n,n,r.rotation),Nc(n,n,r.position),ri([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function jO(e,t,r,n,a,o){var i=fw.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),YO(t,n,a,o,{position:eb(n.axis,e,r),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function XO(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function ZO(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var KO=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,o,i){var s=a.axis,l=s.grid,u=o.get("type"),c=tb(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=UO(o),h=JO[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=Td(l.model,a);jO(n,r,v,a,o,i)},t.prototype.getHandleTransform=function(r,n,a){var o=Td(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var i=eb(n.axis,r,o);return{x:i[0],y:i[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,o){var i=a.axis,s=i.grid,l=i.getGlobalExtent(!0),u=tb(s,i).getOtherAxis(i).getGlobalExtent(),c=i.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(WO);function tb(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var JO={line:function(e,t,r){var n=XO([t,r[0]],[t,r[1]],rb(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:ZO([t-n/2,r[0]],[n,a],rb(e))}}};function rb(e){return e.dim==="x"?0:1}const QO=KO;var eR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Te);const tR=eR;var Rr=Ne(),rR=k;function nb(e,t,r){if(!ne.node){var n=t.getZr();Rr(n).records||(Rr(n).records={}),nR(n,t);var a=Rr(n).records[e]||(Rr(n).records[e]={});a.handler=r}}function nR(e,t){if(Rr(e).initialized)return;Rr(e).initialized=!0,r("click",be(ab,"click")),r("mousemove",be(ab,"mousemove")),r("globalout",oR);function r(n,a){e.on(n,function(o){var i=iR(t);rR(Rr(e).records,function(s){s&&a(s,o,i.dispatchAction)}),aR(i.pendings,t)})}}function aR(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function oR(e,t,r){e.handler("leave",null,r)}function ab(e,t,r,n){t.handler(e,r,n)}function iR(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function ep(e,t){if(!ne.node){var r=t.getZr(),n=(Rr(r).records||{})[e];n&&(Rr(r).records[e]=null)}}var sR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var o=n.getComponent("tooltip"),i=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";nb("axisPointer",a,function(s,l,u){i!=="none"&&(s==="leave"||i.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){ep("axisPointer",n)},t.prototype.dispose=function(r,n){ep("axisPointer",n)},t.type="axisPointer",t}(Jt);const lR=sR;function ob(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var o=a.getData(),i=Tn(o,e);if(i==null||i<0||U(i))return{point:[]};var s=o.getItemGraphicEl(i),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(i)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),m=[];m[h]=o.get(v,i),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),i),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(o.getValues(j(l.dimensions,function(y){return o.mapDimension(y)}),i))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var ib=Ne();function uR(e,t,r){var n=e.currTrigger,a=[e.x,e.y],o=e,i=e.dispatchAction||Q(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){mu(a)&&(a=ob({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=mu(a),u=o.axesInfo,c=s.axesInfo,f=n==="leave"||mu(a),d={},h={},v={list:[],map:{}},m={showPointer:be(fR,h),showTooltip:be(hR,v)};k(s.coordSysMap,function(y,w){var _=l||y.containPoint(a);k(s.coordSysAxesInfo[w],function(S,x){var C=S.axis,T=gR(u,S);if(!f&&_&&(!u||T)){var b=T&&T.value;b==null&&!l&&(b=C.pointToData(a)),b!=null&&sb(S,b,m,!1,d)}})});var g={};return k(c,function(y,w){var _=y.linkGroup;_&&!h[w]&&k(_.axesInfo,function(S,x){var C=h[x];if(S!==y&&C){var T=C.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,lb(S),lb(y)))),g[y.key]=T}})}),k(g,function(y,w){sb(c[w],y,m,!0,d)}),dR(h,c,d),pR(v,a,e,i),vR(c,i,r),d}}function sb(e,t,r,n,a){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var i=cR(t,e),s=i.payloadBatch,l=i.snapToValue;s[0]&&a.seriesIndex==null&&H(a,s[0]),!n&&e.snap&&o.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,i,l)}}function cR(e,t){var r=t.axis,n=r.dim,a=e,o=[],i=Number.MAX_VALUE,s=-1;return k(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,m=Math.abs(v);m<=i&&((m<i||v>=0&&s<0)&&(i=m,s=v,a=f,o.length=0),k(d,function(g){o.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:o,snapToValue:a}}function fR(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function hR(e,t,r,n){var a=r.payloadBatch,o=t.axis,i=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Li(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:i.componentIndex,axisType:i.type,axisId:i.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function dR(e,t,r){var n=r.axesInfo=[];k(t,function(a,o){var i=a.axisPointerModel.option,s=e[o];s?(!a.useHandle&&(i.status="show"),i.value=s.value,i.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(i.status="hide"),i.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:i.value})})}function pR(e,t,r,n){if(mu(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function vR(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",o=ib(n)[a]||{},i=ib(n)[a]={};k(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&k(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;i[h]=d})});var s=[],l=[];k(o,function(u,c){!i[c]&&l.push(u)}),k(i,function(u,c){!o[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function gR(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function lb(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function mu(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ub(e){hw.registerAxisPointerClass("CartesianAxisPointer",QO),e.registerComponentModel(tR),e.registerComponentView(lR),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!U(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=ML(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uR)}function mR(e){gr(HL),gr(ub)}var cb=["x","y","radius","angle","single"],yR=["cartesian2d","polar","singleAxis"];function _R(e){var t=e.get("coordinateSystem");return fe(yR,t)>=0}function pn(e){return process.env.NODE_ENV!=="production"&&te(e),e+"Axis"}function wR(e,t){var r=ie(),n=[],a=ie();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var o;do o=!1,e.eachComponent("dataZoom",i);while(o);function i(c){!a.get(c.uid)&&l(c)&&(s(c),o=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function fb(e){var t=e.ecModel,r={infoList:[],infoMap:ie()};return e.eachTargetAxis(function(n,a){var o=t.getComponent(pn(n),a);if(o){var i=o.getCoordSysModel();if(i){var s=i.uid,l=r.infoMap.get(s);l||(l={model:i,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(o)}}}),r}var tp=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),yu=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var o=hb(r);this.settledOption=o,this.mergeDefaultAndTheme(r,a),this._doInit(o)},t.prototype.mergeOption=function(r){var n=hb(r);pe(this.option,r,!0),pe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(o,i){this._rangePropMode[i]==="value"&&(n[o[0]]=a[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ie(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return k(cb,function(a){var o=this.getReferringComponents(pn(a),rD);if(o.specified){n=!0;var i=new tp;k(o.models,function(s){i.add(s.componentIndex)}),r.set(a,i)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,o=!0;if(o){var i=n==="vertical"?"y":"x",s=a.findComponents({mainType:i+"Axis"});l(s,i)}if(o){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new tp;if(d.add(f.componentIndex),r.set(c,d),o=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ft).models[0];h&&k(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",ft).models[0]&&d.add(v.componentIndex)})}}}o&&k(cb,function(u){if(o){var c=a.findComponents({mainType:pn(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new tp;f.add(c[0].componentIndex),r.set(u,f),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(o,i){var s=r[o[0]]!=null,l=r[o[1]]!=null;s&&!l?n[i]="percent":!s&&l?n[i]="value":a?n[i]=a[i]:s&&(n[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(pn(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,o){k(a.indexList,function(i){r.call(n,o,i)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){process.env.NODE_ENV!=="production"&&te(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(pn(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(o){(r[o[0]]!=null||r[o[1]]!=null)&&(n[o[0]]=a[o[0]]=r[o[0]],n[o[1]]=a[o[1]]=r[o[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;k(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),o=0;o<a.length;o++)for(var i=a[o],s=this._targetAxisInfoMap.get(i),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(i,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&te(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Te);function hb(e){var t={};return k(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var bR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Jt);const db=bR;var so=k,pb=Fo,SR=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(_R(r)){var n=pn(this._dimName),a=r.getReferringComponents(n,ft).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ce(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,o=this._dataZoomModel.getRangePropMode(),i=[0,100],s=[],l=[],u;so(["start","end"],function(d,h){var v=t[d],m=t[d+"Value"];o[h]==="percent"?(v==null&&(v=i[h]),m=a.parse(Ye(v,i,r))):(u=!0,m=m==null?r[h]:a.parse(m),v=Ye(m,r,i)),l[h]=m==null||isNaN(m)?r[h]:m,s[h]=v==null||isNaN(v)?i[h]:v}),pb(l),pb(s);var c=this._minMaxSpan;u?f(l,s,r,i,!1):f(s,l,i,r,!0);function f(d,h,v,m,g){var y=g?"Span":"ValueSpan";hu(0,d,v,"all",c["min"+y],c["max"+y]);for(var w=0;w<2;w++)h[w]=Ye(d[w],v,m,!0),g&&(h[w]=a.parse(h[w]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=CR(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),o=t.get("filterMode"),i=this._valueWindow;if(o==="none")return;so(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(o==="weakFilter"){var f=u.getStore(),d=j(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,m,g,y=0;y<c.length;y++){var w=f.get(d[y],h),_=!isNaN(w),S=w<i[0],x=w>i[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(v=!0),x&&(m=!0)}return g&&v&&m})}else so(c,function(h){if(o==="empty")l.setData(u=u.map(h,function(m){return s(m)?m:NaN}));else{var v={};v[h]=i,u.selectRange(v)}});so(c,function(h){u.setApproximateExtent(i,h)})}});function s(l){return l>=i[0]&&l<=i[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;so(["min","max"],function(a){var o=r.get(a+"Span"),i=r.get(a+"ValueSpan");i!=null&&(i=this.getAxisModel().axis.scale.parse(i)),i!=null?o=Ye(n[0]+i,n,[0,100],!0):o!=null&&(i=Ye(o,[0,100],n,!0)-n[0]),t[a+"Span"]=o,t[a+"ValueSpan"]=i},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=dg(n,[0,500]);a=Math.min(a,20);var o=t.axis.scale.rawExtentInfo;r[0]!==0&&o.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&o.setDeterminedMinMax("max",+n[1].toFixed(a)),o.freeze()}},e}();function CR(e,t,r){var n=[1/0,-1/0];so(r,function(i){OP(n,i.getData(),t)});var a=e.getAxisModel(),o=o1(a.axis.scale,a,n).calculate();return[o.min,o.max]}var xR={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(i,s){var l=e.getComponent(pn(i),s);a(i,s,l,o)})})}t(function(a,o,i,s){i.__dzAxisProxy=null});var r=[];t(function(a,o,i,s){i.__dzAxisProxy||(i.__dzAxisProxy=new SR(a,o,s,e),r.push(i.__dzAxisProxy))});var n=ie();return k(r,function(a){k(a.getTargetSeriesModels(),function(o){n.set(o.uid,o)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),o=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};const TR=xR;function NR(e){e.registerAction("dataZoom",function(t,r){var n=wR(r,t);k(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var vb=!1;function gb(e){vb||(vb=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,TR),NR(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function DR(e,t){var r=_l(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ee({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var AR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Te);const MR=AR;function mb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function yb(e){if(ne.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var _b=yb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),kR=yb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function wb(e,t){if(!e)return t;t=Dy(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function ER(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var PR=wb(kR,"transition"),rp=wb(_b,"transform"),IR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ne.transform3dSupported?"will-change:transform;":"");function LR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function OR(e,t,r){if(!X(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Yn(t);var o=LR(r),i=Math.max(Math.round(a)*1.5,6),s="",l=rp+":",u;fe(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=i+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+o+":-"+h+"px";var v=t+" solid "+a+"px;",m=["position:absolute;width:"+i+"px;height:"+i+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function RR(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=ne.transformSupported?","+rp+n:",left"+n+",top"+n),PR+":"+a}function bb(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ne.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var o=ne.transform3dSupported,i="translate"+(o?"3d":"")+"("+n+","+a+(o?",0":"")+")";return r?"top:0;left:0;"+rp+":"+i+";":[["top",0],["left",0],[_b,i]]}function BR(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,i=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+i+"px "+s+"px "+o+"px "+a),k(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function VR(e,t,r){var n=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),i=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=C0(e,"html"),d=l+"px "+u+"px "+i+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(RR(a,r)),o&&n.push("background-color:"+o),k(["width","color","radius"],function(h){var v="border-"+h,m=Dy(v),g=e.get(m);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(BR(c)),f!=null&&n.push("padding:"+_l(f).join("px ")+"px"),n.join(";")+";"}function Sb(e,t,r,n,a){var o=t&&t.painter;if(r){var i=o&&o.getViewportRoot();i&&NT(e,i,r,n,a)}else{e[0]=n,e[1]=a;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var $R=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ne.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),o=r.appendTo,i=o&&(X(o)?document.querySelector(o):ga(o)?o:ae(o)&&o(t.getDom()));Sb(this._styleCoord,a,i,t.getWidth()/2,t.getHeight()/2),(i||t.getDom()).appendChild(n),this._api=t,this._container=i;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Dt(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=ER(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,o=this._styleCoord;n.innerHTML?a.cssText=IR+VR(t,!this._firstShow,this._longHide)+bb(o[0],o[1],!0)+("border-color:"+Yn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,o){var i=this.el;if(t==null){i.innerHTML="";return}var s="";if(X(o)&&n.get("trigger")==="item"&&!mb(n)&&(s=OR(n,a,o)),X(t))i.innerHTML=t+s;else if(t){i.innerHTML="",U(t)||(t=[t]);for(var l=0;l<t.length;l++)ga(t[l])&&t[l].parentNode!==i&&i.appendChild(t[l]);if(s&&i.childNodes.length){var u=document.createElement("div");u.innerHTML=s,i.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(Sb(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,o=bb(n[0],n[1]);k(o,function(i){a[i[0]]=i[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",ne.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}();const FR=$R;var zR=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),xb(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,o){var i=this;K(t)&&it(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new We({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:C0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){i.el.style[u]=n.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){i.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=Cb(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;xb(a,this._zr,t,r),t=a[0],r=a[1];var o=n.style,i=vn(o.borderWidth||0),s=Cb(o);n.x=t+i+s.left,n.y=r+i+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function vn(e){return Math.max(0,e)}function Cb(e){var t=vn(e.shadowBlur||0),r=vn(e.shadowOffsetX||0),n=vn(e.shadowOffsetY||0);return{left:vn(t-r),right:vn(t+r),top:vn(t-n),bottom:vn(t+n)}}function xb(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var GR=new Ee({shape:{x:-1,y:-1,width:2,height:2}}),HR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ne.node||!n.getDom())){var a=r.getComponent("tooltip"),o=this._renderMode=aD(a.get("renderMode"));this._tooltipContent=o==="richText"?new zR(n):new FR(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(ne.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Ml(this,"_updatePosition",50,"fixRate"):kl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");nb("itemTooltip",this._api,Q(function(a,o,i){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(o,i):a==="leave"&&this._hide(i))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,o=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&i.manuallyShowTip(r,n,a,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,o){if(!(o.from===this.uid||ne.node||!a.getDom())){var i=Tb(o,a);this._ticket="";var s=o.dataByCoordSys,l=qR(o,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},i)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=GR;c.x=o.x,c.y=o.y,c.update(),ve(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},i)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},i);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,o))return;var f=ob(o,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:o.position,positionDefault:"bottom"},i)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},i))}},t.prototype.manuallyHideTip=function(r,n,a,o){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(Tb(o,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,o){var i=o.seriesIndex,s=o.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(i==null||s==null||l==null)){var u=n.getSeriesByIndex(i);if(u){var c=u.getData(),f=Oi([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var i=r.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,r);else if(a){var s=ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;yi(a,function(c){if(ve(c).dataIndex!=null)return l=c,!0;if(ve(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=Q(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,o=this._tooltipModel,i=[n.offsetX,n.offsetY],s=Oi([n.tooltipOption],o),l=this._renderMode,u=[],c=Kn("section",{blocks:[],noHeader:!0}),f=[],d=new Mh;k(r,function(w){k(w.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var C=Qw(x,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=Kn("section",{header:C,noHeader:!ar(C),sortBlocks:!0,blocks:[]});c.blocks.push(T),k(_.seriesDataIndices,function(b){var D=a.getSeriesByIndex(b.seriesIndex),N=b.dataIndexInside,A=D.getDataParams(N);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=fd(S.axis,{value:x}),A.axisValueLabel=C,A.marker=d.makeTooltipMarker("item",Yn(A.color),l);var M=u0(D.formatTooltip(N,!0,null)),I=M.frag;if(I){var P=Oi([D],o).get("valueFormatter");T.blocks.push(P?H({valueFormatter:P},I):I)}M.text&&f.push(M.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),m=b0(c,d,l,v,a.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
41
+ `];function Kn(e,t){return t.type=e,t}function Dh(e){return e.type==="section"}function _0(e){return Dh(e)?qk:jk}function w0(e){if(Dh(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return k(e.blocks,function(a){var o=w0(a);o>=t&&(t=o+ +(n&&(!o||Dh(a)&&!a.noHeader)))}),t}return 0}function qk(e,t,r,n){var a=t.noHeader,o=Xk(w0(t)),i=[],s=t.blocks||[];te(!s||U(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Y(u,l)){var c=new Ek(u[l],null);s.sort(function(v,m){return c.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(v,m){var g=t.valueFormatter,y=_0(v)(g?H(H({},e),{valueFormatter:g}):e,v,m>0?o.html:0,n);y!=null&&i.push(y)});var f=e.renderMode==="richText"?i.join(o.richText):Ah(i.join(""),a?r:o.html);if(a)return f;var d=sh(t.header,"ordinal",e.useUTC),h=y0(n,e.renderMode).nameStyle;return e.renderMode==="richText"?S0(e,d,h)+o.richText+f:Ah('<div style="'+h+";"+m0+';">'+Nt(d)+"</div>"+f,r)}function jk(e,t,r,n){var a=e.renderMode,o=t.noName,i=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=U(S)?S:[S],j(S,function(x,C){return sh(x,U(h)?h[C]:h,u)})};if(!(o&&i)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=o?"":sh(l,"ordinal",u),h=t.valueType,v=i?[]:c(t.value,t.dataIndex),m=!s||!o,g=!s&&o,y=y0(n,a),w=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":f)+(o?"":S0(e,d,w))+(i?"":Jk(e,v,m,g,_)):Ah((s?"":f)+(o?"":Zk(d,!s,w))+(i?"":Kk(v,m,g,_)),r)}}function b0(e,t,r,n,a,o){if(e){var i=_0(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return i(s,e,0,o)}}function Xk(e){return{html:Uk[e],richText:Yk[e]}}function Ah(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+m0+';">'+e+r+"</div>"}function Zk(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Nt(e)+"</span>"}function Kk(e,t,r,n){var a=r?"10px":"20px",o=t?"float:right;margin-left:"+a:"";return e=U(e)?e:[e],'<span style="'+o+";"+n+'">'+j(e,function(i){return Nt(i)}).join("&nbsp;&nbsp;")+"</span>"}function S0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Jk(e,t,r,n,a){var o=[a],i=n?10:20;return r&&o.push({padding:[0,0,0,i],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,o)}function Qk(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Yn(n)}function C0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Mh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=mg()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,o=$M({color:r,type:t,renderMode:n,markerId:a});return X(o)?o:(process.env.NODE_ENV!=="production"&&te(a),this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};U(r)?k(r,function(o){return H(n,o)}):H(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function eE(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),o=a.mapDimensionsAll("defaultedTooltip"),i=o.length,s=t.getRawValue(r),l=U(s),u=Qk(t,r),c,f,d,h;if(i>1||l&&!i){var v=tE(s,t,r,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(i){var m=a.getDimensionInfo(o[0]);h=c=Za(a,r,o[0]),f=m.type}else h=c=l?s[0]:s;var g=cf(t),y=g&&t.name||"",w=a.getName(r),_=n?y:w;return Kn("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[Kn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ar(_),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function tE(e,t,r,n,a){var o=t.getData(),i=Sr(e,function(f,d,h){var v=o.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?k(n,function(f){c(Za(o,r,f),f)}):k(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(i?u.push(Kn("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var rn=Ne();function Nl(e,t){return e.getName(t)||e.getId(t)}var rE="__universalTransitionEnabled",Dl=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=hi({count:aE,reset:oE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var o=rn(this).sourceManager=new Wk(this);o.prepareSource();var i=this.getInitialData(r,a);T0(i,this),this.dataTask.context.data=i,process.env.NODE_ENV!=="production"&&te(i,"getInitialData returned invalid data."),rn(this).dataBeforeProcessed=i,x0(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=ii(this),o=a?si(r):{},i=this.subType;Te.hasClass(i)&&(i+="Series"),pe(r,n.getTheme().get(this.subType)),pe(r,this.getDefaultOption()),Is(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Ya(r,o,a)},t.prototype.mergeOption=function(r,n){r=pe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=ii(this);a&&Ya(this.option,r,a);var o=rn(this).sourceManager;o.dirty(),o.prepareSource();var i=this.getInitialData(r,n);T0(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,rn(this).dataBeforeProcessed=i,x0(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(r){if(r&&!at(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Is(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=kh(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return rn(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=kh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}rn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ie(r)},t.prototype.getSourceManager=function(){return rn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return rn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return eE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ne.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var o=this.ecModel,i=hh.prototype.getColorFromPalette.call(this,r,n,a);return i||(i=o.getColorFromPalette(r,n,a)),i},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var o=this.option.selectedMode,i=this.getData(n);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Nl(i,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],o=0;o<r.length;o++)a[0]=r[o],this.isSelected(r[o],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=me(r),a=[],o=0;o<n.length;o++){var i=r[n[o]];i>=0&&a.push(i)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(n);return(a==="all"||a[Nl(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[rE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,o,i=this.option,s=i.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")i.selectedMap="all";else if(s==="multiple"){K(i.selectedMap)||(i.selectedMap={});for(var u=i.selectedMap,c=0;c<l;c++){var f=n[c],d=Nl(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=Nl(r,h);i.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(o={},o[d]=r.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var o=r.getRawDataItem(a);o&&o.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Te.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Te);Wt(Dl,l0),Wt(Dl,hh),Mg(Dl,Te);function x0(e){var t=e.name;cf(e)||(e.name=nE(e)||t)}function nE(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return k(r,function(a){var o=t.getDimensionInfo(a);o.displayName&&n.push(o.displayName)}),n.join(" ")}function aE(e){return e.model.getRawData().count()}function oE(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),iE}function iE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function T0(e,t){k(yT(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,be(sE,t))})}function sE(e,t){var r=kh(e);return r&&r.setOutputEnd((t||this).count()),t}function kh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const Er=Dl;var Eh=function(){function e(){this.group=new Pe,this.uid=ul("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();df(Eh),Ls(Eh);const Jt=Eh;function Ph(){var e=Ne();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,o=!!r.progressiveRender,i=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==i||o!==s)&&"reset"}}var N0=Ne(),lE=Ph(),Ih=function(){function e(){this.group=new Pe,this.uid=ul("viewChart"),this.renderTask=hi({plan:uE,reset:cE}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,a){var o=t.getData(a&&a.dataType);if(!o){process.env.NODE_ENV!=="production"&&Ze("Unknown dataType "+a.dataType);return}A0(o,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var o=t.getData(a&&a.dataType);if(!o){process.env.NODE_ENV!=="production"&&Ze("Unknown dataType "+a.dataType);return}A0(o,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){za(this.group,t)},e.markUpdateMethod=function(t,r){N0(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function D0(e,t,r){e&&Ba(e)&&(t==="emphasis"?jo:Xo)(e,r)}function A0(e,t,r){var n=Tn(e,t),a=t&&t.highlightKey!=null?SA(t.highlightKey):null;n!=null?k(He(n),function(o){D0(e.getItemGraphicEl(o),r,a)}):e.eachItemGraphicEl(function(o){D0(o,r,a)})}df(Ih,["dispose"]),Ls(Ih);function uE(e){return lE(e.model)}function cE(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,o=t.pipelineContext.progressiveRender,i=e.view,s=a&&N0(a).updateMethod,l=o?"incrementalPrepareRender":s&&i[s]?s:"render";return l!=="render"&&i[l](t,r,n,a),fE[l]}var fE={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Qt=Ih;var Al="\0__throttleOriginMethod",M0="\0__throttleRate",k0="\0__throttleType";function Lh(e,t,r){var n,a=0,o=0,i=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),i=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var m=c||t,g=c||r;c=null,s=n-(g?a:o)-m,clearTimeout(i),g?i=setTimeout(f,m):s>=0?f():i=setTimeout(f,-s),a=n};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.debounceNextCall=function(h){c=h},d}function Ml(e,t,r,n){var a=e[t];if(a){var o=a[Al]||a,i=a[k0],s=a[M0];if(s!==r||i!==n){if(r==null||!n)return e[t]=o;a=e[t]=Lh(o,r,n==="debounce"),a[Al]=o,a[k0]=n,a[M0]=r}return a}}function kl(e,t){var r=e[t];r&&r[Al]&&(r.clear&&r.clear(),e[t]=r[Al])}var E0=Ne(),P0={itemStyle:Ho(hy,!0),lineStyle:Ho(fy,!0)},hE={lineStyle:"stroke",itemStyle:"fill"};function I0(e,t){var r=e.visualStyleMapper||P0[t];return r||(console.warn("Unknown style type '"+t+"'."),P0.itemStyle)}function L0(e,t){var r=e.visualDrawType||hE[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var dE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),o=I0(e,n),i=o(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=L0(e,n),u=i[l],c=ae(u)?u:null,f=i.fill==="auto"||i.stroke==="auto";if(!i[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());i[l]||(i[l]=d,r.setVisual("colorFromPalette",!0)),i.fill=i.fill==="auto"||ae(i.fill)?d:i.fill,i.stroke=i.stroke==="auto"||ae(i.stroke)?d:i.stroke}if(r.setVisual("style",i),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),g=H({},i);g[l]=c(m),h.setItemVisual(v,"style",g)}}}},vi=new Qe,pE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=I0(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(i,s){var l=i.getRawDataItem(s);if(l&&l[n]){vi.option=l[n];var u=a(vi),c=i.ensureUniqueItemVisual(s,"style");H(c,u),vi.option.decal&&(i.setItemVisual(s,"decal",vi.option.decal),vi.option.decal.dirty=!0),o in u&&i.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vE={performRawSeries:!0,overallReset:function(e){var t=ie();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,o=t.get(a);o||(o={},t.set(a,o)),E0(r).scope=o}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},o=r.getData(),i=E0(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=L0(r,s);o.each(function(u){var c=o.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,i,v)}})}})}},El=Math.PI;function gE(e,t){t=t||{},he(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Pe,n=new Ee({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new We({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Ee({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(o);var i;return t.showSpinner&&(i=new Uf({shape:{startAngle:-El/2,endAngle:-El/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:El*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:El*3/2}).delay(300).start("circularInOut"),r.add(i)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var O0=function(){function e(t,r,n,a){this._stageTaskMap=ie(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,o=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,i=o?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/i):null;return{step:i,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),o=a.count(),i=n.progressiveEnabled&&r.incrementalPrepareRender&&o>=n.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ie();t.eachSeries(function(a){var o=a.getProgressive(),i=a.uid;n.set(i,{id:i,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;k(this._allHandlers,function(a){var o=t.get(a.uid)||t.set(a.uid,{}),i="";process.env.NODE_ENV!=="production"&&(i='"reset" and "overallReset" must not be both specified.'),te(!(a.reset&&a.overallReset),i),a.reset&&this._createSeriesStageTask(a,o,r,n),a.overallReset&&this._createOverallStageTask(a,o,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var o=t.renderTask,i=o.context;i.model=r,i.ecModel=n,i.api=a,o.__block=!t.incrementalPrepareRender,this._pipe(r,o)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var o=!1,i=this;k(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=i._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),i.updatePayload(d,n);var m=i.getPerformArgs(d,a.block);v.each(function(g){g.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var w=i.getPerformArgs(g,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),i.updatePayload(g,n),g.perform(w)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var o=this,i=r.seriesTaskMap,s=r.seriesTaskMap=ie(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,h=s.set(d,i&&i.get(d)||hi({plan:bE,reset:SE,count:xE}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var o=this,i=r.overallTask=r.overallTask||hi({reset:mE});i.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:o};var s=i.agentStubMap,l=i.agentStubMap=ie(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),te(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,a).each(v):(f=!1,k(n.getSeries(),v));function v(m){var g=m.uid,y=l.set(g,s&&s.get(g)||(d=!0,hi({reset:yE,onDirty:wE})));y.context={model:m,overallProgress:f},y.agent=i,y.__block=f,o._pipe(m,y)}d&&i.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ae(t)&&(t={overallReset:t,seriesType:TE(t)}),t.uid=ul("stageHandler"),r&&(t.visualType=r),t},e}();function mE(e){e.overallReset(e.ecModel,e.api,e.payload)}function yE(e){return e.overallProgress&&_E}function _E(){this.agent.dirty(),this.getDownstream().dirty()}function wE(){this.agent&&this.agent.dirty()}function bE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function SE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=He(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?j(t,function(r,n){return R0(n)}):CE}var CE=R0(0);function R0(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var o=t.start;o<t.end;o++)a.dataEach(n,o);else a&&a.progress&&a.progress(t,n)}}function xE(e){return e.data.count()}function TE(e){Pl=null;try{e(gi,B0)}catch{}return Pl}var gi={},B0={},Pl;V0(gi,ph),V0(B0,Gy),gi.eachSeriesByType=gi.eachRawSeriesByType=function(e){Pl=e},gi.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Pl=e.subType)};function V0(e,t){for(var r in t.prototype)e[r]=ot}var $0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const NE={color:$0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$0]};var lt="#B9B8CE",F0="#100C2A",Il=function(){return{axisLine:{lineStyle:{color:lt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},z0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],G0={darkMode:!0,color:z0,backgroundColor:F0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lt}},textStyle:{color:lt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lt}},dataZoom:{borderColor:"#71708A",textStyle:{color:lt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:lt}},timeline:{lineStyle:{color:lt},label:{color:lt},controlStyle:{color:lt,borderColor:lt}},calendar:{itemStyle:{color:F0},dayLabel:{color:lt},monthLabel:{color:lt},yearLabel:{color:lt}},timeAxis:Il(),logAxis:Il(),valueAxis:Il(),categoryAxis:Il(),line:{symbol:"circle"},graph:{color:z0},gauge:{title:{color:lt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};G0.categoryAxis.splitLine.show=!1;const DE=G0;var AE=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(X(t)){var o=ur(t);r.mainType=o.main||null,r.subType=o.sub||null}else{var i=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(t,function(l,u){for(var c=!1,f=0;f<i.length;f++){var d=i[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,o=n.packedEvent,i=n.model,s=n.view;if(!i||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,i,"mainType")&&c(l,i,"subType")&&c(l,i,"index","componentIndex")&&c(l,i,"name")&&c(l,i,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,o));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Oh=["symbol","symbolSize","symbolRotate","symbolOffset"],H0=Oh.concat(["symbolKeepAspect"]),ME={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},o=!1,i=0;i<Oh.length;i++){var s=Oh[i],l=e.get(s);ae(l)?(o=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(H({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=me(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),m=0;m<u.length;m++){var g=u[m];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:o?c:null}}},kE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,o){for(var i=a.getItemModel(o),s=0;s<H0.length;s++){var l=H0[s],u=i.getShallow(l,!0);u!=null&&a.setItemVisual(o,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function EE(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function W0(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function PE(e,t){function r(n,a){var o=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(i){o.push(i.seriesIndex)}),o}k([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,o,i){a=H({},a),process.env.NODE_ENV!=="production"&&ze(a.type,n[1]),i.dispatchAction(H(a,{type:n[1],seriesIndex:r(o,a)}))})})}function Qa(e,t,r,n,a){var o=e+t;r.isSilent(o)||(process.env.NODE_ENV!=="production"&&qt("event "+o+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(i){for(var s=i.seriesIndex,l=i.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=i.getData(),d=Tn(f,a.fromActionPayload);r.trigger(o,{type:o,seriesId:i.id,name:U(d)?f.getName(d[0]):f.getName(d),selected:X(l)?l:H({},l)})}}))}function IE(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Qa("map","selectchanged",t,a,n),Qa("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Qa("map","selected",t,a,n),Qa("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Qa("map","unselected",t,a,n),Qa("pie","unselected",t,a,n))})}function mi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var LE=Math.round(Math.random()*9),OE=typeof Object.defineProperty=="function",RE=function(){function e(){this._id="__ec_inner_"+LE++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return OE?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),BE=ge.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+a,n+o),e.lineTo(r-a,n+o),e.closePath()}}),VE=ge.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+a,n),e.lineTo(r,n+o),e.lineTo(r-a,n),e.closePath()}}),$E=ge.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,o=Math.max(a,t.height),i=a/2,s=i*i/(o-i),l=n-o+i+s,u=Math.asin(s/i),c=Math.cos(u)*i,f=Math.sin(u),d=Math.cos(u),h=i*.6,v=i*.7;e.moveTo(r-c,l+s),e.arc(r,l,i,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),FE=ge.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,o=t.y,i=n/3*2;e.moveTo(a,o),e.lineTo(a+i,o+r),e.lineTo(a,o+r/4*3),e.lineTo(a-i,o+r),e.lineTo(a,o),e.closePath()}}),zE={line:en,rect:Ee,roundRect:Ee,square:Ee,circle:zf,diamond:VE,pin:$E,arrow:FE,triangle:BE},GE={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var o=Math.min(r,n);a.x=e,a.y=t,a.width=o,a.height=o},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},Ll={};k(zE,function(e,t){Ll[t]=new e});var HE=ge.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Ds(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=Ll[n];a||(n="rect",a=Ll[n]),GE[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function WE(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Pr(e,t,r,n,a,o,i){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=Zm(e.slice(8),new ye(t,r,n,a),i?"center":"cover"):e.indexOf("path://")===0?l=ol(e.slice(7),{},new ye(t,r,n,a),i?"center":"cover"):l=new HE({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=WE,o&&l.setColor(o),l}function Rh(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ol(e,t){if(e!=null)return U(e)||(e=[e,e]),[xe(e[0],t[0])||0,xe(oe(e[1],e[0]),t[1])||0]}function Jn(e){return isFinite(e)}function UE(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,o=t.y==null?0:t.y,i=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,o=o*r.height+r.y,i=i*r.height+r.y),n=Jn(n)?n:0,a=Jn(a)?a:1,o=Jn(o)?o:0,i=Jn(i)?i:0;var s=e.createLinearGradient(n,o,a,i);return s}function YE(e,t,r){var n=r.width,a=r.height,o=Math.min(n,a),i=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(i=i*n+r.x,s=s*a+r.y,l=l*o),i=Jn(i)?i:.5,s=Jn(s)?s:.5,l=l>=0&&Jn(l)?l:.5;var u=e.createRadialGradient(i,s,0,i,s,l);return u}function Bh(e,t,r){for(var n=t.type==="radial"?YE(e,t,r):UE(e,t,r),a=t.colorStops,o=0;o<a.length;o++)n.addColorStop(a[o].offset,a[o].color);return n}function qE(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Rl(e){return parseInt(e,10)}function Bl(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],i=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||Rl(s[n])||Rl(e.style[n]))-(Rl(s[o])||0)-(Rl(s[i])||0)|0}function jE(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Ce(e)?[e]:U(e)?e:null}function U0(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&jE(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=j(r,function(o){return o/a}),n/=a)}return[r,n]}var XE=new Ln(!0);function Vl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Y0(e){return typeof e=="string"&&e!=="none"}function $l(e){var t=e.fill;return t!=null&&t!=="none"}function q0(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function j0(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Vh(e,t,r){var n=kg(t.image,t.__image,r);if(Os(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*_T),o.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(o)}return a}}function ZE(e,t,r,n){var a,o=Vl(r),i=$l(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||XE,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=i&&!!d.colorStops,m=o&&!!h.colorStops,g=i&&!!d.image,y=o&&!!h.image,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0;(v||m)&&(C=t.getBoundingRect()),v&&(w=f?Bh(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=w),m&&(_=f?Bh(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=f||!t.__canvasFillPattern?Vh(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=f||!t.__canvasStrokePattern?Vh(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=w:g&&(S?e.fillStyle=S:i=!1),m?e.strokeStyle=_:y&&(x?e.strokeStyle=x:o=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var b,D;e.setLineDash&&r.lineDash&&(a=U0(t),b=a[0],D=a[1]);var N=!0;(u||f&Na)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),N=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),N&&c.rebuildPath(e,l?s:1),b&&(e.setLineDash(b),e.lineDashOffset=D),n||(r.strokeFirst?(o&&j0(e,r),i&&q0(e,r)):(i&&q0(e,r),o&&j0(e,r))),b&&e.setLineDash([])}function KE(e,t,r){var n=t.__image=kg(r.image,t.__image,t,t.onload);if(!(!n||!Os(n))){var a=r.x||0,o=r.y||0,i=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(i==null&&s!=null?i=s*l:s==null&&i!=null?s=i/l:i==null&&s==null&&(i=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,o,i,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=i-u,d=s-c;e.drawImage(n,u,c,f,d,a,o,i,s)}else e.drawImage(n,a,o,i,s)}}function JE(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||yn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,i=void 0;e.setLineDash&&r.lineDash&&(n=U0(t),o=n[0],i=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=i),r.strokeFirst?(Vl(r)&&e.strokeText(a,r.x,r.y),$l(r)&&e.fillText(a,r.x,r.y)):($l(r)&&e.fillText(a,r.x,r.y),Vl(r)&&e.strokeText(a,r.x,r.y)),o&&e.setLineDash([])}}var X0=["shadowBlur","shadowOffsetX","shadowOffsetY"],Z0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function K0(e,t,r,n,a){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){vt(e,a),o=!0;var i=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(i)?Dn.opacity:i}(n||t.blend!==r.blend)&&(o||(vt(e,a),o=!0),e.globalCompositeOperation=t.blend||Dn.blend);for(var s=0;s<X0.length;s++){var l=X0[s];(n||t[l]!==r[l])&&(o||(vt(e,a),o=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(o||(vt(e,a),o=!0),e.shadowColor=t.shadowColor||Dn.shadowColor),o}function J0(e,t,r,n,a){var o=yi(t,a.inHover),i=n?null:r&&yi(r,a.inHover)||{};if(o===i)return!1;var s=K0(e,o,i,n,a);if((n||o.fill!==i.fill)&&(s||(vt(e,a),s=!0),Y0(o.fill)&&(e.fillStyle=o.fill)),(n||o.stroke!==i.stroke)&&(s||(vt(e,a),s=!0),Y0(o.stroke)&&(e.strokeStyle=o.stroke)),(n||o.opacity!==i.opacity)&&(s||(vt(e,a),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(vt(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<Z0.length;c++){var f=Z0[c],d=f[0];(n||o[d]!==i[d])&&(s||(vt(e,a),s=!0),e[d]=o[d]||f[1])}return s}function QE(e,t,r,n,a){return K0(e,yi(t,a.inHover),r&&yi(r,a.inHover),n,a)}function Q0(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function e5(e,t,r){for(var n=!1,a=0;a<e.length;a++){var o=e[a];n=n||o.isZeroArea(),Q0(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}r.allClipped=n}function t5(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var e_=1,t_=2,r_=3,n_=4;function r5(e){var t=$l(e),r=Vl(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function vt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function yi(e,t){return t&&e.__hoverStyle||e.style}function a_(e,t){Qn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Qn(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~yt,t.__isRendered=!1;return}var o=t.__clipPaths,i=r.prevElClipPaths,s=!1,l=!1;if((!i||qE(o,i))&&(i&&i.length&&(vt(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),o&&o.length&&(vt(e,r),e.save(),e5(o,e,r),s=!0),r.prevElClipPaths=o),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof ge&&t.autoBatch&&r5(t.style);s||t5(a,u.transform)?(vt(e,r),Q0(e,t)):c||vt(e,r);var f=yi(t,r.inHover);t instanceof ge?(r.lastDrawType!==e_&&(l=!0,r.lastDrawType=e_),J0(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),ZE(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Af?(r.lastDrawType!==r_&&(l=!0,r.lastDrawType=r_),J0(e,t,u,l,r),JE(e,t,f)):t instanceof Qr?(r.lastDrawType!==t_&&(l=!0,r.lastDrawType=t_),QE(e,t,u,l,r),KE(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==n_&&(l=!0,r.lastDrawType=n_),n5(e,t,r)),c&&n&&vt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function n5(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},i,s;for(i=t.getCursor(),s=n.length;i<s;i++){var l=n[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qn(e,l,o,i===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qn(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var $h=new RE,o_=new Po(100),i_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Fl(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&$h.delete(e);var o=$h.get(e);if(o)return o;var i=he(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});i.backgroundColor==="none"&&(i.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=i.rotation,s.scaleX=s.scaleY=a?1:1/r,$h.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<i_.length;++d){var h=i[i_[d]];if(h!=null&&!U(h)&&!X(h)&&!Ce(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var m=o_.get(v);m&&(a?u.svgElement=m:u.image=m)}var g=l_(i.dashArrayX),y=a5(i.dashArrayY),w=s_(i.symbol),_=o5(g),S=u_(y),x=!a&&pa.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),b;x&&(x.width=T.width*r,x.height=T.height*r,b=x.getContext("2d")),N(),f&&o_.put(v,x||C),u.image=x,u.svgElement=C,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var A=1,M=0,I=_.length;M<I;++M)A=_g(A,_[M]);for(var P=1,M=0,I=w.length;M<I;++M)P=_g(P,w[M].length);A*=P;var L=S*_.length*w.length;if(process.env.NODE_ENV!=="production"){var E=function(B){console.warn("Calculated decal size is greater than "+B+" due to decal option settings so "+B+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+B+" to be larger to avoid incontinuity.")};A>i.maxTileWidth&&E("maxTileWidth"),L>i.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(A,i.maxTileWidth)),height:Math.max(1,Math.min(L,i.maxTileHeight))}}function N(){b&&(b.clearRect(0,0,x.width,x.height),i.backgroundColor&&(b.fillStyle=i.backgroundColor,b.fillRect(0,0,x.width,x.height)));for(var A=0,M=0;M<y.length;++M)A+=y[M];if(A<=0)return;for(var I=-S,P=0,L=0,E=0;I<T.height;){if(P%2===0){for(var B=L/2%w.length,R=0,V=0,G=0;R<T.width*2;){for(var q=0,M=0;M<g[E].length;++M)q+=g[E][M];if(q<=0)break;if(V%2===0){var J=(1-i.symbolSize)*.5,z=R+g[E][V]*J,ee=I+y[P]*J,De=g[E][V]*i.symbolSize,de=y[P]*i.symbolSize,Ge=G/2%w[B].length;rt(z,ee,De,de,w[B][Ge])}R+=g[E][V],++G,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}I+=y[P],++L,++P,P===y.length&&(P=0)}function rt(Ve,ke,re,ue,St){var Be=a?1:r,nr=Pr(St,Ve*Be,ke*Be,re*Be,ue*Be,i.color,i.symbolKeepAspect);if(a){var zt=n.painter.renderOneToVNode(nr);zt&&C.children.push(zt)}else a_(b,nr)}}}}function s_(e){if(!e||e.length===0)return[["rect"]];if(X(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!X(e[r])){t=!1;break}if(t)return s_([e]);for(var n=[],r=0;r<e.length;++r)X(e[r])?n.push([e[r]]):n.push(e[r]);return n}function l_(e){if(!e||e.length===0)return[[0,0]];if(Ce(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Ce(e[n])){r=!1;break}if(r)return l_([e]);for(var a=[],n=0;n<e.length;++n)if(Ce(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=j(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function a5(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Ce(e)){var t=Math.ceil(e);return[t,t]}var r=j(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function o5(e){return j(e,function(t){return u_(t)})}function u_(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function i5(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(i){var s=n.getItemVisual(i,"decal");if(s){var l=n.ensureUniqueItemVisual(i,"style");l.decal=Fl(s,t)}});var a=n.getVisual("decal");if(a){var o=n.getVisual("style");o.decal=Fl(a,t)}}})}var er=new Ut,zl={};function s5(e,t){process.env.NODE_ENV!=="production"&&zl[e]&&Ze("Already has an implementation of "+e+"."),zl[e]=t}function l5(e){return process.env.NODE_ENV!=="production"&&(zl[e]||Ze("Implementation of "+e+" doesn't exists.")),zl[e]}var u5=1,c5=800,f5=900,h5=1e3,d5=2e3,p5=5e3,c_=1e3,v5=1100,Fh=2e3,f_=3e3,g5=4e3,Gl=4500,m5=4600,y5=5e3,_5=6e3,h_=7e3,w5={PROCESSOR:{FILTER:h5,SERIES_FILTER:c5,STATISTIC:p5},VISUAL:{LAYOUT:c_,PROGRESSIVE_LAYOUT:v5,GLOBAL:Fh,CHART:f_,POST_CHART_LAYOUT:m5,COMPONENT:g5,BRUSH:y5,CHART_ITEM:Gl,ARIA:_5,DECAL:h_}},tt="__flagInMainProcess",gt="__pendingUpdate",zh="__needsUpdateStatus",d_=/^[a-zA-Z0-9_]+$/,Gh="__connectUpdateStatus",p_=0,b5=1,S5=2;function v_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){bt(this.id);return}return m_(this,e,t)}}function g_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return m_(this,e,t)}}function m_(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ut.prototype[t].apply(e,r)}var y_=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ut),__=y_.prototype;__.on=g_("on"),__.off=g_("off");var eo,Hh,Hl,nn,Wh,Uh,Yh,_i,wi,w_,b_,qh,S_,Wl,C_,x_,Bt,T_,N_=function(e){W(t,e);function t(r,n,a){var o=e.call(this,new AE)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},X(n)&&(n=D_[n]),o._dom=r;var i="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=ne.hasGlobalWindow?window:global;u&&(i=oe(u.__ECHARTS__DEFAULT__RENDERER__,i),s=oe(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=oe(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var c=o._zr=cg(r,{renderer:a.renderer||i,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:oe(a.useDirtyRect,l),useCoarsePointer:oe(a.useCoarsePointer,s),pointerSize:a.pointerSize});o._ssr=a.ssr,o._throttledZrFlush=Lh(Q(c.flush,c),17),n=ce(n),n&&Xy(n,!0),o._theme=n,o._locale=PM(a.locale||dy),o._coordSysMgr=new gh;var f=o._api=C_(o);function d(h,v){return h.__prio-v.__prio}return us(Yl,d),us(Xh,d),o._scheduler=new O0(o,f,Xh,Yl),o._messageCenter=new y_,o._initEvents(),o.resize=Q(o.resize,o),c.animation.on("frame",o._onframe,o),w_(c,o),b_(c,o),hc(o),o}return t.prototype._onframe=function(){if(!this._disposed){T_(this);var r=this._scheduler;if(this[gt]){var n=this[gt].silent;this[tt]=!0;try{eo(this),nn.update.call(this,null,this[gt].updateParams)}catch(l){throw this[tt]=!1,this[gt]=null,l}this._zr.flush(),this[tt]=!1,this[gt]=null,_i.call(this,n),wi.call(this,n)}else if(r.unfinished){var a=u5,o=this._model,i=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(o),r.performDataProcessorTasks(o),Uh(this,o),r.performVisualTasks(o),Wl(this,this._model,i,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(this[tt]){process.env.NODE_ENV!=="production"&&Ze("`setOption` should not be called during main process.");return}if(this._disposed){bt(this.id);return}var o,i,s;if(K(n)&&(a=n.lazyUpdate,o=n.silent,i=n.replaceMerge,s=n.transition,n=n.notMerge),this[tt]=!0,!this._model||n){var l=new dk(this._api),u=this._theme,c=this._model=new ph;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:i},Zh);var f={seriesTransition:s,optionChanged:!0};if(a)this[gt]={silent:o,updateParams:f},this[tt]=!1,this.getZr().wakeUp();else{try{eo(this),nn.update.call(this,null,f)}catch(d){throw this[gt]=null,this[tt]=!1,d}this._ssr||this._zr.flush(),this[gt]=null,this[tt]=!1,_i.call(this,o),wi.call(this,o)}},t.prototype.setTheme=function(){qt("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ne.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&ze("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(ne.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return k(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){bt(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,o=[],i=this;k(n,function(l){a.eachComponent({mainType:l},function(u){var c=i._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return k(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){bt(this.id);return}var n=r.type==="svg",a=this.group,o=Math.min,i=Math.max,s=1/0;if(A_[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();k(Si,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ce(r)),C=_.getDom().getBoundingClientRect();l=o(C.left,l),u=o(C.top,u),c=i(C.right,c),f=i(C.bottom,f),d.push({dom:x,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,g=pa.createCanvas(),y=cg(g,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:m}),n){var w="";return k(d,function(_){var S=_.left-l,x=_.top-u;w+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ee({shape:{x:0,y:0,width:v,height:m},style:{fill:r.connectedBackgroundColor}})),k(d,function(_){var S=new Qr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Wh(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Wh(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){bt(this.id);return}var a=this._model,o,i=ff(a,r);return k(i,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?o=o||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&Fe(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Fe(l+": containPoint is not supported")},this)},this),!!o},t.prototype.getVisual=function(r,n){var a=this._model,o=ff(a,r,{defaultMainType:"series"}),i=o.seriesModel;process.env.NODE_ENV!=="production"&&(i||Fe("There is no specified series model"));var s=i.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?EE(s,l,n):W0(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;k(C5,function(n){var a=function(o){var i=r.getModel(),s=o.target,l,u=n==="globalout";if(u?l={}:s&&mi(s,function(v){var m=ve(v);if(m&&m.dataIndex!=null){var g=m.dataModel||i.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=H({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&i.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&h)&&Fe("model or view can not be found by params"),l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),k(bi,function(n,a){r._messageCenter.on(a,function(o){this.trigger(a,o)},r)}),k(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),IE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){bt(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){bt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Dg(this.getDom(),Jh,"");var n=this,a=n._api,o=n._model;k(n._componentsViews,function(i){i.dispose(o,a)}),k(n._chartsViews,function(i){i.dispose(o,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Si[n.id]},t.prototype.resize=function(r){if(this[tt]){process.env.NODE_ENV!=="production"&&Ze("`resize` should not be called during main process.");return}if(this._disposed){bt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),o=r&&r.silent;this[gt]&&(o==null&&(o=this[gt].silent),a=!0,this[gt]=null),this[tt]=!0;try{a&&eo(this),nn.update.call(this,{type:"resize",animation:H({duration:0},r&&r.animation)})}catch(i){throw this[tt]=!1,i}this[tt]=!1,_i.call(this,o),wi.call(this,o)}},t.prototype.showLoading=function(r,n){if(this._disposed){bt(this.id);return}if(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Kh[r]){process.env.NODE_ENV!=="production"&&Fe("Loading effects "+r+" not exists.");return}var a=Kh[r](this._api,n),o=this._zr;this._loadingFX=a,o.add(a)},t.prototype.hideLoading=function(){if(this._disposed){bt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=H({},r);return n.type=bi[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){bt(this.id);return}if(K(n)||(n={silent:!!n}),!!Ul[r.type]&&this._model){if(this[tt]){this._pendingActions.push(r);return}var a=n.silent;Yh.call(this,r,a);var o=n.flush;o?this._zr.flush():o!==!1&&ne.browser.weChat&&this._throttledZrFlush(),_i.call(this,a),wi.call(this,a)}},t.prototype.updateLabelLayout=function(){er.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){bt(this.id);return}var n=r.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&te(r.data&&o),o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){eo=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Hh(f,!0),Hh(f,!1),d.plan()},Hh=function(f,d){for(var h=f._model,v=f._scheduler,m=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,w=f._api,_=0;_<m.length;_++)m[_].__alive=!1;d?h.eachComponent(function(C,T){C!=="series"&&S(T)}):h.eachSeries(S);function S(C){var T=C.__requireNewView;C.__requireNewView=!1;var b="_ec_"+C.id+"_"+C.type,D=!T&&g[b];if(!D){var N=ur(C.type),A=d?Jt.getClass(N.main,N.sub):Qt.getClass(N.sub);process.env.NODE_ENV!=="production"&&te(A,N.sub+" does not exist."),D=new A,D.init(h,w),g[b]=D,m.push(D),y.add(D.group)}C.__viewId=D.__id=b,D.__alive=!0,D.__model=C,D.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(D,C,h,w)}for(var _=0;_<m.length;){var x=m[_];x.__alive?_++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,w),m.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Hl=function(f,d,h,v,m){var g=f._model;if(g.setUpdatePayload(h),!v){k([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[v+"Id"]=h[v+"Id"],y[v+"Index"]=h[v+"Index"],y[v+"Name"]=h[v+"Name"];var w={mainType:v,query:y};m&&(w.subType=m);var _=h.excludeSeriesId,S;_!=null&&(S=ie(),k(He(_),function(C){var T=lr(C,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;if(!T)if(xm(h))if(C instanceof Er)h.type===Vn&&!h.notBlur&&!C.get(["emphasis","disabled"])&&pA(C,h,f._api);else{var b=Bf(C.mainType,C.componentIndex,h.name,f._api),D=b.focusSelf,N=b.dispatchers;h.type===Vn&&D&&!h.notBlur&&Rf(C.mainType,C.componentIndex,f._api),N&&k(N,function(A){h.type===Vn?jo(A):Xo(A)})}else Vf(h)&&C instanceof Er&&(mA(C,h,f._api),bm(C),Bt(f))},f),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;T||x(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function x(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},nn={prepareAndUpdate:function(f){eo(this),nn.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,m=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,v),y.performDataProcessorTasks(h,f),Uh(this,h),g.update(h,v),r(h),y.performVisualTasks(h,f),qh(this,h,v,f,d);var w=h.get("backgroundColor")||"transparent",_=h.get("darkMode");m.setBackgroundColor(w),_!=null&&_!=="auto"&&m.setDarkMode(_),er.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(y,w){if(y!=="series"){var _=d.getViewOfComponentModel(w);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(w,h,v,f);S&&S.update&&m.push(_)}else m.push(_)}});var g=ie();h.eachSeries(function(y){var w=d._chartsMap[y.__viewId];if(w.updateTransform){var _=w.updateTransform(y,h,v,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Wl(this,h,v,f,{},g),er.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Qt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),qh(this,d,this._api,f,{}),er.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Qt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var g=d.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(v){var m=d._chartsMap[v.__viewId];m.updateVisual(v,h,d._api,f)}),er.trigger("afterupdate",h,this._api))},updateLayout:function(f){nn.update.call(this,f)}},Wh=function(f,d,h,v){if(f._disposed){bt(f.id);return}for(var m=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,w=ff(m,h),_=0;_<g.length;_++){var S=g[_];if(S[d]&&(y=S[d](m,w,v))!=null)return y}process.env.NODE_ENV!=="production"&&Fe("No coordinate system that supports "+d+" found by the given finder.")},Uh=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},Yh=function(f,d){var h=this,v=this.getModel(),m=f.type,g=f.escapeConnect,y=Ul[m],w=y.actionInfo,_=(w.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&ur(_[0]);this[tt]=!0;var C=[f],T=!1;f.batch&&(T=!0,C=j(f.batch,function(P){return P=he(H({},P),f),P.batch=null,P}));var b=[],D,N=Vf(f),A=xm(f);if(A&&wm(this._api),k(C,function(P){if(D=y.action(P,h._model,h._api),D=D||H({},P),D.type=w.event||D.type,b.push(D),A){var L=hf(f),E=L.queryOptionMap,B=L.mainTypeSpecified,R=B?E.keys()[0]:"series";Hl(h,S,P,R),Bt(h)}else N?(Hl(h,S,P,"series"),Bt(h)):x&&Hl(h,S,P,x.main,x.sub)}),S!=="none"&&!A&&!N&&!x)try{this[gt]?(eo(this),nn.update.call(this,f),this[gt]=null):nn[S].call(this,f)}catch(P){throw this[tt]=!1,P}if(T?D={type:w.event||m,escapeConnect:g,batch:b}:D=b[0],this[tt]=!1,!d){var M=this._messageCenter;if(M.trigger(D.type,D),N){var I={type:"selectchanged",escapeConnect:g,selected:yA(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};M.trigger(I.type,I)}}},_i=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Yh.call(this,h,f)}},wi=function(f){!f&&this.trigger("updated")},w_=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[gt]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},b_=function(f,d){f.on("mouseover",function(h){var v=h.target,m=mi(v,Ba);m&&(vA(m,h,d._api),Bt(d))}).on("mouseout",function(h){var v=h.target,m=mi(v,Ba);m&&(gA(m,h,d._api),Bt(d))}).on("click",function(h){var v=h.target,m=mi(v,function(w){return ve(w).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",y=ve(m);d._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(w,_){var S=_.get("zlevel")||0,x=_.get("z")||0,C=_.getZLevelKey();v=v||!!C,(w==="series"?h:d).push({zlevel:S,z:x,idx:_.componentIndex,type:w,key:C})}),v){var m=d.concat(h),g,y;us(m,function(w,_){return w.zlevel===_.zlevel?w.z-_.z:w.zlevel-_.zlevel}),k(m,function(w){var _=f.getComponent(w.type,w.idx),S=w.zlevel,x=w.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}qh=function(f,d,h,v,m){n(d),S_(f,d,h,v,m),k(f._chartsViews,function(g){g.__alive=!1}),Wl(f,d,h,v,m),k(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},S_=function(f,d,h,v,m,g){k(g||f._componentsViews,function(y){var w=y.__model;u(w,y),y.render(w,d,h,v),s(w,y),c(w,y)})},Wl=function(f,d,h,v,m,g){var y=f._scheduler;m=H(m||{},{updatedSeries:d.getSeries()}),er.trigger("series:beforeupdate",d,h,m);var w=!1;d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,v),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(w=!0),S.group.silent=!!_.get("silent"),i(_,S),bm(_)}),y.unfinished=w||y.unfinished,er.trigger("series:layoutlabels",d,h,m),er.trigger("series:transition",d,h,m),d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];s(_,S),c(_,S)}),o(f,d),er.trigger("series:afterupdate",d,h,m)},Bt=function(f){f[zh]=!0,f.getZr().wakeUp()},T_=function(f){f[zh]&&(f.getZr().storage.traverse(function(d){Qo(d)||a(d)}),f[zh]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Gs&&f.states.emphasis?d.push("emphasis"):f.hoverState===zs&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr,v=h.storage,m=0;v.traverse(function(g){g.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!ne.node&&!ne.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function i(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var w=f.childrenRef(),_=0;_<w.length;_++)v=Math.max(l(w[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(m&&(m.z=d,m.zlevel=h,isFinite(v)&&(m.z2=v+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Qo(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),m=h.get("duration"),g=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Qo(y))return;if(y instanceof ge&&CA(y),y.__dirty){var w=y.prevStates;w&&y.useStates(w)}if(v){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}C_=function(f){return new(function(d){W(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){jo(v,m),Bt(f)},h.prototype.leaveEmphasis=function(v,m){Xo(v,m),Bt(f)},h.prototype.enterBlur=function(v){gm(v),Bt(f)},h.prototype.leaveBlur=function(v){Lf(v),Bt(f)},h.prototype.enterSelect=function(v){mm(v),Bt(f)},h.prototype.leaveSelect=function(v){ym(v),Bt(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(Gy))(f)},x_=function(f){function d(h,v){for(var m=0;m<h.length;m++){var g=h[m];g[Gh]=v}}k(bi,function(h,v){f._messageCenter.on(v,function(m){if(A_[f.group]&&f[Gh]!==p_){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),y=[];k(Si,function(w){w!==f&&w.group===f.group&&y.push(w)}),d(y,p_),k(y,function(w){w[Gh]!==b5&&w.dispatchAction(g)}),d(y,S5)}})})}}(),t}(Ut),jh=N_.prototype;jh.on=v_("on"),jh.off=v_("off"),jh.one=function(e,t,r){var n=this;qt("ECharts#one is deprecated.");function a(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];t&&t.apply&&t.apply(this,o),n.off(e,a)}this.on.call(this,e,a,r)};var C5=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function bt(e){process.env.NODE_ENV!=="production"&&Fe("Instance "+e+" has been disposed")}var Ul={},bi={},Xh=[],Zh=[],Yl=[],D_={},Kh={},Si={},A_={},x5=+new Date-0,Jh="_echarts_instance_";function T5(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var a=N5(e);if(a)return process.env.NODE_ENV!=="production"&&Fe("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&ga(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&Fe("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new N_(e,t,r);return o.id="ec_"+x5++,Si[o.id]=o,n&&Dg(e,Jh,o.id),x_(o),er.trigger("afterinit",o),o}function N5(e){return Si[nD(e,Jh)]}function ql(e,t){D_[e]=t}function M_(e){fe(Zh,e)<0&&Zh.push(e)}function k_(e,t){ed(Xh,e,t,d5)}function D5(e){Qh("afterinit",e)}function A5(e){Qh("afterupdate",e)}function Qh(e,t){er.on(e,t)}function ea(e,t,r){ae(t)&&(r=t,t="");var n=K(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!bi[t]&&(te(d_.test(n)&&d_.test(t)),Ul[n]||(Ul[n]={action:r,actionInfo:e}),bi[t]=n)}function M5(e,t){gh.register(e,t)}function k5(e,t){ed(Yl,e,t,c_,"layout")}function ta(e,t){ed(Yl,e,t,f_,"visual")}var E_=[];function ed(e,t,r,n,a){if((ae(t)||K(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");k(e,function(i){te(i.__raw!==r)})}if(!(fe(E_,r)>=0)){E_.push(r);var o=O0.wrapStageHandler(r,a);o.__prio=t,o.__raw=r,e.push(o)}}function P_(e,t){Kh[e]=t}function E5(e,t,r){var n=l5("registerMap");n&&n(e,t,r)}var P5=Vk;ta(Fh,dE),ta(Gl,pE),ta(Gl,vE),ta(Fh,ME),ta(Gl,kE),ta(h_,i5),M_(Xy),k_(f5,bk),P_("default",gE),ea({type:Vn,event:Vn,update:Vn},ot),ea({type:Ws,event:Ws,update:Ws},ot),ea({type:Yo,event:Yo,update:Yo},ot),ea({type:Us,event:Us,update:Us},ot),ea({type:qo,event:qo,update:qo},ot),ql("light",NE),ql("dark",DE);function Ci(e){return e==null?0:e.length||1}function I_(e){return e}var I5=function(){function e(t,r,n,a,o,i){this._old=t,this._new=r,this._oldKeyGetter=n||I_,this._newKeyGetter=a||I_,this.context=o,this._diffModeMultiple=i==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),o=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var i=0;i<t.length;i++){var s=a[i],l=n[s],u=Ci(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,i)}else u===1?(n[s]=null,this._update&&this._update(l,i)):this._remove&&this._remove(i)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},o=[],i=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(r,a,i,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=n[l],c=a[l],f=Ci(u),d=Ci(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(i,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],o=r[a],i=Ci(o);if(i>1)for(var s=0;s<i;s++)this._add&&this._add(o[s]);else i===1&&this._add&&this._add(o);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var o=this._diffModeMultiple,i=0;i<t.length;i++){var s="_ec_"+this[a](t[i],i);if(o||(n[i]=s),!!r){var l=r[s],u=Ci(l);u===0?(r[s]=i,o&&n.push(s)):u===1?r[s]=[l,i]:l.push(i)}}},e}();const L_=I5;var L5=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function O5(e,t){var r={},n=r.encode={},a=ie(),o=[],i=[],s={};k(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){process.env.NODE_ENV!=="production"&&te(ch.get(v)==null);var m=h.coordDimIndex;td(n,v)[m]=d,h.isExtraCoord||(a.set(v,1),B5(h.type)&&(o[0]=d),td(s,v)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&i.push(d)}ch.each(function(g,y){var w=td(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(w[_]=h.name)})});var l=[],u={};a.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=j(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(o=c.slice());var f=n.tooltip;return f&&f.length?i=f.slice():i.length||(i=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=i,r.userOutput=new L5(s,t),r}function td(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function R5(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function B5(e){return!(e==="ordinal"||e==="time")}var jl=function(){function e(t){this.otherDims={},t!=null&&H(this,t)}return e}(),V5=Ne(),$5={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},O_=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=V_(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return oe(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Qy(this.source),n=!$_(t),a="",o=[],i=0,s=0;i<t;i++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===i)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(i);d&&(l=r?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=$5[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:o,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===r)o.isCalculationCoord||(a=o.name),n++;else{var i=this.getSourceDimension(r);i&&(a=i.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function R_(e){return e instanceof O_}function B_(e){for(var t=ie(),r=0;r<(e||[]).length;r++){var n=e[r],a=K(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function V_(e){var t=V5(e);return t.dimNameMap||(t.dimNameMap=B_(e.dimensionsDefine))}function $_(e){return e>30}var xi=K,an=j,F5=typeof Int32Array>"u"?Array:Int32Array,z5="e\0\0",F_=-1,G5=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],H5=["_approximateExtent"],z_,Xl,Ti,to,rd,Zl,nd,Ni=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;R_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var o={},i=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=X(f)?new jl({name:f}):f instanceof jl?f:new jl(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};i.push(h),o[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&te(a||d.storeDimIndex>=0),a&&(d.storeDimIndex=c)}if(this.dimensions=i,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=ie();k(i,function(g){m.set(o[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Ce(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,o;if(t instanceof Nh&&(o=t),!o){var i=this.dimensions,s=_h(t)||nt(t)?new r0(t,i.length):t;o=new Nh;var l=an(i,function(u){return{type:a._dimInfos[u].type,property:u}});o.initData(s,l,n)}this._store=o,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=O5(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,o=n.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<o;s++){var l=s-a;this._nameList[s]=r[l],i&&nd(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ar&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,i=this._idList,s=a.getSource().sourceFormat,l=s===Lt;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&UN(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=lr(d,null));var h=f.id;i[c]==null&&h!=null&&(i[c]=lr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)nd(this,c);z_(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){xi(t)?H(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ti(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return Xl(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return U(t)?a.getValues(an(t,function(o){return n._getStoreDimIndex(o)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n[r];return a==null||isNaN(a)?F_:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ae(t)&&(n=r,r=t,t=[]);var a=n||this,o=an(to(t),this._getStoreDimIndex,this);this._store.each(o,a?Q(r,a):r)},e.prototype.filterSelf=function(t,r,n){ae(t)&&(n=r,r=t,t=[]);var a=n||this,o=an(to(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?Q(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=me(t);return k(a,function(o){var i=r._getStoreDimIndex(o);n[i]=t[o]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ae(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var o=n||a||this,i=an(to(t),this._getStoreDimIndex,this),s=Zl(this);return s._store=this._store.map(i,o?Q(r,o):r),s},e.prototype.modify=function(t,r,n,a){var o=this,i=n||a||this;process.env.NODE_ENV!=="production"&&k(to(t),function(l){var u=o.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=an(to(t),this._getStoreDimIndex,this);this._store.modify(s,i?Q(r,i):r)},e.prototype.downSample=function(t,r,n,a){var o=Zl(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),o},e.prototype.lttbDownSample=function(t,r){var n=Zl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Qe(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new L_(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xl(t,n)},function(n){return Xl(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},xi(t)?H(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var o=a[r];return o==null&&(o=this.getVisual(r),U(o)?o=o.slice():xi(o)&&(o=H({},o)),a[r]=o),o},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,xi(r)?H(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){xi(t)?H(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?H(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;oA(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){k(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:an(this.dimensions,this._getDimInfo,this),this.hostModel)),rd(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ae(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(fc(arguments)))})},e.internalField=function(){z_=function(t){var r=t._invertedIndicesMap;k(r,function(n,a){var o=t._dimInfos[a],i=o.ordinalMeta,s=t._store;if(i){n=r[a]=new F5(i.categories.length);for(var l=0;l<n.length;l++)n[l]=F_;for(var l=0;l<s.count();l++)n[s.get(o.storeDimIndex,l)]=l}})},Ti=function(t,r,n){return lr(t._getCategory(r,n),null)},Xl=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ti(t,t._idDimIdx,r)),n==null&&(n=z5+r),n},to=function(t){return U(t)||(t=t!=null?[t]:[]),t},Zl=function(t){var r=new e(t._schema?t._schema:an(t.dimensions,t._getDimInfo,t),t.hostModel);return rd(r,t),r},rd=function(t,r){k(G5.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,k(H5,function(n){t[n]=ce(r[n])}),t._calculationInfo=H({},r._calculationInfo)},nd=function(t,r){var n=t._nameList,a=t._idList,o=t._nameDimIdx,i=t._idDimIdx,s=n[r],l=a[r];if(s==null&&o!=null&&(n[r]=s=Ti(t,o,r)),l==null&&i!=null&&(a[r]=l=Ti(t,i,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}();function G_(e,t){_h(e)||(e=bh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=ie(),o=[],i=U5(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$_(i),l=n===e.dimensionsDefine,u=l?V_(e):B_(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,i));for(var f=ie(c),d=new h0(i),h=0;h<d.length;h++)d[h]=-1;function v(D){var N=d[D];if(N<0){var A=n[D],M=K(A)?A:{name:A},I=new jl,P=M.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),M.type!=null&&(I.type=M.type),M.displayName!=null&&(I.displayName=M.displayName);var L=o.length;return d[D]=L,I.storeDimIndex=D,o.push(I),I}return o[N]}if(!s)for(var h=0;h<i;h++)v(h);f.each(function(D,N){var A=He(D).slice();if(A.length===1&&!X(A[0])&&A[0]<0){f.set(N,!1);return}var M=f.set(N,[]);k(A,function(I,P){var L=X(I)?u.get(I):I;L!=null&&L<i&&(M[P]=L,g(v(L),N,P))})});var m=0;k(r,function(D){var N,A,M,I;if(X(D))N=D,I={};else{I=D,N=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=H({},I),I.ordinalMeta=P,A=I.dimsDef,M=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var L=f.get(N);if(L!==!1){if(L=He(L),!L.length)for(var E=0;E<(A&&A.length||1);E++){for(;m<i&&v(m).coordDim!=null;)m++;m<i&&L.push(m++)}k(L,function(B,R){var V=v(B);if(l&&I.type!=null&&(V.type=I.type),g(he(V,I),N,R),V.name==null&&A){var G=A[R];!K(G)&&(G={name:G}),V.name=V.displayName=G.name,V.defaultTooltip=G.defaultTooltip}M&&he(V.otherDims,M)})}});function g(D,N,A){ch.get(N)!=null?D.otherDims[N]=A:(D.coordDim=N,D.coordDimIndex=A,a.set(N,!0))}var y=t.generateCoord,w=t.generateCoordCount,_=w!=null;w=y?w||1:0;var S=y||"value";function x(D){D.name==null&&(D.name=D.coordDim)}if(s)k(o,function(D){x(D)}),o.sort(function(D,N){return D.storeDimIndex-N.storeDimIndex});else for(var C=0;C<i;C++){var T=v(C),b=T.coordDim;b==null&&(T.coordDim=Y5(S,a,_),T.coordDimIndex=0,(!y||w<=0)&&(T.isExtraCoord=!0),w--),x(T),T.type==null&&(Ly(e,C)===qe.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return W5(o),new O_({source:e,dimensions:o,fullDimensionCount:i,dimensionOmitted:s})}function W5(e){for(var t=ie(),r=0;r<e.length;r++){var n=e[r],a=n.name,o=t.get(a)||0;o>0&&(n.name=a+(o-1)),o++,t.set(a,o)}}function U5(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return k(t,function(o){var i;K(o)&&(i=o.dimsDef)&&(a=Math.max(a,i.length))}),a}function Y5(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var q5=function(){function e(t){this.coordSysDims=[],this.axisMap=ie(),this.categoryAxisMap=ie(),this.coordSysName=t}return e}();function j5(e){var t=e.get("coordinateSystem"),r=new q5(t),n=X5[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var X5={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",ft).models[0],o=e.getReferringComponents("yAxis",ft).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+Wr(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Wr(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",o),ro(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ro(o)&&(n.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",ft).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",a),ro(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",ft).models[0],o=a.findAxisModel("radiusAxis"),i=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!i)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",i),ro(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),ro(i)&&(n.set("angle",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,o=a.getComponent("parallel",e.get("parallelIndex")),i=t.coordSysDims=o.dimensions.slice();k(o.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=i[l];r.set(c,u),ro(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ro(e){return e.get("type")==="category"}function Z5(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,o,i,s;K5(t)?o=t:(i=t.schema,o=i.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(k(o,function(w,_){X(w)&&(o[_]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!u&&w.ordinalMeta&&(u=w),!c&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(c=w))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,m=0;k(o,function(w){w.coordDim===h&&m++});var g={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};i?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),i.appendCalculationDimension(g),i.appendCalculationDimension(y)):(o.push(g),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function K5(e){return!R_(e.schema)}function ra(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function H_(e,t){return ra(e,t)?e.getCalculationInfo("stackResultDimension"):t}function J5(e,t){var r=e.get("coordinateSystem"),n=gh.get(r),a;return t&&t.coordSysDims&&(a=j(t.coordSysDims,function(o){var i={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");i.type=R5(l)}return i})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Q5(e,t,r){var n,a;return r&&k(e,function(o,i){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=i),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function Kl(e,t,r){r=r||{};var n=t.getSourceManager(),a,o=!1;e?(o=!0,a=bh(e)):(a=n.getSource(),o=a.sourceFormat===Lt);var i=j5(t),s=J5(t,i),l=r.useEncodeDefaulter,u=ae(l)?l:l?be(YM,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=G_(a,c),d=Q5(f.dimensions,r.createInvertedIndices,i),h=o?null:n.getSharedDataStore(f),v=Z5(t,{schema:f,store:h}),m=new Ni(f,t);m.setCalculationInfo(v);var g=d!=null&&eP(a)?function(y,w,_,S){return S===d?_:this.defaultDimValueGetter(y,w,_,S)}:null;return m.hasItemOption=!1,m.initData(o?a:h,null,g),m}function eP(e){if(e.sourceFormat===Lt){var t=tP(e.data||[]);return!U(Fo(t))}}function tP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var vr=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Ls(vr);var rP=0,ad=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++rP}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&j(n,nP);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!X(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ie(this.categories))},e}();function nP(e){return K(e)&&e.value!=null?e.value:e+""}function aP(e){var t=Math.pow(10,Ms(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function od(e){return e.type==="interval"||e.type==="log"}function oP(e,t,r,n){var a={},o=e[1]-e[0],i=a.interval=vg(o/t,!0);r!=null&&i<r&&(i=a.interval=r),n!=null&&i>n&&(i=a.interval=n);var s=a.intervalPrecision=W_(i),l=a.niceTickExtent=[Oe(Math.ceil(e[0]/i)*i,s),Oe(Math.floor(e[1]/i)*i,s)];return iP(l,e),a}function id(e){var t=Math.pow(10,Ms(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Oe(r*t)}function W_(e){return sr(e)+2}function U_(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function iP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),U_(e,0,t),U_(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Jl(e,t){return e>=t[0]&&e<=t[1]}function Ql(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function eu(e,t){return e*(t[1]-t[0])+t[0]}var Y_=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new ad({})),U(a)&&(a=new ad({categories:j(a,function(o){return K(o)?o.value:o})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:X(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Jl(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ql(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(eu(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],i=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);i<l;++i){var u=n[i];a[i]=u,o[u]=i}for(var c=0;i<s;++i){for(;o[c]!=null;)c++;a.push(c),o[c]=i}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(vr);vr.registerClass(Y_);const q_=Y_;var na=Oe,j_=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Jl(r,this._extent)},t.prototype.normalize=function(r){return Ql(r,this._extent)},t.prototype.scale=function(r){return eu(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=W_(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,o=this._niceExtent,i=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<o[0]&&(r?s.push({value:na(o[0]-n,i)}):s.push({value:a[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=na(u+n,i),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:o[1];return a[1]>c&&(r?s.push({value:na(c+n,i)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],o=this.getExtent(),i=1;i<n.length;i++){for(var s=n[i],l=n[i-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=na(l.value+(u+1)*d);h>o[0]&&h<o[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=sr(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=na(r.value,a,!0);return Ny(o)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var o=this._extent,i=o[1]-o[0];if(isFinite(i)){i<0&&(i=-i,o.reverse());var s=oP(o,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var i=this._interval;r.fixMin||(n[0]=na(Math.floor(n[0]/i)*i)),r.fixMax||(n[1]=na(Math.ceil(n[1]/i)*i))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(vr);vr.registerClass(j_);const Di=j_;var X_=typeof Float32Array<"u",sP=X_?Float32Array:Array;function Ir(e){return U(e)?X_?new Float32Array(e):e:new sP(e)}var sd="__ec_stack_";function ld(e){return e.get("stack")||sd+e.seriesIndex}function ud(e){return e.dim+e.index}function lP(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),o=0;o<e.count;o++)t.push(he({bandWidth:a,axisKey:n,stackId:sd+o},e));for(var i=J_(t),s=[],o=0;o<e.count;o++){var l=i[n][sd+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Z_(e,t){var r=[];return t.eachSeriesByType(e,function(n){Q_(n)&&r.push(n)}),r}function uP(e){var t={};k(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),m=0,g=v.count();m<g;++m){var y=v.get(h,m);t[d]?t[d].push(y):t[d]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var o=null,i=1;i<a.length;++i){var s=a[i]-a[i-1];s>0&&(o=o===null?s:Math.min(o,s))}r[n]=o}}return r}function K_(e){var t=uP(e),r=[];return k(e,function(n){var a=n.coordinateSystem,o=a.getBaseAxis(),i=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(i[1]-i[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(i[1]-i[0])/h.count()}var v=xe(n.get("barWidth"),s),m=xe(n.get("barMaxWidth"),s),g=xe(n.get("barMinWidth")||(e1(n)?.5:1),s),y=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:g,barGap:y,barCategoryGap:w,axisKey:ud(o),stackId:ld(n)})}),J_(r)}function J_(e){var t={};k(e,function(n,a){var o=n.axisKey,i=n.bandWidth,s=t[o]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return k(t,function(n,a){r[a]={};var o=n.stacks,i=n.bandWidth,s=n.categoryGap;if(s==null){var l=me(o).length;s=Math.max(35-l*4,15)+"%"}var u=xe(s,i),c=xe(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),k(o,function(y){var w=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;w&&(S=Math.min(S,w)),_&&(S=Math.max(S,_)),y.width=S,f-=S+c*S,d--}else{var S=h;w&&w<S&&(S=Math.min(w,f)),_&&_>S&&(S=_),S!==h&&(y.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,m;k(o,function(y,w){y.width||(y.width=h),m=y,v+=y.width*(1+c)}),m&&(v-=m.width*c);var g=-v/2;k(o,function(y,w){r[a][w]=r[a][w]||{bandWidth:i,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function cP(e,t,r){if(e&&t){var n=e[ud(t)];return n!=null&&r!=null?n[ld(r)]:n}}function fP(e,t){var r=Z_(e,t),n=K_(r);k(r,function(a){var o=a.getData(),i=a.coordinateSystem,s=i.getBaseAxis(),l=ld(a),u=n[ud(s)][l],c=u.offset,f=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function hP(e){return{seriesType:e,plan:Ph(),reset:function(t){if(Q_(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=n.getOtherAxis(a),i=r.getDimensionIndex(r.mapDimension(o.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(o.dim),c=r.getCalculationInfo("stackResultDimension"),f=ra(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),h=dP(a,o),v=e1(t),m=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(_,S){for(var x=_.count,C=v&&Ir(x*3),T=v&&l&&Ir(x*3),b=v&&Ir(x),D=n.master.getRect(),N=d?D.width:D.height,A,M=S.getStore(),I=0;(A=_.next())!=null;){var P=M.get(f?g:i,A),L=M.get(s,A),E=h,B=void 0;f&&(B=+P-M.get(i,A));var R=void 0,V=void 0,G=void 0,q=void 0;if(d){var J=n.dataToPoint([P,L]);if(f){var z=n.dataToPoint([B,L]);E=z[0]}R=E,V=J[1]+w,G=J[0]-E,q=y,Math.abs(G)<m&&(G=(G<0?-1:1)*m)}else{var J=n.dataToPoint([L,P]);if(f){var z=n.dataToPoint([L,B]);E=z[1]}R=J[0]+w,V=E,G=y,q=J[1]-E,Math.abs(q)<m&&(q=(q<=0?-1:1)*m)}v?(C[I]=R,C[I+1]=V,C[I+2]=d?G:q,T&&(T[I]=d?D.x:R,T[I+1]=d?V:D.y,T[I+2]=N),b[A]=A):S.setItemLayout(A,{x:R,y:V,width:G,height:q}),I+=3}v&&S.setLayout({largePoints:C,largeDataIndices:b,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function Q_(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function e1(e){return e.pipelineContext&&e.pipelineContext.large}function dP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var pP=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},t1=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pl(r.value,gy[RM(Wa(this._minLevelUnit))]||gy.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var o=this.getSetting("useUTC"),i=this.getSetting("locale");return BM(r,n,a,i,o)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var o=this.getSetting("useUTC"),i=bP(this._minLevelUnit,this._approxInterval,o,n);return a=a.concat(i),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=It,n[1]+=It),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-It}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var o=this._extent,i=o[1]-o[0];this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=tu.length,l=Math.min(pP(tu,this._approxInterval,0,s),s-1);this._interval=tu[l][1],this._minLevelUnit=tu[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Ce(r)?r:+Tr(r)},t.prototype.contain=function(r){return Jl(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ql(this.parse(r),this._extent)},t.prototype.scale=function(r){return eu(r,this._extent)},t.type="time",t}(Di),tu=[["second",nh],["minute",ah],["hour",ri],["quarter-day",ri*6],["half-day",ri*12],["day",It*1.2],["half-week",It*3.5],["week",It*7],["month",It*31],["quarter",It*95],["half-year",vy/2],["year",vy]];function vP(e,t,r,n){var a=Tr(t),o=Tr(r),i=function(v){return _y(a,v,n)===_y(o,v,n)},s=function(){return i("year")},l=function(){return s()&&i("month")},u=function(){return l()&&i("day")},c=function(){return u()&&i("hour")},f=function(){return c()&&i("minute")},d=function(){return f()&&i("second")},h=function(){return d()&&i("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function gP(e,t){return e/=It,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function mP(e){var t=30*It;return e/=t,e>6?6:e>3?3:e>2?2:1}function yP(e){return e/=ri,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function r1(e,t){return e/=t?ah:nh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function _P(e){return vg(e,!0)}function wP(e,t,r){var n=new Date(e);switch(Wa(t)){case"year":case"month":n[wy(r)](0);case"day":n[by(r)](1);case"hour":n[Sy(r)](0);case"minute":n[Cy(r)](0);case"second":n[xy(r)](0),n[Ty(r)](0)}return n.getTime()}function bP(e,t,r,n){var a=1e4,o=my,i=0;function s(N,A,M,I,P,L,E){for(var B=new Date(A),R=A,V=B[I]();R<M&&R<=n[1];)E.push({value:R}),V+=N,B[P](V),R=B.getTime();E.push({value:R,notAdd:!0})}function l(N,A,M){var I=[],P=!A.length;if(!vP(Wa(N),n[0],n[1],r)){P&&(A=[{value:wP(new Date(n[0]),N,r)},{value:n[1]}]);for(var L=0;L<A.length-1;L++){var E=A[L].value,B=A[L+1].value;if(E!==B){var R=void 0,V=void 0,G=void 0,q=!1;switch(N){case"year":R=Math.max(1,Math.round(t/It/365)),V=ih(r),G=VM(r);break;case"half-year":case"quarter":case"month":R=mP(t),V=Ua(r),G=wy(r);break;case"week":case"half-week":case"day":R=gP(t),V=vl(r),G=by(r),q=!0;break;case"half-day":case"quarter-day":case"hour":R=yP(t),V=ai(r),G=Sy(r);break;case"minute":R=r1(t,!0),V=gl(r),G=Cy(r);break;case"second":R=r1(t,!1),V=ml(r),G=xy(r);break;case"millisecond":R=_P(t),V=yl(r),G=Ty(r);break}s(R,E,B,V,G,q,I),N==="year"&&M.length>1&&L===0&&M.unshift({value:M[0].value-R})}}for(var L=0;L<I.length;L++)M.push(I[L]);return I}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&i++<a;++h){var v=Wa(o[h]);if(OM(o[h])){l(o[h],u[u.length-1]||[],c);var m=o[h+1]?Wa(o[h+1]):null;if(v!==m){if(c.length){d=f,c.sort(function(N,A){return N.value-A.value});for(var g=[],y=0;y<c.length;++y){var w=c[y].value;(y===0||c[y-1].value!==w)&&(g.push(c[y]),w>=n[0]&&w<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===o[h]))break}c=[]}}}process.env.NODE_ENV!=="production"&&i>=a&&Fe("Exceed safe limit.");for(var S=Ue(j(u,function(N){return Ue(N,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(N){return N.length>0}),x=[],C=S.length-1,h=0;h<S.length;++h)for(var T=S[h],b=0;b<T.length;++b)x.push({value:T[b].value,level:C-h});x.sort(function(N,A){return N.value-A.value});for(var D=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&D.push(x[h]);return D}vr.registerClass(t1);const SP=t1;var n1=vr.prototype,Ai=Di.prototype,CP=Oe,xP=Math.floor,TP=Math.ceil,ru=Math.pow,tr=Math.log,cd=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Di,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,o=n.getExtent(),i=Ai.getTicks.call(this,r);return j(i,function(s){var l=s.value,u=Oe(ru(this.base,l));return u=l===a[0]&&this._fixMin?nu(u,o[0]):u,u=l===a[1]&&this._fixMax?nu(u,o[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=tr(this.base);r=tr(Math.max(0,r))/a,n=tr(Math.max(0,n))/a,Ai.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=n1.getExtent.call(this);n[0]=ru(r,n[0]),n[1]=ru(r,n[1]);var a=this._originalScale,o=a.getExtent();return this._fixMin&&(n[0]=nu(n[0],o[0])),this._fixMax&&(n[1]=nu(n[1],o[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=tr(r[0])/tr(n),r[1]=tr(r[1])/tr(n),n1.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var o=FN(a),i=r/a*o;for(i<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Oe(TP(n[0]/o)*o),Oe(xP(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Ai.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=tr(r)/tr(this.base),Jl(r,this._extent)},t.prototype.normalize=function(r){return r=tr(r)/tr(this.base),Ql(r,this._extent)},t.prototype.scale=function(r){return r=eu(r,this._extent),ru(this.base,r)},t.type="log",t}(vr),a1=cd.prototype;a1.getMinorTicks=Ai.getMinorTicks,a1.getLabel=Ai.getLabel;function nu(e,t){return CP(e,sr(t))}vr.registerClass(cd);const NP=cd;var DP=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var o=this._modelMinRaw=r.get("min",!0);ae(o)?this._modelMinNum=au(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=au(t,o));var i=this._modelMaxRaw=r.get("max",!0);if(ae(i)?this._modelMaxNum=au(t,i({min:n[0],max:n[1]})):i!=="dataMax"&&(this._modelMaxNum=au(t,i)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=U(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Xr(l[0],1),Xr(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,i=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-o[0]*i),l==null&&(l=t?a?a-1:NaN:n+o[1]*i),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=ma(s)||ma(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&te(!this.frozen),this[MP[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=AP[t];process.env.NODE_ENV!=="production"&&te(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),AP={min:"_determinedMin",max:"_determinedMax"},MP={min:"_dataMin",max:"_dataMax"};function o1(e,t,r){var n=e.rawExtentInfo;return n||(n=new DP(e,t,r),e.rawExtentInfo=n,n)}function au(e,t){return t==null?null:ma(t)?NaN:e.parse(t)}function i1(e,t){var r=e.type,n=o1(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,o=n.max,i=t.ecModel;if(i&&r==="time"){var s=Z_("bar",i),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=K_(s),c=kP(a,o,t,u);a=c.min,o=c.max}}return{extent:[a,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function kP(e,t,r,n){var a=r.axis.getExtent(),o=a[1]-a[0],i=cP(n,r.axis);if(i===void 0)return{min:e,max:t};var s=1/0;k(i,function(h){s=Math.min(h.offset,s)});var l=-1/0;k(i,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function s1(e,t){var r=t,n=i1(e,r),a=n.extent,o=r.get("splitNumber");e instanceof NP&&(e.base=r.get("logBase"));var i=e.type,s=r.get("interval"),l=i==="interval"||i==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function EP(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new q_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new SP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(vr.getClass(t)||Di)}}function PP(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Mi(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,o){return e.scale.getFormattedLabel(a,o,n)}}(t):X(t)?function(n){return function(a){var o=e.scale.getLabel(a),i=n.replace("{value}",o??"");return i}}(t):ae(t)?function(n){return function(a,o){return r!=null&&(o=a.value-r),n(fd(e,a),o,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function fd(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function IP(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,o=r.getExtent();r instanceof q_?a=r.count():(n=r.getTicks(),a=n.length);var i=e.getLabelModel(),s=Mi(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=n?n[c]:{value:o[0]+c},d=s(f,c),h=i.getTextRect(d),v=LP(h,i.get("rotate")||0);l?l.union(v):l=v}return l}}function LP(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,o=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),i=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new ye(e.x,e.y,o,i);return s}function hd(e){var t=e.get("interval");return t??"auto"}function l1(e){return e.type==="category"&&hd(e.getLabelModel())===0}function u1(e,t){var r={};return k(e.mapDimensionsAll(t),function(n){r[H_(e,n)]=!0}),me(r)}function OP(e,t,r){t&&k(u1(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var RP=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),c1=[],BP={registerPreprocessor:M_,registerProcessor:k_,registerPostInit:D5,registerPostUpdate:A5,registerUpdateLifecycle:Qh,registerAction:ea,registerCoordinateSystem:M5,registerLayout:k5,registerVisual:ta,registerTransform:P5,registerLoading:P_,registerMap:E5,registerImpl:s5,PRIORITY:w5,ComponentModel:Te,ComponentView:Jt,SeriesModel:Er,ChartView:Qt,registerComponentModel:function(e){Te.registerClass(e)},registerComponentView:function(e){Jt.registerClass(e)},registerSeriesModel:function(e){Er.registerClass(e)},registerChartView:function(e){Qt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Te.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){ON(e,t)}};function gr(e){if(U(e)){k(e,function(t){gr(t)});return}fe(c1,e)>=0||(c1.push(e),ae(e)&&(e={install:e}),e.install(BP))}var ki=Ne();function VP(e){return e.type==="category"?FP(e):GP(e)}function $P(e,t){return e.type==="category"?zP(e,t):{ticks:j(e.scale.getTicks(),function(r){return r.value})}}function FP(e){var t=e.getLabelModel(),r=f1(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function f1(e,t){var r=h1(e,"labels"),n=hd(t),a=d1(r,n);if(a)return a;var o,i;return ae(n)?o=g1(e,n):(i=n==="auto"?HP(e):n,o=v1(e,i)),p1(r,n,{labels:o,labelCategoryInterval:i})}function zP(e,t){var r=h1(e,"ticks"),n=hd(t),a=d1(r,n);if(a)return a;var o,i;if((!t.get("show")||e.scale.isBlank())&&(o=[]),ae(n))o=g1(e,n,!0);else if(n==="auto"){var s=f1(e,e.getLabelModel());i=s.labelCategoryInterval,o=j(s.labels,function(l){return l.tickValue})}else i=n,o=v1(e,i,!0);return p1(r,n,{ticks:o,tickCategoryInterval:i})}function GP(e){var t=e.scale.getTicks(),r=Mi(e);return{labels:j(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function h1(e,t){return ki(e)[t]||(ki(e)[t]=[])}function d1(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function p1(e,t,r){return e.push({key:t,value:r}),r}function HP(e){var t=ki(e).autoInterval;return t??(ki(e).autoInterval=e.calculateCategoryInterval())}function WP(e){var t=UP(e),r=Mi(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,o=a.getExtent(),i=a.count();if(o[1]-o[0]<1)return 0;var s=1;i>40&&(s=Math.max(1,Math.floor(i/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=o[1];l+=s){var v=0,m=0,g=tf(r({value:l}),t.font,"center","top");v=g.width*1.3,m=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,m,7)}var y=d/c,w=h/f;isNaN(y)&&(y=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(y,w))),S=ki(e.model),x=e.getExtent(),C=S.lastAutoInterval,T=S.lastTickCount;return C!=null&&T!=null&&Math.abs(C-_)<=1&&Math.abs(T-i)<=1&&C>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=C:(S.lastTickCount=i,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function UP(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function v1(e,t,r){var n=Mi(e),a=e.scale,o=a.getExtent(),i=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=l1(e),d=i.get("showMinLabel")||f,h=i.get("showMaxLabel")||f;d&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);h&&v-l!==o[1]&&m(o[1]);function m(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function g1(e,t,r){var n=e.scale,a=Mi(e),o=[];return k(n.getTicks(),function(i){var s=n.getLabel(i),l=i.value;t(i.value,s)&&o.push(r?l:{formattedLabel:a(i),rawLabel:s,tickValue:l})}),o}var m1=[0,1],YP=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return dg(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),y1(n,a.count())),Ye(t,m1,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),y1(n,a.count()));var o=Ye(t,n,m1,r);return this.scale.scale(o)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=$P(this,r),a=n.ticks,o=j(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),i=r.get("alignWithLabel");return qP(this,o,i,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=j(n,function(o){return j(o,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this);return a},e.prototype.getViewLabels=function(){return VP(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return WP(this)},e}();function y1(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function qP(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var o=e.getExtent(),i,s;if(a===1)t[0].coord=o[0],i=t[1]={coord:o[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;k(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,i={coord:t[a-1].coord+u*s},t.push(i)}var f=o[0]>o[1];d(t[0].coord,o[0])&&(n?t[0].coord=o[0]:t.shift()),n&&d(o[0],t[0].coord)&&t.unshift({coord:o[0]}),d(o[1],i.coord)&&(n?i.coord=o[1]:t.pop()),n&&d(i.coord,o[1])&&t.push({coord:o[1]});function d(h,v){return h=Oe(h),v=Oe(v),f?h>v:h<v}}const jP=YP;function _1(e,t,r,n,a,o,i,s){var l=a-e,u=o-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var m=i[0]=e+v*c,g=i[1]=t+v*f;return Math.sqrt((m-a)*(m-a)+(g-o)*(g-o))}var on=new le,Ie=new le,je=new le,sn=new le,mr=new le,ou=[],ut=new le;function XP(e,t){if(t<=180&&t>0){t=t/180*Math.PI,on.fromArray(e[0]),Ie.fromArray(e[1]),je.fromArray(e[2]),le.sub(sn,on,Ie),le.sub(mr,je,Ie);var r=sn.len(),n=mr.len();if(!(r<.001||n<.001)){sn.scale(1/r),mr.scale(1/n);var a=sn.dot(mr),o=Math.cos(t);if(o<a){var i=_1(Ie.x,Ie.y,je.x,je.y,on.x,on.y,ou,!1);ut.fromArray(ou),ut.scaleAndAdd(mr,i/Math.tan(Math.PI-t));var s=je.x!==Ie.x?(ut.x-Ie.x)/(je.x-Ie.x):(ut.y-Ie.y)/(je.y-Ie.y);if(isNaN(s))return;s<0?le.copy(ut,Ie):s>1&&le.copy(ut,je),ut.toArray(e[1])}}}}function ZP(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,on.fromArray(e[0]),Ie.fromArray(e[1]),je.fromArray(e[2]),le.sub(sn,Ie,on),le.sub(mr,je,Ie);var n=sn.len(),a=mr.len();if(!(n<.001||a<.001)){sn.scale(1/n),mr.scale(1/a);var o=sn.dot(t),i=Math.cos(r);if(o<i){var s=_1(Ie.x,Ie.y,je.x,je.y,on.x,on.y,ou,!1);ut.fromArray(ou);var l=Math.PI/2,u=Math.acos(mr.dot(t)),c=l+u-r;if(c>=l)le.copy(ut,je);else{ut.scaleAndAdd(mr,s/Math.tan(Math.PI/2-c));var f=je.x!==Ie.x?(ut.x-Ie.x)/(je.x-Ie.x):(ut.y-Ie.y)/(je.y-Ie.y);if(isNaN(f))return;f<0?le.copy(ut,Ie):f>1&&le.copy(ut,je)}ut.toArray(e[1])}}}}function dd(e,t,r,n){var a=r==="normal",o=a?e:e.ensureState(r);o.ignore=t;var i=n.get("smooth");i&&i===!0&&(i=.3),o.shape=o.shape||{},i>0&&(o.shape.smooth=i);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):o.style=s}function KP(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=gc(n[0],n[1]),o=gc(n[1],n[2]);if(!a||!o){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var i=Math.min(a,o)*r,s=mc([],n[1],n[0],i/a),l=mc([],n[1],n[2],i/o),u=mc([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function JP(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var o=t.normal,i=o.get("show"),s=a.ignore,l=0;l<Hs.length;l++){var u=Hs[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:oe(a.states[u]&&a.states[u].ignore,s);if(h||!oe(d,i)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&dd(n,!0,u,c);continue}n||(n=new Fa,e.setTextGuideLine(n),!f&&(s||!i)&&dd(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),dd(n,!1,u,c)}}if(n){he(n.style,r),n.style.fill=null;var m=o.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=m||!1,n.buildPath=KP}}function QP(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<ht.length;n++){var a=ht[n];r[a]=e.getModel([a,t])}return r}function eI(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,o=a.getComputedTransform(),i=a.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=a.style.margin||0,u=i.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new el(i,o):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:i,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return t}function tI(e,t,r,n,a,o){var i=e.length;if(i<2)return;e.sort(function(b,D){return b.rect[t]-D.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<i;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&o&&x(-c/i,0,i);var m=e[0],g=e[i-1],y,w;_(),y<0&&C(-y,.8),w<0&&C(w,.8),_(),S(y,w,1),S(w,y,-1),_(),y<0&&T(-y),w<0&&T(w);function _(){y=m.rect[t]-n,w=a-g.rect[t]-g.rect[r]}function S(b,D,N){if(b<0){var A=Math.min(D,-b);if(A>0){x(A*N,0,i);var M=A+b;M<0&&C(-M*N,1)}else C(-b*N,1)}}function x(b,D,N){b!==0&&(u=!0);for(var A=D;A<N;A++){var M=e[A],I=M.rect;I[t]+=b,M.label[t]+=b}}function C(b,D){for(var N=[],A=0,M=1;M<i;M++){var I=e[M-1].rect,P=Math.max(e[M].rect[t]-I[t]-I[r],0);N.push(P),A+=P}if(A){var L=Math.min(Math.abs(b)/A,D);if(b>0)for(var M=0;M<i-1;M++){var E=N[M]*L;x(E,0,M+1)}else for(var M=i-1;M>0;M--){var E=N[M-1]*L;x(-E,M,i)}}}function T(b){var D=b<0?-1:1;b=Math.abs(b);for(var N=Math.ceil(b/(i-1)),A=0;A<i-1;A++)if(D>0?x(N,0,A+1):x(-N,i-A-1,i),b-=N,b<=0)return}return u}function rI(e,t,r,n){return tI(e,"y","height",t,r,n)}function nI(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var r=new ye(0,0,0,0);function n(m){if(!m.ignore){var g=m.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}m.ignore=!0}for(var a=0;a<e.length;a++){var o=e[a],i=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(i&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new el(v.localRect,v.transform)),f||(f=new el(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var aI=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Kl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Pe,a=Pr("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var o=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=r.itemHeight*.8,u=Pr(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?i:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Er);const oI=aI;function Ei(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Za(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var o=[],i=0;i<r.length;i++)o.push(Za(e,t,r[i]));return o.join(" ")}}function w1(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!U(t))return t+"";for(var n=[],a=0;a<r.length;a++){var o=e.getDimensionIndex(r[a]);o>=0&&n.push(t[o])}return n.join(" ")}var pd=function(e){W(t,e);function t(r,n,a,o){var i=e.call(this)||this;return i.updateData(r,n,a,o),i}return t.prototype._createSymbol=function(r,n,a,o,i){this.removeAll();var s=Pr(r,-1,-1,2,2,null,i);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=iI,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){jo(this.childAt(0))},t.prototype.downplay=function(){Xo(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,o){this.silent=!1;var i=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=i!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Je(d,h,s,n),jf(d)}if(this._updateCommon(r,n,l,a,o),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,wt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,o,i){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,v,m,g,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,h=o.blurScope,m=o.labelStatesModels,g=o.hoverScale,y=o.cursorStyle,v=o.emphasisDisabled),!o||r.hasItemOption){var w=o&&o.itemModel?o.itemModel:r.getItemModel(n),_=w.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=w.getModel(["select","itemStyle"]).getItemStyle(),c=w.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),m=Wn(w),g=_.getShallow("scale"),y=w.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Ol(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var C=r.getItemVisual(n,"style"),T=C.fill;if(s instanceof Qr){var b=s.style;s.useStyle(H({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},C))}else s.__isEmptyBrush?s.useStyle(H({},C)):s.useStyle(C),s.style.decal=null,s.setColor(T,i&&i.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),N=this._z2;D!=null?N==null&&(this._z2=s.z2,s.z2+=D):N!=null&&(s.z2=N,this._z2=null);var A=i&&i.useNameLabel;Ga(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:T,defaultOpacity:C.opacity});function M(L){return A?r.getName(L):Ei(r,L)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),$n(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var o=this.childAt(0),i=ve(this).dataIndex,s=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var l=o.getTextContent();l&&tl(l,{style:{opacity:0}},n,{dataIndex:i,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();tl(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:i,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Rh(r.getItemVisual(n,"symbolSize"))},t}(Pe);function iI(e,t){this.parent.drift(e,t)}function vd(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function b1(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function S1(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Wn(t),cursorStyle:t.get("cursor")}}var sI=function(){function e(t){this.group=new Pe,this._SymbolCtor=t||pd}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=b1(r);var n=this.group,a=t.hostModel,o=this._data,i=this._SymbolCtor,s=r.disableAnimation,l=S1(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};o||n.removeAll(),t.diff(o).add(function(f){var d=c(f);if(vd(t,d,f,r)){var h=new i(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=o.getItemGraphicEl(d),v=c(f);if(!vd(t,v,f,r)){n.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==m)n.remove(h),h=new i(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?h.attr(y):Je(h,y,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var o=t._getSymbolPoint(a);n.setPosition(o),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=S1(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=b1(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var i=r.getItemLayout(o);if(vd(r,i,o,n)){var s=new this._SymbolCtor(r,o,this._seriesScope);s.traverse(a),s.setPosition(i),this.group.add(s),r.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){za(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function C1(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),o=lI(a,r),i=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(i),c=s==="x"||s==="radius"?1:0,f=j(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return ra(t,f[0])&&(d=!0,f[0]=h),ra(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:i,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function lI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Ce(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function x1(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var o=e.baseDataOffset,i=[];return i[o]=r.get(e.baseDim,n),i[1-o]=a,t.dataToPoint(i)}function uI(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function cI(e,t,r,n,a,o,i,s){for(var l=uI(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],g=C1(a,t,i),y=e.getLayout("points")||[],w=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,C=void 0,T=void 0;switch(S.cmd){case"=":C=S.idx*2,T=S.idx1*2;var b=y[C],D=y[C+1],N=w[T],A=w[T+1];(isNaN(b)||isNaN(D))&&(b=N,D=A),u.push(b,D),c.push(N,A),f.push(r[C],r[C+1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var M=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([t.get(I[0],M),t.get(I[1],M)]);T=M*2,u.push(P[0],P[1]),c.push(w[T],w[T+1]);var L=x1(g,a,t,M);f.push(L[0],L[1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(M));break;case"-":x=!1}x&&(h.push(S),v.push(v.length))}v.sort(function(De,de){return m[De]-m[de]});for(var E=u.length,B=Ir(E),R=Ir(E),V=Ir(E),G=Ir(E),q=[],_=0;_<v.length;_++){var J=v[_],z=_*2,ee=J*2;B[z]=u[ee],B[z+1]=u[ee+1],R[z]=c[ee],R[z+1]=c[ee+1],V[z]=f[ee],V[z+1]=f[ee+1],G[z]=d[ee],G[z+1]=d[ee+1],q[_]=h[J]}return{current:B,next:R,stackedOnCurrent:V,stackedOnNext:G,status:q}}var ln=Math.min,un=Math.max;function aa(e,t){return isNaN(e)||isNaN(t)}function gd(e,t,r,n,a,o,i,s,l){for(var u,c,f,d,h,v,m=r,g=0;g<n;g++){var y=t[m*2],w=t[m*2+1];if(m>=a||m<0)break;if(aa(y,w)){if(l){m+=o;continue}break}if(m===r)e[o>0?"moveTo":"lineTo"](y,w),f=y,d=w;else{var _=y-u,S=w-c;if(_*_+S*S<.5){m+=o;continue}if(i>0){for(var x=m+o,C=t[x*2],T=t[x*2+1];C===y&&T===w&&g<n;)g++,x+=o,m+=o,C=t[x*2],T=t[x*2+1],y=t[m*2],w=t[m*2+1],_=y-u,S=w-c;var b=g+1;if(l)for(;aa(C,T)&&b<n;)b++,x+=o,C=t[x*2],T=t[x*2+1];var D=.5,N=0,A=0,M=void 0,I=void 0;if(b>=n||aa(C,T))h=y,v=w;else{N=C-u,A=T-c;var P=y-u,L=C-y,E=w-c,B=T-w,R=void 0,V=void 0;if(s==="x"){R=Math.abs(P),V=Math.abs(L);var G=N>0?1:-1;h=y-G*R*i,v=w,M=y+G*V*i,I=w}else if(s==="y"){R=Math.abs(E),V=Math.abs(B);var q=A>0?1:-1;h=y,v=w-q*R*i,M=y,I=w+q*V*i}else R=Math.sqrt(P*P+E*E),V=Math.sqrt(L*L+B*B),D=V/(V+R),h=y-N*i*(1-D),v=w-A*i*(1-D),M=y+N*i*D,I=w+A*i*D,M=ln(M,un(C,y)),I=ln(I,un(T,w)),M=un(M,ln(C,y)),I=un(I,ln(T,w)),N=M-y,A=I-w,h=y-N*R/V,v=w-A*R/V,h=ln(h,un(u,y)),v=ln(v,un(c,w)),h=un(h,ln(u,y)),v=un(v,ln(c,w)),N=y-h,A=w-v,M=y+N*V/R,I=w+A*V/R}e.bezierCurveTo(f,d,h,v,y,w),f=M,d=I}else e.lineTo(y,w)}u=y,c=w,m+=o}return g}var T1=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),fI=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new T1},t.prototype.buildPath=function(r,n){var a=n.points,o=0,i=a.length/2;if(n.connectNulls){for(;i>0&&aa(a[i*2-2],a[i*2-1]);i--);for(;o<i&&aa(a[o*2],a[o*2+1]);o++);}for(;o<i;)o+=gd(r,a,o,i,i,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,o=a.data,i=Ln.CMD,s,l,u=n==="x",c=[],f=0;f<o.length;){var d=o[f++],h=void 0,v=void 0,m=void 0,g=void 0,y=void 0,w=void 0,_=void 0;switch(d){case i.M:s=o[f++],l=o[f++];break;case i.L:if(h=o[f++],v=o[f++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var S=u?(v-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=v;break;case i.C:h=o[f++],v=o[f++],m=o[f++],g=o[f++],y=o[f++],w=o[f++];var x=u?ds(s,h,m,y,r,c):ds(l,v,g,w,r,c);if(x>0)for(var C=0;C<x;C++){var T=c[C];if(T<=1&&T>=0){var S=u?$e(l,v,g,w,T):$e(s,h,m,y,T);return u?[r,S]:[S,r]}}s=y,l=w;break}}},t}(ge),hI=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(T1),dI=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new hI},t.prototype.buildPath=function(r,n){var a=n.points,o=n.stackedOnPoints,i=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&aa(a[s*2-2],a[s*2-1]);s--);for(;i<s&&aa(a[i*2],a[i*2+1]);i++);}for(;i<s;){var u=gd(r,a,i,s,s,1,n.smooth,l,n.connectNulls);gd(r,o,i+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),i+=u+1,r.closePath()}},t}(ge);function N1(e,t,r,n,a){var o=e.getArea(),i=o.x,s=o.y,l=o.width,u=o.height,c=r.get(["lineStyle","width"])||2;i-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),i!==Math.floor(i)&&(i=Math.floor(i),l++);var f=new Ee({shape:{x:i,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=ae(a)?function(g){a(g,f)}:null;wt(f,{shape:{width:l,height:u,x:i,y:s}},r,null,n,m)}return f}function D1(e,t,r){var n=e.getArea(),a=Oe(n.r0,1),o=Oe(n.r,1),i=new zn({shape:{cx:Oe(e.cx,1),cy:Oe(e.cy,1),r0:a,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?i.shape.endAngle=n.startAngle:i.shape.r=a,wt(i,{shape:{endAngle:n.endAngle,r:o}},r)}return i}function A1(e,t,r,n,a){if(e){if(e.type==="polar")return D1(e,t,r);if(e.type==="cartesian2d")return N1(e,t,r,n,a)}else return null;return null}function iu(e,t){return e.type===t}function M1(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function k1(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,o=0;o<e.length;){var i=e[o++],s=e[o++];isNaN(i)||(t=Math.min(i,t),n=Math.max(i,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function E1(e,t){var r=k1(e),n=r[0],a=r[1],o=k1(t),i=o[0],s=o[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function P1(e){return Ce(e)?e:e?.5:0}function pI(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Ir(n*2),o=0;o<n;o++){var i=x1(r,e,t,o);a[o*2]=i[0],a[o*2+1]=i[1]}return a}function cn(e,t,r,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,i=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],i.push(u[0],u[1]),r){case"end":l[o]=c[o],l[1-o]=u[1-o],i.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,h=[];l[o]=h[o]=d,l[1-o]=u[1-o],h[1-o]=c[1-o],i.push(l[0],l[1]),i.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],i.push(l[0],l[1])}return i.push(e[s++],e[s++]),i}function vI(e,t){var r=[],n=e.length,a,o;function i(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),m=sN(v,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){o?r.push(i(o,l,t)):a&&r.push(i(a,l,0),i(a,l,t));break}else a&&(r.push(i(a,l,0)),a=null),r.push(l),o=l}return r}function gI(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,o,i=n.length-1;i>=0;i--){var s=e.getDimensionInfo(n[i].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){o=n[i];break}}if(!o){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(a),u=j(o.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=vI(u,a==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,m=d[0].coord-v,g=d[h-1].coord+v,y=g-m;if(y<.001)return"transparent";k(d,function(_){_.offset=(_.coord-m)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var w=new qm(0,0,0,0,d,!0);return w[a]=m,w[a+"2"]=g,w}}function mI(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(a&&yI(o,t))){var i=t.mapDimension(o.dim),s={};return k(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(i,l))}}}}function yI(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),o=Math.max(1,Math.round(a/5)),i=0;i<a;i+=o)if(pd.getSymbolSize(t,i)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function _I(e,t){return isNaN(e)||isNaN(t)}function wI(e){for(var t=e.length/2;t>0&&_I(e[t*2-2],e[t*2-1]);t--);return t-1}function I1(e,t){return[e[t*2],e[t*2+1]]}function bI(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,o,i,s=0,l=-1,u=0;u<n;u++)if(i=e[u*2+a],!(isNaN(i)||isNaN(e[u*2+1-a]))){if(u===0){o=i;continue}if(o<=t&&i>=t||o>=t&&i<=t){l=u;break}s=u,o=i}return{range:[s,l],t:(t-o)/(i-o)}}function L1(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ht.length;t++)if(e.get([ht[t],"endLabel","show"]))return!0;return!1}function md(e,t,r,n){if(iu(t,"cartesian2d")){var a=n.getModel("endLabel"),o=a.get("valueAnimation"),i=n.getData(),s={lastFrameIndex:0},l=L1(n)?function(h,v){e._endLabelOnDuring(h,v,i,s,o,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=N1(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),D1(t,r,n)}function SI(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,o=n?a?"right":"left":"center",i=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||i}}}var CI=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Pe,n=new sI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var o=this,i=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=i.type==="polar",h=this._coordSys,v=this._symbolDraw,m=this._polyline,g=this._polygon,y=this._lineGroup,w=!n.ssr&&r.get("animation"),_=!c.isEmpty(),S=c.get("origin"),x=C1(i,l,S),C=_&&pI(i,l,x),T=r.get("showSymbol"),b=r.get("connectNulls"),D=T&&!d&&mI(r,l,i),N=this._data;N&&N.eachItemGraphicEl(function(de,Ge){de.__temp&&(s.remove(de),N.setItemGraphicEl(Ge,null))}),T||v.remove(),s.add(y);var A=d?!1:r.get("step"),M;i&&i.getArea&&r.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=gI(l,i,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&h.type===i.type&&A===this._step))T&&v.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),w&&this._initSymbolLabelAnimation(l,i,M),A&&(f=cn(f,i,A,b),C&&(C=cn(C,i,A,b))),m=this._newPolyline(f),_?g=this._newPolygon(f,C):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,Yn(I)),y.setClipPath(md(this,i,!0,r));else{_&&!g?g=this._newPolygon(f,C):g&&!_&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,Yn(I));var P=y.getClipPath();if(P){var L=md(this,i,!1,r);wt(P,{shape:L.shape},r)}else y.setClipPath(md(this,i,!0,r));T&&v.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),(!M1(this._stackedOnPoints,C)||!M1(this._points,f))&&(w?this._doUpdateAnimation(l,C,i,a,A,S,b):(A&&(f=cn(f,i,A,b),C&&(C=cn(C,i,A,b))),m.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var E=r.getModel("emphasis"),B=E.get("focus"),R=E.get("blurScope"),V=E.get("disabled");if(m.useStyle(he(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),js(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var G=m.getState("emphasis").style;G.lineWidth=+m.style.lineWidth+1}ve(m).seriesIndex=r.seriesIndex,$n(m,B,R,V);var q=P1(r.get("smooth")),J=r.get("smoothMonotone");if(m.setShape({smooth:q,smoothMonotone:J,connectNulls:b}),g){var z=l.getCalculationInfo("stackedOnSeries"),ee=0;g.useStyle(he(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),z&&(ee=P1(z.get("smooth"))),g.setShape({smooth:q,stackedOnSmooth:ee,smoothMonotone:J,connectNulls:b}),js(g,r,"areaStyle"),ve(g).seriesIndex=r.seriesIndex,$n(g,B,R,V)}var De=function(de){o._changePolyState(de)};l.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=De)}),this._polyline.onHoverStateChange=De,this._data=l,this._coordSys=i,this._stackedOnPoints=C,this._points=f,this._step=A,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,m),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ve(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,o){var i=r.getData(),s=Tn(i,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=i.getLayout("points"),u=i.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new pd(i,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,r,n,a,o)},t.prototype.downplay=function(r,n,a,o){var i=r.getData(),s=Tn(i,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=i.getItemGraphicEl(s);l&&(l.__temp?(i.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,r,n,a,o)},t.prototype._changePolyState=function(r){var n=this._polygon;hm(this._polyline,r),n&&hm(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new fI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new dI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var o,i,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(o=s.isHorizontal(),i=!1):n.type==="polar"&&(o=s.dim==="angle",i=!0);var u=r.hostModel,c=u.get("animationDuration");ae(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ae(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var m=h;if(m){var g=[h.x,h.y],y=void 0,w=void 0,_=void 0;if(a)if(i){var S=a,x=n.pointToCoord(g);o?(y=S.startAngle,w=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,w=S.r,_=x[0])}else{var C=a;o?(y=C.x,w=C.x+C.width,_=h.x):(y=C.y+C.height,w=C.y,_=h.y)}var T=w===y?0:(_-y)/(w-y);l&&(T=1-T);var b=ae(f)?f(v):c*T+d,D=m.getSymbolPath(),N=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:b}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var o=r.getModel("endLabel");if(L1(r)){var i=r.getData(),s=this._polyline,l=i.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new We({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=wI(l);c>=0&&(Ga(s,Wn(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?w1(i,h):Ei(i,f)},enableTextSetter:!0},SI(o,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,o,i,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),w=g.inverse,_=n.shape,S=w?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?m:0)*(w?-1:1),C=(y?0:-m)*(w?-1:1),T=y?"x":"y",b=bI(f,S,T),D=b.range,N=D[1]-D[0],A=void 0;if(N>=1){if(N>1&&!h){var M=I1(f,D[0]);u.attr({x:M[0]+x,y:M[1]+C}),i&&(A=d.getRawValue(D[0]))}else{var M=c.getPointOn(S,T);M&&u.attr({x:M[0]+x,y:M[1]+C});var I=d.getRawValue(D[0]),P=d.getRawValue(D[1]);i&&(A=oD(a,v,I,P,b.t))}o.lastFrameIndex=D[0]}else{var L=r===1||o.lastFrameIndex>0?D[0]:0,M=I1(f,L);i&&(A=d.getRawValue(L)),u.attr({x:M[0]+x,y:M[1]+C})}if(i){var E=ll(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(r,n,a,o,i,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=cI(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,g=d.stackedOnNext;if(i&&(h=cn(d.current,a,i,l),v=cn(d.stackedOnCurrent,a,i,l),m=cn(d.next,a,i,l),g=cn(d.stackedOnNext,a,i,l)),E1(h,m)>3e3||c&&E1(v,g)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:m}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),Je(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Je(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var w=[],_=d.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var C=r.getItemGraphicEl(_[S].idx1);C&&w.push({el:C,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,b=0;b<w.length;b++){var D=w[b].el,N=w[b].ptIdx*2;D.x=T[N],D.y=T[N+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(o,i){o.__temp&&(n.remove(o),a.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Qt);const xI=CI;function TI(e,t){return{seriesType:e,plan:Ph(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,o=r.pipelineContext,i=t||o.large;if(a){var s=j(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ra(n,s[0])&&(s[0]=u),ra(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var m=h.end-h.start,g=i&&Ir(m*l),y=[],w=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var C=c.get(f,_);x=a.dataToPoint(C,null,w)}else y[0]=c.get(f,_),y[1]=c.get(d,_),x=a.dataToPoint(y,null,w);i?(g[S++]=x[0],g[S++]=x[1]):v.setItemLayout(_,x.slice())}i&&v.setLayout("points",g)}}}}}}var NI={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var a=e[n],o=Math.abs(a);o>t&&(t=o,r=a)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},DI=function(e){return Math.round(e.length/2)};function O1(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),o=t.get("sampling"),i=t.coordinateSystem,s=a.count();if(s>10&&i.type==="cartesian2d"&&o){var l=i.getBaseAxis(),u=i.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){o==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;X(o)?v=NI[o]:ae(o)&&(v=o),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,DI))}}}}}function AI(e){e.registerChartView(xI),e.registerSeriesModel(oI),e.registerLayout(TI("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,O1("line"))}var yd=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Kl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var o=this.coordinateSystem;if(o&&o.clampData){var i=o.clampData(r),s=o.dataToPoint(i);if(a)k(o.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),g=i[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!m&&(g+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var w=void 0,_=void 0,S=1,x=0;x<v.length;x++){var C=v[x].coord,T=x===v.length-1?v[x-1].tickValue+S:v[x].tickValue;if(T===g){_=C;break}else if(T<g)w=C;else if(w!=null&&T>g){_=(C+w)/2;break}x===1&&(S=T-v[0].tickValue)}_==null&&(w?w&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Er);Er.registerClass(yd);var MI=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Kl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=cl(yd.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(yd);const kI=MI;var EI=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),R1=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new EI},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-i)*.5,u=i+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var m=Math.cos(c),g=Math.sin(c),y=Math.cos(f),w=Math.sin(f);v?(r.moveTo(m*i+a,g*i+o),r.arc(m*u+a,g*u+o,l,-Math.PI+c,c,!d)):r.moveTo(m*s+a,g*s+o),r.arc(a,o,s,c,f,!d),r.arc(y*u+a,w*u+o,l,f-Math.PI*2,f-Math.PI,!d),i!==0&&r.arc(a,o,i,f,c,d)},t}(ge);function PI(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,o){var i=a.position;if(!i||i instanceof Array)return Ds(n,a,o);var s=e(i),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,m=u.startAngle,g=u.endAngle,y=(m+g)/2,w=r?Math.abs(d-h)/2:0,_=Math.cos,S=Math.sin,x=c+d*_(m),C=f+d*S(m),T="left",b="top";switch(s){case"startArc":x=c+(h-l)*_(y),C=f+(h-l)*S(y),T="center",b="top";break;case"insideStartArc":x=c+(h+l)*_(y),C=f+(h+l)*S(y),T="center",b="bottom";break;case"startAngle":x=c+v*_(m)+su(m,l+w,!1),C=f+v*S(m)+lu(m,l+w,!1),T="right",b="middle";break;case"insideStartAngle":x=c+v*_(m)+su(m,-l+w,!1),C=f+v*S(m)+lu(m,-l+w,!1),T="left",b="middle";break;case"middle":x=c+v*_(y),C=f+v*S(y),T="center",b="middle";break;case"endArc":x=c+(d+l)*_(y),C=f+(d+l)*S(y),T="center",b="bottom";break;case"insideEndArc":x=c+(d-l)*_(y),C=f+(d-l)*S(y),T="center",b="top";break;case"endAngle":x=c+v*_(g)+su(g,l+w,!0),C=f+v*S(g)+lu(g,l+w,!0),T="left",b="middle";break;case"insideEndAngle":x=c+v*_(g)+su(g,-l+w,!0),C=f+v*S(g)+lu(g,-l+w,!0),T="right",b="middle";break;default:return Ds(n,a,o)}return n=n||{},n.x=x,n.y=C,n.align=T,n.verticalAlign=b,n}}function II(e,t,r,n){if(Ce(n)){e.setTextConfig({rotation:n});return}else if(U(t)){e.setTextConfig({rotation:0});return}var a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,i=a.clockwise?a.endAngle:a.startAngle,s=(o+i)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=i;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function su(e,t,r){return t*Math.sin(e)*(r?-1:1)}function lu(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Pi(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:j(n,function(o){return Xr(o,a)})}}var _d=Math.max,wd=Math.min;function LI(e,t){var r=e.getArea&&e.getArea();if(iu(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var OI=function(e){W(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,o){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var i=r.get("coordinateSystem");i==="cartesian2d"||i==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,o)):process.env.NODE_ENV!=="production"&&Fe("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){za(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,o){var i=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=RI(r,u);h&&this._enableRealtimeSort(h,s,a);var v=r.get("clip",!0)||h,m=LI(u,s);i.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),w=r.getModel("backgroundStyle"),_=w.get("borderRadius")||0,S=[],x=this._backgroundEls,C=o&&o.isInitSort,T=o&&o.type==="changeAxisOrder";function b(A){var M=uu[u.type](s,A),I=HI(u,f,M);return I.useStyle(w.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[A]=I,I}s.diff(l).add(function(A){var M=s.getItemModel(A),I=uu[u.type](s,A,M);if(y&&b(A),!(!s.hasValue(A)||!z1[u.type](I))){var P=!1;v&&(P=B1[u.type](m,I));var L=V1[u.type](r,s,A,I,f,d,c.model,!1,g);h&&(L.forceLabelAnimation=!0),H1(L,s,A,M,I,r,f,u.type==="polar"),C?L.attr({shape:I}):h?$1(h,d,L,I,A,f,!1,!1):wt(L,{shape:I},r,A),s.setItemGraphicEl(A,L),i.add(L),L.ignore=P}}).update(function(A,M){var I=s.getItemModel(A),P=uu[u.type](s,A,I);if(y){var L=void 0;x.length===0?L=b(M):(L=x[M],L.useStyle(w.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[A]=L);var E=uu[u.type](s,A),B=q1(f,E,u);Je(L,{shape:B},d,A)}var R=l.getItemGraphicEl(M);if(!s.hasValue(A)||!z1[u.type](P)){i.remove(R);return}var V=!1;if(v&&(V=B1[u.type](m,P),V&&i.remove(R)),R?jf(R):R=V1[u.type](r,s,A,P,f,d,c.model,!!R,g),h&&(R.forceLabelAnimation=!0),T){var G=R.getTextContent();if(G){var q=ll(G);q.prevValue!=null&&(q.prevValue=q.value)}}else H1(R,s,A,I,P,r,f,u.type==="polar");C?R.attr({shape:P}):h?$1(h,d,R,P,A,f,!0,T):Je(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=V,i.add(R)}).remove(function(A){var M=l.getItemGraphicEl(A);M&&rl(M,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Pe);D.removeAll();for(var N=0;N<S.length;++N)D.add(S[N]);i.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),U1(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),U1(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&A1(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var o=this;if(n.count()){var i=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(i.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(n,s,i,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var o=[];return r.each(r.mapDimension(n.dim),function(i,s){var l=a(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:i})}),o.sort(function(i,s){return s.mappedValue-i.mappedValue}),{ordinalNumbers:j(o,function(i){return i.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var o=a.scale,i=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(i,o.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,o=a.getExtent(),i=Math.max(0,o[0]),s=Math.min(o[1],a.getOrdinalMeta().categories.length-1);i<=s;++i)if(r.ordinalNumbers[i]!==a.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,o){if(this._isOrderChangedWithinSameData(r,n,a)){var i=this._dataSort(r,a,n);this._isOrderDifferentInView(i,a)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(r,n,a){var o=n.baseAxis,i=this._dataSort(r,o,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:i})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(o){rl(o,r,ve(o).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Qt),B1={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,o=e.y+e.height,i=_d(t.x,e.x),s=wd(t.x+t.width,a),l=_d(t.y,e.y),u=wd(t.y+t.height,o),c=s<i,f=u<l;return t.x=c&&i>a?s:i,t.y=f&&l>o?u:l,t.width=c?0:s-i,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=wd(t.r,e.r),o=_d(t.r0,e.r0);t.r=a,t.r0=o;var i=a-o<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return i}},V1={cartesian2d:function(e,t,r,n,a,o,i,s,l){var u=new Ee({shape:H({},n),z2:1});if(u.__dataIndex=r,u.name="item",o){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,o,i,s,l){var u=!a&&l?R1:zn,c=new u({shape:n,z2:1});c.name="item";var f=G1(a);if(c.calculateTextPosition=PI(f,{isRoundCap:u===R1}),o){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?Je:wt)(c,{shape:v},o)}return c}};function RI(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&Fe("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Fe("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function $1(e,t,r,n,a,o,i,s){var l,u;o?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(i?Je:wt)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(i?Je:wt)(r,{shape:u},c,a)}function F1(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var BI=["x","y","width","height"],VI=["cx","cy","r","startAngle","endAngle"],z1={cartesian2d:function(e){return!F1(e,BI)},polar:function(e){return!F1(e,VI)}},uu={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?FI(r,n):0,o=n.width>0?1:-1,i=n.height>0?1:-1;return{x:n.x+o*a/2,y:n.y+i*a/2,width:n.width-o*a,height:n.height-i*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function $I(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function G1(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function H1(e,t,r,n,a,o,i,s){var l=t.getItemVisual(r,"style");if(s){if(!o.get("roundCap")){var c=e.shape,f=Pi(n.getModel("itemStyle"),c,!0);H(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?i?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":i?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Wn(n);Ga(e,v,{labelFetcher:o,labelDataIndex:r,defaultText:Ei(o.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,II(e,g==="outside"?h:g,G1(i),n.get(["label","rotate"]))}_M(m,v,o.getRawValue(r),function(w){return w1(t,w)});var y=n.getModel(["emphasis"]);$n(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),js(e,n),$I(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function FI(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,o)}var zI=function(){function e(){}return e}(),W1=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new zI},t.prototype.buildPath=function(r,n){for(var a=n.points,o=this.baseDimIdx,i=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[o]=u,l[i]=a[c+2],s[o]=a[c+o],s[i]=a[c+i],r.rect(s[0],s[1],l[0],l[1])},t}(ge);function U1(e,t,r,n){var a=e.getData(),o=a.getLayout("valueAxisHorizontal")?1:0,i=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new W1({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=i,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new W1({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=i,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),ve(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",Y1),f.on("mousemove",Y1)),r&&r.push(f)}var Y1=Lh(function(e){var t=this,r=GI(t,e.offsetX,e.offsetY);ve(t).dataIndex=r>=0?r:null},30,!1);function GI(e,t,r){for(var n=e.baseDimIdx,a=1-n,o=e.shape.points,i=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=o.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[a]=o[d+2],s[n]=o[d+n],s[a]=o[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return i[c]}return-1}function q1(e,t,r){if(iu(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),o=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:o.r0,r:e?a.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function HI(e,t,r){var n=e.type==="polar"?zn:Ee;return new n({shape:q1(t,r,e),silent:!0,z2:0})}const WI=OI;function UI(e){e.registerChartView(WI),e.registerSeriesModel(kI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,be(fP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,O1("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var j1=Math.PI*2,cu=Math.PI/180;function X1(e,t){return qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Z1(e,t){var r=X1(e,t),n=e.get("center"),a=e.get("radius");U(a)||(a=[0,a]);var o=xe(r.width,t.getWidth()),i=xe(r.height,t.getHeight()),s=Math.min(o,i),l=xe(a[0],s/2),u=xe(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else U(n)||(n=[n,n]),c=xe(n[0],o)+r.x,f=xe(n[1],i)+r.y;return{cx:c,cy:f,r0:l,r:u}}function YI(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),o=a.mapDimension("value"),i=X1(n,r),s=Z1(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*cu,h=n.get("endAngle"),v=n.get("padAngle")*cu;h=h==="auto"?d-j1:-h*cu;var m=n.get("minAngle")*cu,g=m+v,y=0;a.each(o,function(E){!isNaN(E)&&y++});var w=a.getSum(o),_=Math.PI/(w||y)*2,S=n.get("clockwise"),x=n.get("roseType"),C=n.get("stillShowZeroSum"),T=a.getDataExtent(o);T[0]=0;var b=S?1:-1,D=[d,h],N=b*v/2;Fg(D,!S),d=D[0],h=D[1];var A=Math.abs(h-d),M=A,I=0,P=d;if(a.setLayout({viewRect:i,r:c}),a.each(o,function(E,B){var R;if(isNaN(E)){a.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?R=w===0&&C?_:E*_:R=A/y,R<g?(R=g,M-=g):I+=E;var V=P+b*R,G=0,q=0;v>R?(G=P+b*R/2,q=G):(G=P+N,q=V-N),a.setItemLayout(B,{angle:R,startAngle:G,endAngle:q,clockwise:S,cx:l,cy:u,r0:f,r:x?Ye(E,T,[f,c]):c}),P=V}),M<j1&&y)if(M<=.001){var L=A/y;a.each(o,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B);R.angle=L;var V=0,G=0;L<v?(V=d+b*(B+1/2)*L,G=V):(V=d+b*B*L+N,G=d+b*(B+1)*L-N),R.startAngle=V,R.endAngle=G}})}else _=M/I,P=d,a.each(o,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B),V=R.angle===g?g:E*_,G=0,q=0;V<v?(G=P+b*V/2,q=G):(G=P+N,q=P+b*V-N),R.startAngle=G,R.endAngle=q,P+=b*V}})})}function qI(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(o){for(var i=a.getName(o),s=0;s<n.length;s++)if(!n[s].isSelected(i))return!1;return!0})}}}}var jI=Math.PI/180;function K1(e,t,r,n,a,o,i,s,l,u){if(e.length<2)return;function c(m){for(var g=m.rB,y=g*g,w=0;w<m.list.length;w++){var _=m.list[w],S=Math.abs(_.label.y-r),x=n+_.len,C=x*x,T=Math.sqrt((1-Math.abs(S*S/y))*C),b=t+(T+_.len2)*a,D=b-_.label.x,N=_.targetTextWidth-D*a;J1(_,N,!0),_.label.x=b}}function f(m){for(var g={list:[],maxY:0},y={list:[],maxY:0},w=0;w<m.length;w++)if(m[w].labelAlignTo==="none"){var _=m[w],S=_.label.y>r?y:g,x=Math.abs(_.label.y-r);if(x>=S.maxY){var C=_.label.x-t-_.len2*a,T=n+_.len,b=Math.abs(C)<T?Math.sqrt(x*x/(1-C*C/T/T)):T;S.rB=b,S.maxY=x}S.list.push(_)}c(g),c(y)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}rI(e,l,l+i)&&f(e)}function XI(e,t,r,n,a,o,i,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;bd(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!bd(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,m=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=m[2][0]-v.labelDistance-i-v.edgeDistance:g=i+a-v.edgeDistance-m[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-i-v.bleedMargin:g=i+a-f-v.bleedMargin:h.x<t?g=h.x-i-v.bleedMargin:g=i+a-h.x-v.bleedMargin,v.targetTextWidth=g,J1(v,g)}}K1(u,t,r,n,1,a,o,i,s,f),K1(l,t,r,n,-1,a,o,i,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!bd(v)&&v.linePoints){var h=v.label,m=v.linePoints,y=v.labelAlignTo==="edge",w=h.style.padding,_=w?w[1]+w[3]:0,S=h.style.backgroundColor?0:_,x=v.rect.width+S,C=m[1][0]-m[2][0];y?h.x<t?m[2][0]=i+v.edgeDistance+x+v.labelDistance:m[2][0]=i+a-v.edgeDistance-x-v.labelDistance:(h.x<t?m[2][0]=h.x+v.labelDistance:m[2][0]=h.x-v.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=h.y}}}function J1(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,o=e.rect,i=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=o.width+(i?0:l);if(t<c||r){var f=o.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",i)}else{var h=t-l,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var m=n.getBoundingRect();o.width=m.width;var g=(n.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-f)/2}}}function bd(e){return e.position==="center"}function ZI(e){var t=e.getData(),r=[],n,a,o=!1,i=(e.get("minShowLabelAngle")||0)*jI,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var T in C.states)if(C.states[T].ignore===!1)return!0;return!1}t.each(function(C){var T=t.getItemGraphicEl(C),b=T.shape,D=T.getTextContent(),N=T.getTextGuideLine(),A=t.getItemModel(C),M=A.getModel("label"),I=M.get("position")||A.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),L=M.get("alignTo"),E=xe(M.get("edgeDistance"),u),B=M.get("bleedMargin"),R=A.getModel("labelLine"),V=R.get("length");V=xe(V,u);var G=R.get("length2");if(G=xe(G,u),Math.abs(b.endAngle-b.startAngle)<i){k(D.states,h),D.ignore=!0,N&&(k(N.states,h),N.ignore=!0);return}if(v(D)){var q=(b.startAngle+b.endAngle)/2,J=Math.cos(q),z=Math.sin(q),ee,De,de,Ge;n=b.cx,a=b.cy;var rt=I==="inside"||I==="inner";if(I==="center")ee=b.cx,De=b.cy,Ge="center";else{var Ve=(rt?(b.r+b.r0)/2*J:b.r*J)+n,ke=(rt?(b.r+b.r0)/2*z:b.r*z)+a;if(ee=Ve+J*3,De=ke+z*3,!rt){var re=Ve+J*(V+l-b.r),ue=ke+z*(V+l-b.r),St=re+(J<0?-1:1)*G,Be=ue;L==="edge"?ee=J<0?c+E:c+u-E:ee=St+(J<0?-P:P),De=Be,de=[[Ve,ke],[re,ue],[St,Be]]}Ge=rt?"center":L==="edge"?J>0?"right":"left":J>0?"left":"right"}var nr=Math.PI,zt=0,gn=M.get("rotate");if(Ce(gn))zt=gn*(nr/180);else if(I==="center")zt=0;else if(gn==="radial"||gn===!0){var Fu=J<0?-q+nr:-q;zt=Fu}else if(gn==="tangential"&&I!=="outside"&&I!=="outer"){var Vr=Math.atan2(J,z);Vr<0&&(Vr=nr*2+Vr);var zu=z>0;zu&&(Vr=nr+Vr),zt=Vr-nr}if(o=!!zt,D.x=ee,D.y=De,D.rotation=zt,D.setStyle({verticalAlign:"middle"}),rt){D.setStyle({align:Ge});var mo=D.states.select;mo&&(mo.x+=D.x,mo.y+=D.y)}else{var mn=D.getBoundingRect().clone();mn.applyTransform(D.getComputedTransform());var zi=(D.style.margin||0)+2.1;mn.y-=zi/2,mn.height+=zi,r.push({label:D,labelLine:N,position:I,len:V,len2:G,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new le(J,z),linePoints:de,textAlign:Ge,labelDistance:P,labelAlignTo:L,edgeDistance:E,bleedMargin:B,rect:mn,unconstrainedWidth:mn.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:rt})}}),!o&&e.get("avoidLabelOverlap")&&XI(r,n,a,l,u,d,c,f);for(var m=0;m<r.length;m++){var g=r[m],y=g.label,w=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(k(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(w){var x=g.linePoints;_||!x?(k(w.states,h),w.ignore=!0):(XP(x,g.minTurnAngle),ZP(x,g.surfaceNormal,g.maxSurfaceAngle),w.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new le(x[0][0],x[0][1])})}}}var KI=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;o.z2=2;var i=new We;return o.setTextContent(i),o.updateData(r,n,a,!0),o}return t.prototype.updateData=function(r,n,a,o){var i=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=H(Pi(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){i.setShape(f);return}if(o){i.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(wt(i,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),i.originX=f.cx,i.originY=f.cy):d==="scale"?(i.shape.r=c.r0,wt(i,{shape:{r:c.r}},s,n)):a!=null?(i.setShape({startAngle:a,endAngle:a}),wt(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(i.shape.endAngle=c.startAngle,Je(i,{shape:{endAngle:c.endAngle}},s,n))}else jf(i),Je(i,{shape:f},s,n);i.useStyle(r.getItemVisual(n,"style")),js(i,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),m=Math.cos(h)*v,g=Math.sin(h)*v,y=l.getShallow("cursor");y&&i.attr("cursor",y),this._updateLabel(s,r,n),i.ensureState("emphasis").shape=H({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Pi(u.getModel("itemStyle"),c)),H(i.ensureState("select"),{x:m,y:g,shape:Pi(l.getModel(["select","itemStyle"]),c)}),H(i.ensureState("blur"),{shape:Pi(l.getModel(["blur","itemStyle"]),c)});var w=i.getTextGuideLine(),_=i.getTextContent();w&&H(w.ensureState("select"),{x:m,y:g}),H(_.ensureState("select"),{x:m,y:g}),$n(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var o=this,i=n.getItemModel(a),s=i.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Ga(o,Wn(i),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var f=o.getTextContent();o.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Fa,this.setTextGuideLine(h)),JP(this,QP(i),{stroke:u,opacity:Ur(s.get(["lineStyle","opacity"]),c,1)})}},t}(zn),JI=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,o){var i=r.getData(),s=this._data,l=this.group,u;if(!s&&i.count()>0){for(var c=i.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<i.count();++f)c=i.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),i.count()===0&&r.get("showEmptyCircle")){var d=new zn({shape:Z1(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}i.diff(s).add(function(h){var v=new KI(i,h,u);i.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var m=s.getItemGraphicEl(v);m.updateData(i,h,u),m.off("click"),l.add(m),i.setItemGraphicEl(h,m)}).remove(function(h){var v=s.getItemGraphicEl(h);rl(v,r,h)}).execute(),ZI(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),o=a.getItemLayout(0);if(o){var i=r[0]-o.cx,s=r[1]-o.cy,l=Math.sqrt(i*i+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t}(Qt);const QI=JI;function eL(e,t,r){t=U(t)&&{coordDimensions:t}||H({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=G_(n,t).dimensions,o=new Ni(a,e);return o.initData(n,r),o}var tL=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const rL=tL;var nL=Ne(),aL=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new rL(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return eL(this,{coordDimensions:["value"],encodeDefaulter:be(qM,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=nL(n),o=a.seats;if(!o){var i=[];n.each(n.mapDimension("value"),function(l){i.push(l)}),o=a.seats=BN(i,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=o[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Is(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Er);const oL=aL;function iL(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var o=n.mapDimension("value"),i=n.get(o,a);return!(Ce(i)&&!isNaN(i)&&i<0)})}}}function sL(e){e.registerChartView(QI),e.registerSeriesModel(oL),PE("pie",e.registerAction),e.registerLayout(be(YI,"pie")),e.registerProcessor(qI("pie")),e.registerProcessor(iL("pie"))}var lL=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Te);const uL=lL;var Sd=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ft).models[0]},t.type="cartesian2dAxis",t}(Te);Wt(Sd,RP);var Q1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},cL=pe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Q1),Cd=pe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Q1),fL=pe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Cd),hL=he({logBase:10},Cd);const dL={category:cL,value:Cd,time:fL,log:hL};var pL={value:1,category:1,time:1,log:1};function ew(e,t,r,n){k(pL,function(a,o){var i=pe(pe({},dL[o],!0),n,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=ii(this),h=d?si(c):{},v=f.getTheme();pe(c,v.get(o+"Axis")),pe(c,this.getDefaultOption()),c.type=tw(c),d&&Ya(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=ad.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=i,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",tw)}function tw(e){return e.type||(e.data?"category":"value")}var vL=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return j(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ue(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const gL=vL;var xd=["x","y"];function rw(e){return e.type==="interval"||e.type==="time"}var mL=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=xd,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!rw(r)||!rw(n))){var a=r.getExtent(),o=n.getExtent(),i=this.dataToPoint([a[0],o[0]]),s=this.dataToPoint([a[1],o[1]]),l=a[1]-a[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-i[0])/l,f=(s[1]-i[1])/u,d=i[0]-a[0]*c,h=i[1]-o[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=Ac([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),o=this.dataToPoint(n),i=this.getArea(),s=new ye(a[0],a[1],o[0]-a[0],o[1]-a[1]);return i.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var o=r[0],i=r[1];if(this._transform&&o!=null&&isFinite(o)&&i!=null&&isFinite(i))return Tt(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(o,n)),a[1]=l.toGlobalCoord(l.dataToCoord(i,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,i=a.getExtent(),s=o.getExtent(),l=a.parse(r[0]),u=o.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(i[0],i[1]),l),Math.max(i[0],i[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return Tt(a,r,this._invTransform);var o=this.getAxis("x"),i=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(r[0]),n),a[1]=i.coordToData(i.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(n[0],n[1])-r,i=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-o+r,l=Math.max(a[0],a[1])-i+r;return new ye(o,i,s,l)},t}(gL),yL=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=o||"value",s.position=i||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(jP);const _L=yL;function Td(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,o={},i=a.getAxesOnZeroOf()[0],s=a.position,l=i?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(i){var m=i.toGlobalCoord(i.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=g[s],o.labelOffset=i?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Wr(r.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function nw(e){return e.get("coordinateSystem")==="cartesian2d"}function aw(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(r,n){var a=n.replace(/Model$/,""),o=e.getReferringComponents(a,ft).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(a+' "'+Ur(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=o}),t}var Nd=Math.log;function wL(e,t,r){var n=Di.prototype,a=n.getTicks.call(r),o=n.getTicks.call(r,!0),i=a.length-1,s=n.getInterval.call(r),l=i1(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=Nd(e.base);u=[Nd(u[0])/d,Nd(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:i,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),m=u[0],g=u[1];if(c&&f)v=(g-m)/i;else if(c)for(g=u[0]+v*i;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=id(v),g=u[0]+v*i;else if(f)for(m=u[1]-v*i;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=id(v),m=u[1]-v*i;else{var y=e.getTicks().length-1;y>i&&(v=id(v));var w=v*i;g=Math.ceil(u[1]/v)*v,m=Oe(g-w),m<0&&u[0]>=0?(m=0,g=Oe(w)):g>0&&u[1]<=0&&(g=0,m=-Oe(w))}var _=(a[0].value-o[0].value)/s,S=(a[i].value-o[i].value)/s;if(n.setExtent.call(e,m+v*_,g+v*S),n.setInterval.call(e,v),(_||S)&&n.setNiceExtent.call(e,m+v,g-v),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(e);x[1]&&(!aP(v)||uf(x[1].value)>uf(v))&&Fe("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var bL=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=xd,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(i){var s,l=me(i),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=i[d],v=h.model,m=h.scale;od(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(s1(m,v),od(m)&&(s=h))}c.length&&(s||(s=c.pop(),s1(s.scale,s.model)),k(c,function(g){wL(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var o={};k(n.x,function(i){ow(n,"y",i,o)}),k(n.y,function(i){ow(n,"x",i,o)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),i=qn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=i;var s=this._axesList;l(),o&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=IP(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);i[f]-=c[f]+d,u.position==="top"?i.y+=c.height+d:u.position==="left"&&(i.x+=c.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),f=c?[0,i.width]:[0,i.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),SL(u,c?i.x:i.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}K(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===t||o[a].getAxis("y").index===r)return o[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",ft).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",ft).models[0],o=t.gridModel,i=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(i,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,o=this,i={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,k(s.x,function(c,f){k(s.y,function(d,h){var v="x"+f+"y"+h,m=new mL(v);m.master=a,m.model=t,a._coordsMap[v]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(Dd(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=i.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=i.left?"right":"left"),i[h]=!0;var v=new _L(c,EP(f),[0,0],f.get("type"),h),m=v.type==="category";v.onBand=m&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=o,v.index=d,o._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){k(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),t.eachSeries(function(a){if(nw(a)){var o=aw(a),i=o.xAxisModel,s=o.yAxisModel;if(!Dd(i,r)||!Dd(s,r))return;var l=this.getCartesian(i.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,o){k(u1(a,o.dim),function(i){o.scale.unionExtentFromData(a,i)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return k(this.getCartesians(),function(a){var o=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),i=a.getOtherAxis(o);fe(r,o)<0&&r.push(o),fe(n,i)<0&&n.push(i)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,o){var i=new e(a,t,r);i.name="grid_"+o,i.resize(a,r,!0),a.coordinateSystem=i,n.push(i)}),t.eachSeries(function(a){if(nw(a)){var o=aw(a),i=o.xAxisModel,s=o.yAxisModel,l=i.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Ur(i.get("gridIndex"),i.get("gridId"),0)+'" not found');if(i.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(i.componentIndex,s.componentIndex)}}),n},e.dimensions=xd,e}();function Dd(e,t){return e.getCoordSysModel()===t}function ow(e,t,r,n){r.getAxesOnZeroOf=function(){return o?[o]:[]};var a=e[t],o,i=r.model,s=i.get(["axisLine","onZero"]),l=i.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)iw(a[l])&&(o=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&iw(a[u])&&!n[c(a[u])]){o=a[u];break}o&&(n[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function iw(e){return e&&e.type!=="category"&&e.type!=="time"&&PP(e)}function SL(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const CL=bL;var fn=Math.PI,oa=function(){function e(t,r){this.group=new Pe,this.opt=r,this.axisModel=t,he(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Pe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!sw[t]},e.prototype.add=function(t){sw[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=pg(r-t),o,i;return As(a)?(i=n>0?"top":"bottom",o="center"):As(a-fn)?(i=n>0?"bottom":"top",o="center"):(i="middle",a>0&&a<fn?o=n>0?"right":"left":o=n>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:i}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),sw={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var o=t.axis.getExtent(),i=n.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];i&&(Tt(s,s,i),Tt(l,l,i));var c=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new en({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ei(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);X(d)&&(d=[d,d]),(X(h)||Ce(h))&&(h=[h,h]);var v=Ol(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[1];k([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,w){if(d[w]!=="none"&&d[w]!=null){var _=Pr(d[w],-m/2,-g/2,m,g,c.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(e.rotation),y:x[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=NL(r,n,t,e),o=AL(r,n,t,e);if(TL(t,o,a),DL(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var i=eI(j(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));nI(i)}},axisName:function(e,t,r,n){var a=Wr(e.axisName,t.get("name"));if(a){var o=t.get("nameLocation"),i=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,uw(o)?e.labelOffset+i*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*fn/180);var v;uw(o)?d=oa.innerTextLayout(e.rotation,h??e.rotation,i):(d=xL(e.rotation,o,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,w=Wr(e.nameTruncateMaxWidth,g.maxWidth,v),_=new We({x:f[0],y:f[1],rotation:d.rotation,silent:oa.isLabelSilent(t),style:Zt(s,{text:a,font:m,overflow:"truncate",width:w,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Jf({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=oa.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,ve(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function xL(e,t,r,n){var a=pg(r-e),o,i,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return As(a-fn/2)?(i=l?"bottom":"top",o="center"):As(a-fn*1.5)?(i=l?"top":"bottom",o="center"):(i="middle",a<fn*1.5&&a>fn/2?o=l?"left":"right":o=l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:i}}function TL(e,t,r){if(!l1(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var o=t[0],i=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Vt(o),Vt(u)):lw(o,i)&&(n?(Vt(i),Vt(c)):(Vt(o),Vt(u))),a===!1?(Vt(s),Vt(f)):lw(l,s)&&(a?(Vt(l),Vt(d)):(Vt(s),Vt(f)))}}function Vt(e){e&&(e.ignore=!0)}function lw(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=Tc([]);return Dc(a,a,-e.rotation),r.applyTransform(Ta([],a,e.getLocalTransform())),n.applyTransform(Ta([],a,t.getLocalTransform())),r.intersect(n)}}function uw(e){return e==="middle"||e==="center"}function cw(e,t,r,n,a){for(var o=[],i=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;i[0]=u,i[1]=0,s[0]=u,s[1]=r,t&&(Tt(i,i,t),Tt(s,s,t));var c=new en({shape:{x1:i[0],y1:i[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ei(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,o.push(c)}return o}function NL(e,t,r,n){var a=r.axis,o=r.getModel("axisTick"),i=o.get("show");if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisTick")),!(!i||a.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=a.getTicksCoords(),c=cw(u,t.transform,l,he(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function DL(e,t,r,n){var a=r.axis,o=r.getModel("minorTick");if(!(!o.get("show")||a.scale.isBlank())){var i=a.getMinorTicksCoords();if(i.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),u=he(s.getLineStyle(),he(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<i.length;c++)for(var f=cw(i[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function AL(e,t,r,n){var a=r.axis,o=Wr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!o||a.scale.isBlank())){var i=r.getModel("axisLabel"),s=i.get("margin"),l=a.getViewLabels(),u=(Wr(n.labelRotate,i.get("rotate"))||0)*fn/180,c=oa.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=oa.isLabelSilent(r),v=r.get("triggerEvent");return k(l,function(m,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,w=m.formattedLabel,_=m.rawLabel,S=i;if(f&&f[y]){var x=f[y];K(x)&&x.textStyle&&(S=new Qe(x.textStyle,i,r.ecModel))}var C=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(y),b=S.getShallow("align",!0)||c.textAlign,D=oe(S.getShallow("alignMinLabel",!0),b),N=oe(S.getShallow("alignMaxLabel",!0),b),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,M=oe(S.getShallow("verticalAlignMinLabel",!0),A),I=oe(S.getShallow("verticalAlignMaxLabel",!0),A),P=new We({x:T,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:Zt(S,{text:w,align:g===0?D:g===l.length-1?N:b,verticalAlign:g===0?M:g===l.length-1?I:A,fill:ae(C)?C(a.type==="category"?_:a.type==="value"?y+"":y,g):C})});if(P.anid="label_"+y,v){var L=oa.makeAxisEventDataBase(r);L.targetType="axisLabel",L.value=_,L.tickIndex=g,a.type==="category"&&(L.dataIndex=y),ve(P).eventData=L}t.add(P),P.updateTransform(),d.push(P),e.add(P),P.decomposeTransform()}),d}}const fw=oa;function ML(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kL(r,e,t),r.seriesInvolved&&PL(r,e),r}function kL(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),o=a.get("link",!0)||[],i=[];k(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ii(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(k(s.getAxes(),be(m,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&k(v.baseAxes,be(m,h?"cross":!0,d)),h&&k(v.otherAxes,be(m,"cross",!1))}function m(g,y,w){var _=w.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!kd(_))){y==null&&(y=_.get("triggerTooltip")),_=g?EL(w,f,a,t,g,y):_;var x=_.get("snap"),C=_.get("triggerEmphasis"),T=Ii(w.model),b=y||x||w.type==="category",D=e.axesInfo[T]={key:T,axis:w,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:C,involveSeries:b,snap:x,useHandle:kd(_),seriesModels:[],linkGroup:null};u[T]=D,e.seriesInvolved=e.seriesInvolved||b;var N=IL(o,w);if(N!=null){var A=i[N]||(i[N]={axesInfo:{}});A.axesInfo[T]=D,A.mapper=o[N].mapper,D.linkGroup=A}}}})}function EL(e,t,r,n,a,o){var i=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};k(s,function(d){l[d]=ce(i.get(d))}),l.snap=e.type!=="category"&&!!o,i.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=i.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=i.get("crossStyle");f&&he(u,f.textStyle)}}return e.model.getModel("axisPointer",new Qe(l,r,n))}function PL(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),o=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||o===!1||r.get(["axisPointer","show"],!0)===!1||k(e.coordSysAxesInfo[Ii(n.model)],function(i){var s=i.axis;n.getAxis(s.dim)===s&&(i.seriesModels.push(r),i.seriesDataCount==null&&(i.seriesDataCount=0),i.seriesDataCount+=r.getData().count())})})}function IL(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var o=e[a]||{};if(Ad(o[n+"AxisId"],r.id)||Ad(o[n+"AxisIndex"],r.componentIndex)||Ad(o[n+"AxisName"],r.name))return a}}function Ad(e,t){return e==="all"||U(e)&&fe(e,t)>=0||e===t}function LL(e){var t=Md(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,o=r.get("status"),i=r.get("value");i!=null&&(i=n.parse(i));var s=kd(r);o==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(i==null||i>l[1])&&(i=l[1]),i<l[0]&&(i=l[0]),a.value=i,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Md(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ii(e)]}function OL(e){var t=Md(e);return t&&t.axisPointerModel}function kd(e){return!!e.get(["handle","show"])}function Ii(e){return e.type+"||"+e.id}var Ed={},hw=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this.axisPointerClass&&LL(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,o){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var i=OL(r);i?(this._axisPointer||(this._axisPointer=new o)).render(r,i,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&Ed[r])throw new Error("axisPointer "+r+" exists");Ed[r]=n},t.getAxisPointerClass=function(r){return r&&Ed[r]},t.type="axis",t}(Jt),Pd=Ne();function RL(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitArea"),i=o.getModel("areaStyle"),s=i.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=Pd(e).splitAreaColors,d=ie(),h=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){h=(m+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=i.getAreaStyle();s=U(s)?s:[s];for(var v=1;v<u.length;v++){var w=a.toGlobalCoord(u[v].coord),_=void 0,S=void 0,x=void 0,C=void 0;a.isHorizontal()?(_=g,S=l.y,x=w-_,C=l.height,g=_+x):(_=l.x,S=g,x=l.width,C=w-S,g=S+C);var T=u[v-1].tickValue;T!=null&&d.set(T,h),t.add(new Ee({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:x,height:C},style:he({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}Pd(e).splitAreaColors=d}}}function BL(e){Pd(e).splitAreaColors=null}var VL=["axisLine","axisTickLabel","axisName"],$L=["splitArea","splitLine","minorSplitLine"],dw=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,o){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Pe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Td(s,r),u=new fw(r,H({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(od(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));k(VL,u.add,u),this._axisGroup.add(u.getGroup()),k($L,function(f){r.get([f,"show"])&&FL[f](this,this._axisGroup,r,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||ry(i,this._axisGroup,r),e.prototype.render.call(this,r,n,a,o)}},t.prototype.remove=function(){BL(this)},t.type="cartesianAxis",t}(hw),FL={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),i=o.getModel("lineStyle"),s=i.get("color");s=U(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:o}),d=[],h=[],v=i.getLineStyle(),m=0;m<f.length;m++){var g=a.toGlobalCoord(f[m].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,w=f[m].tickValue,_=new en({anid:w!=null?"line_"+f[m].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:he({stroke:s[y]},v),silent:!0});ei(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,o=r.getModel("minorSplitLine"),i=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=i.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var m=a.toGlobalCoord(u[h][v].coord);l?(c[0]=m,c[1]=s.y,f[0]=m,f[1]=s.y+s.height):(c[0]=s.x,c[1]=m,f[0]=s.x+s.width,f[1]=m);var g=new en({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});ei(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){RL(e,t,r,n)}},pw=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(dw),zL=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=pw.type,r}return t.type="yAxis",t}(dw),GL=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ee({shape:r.coordinateSystem.getRect(),style:he({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Jt),vw={offset:0};function HL(e){e.registerComponentView(GL),e.registerComponentModel(uL),e.registerCoordinateSystem("cartesian2d",CL),ew(e,"x",Sd,vw),ew(e,"y",Sd,vw),e.registerComponentView(pw),e.registerComponentView(zL),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var gw="\0_ec_interaction_mutex";function mw(e,t){return!!WL(e)[t]}function WL(e){return e[gw]||(e[gw]={})}ea({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ot);var UL=function(e){W(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=Q(n._mousedownHandler,n),o=Q(n._mousemoveHandler,n),i=Q(n._mouseupHandler,n),s=Q(n._mousewheelHandler,n),l=Q(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=he(ce(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",o),r.on("mouseup",i)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",o),r.off("mouseup",i),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!bv(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,o=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,o)&&(this._x=a,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!fu("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||mw(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,o=this._x,i=this._y,s=n-o,l=a-i;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Ca(r.event),yw(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:o,oldY:i,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){bv(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=fu("zoomOnMouseWheel",r,this._opt),a=fu("moveOnMouseWheel",r,this._opt),o=r.wheelDelta,i=Math.abs(o),s=r.offsetX,l=r.offsetY;if(!(o===0||!n&&!a)){if(n){var u=i>3?1.4:i>1?1.2:1.1,c=o>0?u:1/u;Id(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(o),d=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);Id(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!mw(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Id(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ut);function Id(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Ca(n.event),yw(e,t,r,n,a))}function yw(e,t,r,n,a){a.isAvailableBehavior=Q(fu,null,r,n),e.trigger(t,a)}function fu(e,t,r){var n=r[e];return!e||n&&(!X(n)||t.event[n+"Key"])}const YL=UL;var _w=en.prototype,Ld=Wf.prototype,ww=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(ww);function Od(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var qL=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ww},t.prototype.buildPath=function(r,n){Od(n)?_w.buildPath.call(this,r,n):Ld.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Od(this.shape)?_w.pointAt.call(this,r):Ld.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=Od(n)?[n.x2-n.x1,n.y2-n.y1]:Ld.tangentAt.call(this,r);return pc(a,a)},t}(ge),Rd=["fromSymbol","toSymbol"];function bw(e){return"_"+e+"Type"}function Sw(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),o=t.getItemVisual(r,e+"Rotate"),i=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Rh(a),u=Ol(i||0,l);return n+l+u+(o||"")+(s||"")}function Cw(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),o=t.getItemVisual(r,e+"Rotate"),i=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Rh(a),u=Ol(i||0,l),c=Pr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function jL(e){var t=new qL({name:"line",subPixelOptimize:!0});return Bd(t.shape,e),t}function Bd(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var XL=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;return o._createLine(r,n,a),o}return t.prototype._createLine=function(r,n,a){var o=r.hostModel,i=r.getItemLayout(n),s=jL(i);s.shape.percent=0,wt(s,{shape:{percent:1}},o,n),this.add(s),k(Rd,function(l){var u=Cw(l,r,n);this.add(u),this[bw(l)]=Sw(l,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Bd(l.shape,s),Je(i,l,o,n),k(Rd,function(u){var c=Sw(u,r,n),f=bw(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Cw(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||r.hasItemOption){var v=r.getItemModel(n),m=v.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=m.get("disabled"),d=m.get("focus"),h=m.get("blurScope"),c=Wn(v)}var g=r.getItemVisual(n,"style"),y=g.stroke;i.useStyle(g),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,i.ensureState("blur").style=l,i.ensureState("select").style=u,k(Rd,function(C){var T=this.childOfName(C);if(T){T.setColor(y),T.style.opacity=g.opacity;for(var b=0;b<ht.length;b++){var D=ht[b],N=i.getState(D);if(N){var A=N.style||{},M=T.ensureState(D),I=M.style||(M.style={});A.stroke!=null&&(I[T.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(I.opacity=A.opacity)}}T.markRedraw()}},this);var w=o.getRawValue(n);Ga(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,T){return o.getFormattedLabel(C,T,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(w==null?r.getName(n):isFinite(w)?Oe(w):w)+""});var _=this.getTextContent();if(_){var S=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");U(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),$n(this,d,h,f)},t.prototype.highlight=function(){jo(this)},t.prototype.downplay=function(){Xo(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Bd(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),o=r.getTextContent();if(!n&&!a&&(!o||o.ignore))return;for(var i=1,s=this.parent;s;)s.scaleX&&(i/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=gv([],f,c);pc(d,d);function h(N,A){var M=N.__specifiedRotation;if(M==null){var I=l.tangentAt(A);N.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else N.attr("rotation",M)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=i*u,n.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=i*u,a.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var v=void 0,m=void 0,g=o.__labelDistance,y=g[0]*i,w=g[1]*i,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],C=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var T=S[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var b=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(b=Math.PI+b),o.rotation=b}var D=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-w,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=w,m="top";break;default:D=0,m="middle"}switch(o.__position){case"end":o.x=d[0]*y+f[0],o.y=d[1]*w+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*y+c[0],o.y=-d[1]*w+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*T+c[0],o.y=c[1]+D,v=S[0]<0?"right":"left",o.originX=-y*T,o.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=C[0],o.y=C[1]+D,v="center",o.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*T+f[0],o.y=f[1]+D,v=S[0]>=0?"right":"left",o.originX=y*T,o.originY=-D;break}o.scaleX=o.scaleY=i,o.setStyle({verticalAlign:o.__verticalAlign||m,align:o.__align||v})}},t}(Pe);const ZL=XL;var KL=function(){function e(t){this.group=new Pe,this._LineCtor=t||ZL}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,o=n._lineData;n._lineData=t,o||a.removeAll();var i=xw(t);t.diff(o).add(function(s){r._doAdd(t,s,i)}).update(function(s,l){r._doUpdate(o,t,l,s,i)}).remove(function(s){a.remove(o.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=xw(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!JL(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(Vd(o)){var i=new this._LineCtor(r,a,this._seriesScope);i.traverse(n),this.group.add(i),r.setItemGraphicEl(a,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){za(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(Vd(a)){var o=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,o),this.group.add(o)}},e.prototype._doUpdate=function(t,r,n,a,o){var i=t.getItemGraphicEl(n);if(!Vd(r.getItemLayout(a))){this.group.remove(i);return}i?i.updateData(r,a,o):i=new this._LineCtor(r,a,o),r.setItemGraphicEl(a,i),this.group.add(i)},e}();function JL(e){return e.animators&&e.animators.length>0}function xw(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Wn(t)}}function Tw(e){return isNaN(e[0])||isNaN(e[1])}function Vd(e){return e&&!Tw(e[0])&&!Tw(e[1])}const QL=KL;function hu(e,t,r,n,a,o){e=e||0;var i=r[1]-r[0];if(a!=null&&(a=no(a,[0,i])),o!=null&&(o=Math.max(o,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=no(s,[0,i]),a=o=no(s,[a,o]),n=0}t[0]=no(t[0],r),t[1]=no(t[1],r);var l=$d(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=no(t[n],c);var f;return f=$d(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=$d(t,n),o!=null&&f.span>o&&(t[1-n]=t[n]+f.sign*o),t}function $d(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function no(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Nw={color:"fill",borderColor:"stroke"},eO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lr=Ne(),tO=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Kl(null,this)},t.prototype.getDataParams=function(r,n,a){var o=e.prototype.getDataParams.call(this,r,n);return a&&(o.info=Lr(a).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Er);const rO=tO;function nO(e,t){return t=t||[0,0],j(["x","y"],function(r,n){var a=this.getAxis(r),o=t[n],i=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-i)-a.dataToCoord(o+i))},this)}function aO(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(nO,e)}}}function oO(e,t){return t=t||[0,0],j([0,1],function(r){var n=t[r],a=e[r]/2,o=[],i=[];return o[r]=n-a,i[r]=n+a,o[1-r]=i[1-r]=t[1-r],Math.abs(this.dataToPoint(o)[r]-this.dataToPoint(i)[r])},this)}function iO(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:Q(oO,e)}}}function sO(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function lO(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(sO,e)}}}function uO(e,t){return t=t||[0,0],j(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",o=this[a](),i=t[n],s=e[n]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(i-s)-o.dataToCoord(i+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function cO(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var o=t.dataToRadius(a[0]),i=r.dataToAngle(a[1]),s=e.coordToPoint([o,i]);return s.push(o,i*Math.PI/180),s},size:Q(uO,e)}}}function fO(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}var Dw={};function hO(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Y(e,"text")))}function dO(e,t,r){var n=e,a,o,i;if(t==="text")i=n;else{i={},Y(n,"text")&&(i.text=n.text),Y(n,"rich")&&(i.rich=n.rich),Y(n,"textFill")&&(i.fill=n.textFill),Y(n,"textStroke")&&(i.stroke=n.textStroke),Y(n,"fontFamily")&&(i.fontFamily=n.fontFamily),Y(n,"fontSize")&&(i.fontSize=n.fontSize),Y(n,"fontStyle")&&(i.fontStyle=n.fontStyle),Y(n,"fontWeight")&&(i.fontWeight=n.fontWeight),o={type:"text",style:i,silent:!0},a={};var s=Y(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Y(n,"textPosition")&&(a.position=n.textPosition),Y(n,"textOffset")&&(a.offset=n.textOffset),Y(n,"textRotation")&&(a.rotation=n.textRotation),Y(n,"textDistance")&&(a.distance=n.textDistance)}return Aw(i,e),k(i.rich,function(l){Aw(l,l)}),{textConfig:a,textContent:o}}function Aw(e,t){t&&(t.font=t.textFont||t.font,Y(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Y(t,"textAlign")&&(e.align=t.textAlign),Y(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Y(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Y(t,"textWidth")&&(e.width=t.textWidth),Y(t,"textHeight")&&(e.height=t.textHeight),Y(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Y(t,"textPadding")&&(e.padding=t.textPadding),Y(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Y(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Y(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Y(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Y(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Y(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Y(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Mw(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,o=e.fill||"#000";kw(n,t);var i=n.textFill==null;return a?i&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=o),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(i&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,k(t.rich,function(s){kw(s,s)}),n}function kw(e,t){t&&(Y(t,"fill")&&(e.textFill=t.fill),Y(t,"stroke")&&(e.textStroke=t.fill),Y(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Y(t,"font")&&(e.font=t.font),Y(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Y(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Y(t,"fontSize")&&(e.fontSize=t.fontSize),Y(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Y(t,"align")&&(e.textAlign=t.align),Y(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Y(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Y(t,"width")&&(e.textWidth=t.width),Y(t,"height")&&(e.textHeight=t.height),Y(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Y(t,"padding")&&(e.textPadding=t.padding),Y(t,"borderColor")&&(e.textBorderColor=t.borderColor),Y(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Y(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Y(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Y(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Y(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Y(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Y(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Y(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Y(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Y(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function Ew(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;Dw[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),Dw[r]=!0)}}var Pw={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Iw=me(Pw),du=Sr(ir,function(e,t){return e[t]=1,e},{}),Lw=ir.join(", "),pu=["","style","shape","extra"],ao=Ne();function Fd(e,t,r,n,a){var o=e+"Animation",i=Yf(e,n,a)||{},s=ao(t).userDuring;return i.duration>0&&(i.during=s?Q(wO,{el:t,userDuring:s}):null,i.setToFinal=!0,i.scope=e),H(i,r[o]),i}function pO(e,t,r,n){n=n||{};var a=n.dataIndex,o=n.isInit,i=n.clearStyle,s=r.isAnimationEnabled(),l=ao(e),u=t.style;l.userDuring=t.during;var c={},f={};if(SO(e,t,f),Rw("shape",t,f),Rw("extra",t,f),!o&&s&&(bO(e,t,c),Ow("shape",e,t,c),Ow("extra",e,t,c),CO(e,t,u,c)),f.style=u,gO(e,f,i),yO(e,t),s)if(o){var d={};k(pu,function(v){var m=v?t[v]:t;m&&m.enterFrom&&(v&&(d[v]=d[v]||{}),H(v?d[v]:d,m.enterFrom))});var h=Fd("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else mO(e,t,a||0,r,c);vO(e,t),u?e.dirty():e.markRedraw()}function vO(e,t){for(var r=ao(e).leaveToProps,n=0;n<pu.length;n++){var a=pu[n],o=a?t[a]:t;o&&o.leaveTo&&(r||(r=ao(e).leaveToProps={}),a&&(r[a]=r[a]||{}),H(a?r[a]:r,o.leaveTo))}}function zd(e,t,r,n){if(e){var a=e.parent,o=ao(e).leaveToProps;if(o){var i=Fd("update",e,t,r,0);i.done=function(){a.remove(e),n&&n()},e.animateTo(o,i)}else a.remove(e),n&&n()}}function oo(e){return e==="all"}function gO(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,o=0;o<a.length;o++){var i=a[o];i.targetName==="style"&&i.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function mO(e,t,r,n,a){if(a){var o=Fd("update",e,t,n,r);o.duration>0&&e.animateFrom(a,o)}}function yO(e,t){Y(t,"silent")&&(e.silent=t.silent),Y(t,"ignore")&&(e.ignore=t.ignore),e instanceof An&&Y(t,"invisible")&&(e.invisible=t.invisible),e instanceof ge&&Y(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var yr={},_O={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&te(Y(du,e),"Only "+Lw+" available in `setTransform`."),yr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&te(Y(du,e),"Only "+Lw+" available in `getTransform`."),yr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&io(e);var r=yr.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&io(e);var t=yr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&io(e);var r=yr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&ma(t)&&Fe("style."+e+" must not be assigned with NaN."),n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!=="production"&&io(e);var t=yr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&io(e);var r=yr.el.extra||(yr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&io(e);var t=yr.el.extra;if(t)return t[e]}};function io(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function wO(){var e=this,t=e.el;if(t){var r=ao(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}yr.el=t,n(_O)}}function Ow(e,t,r,n){var a=r[e];if(a){var o=t[e],i;if(o){var s=r.transition,l=a.transition;if(l)if(!i&&(i=n[e]={}),oo(l))H(i,o);else for(var u=He(l),c=0;c<u.length;c++){var f=u[c],d=o[f];i[f]=d}else if(oo(s)||fe(s,e)>=0){!i&&(i=n[e]={});for(var h=me(o),c=0;c<h.length;c++){var f=h[c],d=o[f];xO(a[f],d)&&(i[f]=d)}}}}}function Rw(e,t,r){var n=t[e];if(n)for(var a=r[e]={},o=me(n),i=0;i<o.length;i++){var s=o[i];a[s]=Lo(n[s])}}function bO(e,t,r){for(var n=t.transition,a=oo(n)?ir:He(n||[]),o=0;o<a.length;o++){var i=a[o];if(!(i==="style"||i==="shape"||i==="extra")){var s=e[i];process.env.NODE_ENV!=="production"&&Bw(i,"el.transition"),r[i]=s}}}function SO(e,t,r){for(var n=0;n<Iw.length;n++){var a=Iw[n],o=Pw[a],i=t[a];i&&(r[o[0]]=i[0],r[o[1]]=i[1])}for(var n=0;n<ir.length;n++){var s=ir[n];t[s]!=null&&(r[s]=t[s])}}function CO(e,t,r,n){if(r){var a=e.style,o;if(a){var i=r.transition,s=t.transition;if(i&&!oo(i)){var l=He(i);!o&&(o=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];o[c]=f}}else if(e.getAnimationStyleProps&&(oo(s)||oo(i)||fe(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!o&&(o=n.style={});for(var v=me(r),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];o[c]=f}}}}}}}function xO(e,t){return nt(e)?e!==t:e!=null&&isFinite(e)}var Bw;process.env.NODE_ENV!=="production"&&(Bw=function(e,t){Y(du,e)||Fe("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+me(du).join("`, `")+"` are permitted.")});var Vw=Ne(),TO=["percent","easing","shape","style","extra"];function NO(e){e.stopAnimation("keyframe"),e.attr(Vw(e))}function $w(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(U(t)){k(t,function(s){$w(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var o=Yf("enter",r,0);a=o&&o.duration}if(!(!n||!a)){var i=Vw(e);k(pu,function(s){if(!(s&&!e[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),k(n,function(c){var f=e.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var h=me(d);if(s||(h=Ue(h,function(g){return fe(TO,g)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(i[s]=i[s]||{});var m=s?i[s]:i;k(h,function(g){m[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(a*c.percent,d,h,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Fe("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(t.delay||0).duration(a).start(t.easing))}})}}}var Or="emphasis",hn="normal",Gd="blur",Hd="select",dn=[hn,Or,Gd,Hd],Wd={normal:["itemStyle"],emphasis:[Or,"itemStyle"],blur:[Gd,"itemStyle"],select:[Hd,"itemStyle"]},Ud={normal:["label"],emphasis:[Or,"label"],blur:[Gd,"label"],select:[Hd,"label"]},DO=["x","y"],AO="e\0\0",$t={normal:{},emphasis:{},blur:{},select:{}},Fw={cartesian2d:aO,geo:iO,single:lO,polar:cO,calendar:fO};function vu(e){return e instanceof ge}function Yd(e){return e instanceof An}function MO(e,t){t.copyTransform(e),Yd(t)&&Yd(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,vu(t)&&vu(e)&&t.setShape(e.shape))}var kO=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this._progressiveEls=null;var i=this._data,s=r.getData(),l=this.group,u=Gw(r,s,n,a);i||l.removeAll(),s.diff(i).add(function(f){Xd(a,null,f,u(f,o),r,l,s)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&zd(d,Lr(d).option,r)}).update(function(f,d){var h=i.getItemGraphicEl(d);Xd(a,h,f,u(f,o),r,l,s)}).execute();var c=r.get("clip",!0)?A1(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,o,i){var s=n.getData(),l=Gw(n,s,a,o),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=Xd(null,null,f,l(f,i),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){za(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,o){var i=n.element;if(i==null||a.name===i)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===i)return!0;return!1},t.type="custom",t}(Qt);const EO=kO;function qd(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=qw(n);r=ol(o,null,a,n.layout||"center"),Lr(r).customPathData=o}else if(t==="image")r=new Qr({}),Lr(r).customImagePath=e.style.image;else if(t==="text")r=new We({});else if(t==="group")r=new Pe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var i=Xm(t);if(!i){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),it(s)}r=new i}return Lr(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function jd(e,t,r,n,a,o,i){NO(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=DO);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Y(u,"textFill")&&(u.fill=u.textFill),Y(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=vu(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Fl(f,e)),l.__decalPattern=c}if(Yd(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}pO(t,n,o,{dataIndex:r,isInit:i,clearStyle:!0}),$w(t,n.keyframeAnimation,o)}function zw(e,t,r,n,a){var o=t.isGroup?null:t,i=a&&a[e].cfg;if(o){var s=o.ensureState(e);if(n===!1){var l=o.getState(e);l&&(l.style=null)}else s.style=n||null;i&&(s.textConfig=i),dm(o)}}function PO(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,o=r.currentZLevel;n.z=a,n.zlevel=o;var i=t.z2;i!=null&&(n.z2=i||0);for(var s=0;s<dn.length;s++)IO(n,t,dn[s])}}function IO(e,t,r){var n=r===hn,a=n?t:gu(t,r),o=a?a.z2:null,i;o!=null&&(i=n?e:e.ensureState(r),i.z2=o||0)}function Gw(e,t,r,n){var a=e.get("renderItem"),o=e.coordinateSystem,i={};o&&(process.env.NODE_ENV!=="production"&&(te(a,"series.render is required."),te(o.prepareCustoms||Fw[o.type],"This coordSys does not support custom series.")),i=o.prepareCustoms?o.prepareCustoms(o):Fw[o.type](o));for(var s=he({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:C,ordinalRawValue:x,styleEmphasis:T,visual:N,barLayout:A,currentSeriesIndices:M,font:I},i.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:i.coordSys,dataInsideLength:t.count(),encode:LO(e.getData())},u,c,f={},d={},h={},v={},m=0;m<dn.length;m++){var g=dn[m];h[g]=e.getModel(Wd[g]),v[g]=e.getModel(Ud[g])}function y(P){return P===u?c||(c=t.getItemModel(P)):t.getItemModel(P)}function w(P,L){return t.hasItemOption?P===u?f[L]||(f[L]=y(P).getModel(Wd[L])):y(P).getModel(Wd[L]):h[L]}function _(P,L){return t.hasItemOption?P===u?d[L]||(d[L]=y(P).getModel(Ud[L])):y(P).getModel(Ud[L]):v[L]}return function(P,L){return u=P,c=null,f={},d={},a&&a(he({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:L?L.type:null},l),s)};function S(P,L){return L==null&&(L=u),t.getStore().get(t.getDimensionIndex(P||0),L)}function x(P,L){L==null&&(L=u),P=P||0;var E=t.getDimensionInfo(P);if(!E){var B=t.getDimensionIndex(P);return B>=0?t.getStore().get(B,L):void 0}var R=t.get(E.name,L),V=E&&E.ordinalMeta;return V?V.categories[R]:R}function C(P,L){process.env.NODE_ENV!=="production"&&Ew("api.style","Please write literal style directly instead."),L==null&&(L=u);var E=t.getItemVisual(L,"style"),B=E&&E.fill,R=E&&E.opacity,V=w(L,hn).getItemStyle();B!=null&&(V.fill=B),R!=null&&(V.opacity=R);var G={inheritColor:X(B)?B:"#000"},q=_(L,hn),J=Zt(q,null,G,!1,!0);J.text=q.getShallow("show")?oe(e.getFormattedLabel(L,hn),Ei(t,L)):null;var z=sl(q,G,!1);return D(P,V),V=Mw(V,J,z),P&&b(V,P),V.legacy=!0,V}function T(P,L){process.env.NODE_ENV!=="production"&&Ew("api.styleEmphasis","Please write literal style directly instead."),L==null&&(L=u);var E=w(L,Or).getItemStyle(),B=_(L,Or),R=Zt(B,null,null,!0,!0);R.text=B.getShallow("show")?Ur(e.getFormattedLabel(L,Or),e.getFormattedLabel(L,hn),Ei(t,L)):null;var V=sl(B,null,!0);return D(P,E),E=Mw(E,R,V),P&&b(E,P),E.legacy=!0,E}function b(P,L){for(var E in L)Y(L,E)&&(P[E]=L[E])}function D(P,L){P&&(P.textFill&&(L.textFill=P.textFill),P.textPosition&&(L.textPosition=P.textPosition))}function N(P,L){if(L==null&&(L=u),Y(Nw,P)){var E=t.getItemVisual(L,"style");return E?E[Nw[P]]:null}if(Y(eO,P))return t.getItemVisual(L,P)}function A(P){if(o.type==="cartesian2d"){var L=o.getBaseAxis();return lP(he({axis:L},P))}}function M(){return r.getCurrentSeriesIndices()}function I(P){return cy(P,r)}}function LO(e){var t={};return k(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,o=t[a]=t[a]||[];o[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function Xd(e,t,r,n,a,o,i){if(!n){o.remove(t);return}var s=Zd(e,t,r,n,a,o);return s&&i.setItemGraphicEl(r,s),s&&$n(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Zd(e,t,r,n,a,o){process.env.NODE_ENV!=="production"&&te(n,"should not have an null/undefined element setting");var i=-1,s=t;t&&Hw(t,n,a)&&(i=fe(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=qd(n),s&&MO(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),$t.normal.cfg=$t.normal.conOpt=$t.emphasis.cfg=$t.emphasis.conOpt=$t.blur.cfg=$t.blur.conOpt=$t.select.cfg=$t.select.conOpt=null,$t.isLegacy=!1,RO(u,r,n,a,l,$t),OO(u,r,n,a,l),jd(e,u,r,n,$t,a,l),Y(n,"info")&&(Lr(u).info=n.info);for(var c=0;c<dn.length;c++){var f=dn[c];if(f!==hn){var d=gu(n,f),h=Kd(n,d,f);zw(f,u,d,h,$t)}}return PO(u,n,a),n.type==="group"&&BO(e,u,r,n,a),i>=0?o.replaceAt(u,i):o.add(u),u}function Hw(e,t,r){var n=Lr(e),a=t.type,o=t.shape,i=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&zO(o)&&qw(o)!==n.customPathData||a==="image"&&Y(i,"image")&&i.image!==n.customImagePath}function OO(e,t,r,n,a){var o=r.clipPath;if(o===!1)e&&e.getClipPath()&&e.removeClipPath();else if(o){var i=e.getClipPath();i&&Hw(i,o,n)&&(i=null),i||(i=qd(o),process.env.NODE_ENV!=="production"&&te(vu(i),"Only any type of `path` can be used in `clipPath`, rather than "+i.type+"."),e.setClipPath(i)),jd(null,i,t,o,null,n,a)}}function RO(e,t,r,n,a,o){if(!e.isGroup){Ww(r,null,o),Ww(r,Or,o);var i=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(i!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(i===!1)c&&e.removeTextContent();else{i=o.normal.conOpt=i||{type:"text"},c?c.clearStates():(c=qd(i),e.setTextContent(c)),jd(null,c,t,i,null,n,a);for(var f=i&&i.style,d=0;d<dn.length;d++){var h=dn[d];if(h!==hn){var v=o[h].conOpt;zw(h,c,v,Kd(i,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function Ww(e,t,r){var n=t?gu(e,t):e,a=t?Kd(e,n,Or):e.style,o=e.type,i=n?n.textConfig:null,s=e.textContent,l=s?t?gu(s,t):s:null;if(a&&(r.isLegacy||hO(a,o,!!i,!!l))){r.isLegacy=!0;var u=dO(a,o,!t);!i&&u.textConfig&&(i=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&te(c.type==="text",'textContent.type must be "text"')}var f=t?r[t]:r.normal;f.cfg=i,f.conOpt=l}function gu(e,t){return t?e?e[t]:null:e}function Kd(e,t,r){var n=t&&t.style;return n==null&&r===Or&&e&&(n=e.styleEmphasis),n}function BO(e,t,r,n,a){var o=n.children,i=o?o.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!i&&!l&&!u)){if(l){$O({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<i;c++){var f=o[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),Zd(e,d,r,f,a,t)):(process.env.NODE_ENV!=="production"&&te(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);VO(t,v,a)}}}function VO(e,t,r){t&&zd(t,Lr(e).option,r)}function $O(e){new L_(e.oldChildren,e.newChildren,Uw,Uw,e).add(Yw).update(Yw).remove(FO).execute()}function Uw(e,t){var r=e&&e.name;return r??AO+t}function Yw(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;Zd(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function FO(e){var t=this.context,r=t.oldChildren[e];r&&zd(r,Lr(r).option,t.seriesModel)}function qw(e){return e&&(e.pathData||e.d)}function zO(e){return e&&(Y(e,"pathData")||Y(e,"d"))}function GO(e){e.registerChartView(EO),e.registerSeriesModel(rO)}var ia=Ne(),jw=ce,Jd=Q,HO=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var o=r.get("value"),i=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===o&&this._lastStatus===i)){this._lastValue=o,this._lastStatus=i;var s=this._group,l=this._handle;if(!i||i==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Pe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=be(Xw,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Jw(s,r,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,o=a.type==="category",i=r.get("snap");if(!i&&!o)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(o&&a.getBandWidth()>s)return!0;if(i){var l=Md(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,o){},e.prototype.createPointerEl=function(t,r,n,a){var o=r.pointer;if(o){var i=ia(t).pointerEl=new vM[o.type](jw(r.pointer));t.add(i)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var o=ia(t).labelEl=new We(jw(r.label));t.add(o),Kw(o,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=ia(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var o=ia(t).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),Kw(o,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,o=r.getModel("handle"),i=r.get("status");if(!o.get("show")||!i||i==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Zf(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ca(u.event)},onmousedown:Jd(this._onHandleDragMove,this,0,0),drift:Jd(this._onHandleDragMove,this),ondragend:Jd(this._onHandleDragEnd,this)}),n.add(a)),Jw(a,r,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");U(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ml(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Xw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Qd(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Qd(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Qd(a)),ia(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),kl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function Xw(e,t,r,n){Zw(ia(r).lastProp,n)||(ia(r).lastProp=n,t?Je(r,n,e):(r.stopAnimation(),r.attr(n)))}function Zw(e,t){if(K(e)&&K(t)){var r=!0;return k(t,function(n,a){r=r&&Zw(e[a],n)}),!!r}else return e===t}function Kw(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Qd(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Jw(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),a!=null&&(o.zlevel=a),o.silent=r)})}const WO=HO;function UO(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function YO(e,t,r,n,a){var o=r.get("value"),i=Qw(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=_l(s.get("padding")||0),u=s.getFont(),c=tf(i,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=a.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),qO(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Zt(s,{text:i,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function qO(e,t,r,n){var a=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,o)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Qw(e,t,r,n,a){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:a.precision}),i=a.formatter;if(i){var s={value:fd(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),X(i)?o=i.replace("{value}",o):ae(i)&&(o=i(s))}return o}function eb(e,t,r){var n=xa();return Dc(n,n,r.rotation),Nc(n,n,r.position),ti([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function jO(e,t,r,n,a,o){var i=fw.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),YO(t,n,a,o,{position:eb(n.axis,e,r),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function XO(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function ZO(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var KO=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,o,i){var s=a.axis,l=s.grid,u=o.get("type"),c=tb(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=UO(o),h=JO[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=Td(l.model,a);jO(n,r,v,a,o,i)},t.prototype.getHandleTransform=function(r,n,a){var o=Td(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var i=eb(n.axis,r,o);return{x:i[0],y:i[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,o){var i=a.axis,s=i.grid,l=i.getGlobalExtent(!0),u=tb(s,i).getOtherAxis(i).getGlobalExtent(),c=i.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(WO);function tb(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var JO={line:function(e,t,r){var n=XO([t,r[0]],[t,r[1]],rb(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:ZO([t-n/2,r[0]],[n,a],rb(e))}}};function rb(e){return e.dim==="x"?0:1}const QO=KO;var eR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Te);const tR=eR;var Rr=Ne(),rR=k;function nb(e,t,r){if(!ne.node){var n=t.getZr();Rr(n).records||(Rr(n).records={}),nR(n,t);var a=Rr(n).records[e]||(Rr(n).records[e]={});a.handler=r}}function nR(e,t){if(Rr(e).initialized)return;Rr(e).initialized=!0,r("click",be(ab,"click")),r("mousemove",be(ab,"mousemove")),r("globalout",oR);function r(n,a){e.on(n,function(o){var i=iR(t);rR(Rr(e).records,function(s){s&&a(s,o,i.dispatchAction)}),aR(i.pendings,t)})}}function aR(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function oR(e,t,r){e.handler("leave",null,r)}function ab(e,t,r,n){t.handler(e,r,n)}function iR(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function ep(e,t){if(!ne.node){var r=t.getZr(),n=(Rr(r).records||{})[e];n&&(Rr(r).records[e]=null)}}var sR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var o=n.getComponent("tooltip"),i=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";nb("axisPointer",a,function(s,l,u){i!=="none"&&(s==="leave"||i.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){ep("axisPointer",n)},t.prototype.dispose=function(r,n){ep("axisPointer",n)},t.type="axisPointer",t}(Jt);const lR=sR;function ob(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var o=a.getData(),i=Tn(o,e);if(i==null||i<0||U(i))return{point:[]};var s=o.getItemGraphicEl(i),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(i)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),m=[];m[h]=o.get(v,i),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),i),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(o.getValues(j(l.dimensions,function(y){return o.mapDimension(y)}),i))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var ib=Ne();function uR(e,t,r){var n=e.currTrigger,a=[e.x,e.y],o=e,i=e.dispatchAction||Q(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){mu(a)&&(a=ob({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=mu(a),u=o.axesInfo,c=s.axesInfo,f=n==="leave"||mu(a),d={},h={},v={list:[],map:{}},m={showPointer:be(fR,h),showTooltip:be(hR,v)};k(s.coordSysMap,function(y,w){var _=l||y.containPoint(a);k(s.coordSysAxesInfo[w],function(S,x){var C=S.axis,T=gR(u,S);if(!f&&_&&(!u||T)){var b=T&&T.value;b==null&&!l&&(b=C.pointToData(a)),b!=null&&sb(S,b,m,!1,d)}})});var g={};return k(c,function(y,w){var _=y.linkGroup;_&&!h[w]&&k(_.axesInfo,function(S,x){var C=h[x];if(S!==y&&C){var T=C.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,lb(S),lb(y)))),g[y.key]=T}})}),k(g,function(y,w){sb(c[w],y,m,!0,d)}),dR(h,c,d),pR(v,a,e,i),vR(c,i,r),d}}function sb(e,t,r,n,a){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var i=cR(t,e),s=i.payloadBatch,l=i.snapToValue;s[0]&&a.seriesIndex==null&&H(a,s[0]),!n&&e.snap&&o.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,i,l)}}function cR(e,t){var r=t.axis,n=r.dim,a=e,o=[],i=Number.MAX_VALUE,s=-1;return k(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,m=Math.abs(v);m<=i&&((m<i||v>=0&&s<0)&&(i=m,s=v,a=f,o.length=0),k(d,function(g){o.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:o,snapToValue:a}}function fR(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function hR(e,t,r,n){var a=r.payloadBatch,o=t.axis,i=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Ii(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:i.componentIndex,axisType:i.type,axisId:i.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function dR(e,t,r){var n=r.axesInfo=[];k(t,function(a,o){var i=a.axisPointerModel.option,s=e[o];s?(!a.useHandle&&(i.status="show"),i.value=s.value,i.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(i.status="hide"),i.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:i.value})})}function pR(e,t,r,n){if(mu(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function vR(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",o=ib(n)[a]||{},i=ib(n)[a]={};k(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&k(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;i[h]=d})});var s=[],l=[];k(o,function(u,c){!i[c]&&l.push(u)}),k(i,function(u,c){!o[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function gR(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function lb(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function mu(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ub(e){hw.registerAxisPointerClass("CartesianAxisPointer",QO),e.registerComponentModel(tR),e.registerComponentView(lR),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!U(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=ML(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uR)}function mR(e){gr(HL),gr(ub)}var cb=["x","y","radius","angle","single"],yR=["cartesian2d","polar","singleAxis"];function _R(e){var t=e.get("coordinateSystem");return fe(yR,t)>=0}function pn(e){return process.env.NODE_ENV!=="production"&&te(e),e+"Axis"}function wR(e,t){var r=ie(),n=[],a=ie();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var o;do o=!1,e.eachComponent("dataZoom",i);while(o);function i(c){!a.get(c.uid)&&l(c)&&(s(c),o=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function fb(e){var t=e.ecModel,r={infoList:[],infoMap:ie()};return e.eachTargetAxis(function(n,a){var o=t.getComponent(pn(n),a);if(o){var i=o.getCoordSysModel();if(i){var s=i.uid,l=r.infoMap.get(s);l||(l={model:i,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(o)}}}),r}var tp=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),yu=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var o=hb(r);this.settledOption=o,this.mergeDefaultAndTheme(r,a),this._doInit(o)},t.prototype.mergeOption=function(r){var n=hb(r);pe(this.option,r,!0),pe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(o,i){this._rangePropMode[i]==="value"&&(n[o[0]]=a[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ie(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return k(cb,function(a){var o=this.getReferringComponents(pn(a),rD);if(o.specified){n=!0;var i=new tp;k(o.models,function(s){i.add(s.componentIndex)}),r.set(a,i)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,o=!0;if(o){var i=n==="vertical"?"y":"x",s=a.findComponents({mainType:i+"Axis"});l(s,i)}if(o){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new tp;if(d.add(f.componentIndex),r.set(c,d),o=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ft).models[0];h&&k(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",ft).models[0]&&d.add(v.componentIndex)})}}}o&&k(cb,function(u){if(o){var c=a.findComponents({mainType:pn(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new tp;f.add(c[0].componentIndex),r.set(u,f),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(o,i){var s=r[o[0]]!=null,l=r[o[1]]!=null;s&&!l?n[i]="percent":!s&&l?n[i]="value":a?n[i]=a[i]:s&&(n[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(pn(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,o){k(a.indexList,function(i){r.call(n,o,i)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){process.env.NODE_ENV!=="production"&&te(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(pn(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(o){(r[o[0]]!=null||r[o[1]]!=null)&&(n[o[0]]=a[o[0]]=r[o[0]],n[o[1]]=a[o[1]]=r[o[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;k(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),o=0;o<a.length;o++)for(var i=a[o],s=this._targetAxisInfoMap.get(i),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(i,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&te(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Te);function hb(e){var t={};return k(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var bR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Jt);const db=bR;var so=k,pb=$o,SR=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(_R(r)){var n=pn(this._dimName),a=r.getReferringComponents(n,ft).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ce(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,o=this._dataZoomModel.getRangePropMode(),i=[0,100],s=[],l=[],u;so(["start","end"],function(d,h){var v=t[d],m=t[d+"Value"];o[h]==="percent"?(v==null&&(v=i[h]),m=a.parse(Ye(v,i,r))):(u=!0,m=m==null?r[h]:a.parse(m),v=Ye(m,r,i)),l[h]=m==null||isNaN(m)?r[h]:m,s[h]=v==null||isNaN(v)?i[h]:v}),pb(l),pb(s);var c=this._minMaxSpan;u?f(l,s,r,i,!1):f(s,l,i,r,!0);function f(d,h,v,m,g){var y=g?"Span":"ValueSpan";hu(0,d,v,"all",c["min"+y],c["max"+y]);for(var w=0;w<2;w++)h[w]=Ye(d[w],v,m,!0),g&&(h[w]=a.parse(h[w]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=CR(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),o=t.get("filterMode"),i=this._valueWindow;if(o==="none")return;so(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(o==="weakFilter"){var f=u.getStore(),d=j(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,m,g,y=0;y<c.length;y++){var w=f.get(d[y],h),_=!isNaN(w),S=w<i[0],x=w>i[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(v=!0),x&&(m=!0)}return g&&v&&m})}else so(c,function(h){if(o==="empty")l.setData(u=u.map(h,function(m){return s(m)?m:NaN}));else{var v={};v[h]=i,u.selectRange(v)}});so(c,function(h){u.setApproximateExtent(i,h)})}});function s(l){return l>=i[0]&&l<=i[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;so(["min","max"],function(a){var o=r.get(a+"Span"),i=r.get(a+"ValueSpan");i!=null&&(i=this.getAxisModel().axis.scale.parse(i)),i!=null?o=Ye(n[0]+i,n,[0,100],!0):o!=null&&(i=Ye(o,[0,100],n,!0)-n[0]),t[a+"Span"]=o,t[a+"ValueSpan"]=i},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=dg(n,[0,500]);a=Math.min(a,20);var o=t.axis.scale.rawExtentInfo;r[0]!==0&&o.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&o.setDeterminedMinMax("max",+n[1].toFixed(a)),o.freeze()}},e}();function CR(e,t,r){var n=[1/0,-1/0];so(r,function(i){OP(n,i.getData(),t)});var a=e.getAxisModel(),o=o1(a.axis.scale,a,n).calculate();return[o.min,o.max]}var xR={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(i,s){var l=e.getComponent(pn(i),s);a(i,s,l,o)})})}t(function(a,o,i,s){i.__dzAxisProxy=null});var r=[];t(function(a,o,i,s){i.__dzAxisProxy||(i.__dzAxisProxy=new SR(a,o,s,e),r.push(i.__dzAxisProxy))});var n=ie();return k(r,function(a){k(a.getTargetSeriesModels(),function(o){n.set(o.uid,o)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),o=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};const TR=xR;function NR(e){e.registerAction("dataZoom",function(t,r){var n=wR(r,t);k(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var vb=!1;function gb(e){vb||(vb=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,TR),NR(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function DR(e,t){var r=_l(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ee({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var AR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Te);const MR=AR;function mb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function yb(e){if(ne.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var _b=yb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),kR=yb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function wb(e,t){if(!e)return t;t=Dy(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function ER(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var PR=wb(kR,"transition"),rp=wb(_b,"transform"),IR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ne.transform3dSupported?"will-change:transform;":"");function LR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function OR(e,t,r){if(!X(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Yn(t);var o=LR(r),i=Math.max(Math.round(a)*1.5,6),s="",l=rp+":",u;fe(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=i+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+o+":-"+h+"px";var v=t+" solid "+a+"px;",m=["position:absolute;width:"+i+"px;height:"+i+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function RR(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=ne.transformSupported?","+rp+n:",left"+n+",top"+n),PR+":"+a}function bb(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ne.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var o=ne.transform3dSupported,i="translate"+(o?"3d":"")+"("+n+","+a+(o?",0":"")+")";return r?"top:0;left:0;"+rp+":"+i+";":[["top",0],["left",0],[_b,i]]}function BR(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,i=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+i+"px "+s+"px "+o+"px "+a),k(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function VR(e,t,r){var n=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),i=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=C0(e,"html"),d=l+"px "+u+"px "+i+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(RR(a,r)),o&&n.push("background-color:"+o),k(["width","color","radius"],function(h){var v="border-"+h,m=Dy(v),g=e.get(m);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(BR(c)),f!=null&&n.push("padding:"+_l(f).join("px ")+"px"),n.join(";")+";"}function Sb(e,t,r,n,a){var o=t&&t.painter;if(r){var i=o&&o.getViewportRoot();i&&NT(e,i,r,n,a)}else{e[0]=n,e[1]=a;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var $R=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ne.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),o=r.appendTo,i=o&&(X(o)?document.querySelector(o):ga(o)?o:ae(o)&&o(t.getDom()));Sb(this._styleCoord,a,i,t.getWidth()/2,t.getHeight()/2),(i||t.getDom()).appendChild(n),this._api=t,this._container=i;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Dt(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=ER(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,o=this._styleCoord;n.innerHTML?a.cssText=IR+VR(t,!this._firstShow,this._longHide)+bb(o[0],o[1],!0)+("border-color:"+Yn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,o){var i=this.el;if(t==null){i.innerHTML="";return}var s="";if(X(o)&&n.get("trigger")==="item"&&!mb(n)&&(s=OR(n,a,o)),X(t))i.innerHTML=t+s;else if(t){i.innerHTML="",U(t)||(t=[t]);for(var l=0;l<t.length;l++)ga(t[l])&&t[l].parentNode!==i&&i.appendChild(t[l]);if(s&&i.childNodes.length){var u=document.createElement("div");u.innerHTML=s,i.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(Sb(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,o=bb(n[0],n[1]);k(o,function(i){a[i[0]]=i[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",ne.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}();const FR=$R;var zR=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),xb(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,o){var i=this;K(t)&&it(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new We({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:C0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){i.el.style[u]=n.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){i.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=Cb(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;xb(a,this._zr,t,r),t=a[0],r=a[1];var o=n.style,i=vn(o.borderWidth||0),s=Cb(o);n.x=t+i+s.left,n.y=r+i+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function vn(e){return Math.max(0,e)}function Cb(e){var t=vn(e.shadowBlur||0),r=vn(e.shadowOffsetX||0),n=vn(e.shadowOffsetY||0);return{left:vn(t-r),right:vn(t+r),top:vn(t-n),bottom:vn(t+n)}}function xb(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var GR=new Ee({shape:{x:-1,y:-1,width:2,height:2}}),HR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ne.node||!n.getDom())){var a=r.getComponent("tooltip"),o=this._renderMode=aD(a.get("renderMode"));this._tooltipContent=o==="richText"?new zR(n):new FR(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(ne.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Ml(this,"_updatePosition",50,"fixRate"):kl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");nb("itemTooltip",this._api,Q(function(a,o,i){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(o,i):a==="leave"&&this._hide(i))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,o=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&i.manuallyShowTip(r,n,a,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,o){if(!(o.from===this.uid||ne.node||!a.getDom())){var i=Tb(o,a);this._ticket="";var s=o.dataByCoordSys,l=qR(o,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},i)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=GR;c.x=o.x,c.y=o.y,c.update(),ve(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},i)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},i);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,o))return;var f=ob(o,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:o.position,positionDefault:"bottom"},i)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},i))}},t.prototype.manuallyHideTip=function(r,n,a,o){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(Tb(o,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,o){var i=o.seriesIndex,s=o.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(i==null||s==null||l==null)){var u=n.getSeriesByIndex(i);if(u){var c=u.getData(),f=Li([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var i=r.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,r);else if(a){var s=ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;mi(a,function(c){if(ve(c).dataIndex!=null)return l=c,!0;if(ve(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=Q(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,o=this._tooltipModel,i=[n.offsetX,n.offsetY],s=Li([n.tooltipOption],o),l=this._renderMode,u=[],c=Kn("section",{blocks:[],noHeader:!0}),f=[],d=new Mh;k(r,function(w){k(w.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var C=Qw(x,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=Kn("section",{header:C,noHeader:!ar(C),sortBlocks:!0,blocks:[]});c.blocks.push(T),k(_.seriesDataIndices,function(b){var D=a.getSeriesByIndex(b.seriesIndex),N=b.dataIndexInside,A=D.getDataParams(N);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=fd(S.axis,{value:x}),A.axisValueLabel=C,A.marker=d.makeTooltipMarker("item",Yn(A.color),l);var M=u0(D.formatTooltip(N,!0,null)),I=M.frag;if(I){var P=Li([D],o).get("valueFormatter");T.blocks.push(P?H({valueFormatter:P},I):I)}M.text&&f.push(M.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),m=b0(c,d,l,v,a.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
42
42
 
43
- `:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",i[0],i[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var o=this._ecModel,i=ve(n),s=i.seriesIndex,l=o.getSeriesByIndex(s),u=i.dataModel||l,c=i.dataIndex,f=i.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,m=Oi([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),w=new Mh;y.marker=w.makeTooltipMarker("item",Yn(y.color),h);var _=u0(u.formatTooltip(c,!1,f)),S=m.get("order"),x=m.get("valueFormatter"),C=_.frag,T=C?b0(x?H({valueFormatter:x},C):C,w,h,S,o.get("useUTC"),m.get("textStyle")):_.text,b="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,T,y,b,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var o=ve(n),i=o.tooltipConfig,s=i.option||{};if(X(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Oi(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",m=new Mh;this._showOrMove(d,function(){var g=ce(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,o,i,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([i,s],a,r.get("trigger"),r.get("borderColor")),m=v.color;if(d)if(X(d)){var g=r.ecModel.get("useUTC"),y=U(a)?a[0]:a,w=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,w&&(h=pl(y.axisValue,h,g)),h=My(h,a,!0)}else if(ae(d)){var _=Q(function(S,x){S===this._ticket&&(f.setContent(x,c,r,m,l),this._updatePosition(r,l,i,s,f,a,u))},this);this._ticket=o,h=d(a,o,_)}else h=d;f.setContent(h,c,r,m,l),f.show(r,m),this._updatePosition(r,l,i,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,o){if(a==="axis"||U(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!U(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,o,i,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=i.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),ae(n)&&(n=n([a,o],s,i.el,v,{viewSize:[u,c],contentSize:f.slice()})),U(n))a=xe(n[0],u),o=xe(n[1],c);else if(K(n)){var m=n;m.width=f[0],m.height=f[1];var g=qn(m,{width:u,height:c});a=g.x,o=g.y,d=null,h=null}else if(X(n)&&l){var y=YR(n,v,f,r.get("borderWidth"));a=y[0],o=y[1]}else{var y=WR(a,o,i,u,c,d?null:20,h?null:20);a=y[0],o=y[1]}if(d&&(a-=Nb(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=Nb(h)?f[1]/2:h==="bottom"?f[1]:0),mb(r)){var y=UR(a,o,i,u,c);a=y[0],o=y[1]}i.moveTo(a,o)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,o=this._cbParamsList,i=!!a&&a.length===r.length;return i&&k(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];i=i&&u.length===f.length,i&&k(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],g=v.seriesDataIndices||[];i=i&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===g.length,i&&k(m,function(y,w){var _=g[w];i=i&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),o&&k(d.seriesDataIndices,function(y){var w=y.seriesIndex,_=n[w],S=o[w];_&&S&&S.data!==_.data&&(i=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!i},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ne.node||!n.getDom()||(kl(this,"_updatePosition"),this._tooltipContent.dispose(),ep("itemTooltip",n))},t.type="tooltip",t}(Jt);function Oi(e,t,r){var n=t.ecModel,a;r?(a=new Qe(r,n,n),a=new Qe(t.option,a,n)):a=t;for(var o=e.length-1;o>=0;o--){var i=e[o];i&&(i instanceof Qe&&(i=i.get("tooltip",!0)),X(i)&&(i={formatter:i}),i&&(a=new Qe(i,a,n)))}return a}function Tb(e,t){return e.dispatchAction||Q(t.dispatchAction,t)}function WR(e,t,r,n,a,o,i){var s=r.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>n?e-=l+o:e+=o),i!=null&&(t+u+i>a?t-=u+i:t+=i),[e,t]}function UR(e,t,r,n,a){var o=r.getSize(),i=o[0],s=o[1];return e=Math.min(e+i,n)-i,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function YR(e,t,r,n){var a=r[0],o=r[1],i=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-a/2,l=t.y-o-i;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+i;break;case"left":s=t.x-a-i,l=t.y+c/2-o/2;break;case"right":s=t.x+u+i,l=t.y+c/2-o/2}return[s,l]}function Nb(e){return e==="center"||e==="middle"}function qR(e,t,r){var n=hf(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var o=Ho(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),i=o.models[0];if(i){var s=r.getViewOfComponentModel(i),l;if(s.group.traverse(function(u){var c=ve(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:i.componentIndex,el:l}}}}const jR=HR;function XR(e){gr(ub),e.registerComponentModel(MR),e.registerComponentView(jR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ot),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ot)}var ZR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Te),KR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var o=this.group,i=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=oe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new We({style:Zt(i,{text:r.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new We({style:Zt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),m=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!m&&!g,v&&c.on("click",function(){ky(v,"_"+r.get("target"))}),m&&h.on("click",function(){ky(m,"_"+r.get("subtarget"))}),ve(c).eventData=ve(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(c),d&&o.add(h);var y=o.getBoundingRect(),w=r.getBoxLayoutParams();w.width=y.width,w.height=y.height;var _=qn(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),o.x=_.x,o.y=_.y,o.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=o.getBoundingRect();var x=_.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var T=new Ee({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});o.add(T)}},t.type="title",t}(Jt);function JR(e){e.registerComponentModel(ZR),e.registerComponentView(KR)}function QR(e,t){if(!e)return!1;for(var r=U(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function _u(e){Is(e,"label",["show"])}var wu=Ne(),Db=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(ne.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,o){var i=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=wu(s)[i];if(!l||!l.data){wu(s)[i]=null;return}u?u._mergeOption(l,n,!0):(o&&_u(l),k(l.data,function(c){c instanceof Array?(_u(c[0]),_u(c[1])):_u(c)}),u=this.createMarkerModelFromSeries(l,this,n),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),wu(s)[i]=u},this)},t.prototype.formatTooltip=function(r,n,a){var o=this.getData(),i=this.getRawValue(r),s=o.getName(r);return Kn("section",{header:this.name,blocks:[Kn("nameValue",{name:s,value:i,noName:!s,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return wu(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Te);Wt(Db,l0.prototype);const bu=Db;function eB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function tB(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Su(e,t,r,n,a,o){var i=[],s=ra(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=ap(t,l,e),c=t.indicesOfNearest(l,u)[0];i[a]=t.get(r,c),i[o]=t.get(l,c);var f=t.get(n,c),d=sr(t.get(n,c));return d=Math.min(d,20),d>=0&&(i[o]=+i[o].toFixed(d)),[i,f]}var np={min:be(Su,"min"),max:be(Su,"max"),average:be(Su,"average"),median:be(Su,"median")};function Ab(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!tB(t)&&!U(t.coord)&&U(a)){var o=Mb(t,r,n,e);if(t=ce(t),t.type&&np[t.type]&&o.baseAxis&&o.valueAxis){var i=fe(a,o.baseAxis.dim),s=fe(a,o.valueAxis.dim),l=np[t.type](r,o.baseDataDim,o.valueDataDim,i,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)np[u[c]]&&(u[c]=ap(r,r.mapDimension(a[c]),u[c]));return t}}function Mb(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(rB(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function rB(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function kb(e,t){return e&&e.containData&&t.coord&&!eB(t)?e.containData(t.coord):!0}function nB(e,t){return e?function(r,n,a,o){var i=o<2?r.coord&&r.coord[o]:r.value;return Ka(i,t[o])}:function(r,n,a,o){return Ka(r.value,t[o])}}function ap(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(o,i){isNaN(o)||(n+=o,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var op=Ne(),aB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ie()},t.prototype.render=function(r,n,a){var o=this,i=this.markerGroupMap;i.each(function(s){op(s).keep=!1}),n.eachSeries(function(s){var l=bu.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,n,a)}),i.each(function(s){!op(s).keep&&o.group.remove(s.group)})},t.prototype.markKeep=function(r){op(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;k(r,function(o){var i=bu.getMarkerModelFromSeries(o,a.type);if(i){var s=i.getData();s.eachItemGraphicEl(function(l){l&&(n?gm(l):Lf(l))})}})},t.type="marker",t}(Jt);const oB=aB;var iB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(bu);const sB=iB;var Cu=Ne(),lB=function(e,t,r,n){var a=e.getData(),o;if(U(n))o=n;else{var i=n.type;if(i==="min"||i==="max"||i==="average"||i==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Wr(n.yAxis,n.xAxis);else{var u=Mb(n,a,t,e);s=u.valueAxis;var c=H_(a,u.valueDataDim);l=ap(a,c,i)}var f=s.dim==="x"?0:1,d=1-f,h=ce(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var m=r.get("precision");m>=0&&Ce(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[f]=v.coord[f]=l,o=[h,v,{type:i,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Hr("Invalid markLine data."),o=[]}var g=[Ab(e,o[0]),Ab(e,o[1]),H({},o[2])];return g[2].type=g[2].type||null,pe(g[2],g[0]),pe(g[2],g[1]),g};function xu(e){return!isNaN(e)&&!isFinite(e)}function Eb(e,t,r,n){var a=1-e,o=n.dimensions[e];return xu(t[a])&&xu(r[a])&&t[e]===r[e]&&n.getAxis(o).containData(t[e])}function uB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(Eb(1,r,n,e)||Eb(0,r,n,e)))return!0}return kb(e,t[0])&&kb(e,t[1])}function ip(e,t,r,n,a){var o=n.coordinateSystem,i=e.getItemModel(t),s,l=xe(i.get("x"),a.getWidth()),u=xe(i.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=o.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=o.dataToPoint([f,d])}if(iu(o,"cartesian2d")){var h=o.getAxis("x"),v=o.getAxis("y"),c=o.dimensions;xu(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):xu(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var cB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(o){var i=bu.getMarkerModelFromSeries(o,"markLine");if(i){var s=i.getData(),l=Cu(i).from,u=Cu(i).to;l.each(function(c){ip(l,c,!0,o,a),ip(u,c,!1,o,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,o){var i=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new QL);this.group.add(c.group);var f=fB(i,r,n),d=f.from,h=f.to,v=f.line;Cu(n).from=d,Cu(n).to=h,n.setData(v);var m=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),w=n.get("symbolOffset");U(m)||(m=[m,m]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(w)||(w=[w,w]),f.from.each(function(S){_(d,S,!0),_(h,S,!1)}),v.each(function(S){var x=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),x.stroke==null&&(x.stroke=d.getItemVisual(S,"style").fill),v.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){ve(S).dataModel=n,S.traverse(function(x){ve(x).dataModel=n})});function _(S,x,C){var T=S.getItemModel(x);ip(S,x,C,r,o);var b=T.getModel("itemStyle").getItemStyle();b.fill==null&&(b.fill=W0(l,"color")),S.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:oe(T.get("symbolOffset",!0),w[C?0:1]),symbolRotate:oe(T.get("symbolRotate",!0),y[C?0:1]),symbolSize:oe(T.get("symbolSize"),g[C?0:1]),symbol:oe(T.get("symbol",!0),m[C?0:1]),style:b})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(oB);function fB(e,t,r){var n;e?n=j(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Di(n,r),o=new Di(n,r),i=new Di([],r),s=j(r.get("data"),be(lB,t,e,r));e&&(s=Ue(s,be(uB,e)));var l=nB(!!e,n);return a.initData(j(s,function(u){return u[0]}),null,l),o.initData(j(s,function(u){return u[1]}),null,l),i.initData(j(s,function(u){return u[2]})),i.hasItemOption=!0,{from:a,to:o,line:i}}const hB=cB;function dB(e){e.registerComponentModel(sB),e.registerComponentView(hB),e.registerPreprocessor(function(t){QR(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var pB=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"])}},vB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&k(n,function(o,i){X(o)&&(o={type:o}),n[i]=pe(o,pB(a,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var o=r[a].get("name");if(this.isSelected(o)){this.select(o),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&cf(l)&&n.push(l.name)}),this._availableNames=a;var o=this.get("data")||n,i=ie(),s=j(o,function(l){return(X(l)||Ce(l))&&(l={name:l}),i.get(l.name)?null:(i.set(l.name,!0),new Qe(l,this,this.ecModel))},this);this._data=Ue(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var o=this._data;k(o,function(i){n[i.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){var o=a.get("name",!0);n.hasOwnProperty(o)||(n[o]=!0),n[o]=!n[o]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&fe(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}(Te);const sp=vB;var lo=be,lp=k,Tu=Pe,gB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tu),this.group.add(this._selectorGroup=new Tu),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var i=r.get("align"),s=r.get("orient");(!i||i==="auto")&&(i=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(i,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),h=qn(c,f,d),v=this.layoutInner(r,i,h,o,l,u),m=qn(he({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=DR(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,o,i,s,l){var u=this.getContentGroup(),c=ie(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),lp(n.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
44
- `)){var g=new Tu;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(m)[0];if(!c.get(m)){if(y){var w=y.getData(),_=w.getVisual("legendLineStyle")||{},S=w.getVisual("legendIcon"),x=w.getVisual("style"),C=this._createItem(y,m,v,h,n,r,_,x,S,f,o);C.on("click",lo(Pb,m,null,o,d)).on("mouseover",lo(up,y.name,null,o,d)).on("mouseout",lo(cp,y.name,null,o,d)),a.ssr&&C.eachChild(function(T){var b=ve(T);b.seriesIndex=y.seriesIndex,b.dataIndex=v,b.ssrType="legend"}),c.set(m,!0)}else a.eachRawSeries(function(T){if(!c.get(m)&&T.legendVisualProvider){var b=T.legendVisualProvider;if(!b.containName(m))return;var D=b.indexOfName(m),N=b.getItemVisual(D,"style"),A=b.getItemVisual(D,"legendIcon"),M=Cr(N.fill);M&&M[3]===0&&(M[3]=.2,N=H(H({},N),{fill:ys(M,"rgba")}));var I=this._createItem(T,m,v,h,n,r,{},N,A,f,o);I.on("click",lo(Pb,null,m,o,d)).on("mouseover",lo(up,null,m,o,d)).on("mouseout",lo(cp,null,m,o,d)),a.ssr&&I.eachChild(function(P){var L=ve(P);L.seriesIndex=T.seriesIndex,L.dataIndex=v,L.ssrType="legend"}),c.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),i&&this._createSelector(i,n,o,s,l)},t.prototype._createSelector=function(r,n,a,o,i){var s=this.getSelectorGroup();lp(r,function(u){var c=u.type,f=new We({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Ga(f,{normal:d,emphasis:h},{defaultText:u.title}),qs(f)})},t.prototype._createItem=function(r,n,a,o,i,s,l,u,c,f,d){var h=r.visualDrawType,v=i.get("itemWidth"),m=i.get("itemHeight"),g=i.isSelected(n),y=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),_=o.get("icon");c=_||c||"roundRect";var S=mB(c,o,l,u,h,g,d),x=new Tu,C=o.getModel("textStyle");if(ae(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;x.add(yB({itemWidth:v,itemHeight:m,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}))}var b=s==="left"?v+5:-5,D=s,N=i.get("formatter"),A=n;X(N)&&N?A=N.replace("{name}",n??""):ae(N)&&(A=N(n));var M=g?C.getTextColor():o.get("inactiveColor");x.add(new We({style:Zt(C,{text:A,x:b,y:m/2,fill:M,align:D,verticalAlign:"middle"},{inheritColor:M})}));var I=new Ee({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=o.getModel("tooltip");return P.get("show")&&Jf({el:I,componentModel:i,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(L){L.silent=!0}),I.silent=!f,this.getContentGroup().add(x),qs(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ii(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),i){ii("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),m=r.getOrient().index,g=m===0?"width":"height",y=m===0?"height":"width",w=m===0?"y":"x";s==="end"?h[m]+=c[g]+v:f[m]+=d[g]+v,h[1-m]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[y]=Math.max(c[y],d[y]),_[w]=Math.min(0,d[w]+h[1-m]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Jt);function mB(e,t,r,n,a,o,i){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),lp(g,function(w,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Fl(f,i),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!o){var v=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function yB(e){var t=e.icon||"roundRect",r=Pr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function Pb(e,t,r,n){cp(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),up(e,t,r,n)}function Ib(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function up(e,t,r,n){Ib(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function cp(e,t,r,n){Ib(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const Lb=gB;function _B(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Ri(e,t,r){var n={},a=e==="toggleSelected",o;return r.eachComponent("legend",function(i){a&&o!=null?i[o?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?i[e]():(i[e](t.name),o=i.isSelected(t.name));var s=i.getData();k(s,function(l){var u=l.get("name");if(!(u===`
45
- `||u==="")){var c=i.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function wB(e){e.registerAction("legendToggleSelect","legendselectchanged",be(Ri,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",be(Ri,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",be(Ri,"inverseSelect")),e.registerAction("legendSelect","legendselected",be(Ri,"select")),e.registerAction("legendUnSelect","legendunselected",be(Ri,"unSelect"))}function Ob(e){e.registerComponentModel(sp),e.registerComponentView(Lb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,_B),e.registerSubTypeDefaulter("legend",function(){return"plain"}),wB(e)}var bB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var o=li(r);e.prototype.init.call(this,r,n,a),Rb(this,r,o)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Rb(this,this.option,r)},t.type="legend.scroll",t.defaultOption=cl(sp.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}(sp);function Rb(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Ya(t,r,{type:"box",ignoreSize:!!a})}const SB=bB;var Bb=Pe,fp=["width","height"],hp=["x","y"],CB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Bb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Bb)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,o,i,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,o,i,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=U(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new We({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,g){var y=m+"DataIndex",w=Zf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:Q(u._pageGo,u,y,n,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});w.name=m,c.add(w)}},t.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=fp[u],f=hp[u],d=fp[1-u],h=hp[1-u];i&&ii("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],y=ce(a);i&&(y[c]=a[c]-m[c]-v);var w=this._layoutContentAndController(r,o,y,u,c,d,h,f);if(i){if(s==="end")g[u]+=w[c]+v;else{var _=m[c]+v;g[u]-=_,w[f]-=_}w[c]+=m[c]+v,g[1-u]+=w[h]+w[d]/2-m[d]/2,w[d]=Math.max(w[d],m[d]),w[h]=Math.min(w[h],m[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(r,n,a,o,i,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;ii(r.get("orient"),c,r.get("itemGap"),o?a.width:null,o?null:a.height),ii("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),m=this._showController=h[i]>a[i],g=[-h.x,-h.y];n||(g[o]=c[u]);var y=[0,0],w=[-v.x,-v.y],_=oe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var S=r.get("pageButtonPosition",!0);S==="end"?w[o]+=a[i]-v[i]:y[o]+=v[i]+_}w[1-o]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(w);var x={x:0,y:0};if(x[i]=m?a[i]:h[i],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+w[1-o]),f.__rectSize=a[i],m){var C={x:0,y:0};C[i]=Math.max(a[i]-v[i]-_,0),C[s]=x[s],f.setClipPath(new Ee({shape:C})),f.__rectSize=C[i]}else d.eachChild(function(b){b.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Je(c,{x:T.contentPosition[0],y:T.contentPosition[1]},m?r:null),this._updatePageInfoView(r,T),x},t.prototype._pageGo=function(r,n,a){var o=this._getPageInfo(n)[r];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var o=a.childOfName("pageText"),i=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;o&&i&&o.setStyle("text",X(i)?i.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):i({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,i=r.getOrient().index,s=fp[i],l=hp[i],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=S(f);v.contentPosition[i]=-m.s;for(var g=u+1,y=m,w=m,_=null;g<=d;++g)_=S(c[g]),(!_&&w.e>y.s+o||_&&!x(_,y.s))&&(w.i>y.i?y=w:y=_,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),w=_;for(var g=u-1,y=m,w=m,_=null;g>=-1;--g)_=S(c[g]),(!_||!x(w,_.s))&&y.i<w.i&&(w=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=_;return v;function S(C){if(C){var T=C.getBoundingRect(),b=T[l]+C[l];return{s:b,e:b+T[s],i:C.__legendDataIndex}}}function x(C,T){return C.e>=T&&C.s<=T+o}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),o;return a.eachChild(function(i,s){var l=i.__legendDataIndex;o==null&&l!=null&&(o=s),l===r&&(n=s)}),n??o},t.type="legend.scroll",t}(Lb);const xB=CB;function TB(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function NB(e){gr(Ob),e.registerComponentModel(SB),e.registerComponentView(xB),TB(e)}function DB(e){gr(Ob),gr(NB)}var AB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=cl(yu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(yu);const MB=AB;var dp=Ne();function kB(e,t,r){dp(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function EB(e,t){for(var r=dp(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var o=n[a],i=r.get(o),s=i.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Vb(r,i))}}}function Vb(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function PB(e,t){var r={model:t,containsPoint:be(LB,t),dispatchAction:be(IB,e),dataZoomInfoMap:null,controller:null},n=r.controller=new YL(e.getZr());return k(["pan","zoom","scrollMove"],function(a){n.on(a,function(o){var i=[];r.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,o);!s.model.get("disabled",!0)&&u&&i.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),i.length&&r.dispatchAction(i)})}),r}function IB(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function LB(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function OB(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(o){var i=o.model,s=i.get("disabled",!0)?!1:i.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&i.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function RB(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=dp(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=ie());a.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var i=fb(o);k(i.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,PB(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ie());c.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),a.each(function(o){var i=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Vb(a,o);return}var c=OB(l);i.enable(c.controlType,c.opt),i.setPointerChecker(o.containsPoint),Ml(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var BB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),kB(a,r,{pan:Q(pp.pan,this),zoom:Q(pp.zoom,this),scrollMove:Q(pp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){EB(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(db),pp={zoom:function(e,t,r,n){var a=this.range,o=a.slice(),i=e.axisModels[0];if(i){var s=vp[t](null,[n.originX,n.originY],i,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hu(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}},pan:$b(function(e,t,r,n,a,o){var i=vp[n]([o.oldX,o.oldY],[o.newX,o.newY],t,a,r);return i.signal*(e[1]-e[0])*i.pixel/i.pixelLength}),scrollMove:$b(function(e,t,r,n,a,o){var i=vp[n]([0,0],[o.scrollDelta,o.scrollDelta],t,a,r);return i.signal*(e[1]-e[0])*o.scrollDelta})};function $b(e){return function(t,r,n,a){var o=this.range,i=o.slice(),s=t.axisModels[0];if(s){var l=e(i,s,t,r,n,a);if(hu(l,i,[0,100],"all"),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}}}var vp={grid:function(e,t,r,n,a){var o=r.axis,i={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],o.dim==="x"?(i.pixel=t[0]-e[0],i.pixelLength=s.width,i.pixelStart=s.x,i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=s.height,i.pixelStart=s.y,i.signal=o.inverse?-1:1),i},polar:function(e,t,r,n,a){var o=r.axis,i={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(i.pixel=t[0]-e[0],i.pixelLength=l[1]-l[0],i.pixelStart=l[0],i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=u[1]-u[0],i.pixelStart=u[0],i.signal=o.inverse?-1:1),i},singleAxis:function(e,t,r,n,a){var o=r.axis,i=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=i.width,s.pixelStart=i.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=i.height,s.pixelStart=i.y,s.signal=o.inverse?-1:1),s}};const VB=BB;function $B(e){gb(e),e.registerComponentModel(MB),e.registerComponentView(VB),RB(e)}var FB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=cl(yu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(yu);const zB=FB;var Bi=Ee,Fb=7,GB=1,gp=30,HB=7,Vi="horizontal",zb="vertical",WB=5,UB=["line","bar","candlestick","scatter"],YB={easing:"cubicOut",duration:100,delay:0},qB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,o){if(e.prototype.render.apply(this,arguments),Ml(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){kl(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Pe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),o=a?HB:0,i=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Vi?{right:s.width-i.x-i.width,top:s.height-gp-Fb-o,width:i.width,height:gp}:{right:Fb,top:i.y,width:gp,height:i.height},u=li(r.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=qn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===zb&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),i=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Vi&&!i?{scaleY:l?1:-1,scaleX:1}:a===Vi&&i?{scaleY:l?1:-1,scaleX:-1}:a===zb&&!i?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,o=r.get("brushSelect");a.add(new Bi({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var i=new Bi({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();o?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(i)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],o=r.series,i=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&i.getDimensionInfo(s)?o.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=i.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],v=[0,n[0]],m=[[n[0],0],[0,0]],g=[],y=v[1]/(i.count()-1),w=0,_=Math.round(i.count()/n[0]),S;i.each([l],function(D,N){if(_>0&&N%_){w+=y;return}var A=D==null||isNaN(D)||D==="",M=A?0:Ye(D,f,h,!0);A&&!S&&N?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&S&&(m.push([w,0]),g.push([w,0])),m.push([w,M]),g.push([w,M]),w+=y,S=A}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function C(D){var N=x.getModel(D?"selectedDataBackground":"dataBackground"),A=new Pe,M=new Hf({shape:{points:u},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Fa({shape:{points:c},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(M),A.add(I),A}for(var T=0;T<3;T++){var b=C(T===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,o=this.ecModel;return r.eachTargetAxis(function(i,s){var l=r.getAxisProxy(i,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(n!==!0&&fe(UB,u.get("type"))<0)){var c=o.getComponent(pn(i),s).axis,f=jB(i),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:i,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],o=n.handleLabels=[null,null],i=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Bi({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new Bi({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:GB,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var S=l.get("handleIcon");!Ll[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&qt("handleIcon now needs 'path://' prefix when using a path string"));var x=Pr(S,-1,0,2,2,null,!0);x.attr({cursor:Gb(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var C=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=xe(T,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),qs(x);var b=l.get("handleColor");b!=null&&(x.style.fill=b),i.add(a[_]=x);var D=l.getModel("textStyle");r.add(o[_]=new We({silent:!0,invisible:!0,style:Zt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var h=d;if(f){var v=xe(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new Ee({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,y=n.moveHandleIcon=Pr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Ee({invisible:!0,shape:{y:s[1]-w,height:v+w}}),h.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),i.add(m),i.add(y),i.add(h)}h.attr({draggable:!0,cursor:Gb(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ye(r[0],[0,100],n,!0),Ye(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,o=this._handleEnds,i=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];hu(n,o,i,a.get("zoomLock")?"all":r,s.minSpan!=null?Ye(s.minSpan,l,i,!0):null,s.maxSpan!=null?Ye(s.maxSpan,l,i,!0):null);var u=this._range,c=this._range=Fo([Ye(o[0],i,l,!0),Ye(o[1],i,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,o=Fo(a.slice()),i=this._size;k([0,1],function(h){var v=n.handles[h],m=this._handleHeight;v.attr({scaleX:m/2,scaleY:m/2,x:a[h]+(h?-1:1),y:i[1]/2-m/2})},this),n.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:i[1]});var s={x:o[0],width:o[1]-o[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,o[0],o[1],i[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Ee,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:i[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,o=a.handleLabels,i=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Fo(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var m=Qm(a.handles[v].parent,this.group),g=ey(v===0?"right":"left",m),y=this._handleWidth/2+WB,w=ri([d[v]+(v===0?-y:y),this._size[1]/2],m);o[v].setStyle({x:w[0],y:w[1],verticalAlign:i===Vi?"middle":g,align:i===Vi?g:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,o=a.get("labelFormatter"),i=a.get("labelPrecision");(i==null||i==="auto")&&(i=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(i,20));return ae(o)?o(r,s):X(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,o){this._dragging=!0,Ca(o.event);var i=this._displayables.sliderGroup.getLocalTransform(),s=ri([n,a],i,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var o=this._handleEnds,i=(o[0]+o[1])/2,s=this._updateInterval("all",a[0]-i);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new le(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(a.width)<5)){var i=this._getViewExtent(),s=[0,100];this._range=Fo([Ye(a.x,i,s,!0),Ye(a.x+a.width,i,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Ca(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,o=this.dataZoomModel,i=a.brushRect;i||(i=a.brushRect=new Bi({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(i)),i.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),i.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?YB:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=fb(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var o=this.api.getWidth(),i=this.api.getHeight();r={x:o*.2,y:i*.2,width:o*.6,height:i*.6}}return r},t.type="dataZoom.slider",t}(db);function jB(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Gb(e){return e==="vertical"?"ns-resize":"ew-resize"}const XB=qB;function ZB(e){e.registerComponentModel(zB),e.registerComponentView(XB),gb(e)}function KB(e){gr($B),gr(ZB)}function Hb(e,t,r){var n=pa.createCanvas(),a=t.getWidth(),o=t.getHeight(),i=n.style;return i&&(i.position="absolute",i.left="0",i.top="0",i.width=a+"px",i.height=o+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=o*r,n}var JB=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var i;a=a||Ns,typeof r=="string"?i=Hb(r,n,a):K(r)&&(i=r,r=i.id),o.id=r,o.dom=i;var s=i.style;return s&&(pv(i),i.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=n,o.dpr=a,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Hb("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],s=this.maxRepaintRectCount,l=!1,u=new ye(0,0,0,0);function c(w){if(!(!w.isFinite()||w.isZero()))if(i.length===0){var _=new ye(0,0,0,0);_.copy(w),i.push(_)}else{for(var S=!1,x=1/0,C=0,T=0;T<i.length;++T){var b=i[T];if(b.intersect(w)){var D=new ye(0,0,0,0);D.copy(b),D.union(w),i[T]=D,S=!0;break}else if(l){u.copy(w),u.union(b);var N=w.width*w.height,A=b.width*b.height,M=u.width*u.height,I=M-N-A;I<x&&(x=I,C=T)}}if(l&&(i[C].union(w),S=!0),!S){var _=new ye(0,0,0,0);_.copy(w),i.push(_)}l||(l=i.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(a,o,!0,!0),v=d.__isRendered&&(d.__dirty&yt||!h)?d.getPrevPaintRect():null;v&&c(v);var m=h&&(d.__dirty&yt||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d&&d.shouldBePainted(a,o,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<i.length;){if(i[f].isZero()){i.splice(f,1);continue}for(var y=f+1;y<i.length;)i[f].intersect(i[y])?(g=!0,i[f].union(i[y]),i.splice(y,1)):y++;f++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,o=this.dom,i=o.style,s=this.domBack;i&&(i.width=r+"px",i.height=n+"px"),o.width=r*a,o.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var o=this.dom,i=this.ctx,s=o.width,l=o.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var h=this.domBack;function v(m,g,y,w){if(i.clearRect(m,g,y,w),n&&n!=="transparent"){var _=void 0;if(os(n)){var S=n.global||n.__width===y&&n.__height===w;_=S&&n.__canvasGradient||Bh(i,n,{x:0,y:0,width:y,height:w}),n.__canvasGradient=_,n.__width=y,n.__height=w}else dT(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=Vh(i,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));i.save(),i.fillStyle=_||n,i.fillRect(m,g,y,w),i.restore()}u&&(i.save(),i.globalAlpha=c,i.drawImage(h,m,g,y,w),i.restore())}!a||u?v(0,0,s,l):a.length&&k(a,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(Ut);const mp=JB;var Wb=1e5,sa=314159,Nu=.01,QB=.001;function eV(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function tV(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var rV=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||Ns,this._singleCanvas=o,this.root=t;var i=t.style;i&&(pv(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new mp(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[sa]=h,h.zlevel=sa,s.push(sa),this._domRoot=t}else{this._width=Bl(t,0,n),this._height=Bl(t,1,n);var u=this._domRoot=tV(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var o=0;o<a.length;o++){var i=a[o],s=this._layers[i];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,i=0;i<r;i++){var s=t[i];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Wb)),o||(o=n.ctx,o.save()),Qn(o,s,a,i===r-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Wb)},e.prototype.paintOne=function(t,r){a_(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,r,n),i=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),i)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Ic(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(sa).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,o=[],i=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var c=!0,f=!1,d=function(m){var g=o[m],y=g.ctx,w=i&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),C=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,C,w);else if(_===g.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&g.clear(!1,C,w)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var b,D=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(b=_;b<g.__endIndex;b++){var L=t[b];if(L.__inHover&&(f=!0),a._doPaintEl(L,g,i,I,P,b===g.__endIndex-1),S){var E=Date.now()-x;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(w)if(w.length===0)b=g.__endIndex;else for(var N=h.dpr,A=0;A<w.length;++A){var M=w[A];y.save(),y.beginPath(),y.rect(M.x*N,M.y*N,M.width*N,M.height*N),y.clip(),D(M),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=b,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<o.length;v++)d(v);return ne.wxa&&k(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,a,o,i){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Qn(s,t,o,i),t.setPrevPaintRect(l))}else Qn(s,t,o,i)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=sa);var n=this._layers[t];return n||(n=new mp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?pe(n,this._layerConfig[t],!0):this._layerConfig[t-Nu]&&pe(n,this._layerConfig[t-Nu],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,o=a.length,i=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&Hr("ZLevel "+t+" has been used already");return}if(!eV(r)){process.env.NODE_ENV!=="production"&&Hr("Layer of zlevel "+t+" is not valid");return}if(o>0&&t>a[0]){for(l=0;l<o-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?i.insertBefore(r.dom,u.nextSibling):i.appendChild(r.dom)}else i.firstChild?i.insertBefore(r.dom,i.firstChild):i.appendChild(r.dom);r.painter||(r.painter=this)},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a];t.call(r,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a],i=this._layers[o];i.__builtin__&&t.call(r,i,o)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a],i=this._layers[o];i.__builtin__||t.call(r,i,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,i=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,i=0),a.incremental?(c=this.getLayer(u+QB,this._needsManuallyCompositing),c.incremental=!0,i=1):c=this.getLayer(u+(i>0?Nu:0),this._needsManuallyCompositing),c.__builtin__||Hr("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),o=c),a.__dirty&yt&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,k(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?pe(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===t||o===t+Nu){var i=this._layers[o];pe(i,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(fe(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,o=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=Bl(o,0,a),r=Bl(o,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var i in this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(sa).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[sa].dom;var r=new mp("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,o=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,o):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var i={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Qn(n,c,i,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const nV=rV;function aV(e){e.registerPainter("canvas",nV)}const oV={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#333333",fontWeight:"normal"},subtextStyle:{color:"#eeeeee"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetY:3},label:{color:"#333333",textBorderColor:"rgba(255, 255, 255, 1)",textBorderWidth:4},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.1)",borderRadius:[16]},itemStyle:{shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#fff"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},legend:{textStyle:{color:"#333333"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"#8e54c8"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#8e54c8"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},visualMap:{color:["#5ab1ef","#e0ffff"]},dataZoom:{brushSelect:!0,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#333"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}},iV={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#ffffff",fontWeight:"normal"},subtextStyle:{color:"#cccccc"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowBlur:3,shadowOffsetY:3},label:{color:"#ffffff",textBorderColor:"rgba(0, 0, 0, 1)",textBorderWidth:2},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(142, 84, 200, 0.03)",borderRadius:[16]},label:{show:!0,color:"#fff"},itemStyle:{shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{label:{color:"#fff"},itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#2d2d31"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!1,lineStyle:{color:["#363636"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#fff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#cccccc"},splitLine:{show:!0,lineStyle:{color:["#363636"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},legend:{textStyle:{color:"#cccccc"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"rgb(45, 45, 49)"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#8fd3e8",width:1},itemStyle:{color:"#8fd3e8",borderWidth:1},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},checkpointStyle:{color:"#8fd3e8",borderColor:"#8a7ca8"},label:{color:"#8fd3e8"},emphasis:{itemStyle:{color:"#8fd3e8"},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},label:{color:"#8fd3e8"}}},visualMap:{color:["#8a7ca8","#e098c7","#cceffa"]},dataZoom:{brushSelect:!1,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#fff"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}};ql("white",oV),ql("dark",iV),gr([UI,AI,sL,GO,JR,XR,mR,aV,DB,KB,dB]);const sV={display:"flex",flexDirection:"column",width:"100%",height:"100%"},_r=new WeakMap,Ub=p.defineComponent({name:"OcEcharts",props:{options:{type:Object,required:!0},renderer:{type:String,default:()=>"canvas"},style:{type:Object,default:()=>null},notMerge:{type:Boolean,default:()=>!1},ariaShow:{type:Boolean,default:()=>!1},lazyUpdate:{type:Boolean,default:()=>!1},silent:{type:Boolean,default:()=>!1},resizeAble:{type:Boolean,default:()=>!0},events:{type:Object,default:()=>({})},theme:{type:String,default:void 0}},watch:{options:{deep:!0,handler(e){e&&this.setOption()}}},beforeUnmount(){this.dispose()},mounted(){this.$watch(()=>se.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{_r.set(this,null)}},methods:{init(){this.initChart(this.$el).then(e=>{this.setOption(),this.bindEvents(e,this.events),this.resizeAble&&window.addEventListener("resize",this.resizeChart)})},initChart(e){const t=this.renderer||"canvas";return new Promise(r=>{this.$nextTick(()=>{const n=this.theme?this.theme:se.theme?"dark":"white",a=T5(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});_r.set(this,a),r(_r.get(this))})})},setOption(){if(!_r.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=_r.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=_r.get(this))==null||e.resize()})},getInstance(){return _r.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=_r.get(this))==null||e.dispose(),_r.set(this,null),_r.delete(this)},bindEvents(e,t){const r=(n,a)=>{typeof n=="string"&&typeof a=="function"&&e.on(n,o=>{a(o,e)})};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&r(n,t[n])}},render(){const{style:e}=this,t=Object.assign({},sV,e||{});return p.h("div",{style:t})}}),Br=Ct.createRouter({history:Ct.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),yp=document.querySelector("html");Br.beforeEach(()=>{yp==null||yp.removeAttribute("style")});const lV=p.defineComponent({name:"OcError",components:{NButton:O.NButton},props:{type:{type:String,default:"404"}},setup(e){const t={404:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."},500:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/500.png",txt:"500",title:"服务暂时中断,请稍后重试.",title2:"Oops! No Internet connection found."}},r=p.ref({img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."}),n=()=>{Br.push(se.platformUrl)},a=p.ref();return p.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{Br.push(se.platformUrl)},3e3)}),p.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),uV={class:"com-card flex-center oc-error"},cV=["src","alt"],fV={class:"oc-miss-txt"},hV={class:"oc-miss-title"},dV={class:"oc-miss-title2"};function pV(e,t,r,n,a,o){const i=p.resolveComponent("NButton");return p.openBlock(),p.createElementBlock("div",uV,[p.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,cV),p.createElementVNode("div",fV,p.toDisplayString(e.content.txt),1),p.createElementVNode("p",hV,p.toDisplayString(e.content.title),1),p.createElementVNode("p",dV,p.toDisplayString(e.content.title2),1),p.createVNode(i,{tertiary:"",onClick:e.goBack},{default:p.withCtx(()=>[p.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const Yb=Z(lV,[["render",pV]]),vV=p.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),gV={class:"oc-footer"},mV=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),yV=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function _V(e,t,r,n,a,o){return p.openBlock(),p.createElementBlock("footer",gV,[p.createTextVNode(" Copyright "),mV,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),yV])}const qb=Z(vV,[["render",_V]]);var Du=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wV(){this.__data__=[],this.size=0}var bV=wV;function SV(e,t){return e===t||e!==e&&t!==t}var Xb=SV,CV=Xb;function xV(e,t){for(var r=e.length;r--;)if(CV(e[r][0],t))return r;return-1}var Au=xV,TV=Au,NV=Array.prototype,DV=NV.splice;function AV(e){var t=this.__data__,r=TV(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():DV.call(t,r,1),--this.size,!0}var MV=AV,kV=Au;function EV(e){var t=this.__data__,r=kV(t,e);return r<0?void 0:t[r][1]}var PV=EV,IV=Au;function LV(e){return IV(this.__data__,e)>-1}var OV=LV,RV=Au;function BV(e,t){var r=this.__data__,n=RV(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var VV=BV,$V=bV,FV=MV,zV=PV,GV=OV,HV=VV;function uo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uo.prototype.clear=$V,uo.prototype.delete=FV,uo.prototype.get=zV,uo.prototype.has=GV,uo.prototype.set=HV;var Mu=uo,WV=Mu;function UV(){this.__data__=new WV,this.size=0}var YV=UV;function qV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var jV=qV;function XV(e){return this.__data__.get(e)}var ZV=XV;function KV(e){return this.__data__.has(e)}var JV=KV,QV=typeof Du=="object"&&Du&&Du.Object===Object&&Du,Zb=QV,e3=Zb,t3=typeof self=="object"&&self&&self.Object===Object&&self,r3=e3||t3||Function("return this")(),rr=r3,n3=rr,a3=n3.Symbol,_p=a3,Kb=_p,Jb=Object.prototype,o3=Jb.hasOwnProperty,i3=Jb.toString,$i=Kb?Kb.toStringTag:void 0;function s3(e){var t=o3.call(e,$i),r=e[$i];try{e[$i]=void 0;var n=!0}catch{}var a=i3.call(e);return n&&(t?e[$i]=r:delete e[$i]),a}var l3=s3,u3=Object.prototype,c3=u3.toString;function f3(e){return c3.call(e)}var h3=f3,Qb=_p,d3=l3,p3=h3,v3="[object Null]",g3="[object Undefined]",eS=Qb?Qb.toStringTag:void 0;function m3(e){return e==null?e===void 0?g3:v3:eS&&eS in Object(e)?d3(e):p3(e)}var Fi=m3;function y3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var la=y3,_3=Fi,w3=la,b3="[object AsyncFunction]",S3="[object Function]",C3="[object GeneratorFunction]",x3="[object Proxy]";function T3(e){if(!w3(e))return!1;var t=_3(e);return t==S3||t==C3||t==b3||t==x3}var tS=T3,N3=rr,D3=N3["__core-js_shared__"],A3=D3,wp=A3,rS=function(){var e=/[^.]+$/.exec(wp&&wp.keys&&wp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M3(e){return!!rS&&rS in e}var k3=M3,E3=Function.prototype,P3=E3.toString;function I3(e){if(e!=null){try{return P3.call(e)}catch{}try{return e+""}catch{}}return""}var nS=I3,L3=tS,O3=k3,R3=la,B3=nS,V3=/[\\^$.*+?()[\]{}|]/g,$3=/^\[object .+?Constructor\]$/,F3=Function.prototype,z3=Object.prototype,G3=F3.toString,H3=z3.hasOwnProperty,W3=RegExp("^"+G3.call(H3).replace(V3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U3(e){if(!R3(e)||O3(e))return!1;var t=L3(e)?W3:$3;return t.test(B3(e))}var Y3=U3;function q3(e,t){return e==null?void 0:e[t]}var j3=q3,X3=Y3,Z3=j3;function K3(e,t){var r=Z3(e,t);return X3(r)?r:void 0}var ua=K3,J3=ua,Q3=rr,e$=J3(Q3,"Map"),bp=e$,t$=ua,r$=t$(Object,"create"),ku=r$,aS=ku;function n$(){this.__data__=aS?aS(null):{},this.size=0}var a$=n$;function o$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var i$=o$,s$=ku,l$="__lodash_hash_undefined__",u$=Object.prototype,c$=u$.hasOwnProperty;function f$(e){var t=this.__data__;if(s$){var r=t[e];return r===l$?void 0:r}return c$.call(t,e)?t[e]:void 0}var h$=f$,d$=ku,p$=Object.prototype,v$=p$.hasOwnProperty;function g$(e){var t=this.__data__;return d$?t[e]!==void 0:v$.call(t,e)}var m$=g$,y$=ku,_$="__lodash_hash_undefined__";function w$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=y$&&t===void 0?_$:t,this}var b$=w$,S$=a$,C$=i$,x$=h$,T$=m$,N$=b$;function co(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}co.prototype.clear=S$,co.prototype.delete=C$,co.prototype.get=x$,co.prototype.has=T$,co.prototype.set=N$;var D$=co,oS=D$,A$=Mu,M$=bp;function k$(){this.size=0,this.__data__={hash:new oS,map:new(M$||A$),string:new oS}}var E$=k$;function P$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var I$=P$,L$=I$;function O$(e,t){var r=e.__data__;return L$(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Eu=O$,R$=Eu;function B$(e){var t=R$(this,e).delete(e);return this.size-=t?1:0,t}var V$=B$,$$=Eu;function F$(e){return $$(this,e).get(e)}var z$=F$,G$=Eu;function H$(e){return G$(this,e).has(e)}var W$=H$,U$=Eu;function Y$(e,t){var r=U$(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var q$=Y$,j$=E$,X$=V$,Z$=z$,K$=W$,J$=q$;function fo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fo.prototype.clear=j$,fo.prototype.delete=X$,fo.prototype.get=Z$,fo.prototype.has=K$,fo.prototype.set=J$;var Q$=fo,e7=Mu,t7=bp,r7=Q$,n7=200;function a7(e,t){var r=this.__data__;if(r instanceof e7){var n=r.__data__;if(!t7||n.length<n7-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new r7(n)}return r.set(e,t),this.size=r.size,this}var o7=a7,i7=Mu,s7=YV,l7=jV,u7=ZV,c7=JV,f7=o7;function ho(e){var t=this.__data__=new i7(e);this.size=t.size}ho.prototype.clear=s7,ho.prototype.delete=l7,ho.prototype.get=u7,ho.prototype.has=c7,ho.prototype.set=f7;var h7=ho;function d7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var p7=d7,v7=ua,g7=function(){try{var e=v7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),m7=g7,iS=m7;function y7(e,t,r){t=="__proto__"&&iS?iS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var sS=y7,_7=sS,w7=Xb,b7=Object.prototype,S7=b7.hasOwnProperty;function C7(e,t,r){var n=e[t];(!(S7.call(e,t)&&w7(n,r))||r===void 0&&!(t in e))&&_7(e,t,r)}var lS=C7,x7=lS,T7=sS;function N7(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?T7(r,s,l):x7(r,s,l)}return r}var Pu=N7;function D7(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var A7=D7;function M7(e){return e!=null&&typeof e=="object"}var po=M7,k7=Fi,E7=po,P7="[object Arguments]";function I7(e){return E7(e)&&k7(e)==P7}var L7=I7,uS=L7,O7=po,cS=Object.prototype,R7=cS.hasOwnProperty,B7=cS.propertyIsEnumerable,V7=uS(function(){return arguments}())?uS:function(e){return O7(e)&&R7.call(e,"callee")&&!B7.call(e,"callee")},$7=V7,F7=Array.isArray,Sp=F7,Iu={exports:{}};function z7(){return!1}var G7=z7;Iu.exports,function(e,t){var r=rr,n=G7,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Iu,Iu.exports);var fS=Iu.exports,H7=9007199254740991,W7=/^(?:0|[1-9]\d*)$/;function U7(e,t){var r=typeof e;return t=t??H7,!!t&&(r=="number"||r!="symbol"&&W7.test(e))&&e>-1&&e%1==0&&e<t}var Y7=U7,q7=9007199254740991;function j7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=q7}var hS=j7,X7=Fi,Z7=hS,K7=po,J7="[object Arguments]",Q7="[object Array]",e4="[object Boolean]",t4="[object Date]",r4="[object Error]",n4="[object Function]",a4="[object Map]",o4="[object Number]",i4="[object Object]",s4="[object RegExp]",l4="[object Set]",u4="[object String]",c4="[object WeakMap]",f4="[object ArrayBuffer]",h4="[object DataView]",d4="[object Float32Array]",p4="[object Float64Array]",v4="[object Int8Array]",g4="[object Int16Array]",m4="[object Int32Array]",y4="[object Uint8Array]",_4="[object Uint8ClampedArray]",w4="[object Uint16Array]",b4="[object Uint32Array]",Me={};Me[d4]=Me[p4]=Me[v4]=Me[g4]=Me[m4]=Me[y4]=Me[_4]=Me[w4]=Me[b4]=!0,Me[J7]=Me[Q7]=Me[f4]=Me[e4]=Me[h4]=Me[t4]=Me[r4]=Me[n4]=Me[a4]=Me[o4]=Me[i4]=Me[s4]=Me[l4]=Me[u4]=Me[c4]=!1;function S4(e){return K7(e)&&Z7(e.length)&&!!Me[X7(e)]}var C4=S4;function x4(e){return function(t){return e(t)}}var Cp=x4,Lu={exports:{}};Lu.exports,function(e,t){var r=Zb,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(Lu,Lu.exports);var xp=Lu.exports,T4=C4,N4=Cp,dS=xp,pS=dS&&dS.isTypedArray,D4=pS?N4(pS):T4,A4=D4,M4=A7,k4=$7,E4=Sp,P4=fS,I4=Y7,L4=A4,O4=Object.prototype,R4=O4.hasOwnProperty;function B4(e,t){var r=E4(e),n=!r&&k4(e),a=!r&&!n&&P4(e),o=!r&&!n&&!a&&L4(e),i=r||n||a||o,s=i?M4(e.length,String):[],l=s.length;for(var u in e)(t||R4.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||I4(u,l)))&&s.push(u);return s}var vS=B4,V4=Object.prototype;function $4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||V4;return e===r}var Tp=$4;function F4(e,t){return function(r){return e(t(r))}}var gS=F4,z4=gS,G4=z4(Object.keys,Object),H4=G4,W4=Tp,U4=H4,Y4=Object.prototype,q4=Y4.hasOwnProperty;function j4(e){if(!W4(e))return U4(e);var t=[];for(var r in Object(e))q4.call(e,r)&&r!="constructor"&&t.push(r);return t}var X4=j4,Z4=tS,K4=hS;function J4(e){return e!=null&&K4(e.length)&&!Z4(e)}var mS=J4,Q4=vS,eF=X4,tF=mS;function rF(e){return tF(e)?Q4(e):eF(e)}var Np=rF,nF=Pu,aF=Np;function oF(e,t){return e&&nF(t,aF(t),e)}var iF=oF;function sF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var lF=sF,uF=la,cF=Tp,fF=lF,hF=Object.prototype,dF=hF.hasOwnProperty;function pF(e){if(!uF(e))return fF(e);var t=cF(e),r=[];for(var n in e)n=="constructor"&&(t||!dF.call(e,n))||r.push(n);return r}var vF=pF,gF=vS,mF=vF,yF=mS;function _F(e){return yF(e)?gF(e,!0):mF(e)}var Dp=_F,wF=Pu,bF=Dp;function SF(e,t){return e&&wF(t,bF(t),e)}var CF=SF,Ou={exports:{}};Ou.exports,function(e,t){var r=rr,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}e.exports=l}(Ou,Ou.exports);var xF=Ou.exports;function TF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var NF=TF;function DF(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}var AF=DF;function MF(){return[]}var yS=MF,kF=AF,EF=yS,PF=Object.prototype,IF=PF.propertyIsEnumerable,_S=Object.getOwnPropertySymbols,LF=_S?function(e){return e==null?[]:(e=Object(e),kF(_S(e),function(t){return IF.call(e,t)}))}:EF,Ap=LF,OF=Pu,RF=Ap;function BF(e,t){return OF(e,RF(e),t)}var VF=BF;function $F(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var wS=$F,FF=gS,zF=FF(Object.getPrototypeOf,Object),bS=zF,GF=wS,HF=bS,WF=Ap,UF=yS,YF=Object.getOwnPropertySymbols,qF=YF?function(e){for(var t=[];e;)GF(t,WF(e)),e=HF(e);return t}:UF,SS=qF,jF=Pu,XF=SS;function ZF(e,t){return jF(e,XF(e),t)}var KF=ZF,JF=wS,QF=Sp;function ez(e,t,r){var n=t(e);return QF(e)?n:JF(n,r(e))}var CS=ez,tz=CS,rz=Ap,nz=Np;function az(e){return tz(e,nz,rz)}var oz=az,iz=CS,sz=SS,lz=Dp;function uz(e){return iz(e,lz,sz)}var cz=uz,fz=ua,hz=rr,dz=fz(hz,"DataView"),pz=dz,vz=ua,gz=rr,mz=vz(gz,"Promise"),yz=mz,_z=ua,wz=rr,bz=_z(wz,"Set"),Sz=bz,Cz=ua,xz=rr,Tz=Cz(xz,"WeakMap"),Nz=Tz,Mp=pz,kp=bp,Ep=yz,Pp=Sz,Ip=Nz,xS=Fi,vo=nS,TS="[object Map]",Dz="[object Object]",NS="[object Promise]",DS="[object Set]",AS="[object WeakMap]",MS="[object DataView]",Az=vo(Mp),Mz=vo(kp),kz=vo(Ep),Ez=vo(Pp),Pz=vo(Ip),ca=xS;(Mp&&ca(new Mp(new ArrayBuffer(1)))!=MS||kp&&ca(new kp)!=TS||Ep&&ca(Ep.resolve())!=NS||Pp&&ca(new Pp)!=DS||Ip&&ca(new Ip)!=AS)&&(ca=function(e){var t=xS(e),r=t==Dz?e.constructor:void 0,n=r?vo(r):"";if(n)switch(n){case Az:return MS;case Mz:return TS;case kz:return NS;case Ez:return DS;case Pz:return AS}return t});var Lp=ca,Iz=Object.prototype,Lz=Iz.hasOwnProperty;function Oz(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Lz.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Rz=Oz,Bz=rr,Vz=Bz.Uint8Array,$z=Vz,kS=$z;function Fz(e){var t=new e.constructor(e.byteLength);return new kS(t).set(new kS(e)),t}var Op=Fz,zz=Op;function Gz(e,t){var r=t?zz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Hz=Gz,Wz=/\w*$/;function Uz(e){var t=new e.constructor(e.source,Wz.exec(e));return t.lastIndex=e.lastIndex,t}var Yz=Uz,ES=_p,PS=ES?ES.prototype:void 0,IS=PS?PS.valueOf:void 0;function qz(e){return IS?Object(IS.call(e)):{}}var jz=qz,Xz=Op;function Zz(e,t){var r=t?Xz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Kz=Zz,Jz=Op,Qz=Hz,e8=Yz,t8=jz,r8=Kz,n8="[object Boolean]",a8="[object Date]",o8="[object Map]",i8="[object Number]",s8="[object RegExp]",l8="[object Set]",u8="[object String]",c8="[object Symbol]",f8="[object ArrayBuffer]",h8="[object DataView]",d8="[object Float32Array]",p8="[object Float64Array]",v8="[object Int8Array]",g8="[object Int16Array]",m8="[object Int32Array]",y8="[object Uint8Array]",_8="[object Uint8ClampedArray]",w8="[object Uint16Array]",b8="[object Uint32Array]";function S8(e,t,r){var n=e.constructor;switch(t){case f8:return Jz(e);case n8:case a8:return new n(+e);case h8:return Qz(e,r);case d8:case p8:case v8:case g8:case m8:case y8:case _8:case w8:case b8:return r8(e,r);case o8:return new n;case i8:case u8:return new n(e);case s8:return e8(e);case l8:return new n;case c8:return t8(e)}}var C8=S8,x8=la,LS=Object.create,T8=function(){function e(){}return function(t){if(!x8(t))return{};if(LS)return LS(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),N8=T8,D8=N8,A8=bS,M8=Tp;function k8(e){return typeof e.constructor=="function"&&!M8(e)?D8(A8(e)):{}}var E8=k8,P8=Lp,I8=po,L8="[object Map]";function O8(e){return I8(e)&&P8(e)==L8}var R8=O8,B8=R8,V8=Cp,OS=xp,RS=OS&&OS.isMap,$8=RS?V8(RS):B8,F8=$8,z8=Lp,G8=po,H8="[object Set]";function W8(e){return G8(e)&&z8(e)==H8}var U8=W8,Y8=U8,q8=Cp,BS=xp,VS=BS&&BS.isSet,j8=VS?q8(VS):Y8,X8=j8,Z8=h7,K8=p7,J8=lS,Q8=iF,e6=CF,t6=xF,r6=NF,n6=VF,a6=KF,o6=oz,i6=cz,s6=Lp,l6=Rz,u6=C8,c6=E8,f6=Sp,h6=fS,d6=F8,p6=la,v6=X8,g6=Np,m6=Dp,y6=1,_6=2,w6=4,$S="[object Arguments]",b6="[object Array]",S6="[object Boolean]",C6="[object Date]",x6="[object Error]",FS="[object Function]",T6="[object GeneratorFunction]",N6="[object Map]",D6="[object Number]",zS="[object Object]",A6="[object RegExp]",M6="[object Set]",k6="[object String]",E6="[object Symbol]",P6="[object WeakMap]",I6="[object ArrayBuffer]",L6="[object DataView]",O6="[object Float32Array]",R6="[object Float64Array]",B6="[object Int8Array]",V6="[object Int16Array]",$6="[object Int32Array]",F6="[object Uint8Array]",z6="[object Uint8ClampedArray]",G6="[object Uint16Array]",H6="[object Uint32Array]",Ae={};Ae[$S]=Ae[b6]=Ae[I6]=Ae[L6]=Ae[S6]=Ae[C6]=Ae[O6]=Ae[R6]=Ae[B6]=Ae[V6]=Ae[$6]=Ae[N6]=Ae[D6]=Ae[zS]=Ae[A6]=Ae[M6]=Ae[k6]=Ae[E6]=Ae[F6]=Ae[z6]=Ae[G6]=Ae[H6]=!0,Ae[x6]=Ae[FS]=Ae[P6]=!1;function Ru(e,t,r,n,a,o){var i,s=t&y6,l=t&_6,u=t&w6;if(r&&(i=a?r(e,n,a,o):r(e)),i!==void 0)return i;if(!p6(e))return e;var c=f6(e);if(c){if(i=l6(e),!s)return r6(e,i)}else{var f=s6(e),d=f==FS||f==T6;if(h6(e))return t6(e,s);if(f==zS||f==$S||d&&!a){if(i=l||d?{}:c6(e),!s)return l?a6(e,e6(i,e)):n6(e,Q8(i,e))}else{if(!Ae[f])return a?e:{};i=u6(e,f,s)}}o||(o=new Z8);var h=o.get(e);if(h)return h;o.set(e,i),v6(e)?e.forEach(function(g){i.add(Ru(g,t,r,g,e,o))}):d6(e)&&e.forEach(function(g,y){i.set(y,Ru(g,t,r,y,e,o))});var v=u?l?i6:o6:l?m6:g6,m=c?void 0:v(e);return K8(m||e,function(g,y){m&&(y=g,g=e[y]),J8(i,y,Ru(g,t,r,y,e,o))}),i}var W6=Ru,U6=W6,Y6=1,q6=4;function j6(e){return U6(e,Y6|q6)}var X6=j6;const Ft=jb(X6),Z6=p.defineComponent({name:"OcForm",components:{NIcon:O.NIcon,NGrid:O.NGrid,NForm:O.NForm,NFormItemGi:O.NFormItemGi,NButton:O.NButton,NInput:O.NInput,NSelect:O.NSelect,NInputNumber:O.NInputNumber,NDatePicker:O.NDatePicker,NTimePicker:O.NTimePicker,NSwitch:O.NSwitch,NUpload:O.NUpload,NUploadDragger:O.NUploadDragger,IconMailInboxAdd:wo},props:{items:{required:!0,type:Array,default:()=>[]},data:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},labelWidth:{type:[String,Number],default:"auto"},labelAlign:{type:String,default:"left"},labelPlacement:{type:String,default:"top"}},setup(e,{expose:t}){const r=p.ref(),n=p.ref({}),a=p.ref([]),{t:o}=Gt.useI18n(),i=v=>!((v==null?void 0:v.show)===!1||e.edit&&v.edit&&!v.edit.show),s=()=>{const v=Ft(e.items);v.forEach(m=>{if(m.rule&&m.rule.validator&&typeof m.rule.validator=="string"){const g=m.rule.validator,y=new Function("rule","value",g);m.rule.validator=(w,_)=>y(w,_)}if(m.input==="date"&&m.isDateDisabled&&typeof m.isDateDisabled=="string"){const g=m.isDateDisabled,y=new Function("ts","detail",g);m.isDateDisabled=(w,_)=>y(w,_)}m.input==="select"&&m.fallbackOption&&m.multiple&&(!n.value[m.key]||n.value[m.key].length===0)&&(n.value[m.key]=[""])}),a.value=v},l=(v,m)=>{if(v.updateValue){const g=Ft(n.value);if(typeof v.updateValue=="string"){const y=v.updateValue;new Function("value","formValue",y)(m,g)}else v.updateValue(m,g)}},u=(v,m)=>new Promise((g,y)=>{v.file.file&&(n.value[m]=v.file.file,g()),y()}),c=(v,m)=>{v.length===0&&(n.value[m]="")},f=v=>v.fallbackOption?typeof v.fallbackOption=="boolean"?()=>({label:o("Common.message.all"),value:"",disabled:!0}):v.fallbackOption:!1,d=()=>new Promise((v,m)=>{var g;(g=r.value)==null||g.validate(y=>{if(y)m();else{const w=Ft(n.value),_=JSON.stringify(w,(S,x)=>x===void 0?null:Array.isArray(x)?x.filter(C=>C!==""):x);v(JSON.parse(_))}})}),h=()=>{var v;(v=r.value)==null||v.restoreValidation()};return p.onMounted(()=>{n.value=Ft(e.data),s()}),t({validate:d,restoreValidation:h}),p.watch(()=>e.items,()=>{s()},{deep:!0}),p.watch(()=>e.data,v=>{n.value=Ft(v)},{deep:!0}),{formRef:r,formValue:n,formItems:a,cloneDeep:Ft,updateValue:l,beforeUpload:u,uploadChange:c,elementShow:i,selectFallback:f}}}),K6=p.createElementVNode("br",null,null,-1),J6=p.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),Q6=p.createElementVNode("p",null," 请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码 ",-1);function eG(e,t,r,n,a,o){const i=p.resolveComponent("NInput"),s=p.resolveComponent("NInputNumber"),l=p.resolveComponent("NDatePicker"),u=p.resolveComponent("NSelect"),c=p.resolveComponent("NTimePicker"),f=p.resolveComponent("NSwitch"),d=p.resolveComponent("IconMailInboxAdd"),h=p.resolveComponent("NIcon"),v=p.resolveComponent("NUploadDragger"),m=p.resolveComponent("NUpload"),g=p.resolveComponent("NFormItemGi"),y=p.resolveComponent("NGrid"),w=p.resolveComponent("NForm");return p.openBlock(),p.createBlock(w,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:p.withCtx(()=>[p.createVNode(y,{cols:12,"x-gap":8},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.formItems,_=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:_.key},[e.elementShow(_)?(p.openBlock(),p.createBlock(g,{key:0,span:_.span||6,label:_.label,path:_.key,rule:_.rule},{default:p.withCtx(()=>[_.input==="input"?(p.openBlock(),p.createBlock(i,{key:0,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,minlength:_.minlength,maxlength:_.maxlength,rows:_.rows,"show-count":!!_.maxlength,"on-update:value":S=>{e.formValue[_.key]=S.trim(),e.updateValue(_,S.trim())}},null,8,["value","onUpdate:value","type","placeholder","disabled","readonly","clearable","minlength","maxlength","rows","show-count","on-update:value"])):p.createCommentVNode("",!0),_.input==="number"?(p.openBlock(),p.createBlock(s,{key:1,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,precision:_.precision||0,min:_.min,max:_.max,step:_.step,showButton:_.showButton,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","disabled","readonly","clearable","precision","min","max","step","showButton","on-update:value"])):p.createCommentVNode("",!0),_.input==="date"&&!_.format?(p.openBlock(),p.createBlock(l,{key:2,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","type","placeholder","disabled","input-readonly","clearable","time-picker-props","is-date-disabled","on-update:value"])):p.createCommentVNode("",!0),_.input==="date"&&_.format?(p.openBlock(),p.createBlock(l,{key:3,"formatted-value":e.formValue[_.key],"onUpdate:formattedValue":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,format:_.format,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:formatted-value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["formatted-value","onUpdate:formattedValue","type","placeholder","disabled","input-readonly","clearable","format","time-picker-props","is-date-disabled","on-update:formatted-value"])):p.createCommentVNode("",!0),_.input==="select"?(p.openBlock(),p.createBlock(u,{key:4,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,options:_.options,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,filterable:_.filterable,multiple:_.multiple,"fallback-option":e.selectFallback(_),maxTagCount:_.maxTagCount,"render-label":_.renderLabel,"render-option":_.renderOption,"render-tag":_.renderTag,"on-update:value":S=>{let x=S,C=S;if(_.multiple){let T=S.filter(b=>b);T.length===0?(x=[""],C=[]):(x=T,C=T)}e.formValue[_.key]=x,e.updateValue(_,C)}},null,8,["value","onUpdate:value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):p.createCommentVNode("",!0),_.input==="time"?(p.openBlock(),p.createBlock(c,{key:5,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,format:_.format,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","format","disabled","readonly","clearable","on-update:value"])):p.createCommentVNode("",!0),_.input==="switch"?(p.openBlock(),p.createBlock(f,{key:6,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,size:"large","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","disabled","on-update:value"])):p.createCommentVNode("",!0),_.input==="upload"?(p.openBlock(),p.createBlock(m,{key:7,"default-file-list":e.formValue[_.key]?[{id:"1",name:"File",status:"finished",url:e.formValue[_.key]}]:void 0,"on-before-upload":S=>{e.beforeUpload(S,_.key)},accept:_.accept,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,max:_.max,"on-update:file-list":S=>{e.uploadChange(S,_.key)},"directory-dnd":""},{default:p.withCtx(()=>[p.withDirectives(p.createVNode(v,null,{default:p.withCtx(()=>[p.createVNode(h,{size:"32"},{default:p.withCtx(()=>[p.createVNode(d)]),_:1}),K6,J6,Q6]),_:2},1536),[[p.vShow,!e.formValue[_.key]]])]),_:2},1032,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):p.createCommentVNode("",!0)]),_:2},1032,["span","label","path","rule"])):p.createCommentVNode("",!0)],64))),128))]),_:1})]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const GS=Z(Z6,[["render",eG]]),tG=Object.prototype.hasOwnProperty;function HS(e,t){const r=[];for(const n in e){if(!tG.call(e,n))continue;const a=e[n],o=encodeURIComponent(n);let i;typeof a=="object"?i=HS(a,t?t+"["+o+"]":o):i=(t?t+"["+o+"]":o)+"="+encodeURIComponent(a),r.push(i)}return r.join("&")}const{notification:Rp}=O.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),go=Hu.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}});let Bp=Hu.CancelToken.source();go.interceptors.request.use(e=>{var r;e.cancelToken=Bp.token;const t=xt("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=HS(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e)),go.interceptors.response.use(e=>{const t=e.data;if(e.config.responseType==="blob"||e.config.responseType==="text")return Promise.resolve(e.data);if(t.ok)return Promise.resolve(t.data);{let r=t.message;return(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Rp.error({content:r,duration:3e3}),Promise.reject(r)}},e=>{if(e&&e.code==="ECONNABORTED"&&e.config&&e.config.url&&e.config.url.indexOf("auth/user/getCurrentUserInfo")>-1&&(Qp(),Br.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:bo("token"),window.location.href="/login";break;default:return Rp.destroyAll(),Rp.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const rG=()=>{Bp.cancel(),Bp=Hu.CancelToken.source()},Vp="/apiserver/",WS=(e,t,r="json")=>go({url:`${Vp}${e}`,method:"GET",data:t,responseType:r}),ct=(e,t={},r="json",n=3e5)=>go({url:`${Vp}${e}`,method:"POST",data:t,responseType:r,timeout:n}),nG=e=>go(e),$p=(e,t)=>go({headers:{"Content-Type":"multipart/form-data"},url:`${Vp}${e}`,method:"POST",data:t}),US=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Hi(t.password),ct("api/user/v2/login",t)},aG=()=>new Promise((e,t)=>{ct("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(r=>{const n=["046459"];r.commissioner=!1,n.includes(String(r.tenantLoginCode))&&(r.commissioner=!0);const a=r.ownedProducts?JSON.parse(r.ownedProducts):[];switch(a.includes(2)?r.platform_tdm=!0:r.platform_tdm=!1,a.includes(3)?r.platform_qms=!0:r.platform_qms=!1,a.includes(4)?r.platform_twin=!0:r.platform_twin=!1,a.includes(5)?r.platform_maintain=!0:r.platform_maintain=!1,a.includes(6)?r.platform_simple_tdm=!0:r.platform_simple_tdm=!1,a.includes(7)?r.platform_order=!0:r.platform_order=!1,r.systemType){case"Premium":r.systemType=1;break;case"Flagship":r.systemType=2;break;default:r.systemType=0;break}r.info=JSON.parse(r.info),e(r)}).catch(()=>{t()})}),oG=()=>ct("api/auth/user/logout"),iG=()=>ct("api/manager/message/markReadAll"),sG=()=>ct("api/auth/user/updateTenantRenewalStatus"),lG=e=>ct("api/manager/job/remove",e),uG=e=>ct("api/manager/job/retry",{jobId:e}),cG=e=>new Promise((t,r)=>{const n=Co(e);ct("api/manager/job/page",n).then(a=>{const o=So(a);t(o)}).catch(()=>{r()})}),Fp=e=>new Promise((t,r)=>{const n=new FormData;n.append("jobType","EXPORT"),Object.keys(e).forEach(a=>{e.query&&a==="query"?n.append("query",JSON.stringify(e.query)):n.append(a,e[a])}),$p("api/manager/job/submit",n).then(()=>{ic(!0),t()}).catch(a=>{r(a)})}),fG=e=>new Promise((t,r)=>{const n=Co(e);n.status===-1&&(n.status=""),ct("api/manager/message/messagePage",n).then(a=>{const o=So(a);t({data:o,unRead:a.unRead})}).catch(()=>{r()})}),hG=e=>ct("api/manager/message/markRead",{messageId:e});let YS=!0;const $=p.reactive({commissioner:!1,factoryId:"",tenantLoginCode:"",thirdUserId:"",userId:"",email:"",name:"",realName:"",phone:"",description:"",tenantName:"",oeeStatus:0,ncFlg:0,info:{type:0,id:"",viewType:1,interval:5,theme:"light"},kind:0,systemType:0,password:"",enable:!0,platform_tdm:!1,platform_qms:!1,platform_twin:!1,platform_maintain:!1,platform_order:!1,platform_simple_tdm:!1,authorizationGroupArray:[],authorizationMachineArray:[],iot_menu_authorization:[],tdm_menu_authorization:[],qms_menu_authorization:[],maintain_menu_authorization:[],order_menu_authorization:[],endTime:0,tenantStatus:1,renewalStatus:0,roleId:1,industryCategory:"0"});function dG(e){YS=e}function zp(e){const t=window.location.host;if(t.includes("partexiot")){const r=xt("token",!1);$.industryCategory=e.industryCategory||"0",!t.includes("vpn")&&YS&&(e.industryCategory==="0"&&t.includes("printing")&&(window.location.href=`https://www.partexiot.cn/auth?auth=${r}`),e.industryCategory==="1"&&!t.includes("printing")&&(window.location.href=`https://printing.partexiot.cn/auth?auth=${r}`))}if($.commissioner=e.commissioner,$.factoryId=e.factoryId,$.tenantLoginCode=e.tenantLoginCode,$.userId=e.userId,$.email=e.email,$.name=e.name,$.realName=e.realName,$.tenantName=e.tenantName,$.phone=e.phone,$.info=e.info,$.kind=e.kind,$.oeeStatus=e.oeeStatus||0,$.ncFlg=e.ncFlg||0,$.systemType=e.systemType,$.platform_tdm=e.platform_tdm,$.platform_qms=e.platform_qms,$.platform_twin=e.platform_twin,$.platform_maintain=e.platform_maintain,$.platform_order=e.platform_order,$.platform_simple_tdm=e.platform_simple_tdm,$.authorizationGroupArray=e.authorizationGroupArray||[],$.authorizationMachineArray=e.authorizationMachineArray||[],$.iot_menu_authorization=e.iot_menu_authorization||[],$.tdm_menu_authorization=e.tdm_menu_authorization||[],$.qms_menu_authorization=e.qms_menu_authorization||[],$.maintain_menu_authorization=e.maintain_menu_authorization||[],$.order_menu_authorization=e.order_menu_authorization||[],$.endTime=e.endTime??0,$.tenantStatus=e.tenantStatus??1,$.renewalStatus=e.renewalStatus??0,$.roleId=e.roleId||0,$.kind===1){const r=e.info,n=String(e.info.type);n==="0"&&Br.replace(`/dashboard/list?machGroupId=${r.id}&theme=${r.theme||"light"}`),n==="1"&&Br.replace(`/dashboard/single?machId=${r.id}&type=${r.viewType??1}&theme=${r.theme||"light"}`),n==="2"&&Br.push(`/dashboard/carousel?theme=${r.theme||"light"}`),n==="3"&&Br.push(`/dashboard/carouselist?theme=${r.theme||"light"}`),n==="4"&&Br.push(`/dashboard/performance?schemeId=${r.id}&theme=${r.theme||"light"}`)}}function Bu(){return new Promise((e,t)=>{aG().then(r=>{zp(r),e(r)}).catch(()=>{t()})})}function Vu(){$.factoryId="",$.commissioner=!1,$.tenantLoginCode="",$.userId="",$.email="",$.name="",$.realName="",$.tenantName="",$.phone="",$.description="",$.info={type:0,id:"",viewType:1,interval:5,theme:"light"},$.kind=0,$.systemType=0,$.oeeStatus=0,$.ncFlg=0,$.password="",$.enable=!0,$.platform_tdm=!1,$.platform_qms=!1,$.platform_twin=!1,$.platform_maintain=!1,$.platform_order=!1,$.platform_simple_tdm=!1,$.authorizationGroupArray=[],$.authorizationMachineArray=[],$.iot_menu_authorization=[],$.tdm_menu_authorization=[],$.qms_menu_authorization=[],$.maintain_menu_authorization=[],$.order_menu_authorization=[],$.endTime=0,$.tenantStatus=1,$.renewalStatus=0,$.roleId=1}async function Gp(){await oG().catch(()=>null),bo("token"),Vu(),window.location.href="/login"}const pG=p.defineComponent({name:"HeaderPop",components:{NFlex:O.NFlex,NInput:O.NInput,NPopover:O.NPopover,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,IconSearch:qi,IconArrowClockwise:fa,IconArrowSquareDown:qu},setup(){const{t:e}=Gt.useI18n(),t=p.ref(!1),r=O.useNotification(),n=p.ref([]),a=p.ref(""),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.importer.fileName"),key:"jobName",width:300,render(h){return p.h("div",{},{default:()=>[p.h("p",{},{default:()=>h.jobName||"--"}),p.h("p",{style:{color:"rgba(var(--font), 0.6)"}},{default:()=>wr(h.commitTime,"yyyy-MM-dd hh:mm:ss")})]})}},{title:()=>e("Common.importer.status"),key:"jobStatus",align:"center",width:90,render(h){let v=e("Common.processing");return h.jobStatus===1&&(v=e("Common.success")),h.jobStatus===2&&(v=e("Common.failed")),p.h("span",{},{default:()=>v})}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){const v=[{type:"delete",onClick:()=>{lG([h.jobId]).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})}}];return h.jobStatus===2?v.unshift({type:"custom",onClick:()=>{uG(h.jobId).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})},icon:fa,color:"info",tooltipText:()=>e("Common.importer.retry")}):v.unshift({type:"custom",disabled:h.jobStatus!==1,onClick:()=>{window.open(h.downloadUrl)},icon:_o,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),Gr(v)}}]),l=h=>{i.value.page=h,f()},u=h=>{i.value.pageSize=h,i.value.page=1,f()},c=()=>{i.value.page=1,f()},f=()=>{o.value||(o.value=!0,cG({jobType:"EXPORT",jobName:a.value,query:i.value}).then(h=>{i.value=h.query,n.value=h.records,o.value=!1}).catch(()=>{o.value=!1}))},d=h=>{ic(h),t.value=h};return f(),p.watch(()=>se.download,h=>{t.value=h,h&&f()}),{jobName:a,loading:o,columns:s,coldata:n,query:i,popDownload:t,init:f,pageChange:l,pageSizeChange:u,doSearch:c,popDownloadUpdate:d}}}),vG={class:"oc-header-download"};function gG(e,t,r,n,a,o){const i=p.resolveComponent("IconArrowSquareDown"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NInput"),c=p.resolveComponent("IconSearch"),f=p.resolveComponent("NTooltip"),d=p.resolveComponent("IconArrowClockwise"),h=p.resolveComponent("NFlex"),v=p.resolveComponent("NDataTable"),m=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(m,{trigger:"click",placement:"bottom-end",show:e.popDownload,"show-arrow":!1,"on-update:show":e.popDownloadUpdate,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"15px"}},{icon:p.withCtx(()=>[p.createVNode(s,{class:"com-header-icon"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(h,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createElementVNode("span",vG,p.toDisplayString(e.$t("Common.validDays")),1),p.createVNode(u,{value:e.jobName,"onUpdate:value":t[0]||(t[0]=g=>e.jobName=g),type:"text",clearable:"",autosize:"",style:{width:"200px"},placeholder:e.$t("Common.importer.fileName")},null,8,["value","placeholder"]),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,class:"button-primary",onClick:e.doSearch},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1}),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})]),_:1}),p.createVNode(v,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1},8,["show","on-update:show"])}const mG=Z(pG,[["render",gG]]),yG=p.defineComponent({name:"HeaderPop",components:{NBadge:O.NBadge,NPopover:O.NPopover,NFlex:O.NFlex,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,NRadioGroup:O.NRadioGroup,NRadioButton:O.NRadioButton,IconAlert:Wu,IconClear:Uu,IconArrowClockwise:fa},setup(){const{t:e}=Gt.useI18n(),t=p.ref(0),r=p.ref(0),n=p.ref([]),a=p.ref(""),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.message.title2"),key:"messageContent",width:300,render(h){return[p.h("div",{class:h.status===1?"card-grey-txt":""},{default:()=>h.messageContent}),p.h("div",{class:"card-grey-txt"},{default:()=>wr(h.createTime,"yyyy-MM-dd hh:mm:ss")})]}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){return h.status===0?Gr([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{hG(h.messageId).then(()=>{d()}).catch(()=>{d()})}}]):p.h("div",{},{default:()=>`${h.updateByName} ${e("Common.message.read")}`})}}]),l=h=>{i.value.page=1,t.value=h,d()},u=()=>{iG().then(()=>{d()}).catch(()=>{d()})},c=h=>{i.value.page=h,d()},f=h=>{i.value.pageSize=h,i.value.page=1,d()},d=()=>{o.value||(o.value=!0,fG({status:t.value,query:i.value}).then(h=>{r.value=h.unRead,i.value=h.data.query,n.value=h.data.records,o.value=!1}).catch(()=>{o.value=!1}))};return d(),{badge:r,radios:t,jobName:a,loading:o,columns:s,coldata:n,query:i,clearAll:u,pageChange:c,pageSizeChange:f,init:d,radiosChecked:l}}}),_G={class:"com-title"};function wG(e,t,r,n,a,o){const i=p.resolveComponent("IconAlert"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NBadge"),c=p.resolveComponent("NRadioButton"),f=p.resolveComponent("NRadioGroup"),d=p.resolveComponent("IconClear"),h=p.resolveComponent("NTooltip"),v=p.resolveComponent("IconArrowClockwise"),m=p.resolveComponent("NFlex"),g=p.resolveComponent("NDataTable"),y=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(y,{trigger:"click",placement:"bottom-end","show-arrow":!1,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(u,{value:e.badge,max:99},{default:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:p.withCtx(()=>[p.createVNode(s,{class:"com-header-icon"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),_:1},8,["value"])]),default:p.withCtx(()=>[p.createVNode(m,{justify:"space-between"},{default:p.withCtx(()=>[p.createElementVNode("div",_G,p.toDisplayString(e.$t("Common.message.title")),1),p.createVNode(f,{value:e.radios,"onUpdate:value":t[0]||(t[0]=w=>e.radios=w),name:"radios","on-update:value":e.radiosChecked},{default:p.withCtx(()=>[p.createVNode(c,{key:"0",value:0,label:e.$t("Common.message.unRead")},null,8,["label"]),p.createVNode(c,{key:"-1",value:-1,label:e.$t("Common.message.all")},null,8,["label"]),p.createVNode(c,{key:"1",value:1,label:e.$t("Common.message.read")},null,8,["label"])]),_:1},8,["value","on-update:value"]),p.createElementVNode("div",null,[p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.message.readAll")),1)]),_:1}),p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})])]),_:1}),p.createVNode(g,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1})}const bG=Z(yG,[["render",wG]]),SG=p.defineComponent({name:"OcHeader",components:{Pop:mG,Message:bG,NDropdown:O.NDropdown,NMenu:O.NMenu,NIcon:O.NIcon,NButton:O.NButton,NDrawer:O.NDrawer,NFlex:O.NFlex,NDrawerContent:O.NDrawerContent,NCard:O.NCard,IconWeatherSunny:Yi,IconWeatherMoon:Ui,IconGridDots:ju,IconDismiss:Fr,IconNavigation:Ki,IconUser:rc},props:{menuOptions:{required:!0,type:Array,default:()=>[]},qiankun:{type:Boolean,default:!1},mainUrl:{type:String,default:"https://www.partexiot.cn"},report:{type:Boolean,default:!1},download:{type:Boolean,default:!0},message:{type:Boolean,default:!0}},setup(e){const{t}=Gt.useI18n(),r=Ct.useRoute(),n=Ct.useRouter(),a=O.useNotification(),o=p.ref(se.platformUrl),i=p.ref(!1),s=p.ref(void 0),l=p.ref(10),u=p.ref([]),c=N=>{To(N),Ht("theme",N,0)},f=N=>{N.indexOf("/iot/home")>-1&&(N="/iot/home/all"),N.indexOf("/iot/timeline")>-1&&(N="/iot/timeline/all"),o.value=N,Qi()},d=N=>{N.disabled||(f(N.key),n.push(N.key))},h=N=>{if(!N.disabled){if(N.children)return;f(N.key),n.push(N.key),i.value=!1}},v=N=>p.h("div",{onClick:()=>d(N)},{default:()=>N.label}),m=N=>p.h("div",{onClick:()=>h(N)},{default:()=>N.label}),g=N=>N.icon?p.h(O.NIcon,{size:24,onClick:()=>d(N)},{default:()=>N.icon&&N.icon()}):!1,y=N=>{e.qiankun?window.location.href=`${e.mainUrl||"https://www.partexiot.cn"}${N}`:n.replace(N)},w=()=>{i.value=!1},_=()=>{let N=se.platformMainUrl||se.platformUrl;se.platformMainUrl==="auto"&&($.industryCategory==="0"?N="https://www.partexiot.cn":$.industryCategory==="1"&&(N="https://printing.partexiot.cn"));const A=[{label:()=>t("Platform.iot"),key:N}];return $.platform_tdm&&A.push({label:()=>t("Platform.tdm"),key:"/tdm/home"}),$.platform_qms&&A.push({label:()=>t("Platform.qms"),key:"/qms/home"}),$.platform_twin&&A.push({label:()=>t("Platform.twin"),key:"/twin/home"}),$.platform_maintain&&A.push({label:()=>t("Platform.maintain"),key:"/maintain/home"}),$.platform_order&&A.push({label:()=>t("Platform.order"),key:"/order/home"}),A},S=()=>{const N=[{label:$.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${se.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return se.language&&N.push({label:`${t("Common.dropdownMenu.language")} ${se.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),N.push({label:t("Common.dropdownMenu.software"),key:"app",children:[{label:t("Common.dropdownMenu.android"),key:"android"},{label:t("Common.dropdownMenu.ios"),key:"ios"},{label:t("Common.dropdownMenu.chrome"),key:"chrome"},{label:t("Common.dropdownMenu.edge"),key:"edge"},{label:t("Common.dropdownMenu.dashboard_IoT"),key:"dashboard_IoT"},{label:t("Common.dropdownMenu.dashboard_Prt"),key:"dashboard_Prt"}]}),e.report&&N.push({label:t("Common.dropdownMenu.report"),key:"report"}),N.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),N},x=async N=>{N==="logout"&&Gp(),N==="theme"&&c(!se.theme),N==="language"&&da(),N==="info"&&n.push("/custom/my"),N==="report"&&n.push("/custom/report"),N==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),N==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),N==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),N==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),N==="dashboard_IoT"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"),N==="dashboard_Prt"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip")},C=()=>{sG().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},T=()=>{if($.tenantStatus===0&&$.renewalStatus===0){const N=document.getElementById("app");N&&N.classList.add("outrange"),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>p.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${wr($.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if($.tenantStatus===2&&$.renewalStatus===0){let N=`您的订阅即将于${wr($.endTime)}到期,请联系管理员进行续订`,A=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];$.kind===99&&(N=`您的订阅即将于${wr($.endTime)}到期,为保证持续有效的提供服务请立即续订`,A=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),p.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})]),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>A}),closable:!1,content:N,title:"温馨提示"})}},b=()=>{n.push(se.platformUrl)};"backdropFilter"in document.documentElement.style||"WebkitBackdropFilter"in document.documentElement.style||document.body.classList.add("not-support-backdrop");const D=()=>{if($.tenantStatus===0){const N=document.body;N&&N.classList.add("outrange")}};return p.onMounted(()=>{T(),f(r.path),D(),u.value=_()}),p.watch(()=>r.path,N=>{f(N),D()}),p.watch(()=>se.needUpdate,N=>{if(N){s.value=setInterval(()=>{l.value=l.value-1,l.value<=0&&(clearInterval(window.versionMonitor),clearInterval(s.value),s.value=void 0,A.destroy())},1e3);const A=a.create({title:"检测到系统有新版本需要更新",content:()=>`是否立即更新?更新需要重新加载页面,请确保所有项目都已经保存完毕。${l.value}秒后自动关闭`,meta:wr(new Date,"yyyy-MM-dd hh:mm:ss"),onClose:()=>{clearInterval(window.versionMonitor)},action:()=>p.h(O.NFlex,{justify:"space-between"},{default:()=>[p.h(O.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),A.destroy()}},{default:()=>"稍后"}),p.h(O.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:$,commonStore:se,activeMenu:o,platformOption:u,showMenu:i,fnSetLang:da,setDropdownMenu:S,renderMenuLabel:v,renderMenuLabel2:m,renderMenuIcon:g,indexClick:b,platformClick:y,dropdownClick:x,changeTheme:c,closeModel:w}}}),CG={class:"oc-header"},xG={class:"menu"};function TG(e,t,r,n,a,o){const i=p.resolveComponent("IconGridDots"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NDropdown"),c=p.resolveComponent("IconNavigation"),f=p.resolveComponent("NMenu"),d=p.resolveComponent("Pop"),h=p.resolveComponent("Message"),v=p.resolveComponent("IconWeatherMoon"),m=p.resolveComponent("IconWeatherSunny"),g=p.resolveComponent("IconUser"),y=p.resolveComponent("NDrawerContent"),w=p.resolveComponent("NDrawer");return p.openBlock(),p.createElementBlock("header",CG,[e.platformOption.length>1?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover",placement:"bottom-start",size:"huge",options:e.platformOption,onSelect:e.platformClick},{default:p.withCtx(()=>[p.createVNode(l,{style:{padding:"0 14px 0 0"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0),p.createElementVNode("a",{href:"javascript:;",class:"logo",onClick:t[0]||(t[0]=(..._)=>e.indexClick&&e.indexClick(..._))}),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(..._)=>e.indexClick&&e.indexClick(..._))}," | "+p.toDisplayString(e.commonStore.platformName()),1)),p.createElementVNode("div",xG,[e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:0,onClick:t[2]||(t[2]=_=>e.showMenu=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})):(p.openBlock(),p.createBlock(f,{key:1,value:e.activeMenu,mode:"horizontal",options:e.menuOptions,"render-icon":e.renderMenuIcon,"render-label":e.renderMenuLabel,class:"oc-header-menu"},null,8,["value","options","render-icon","render-label"])),e.download&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(d,{key:2})):p.createCommentVNode("",!0),e.message&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(h,{key:3})):p.createCommentVNode("",!0),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:4,style:{"margin-left":"15px"},onClick:t[3]||(t[3]=_=>e.changeTheme(!e.commonStore.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1},512),[[p.vShow,e.commonStore.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(m)]),_:1},512),[[p.vShow,!e.commonStore.theme]])]),_:1})),e.commonStore.language&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:5,class:"com-header-icon",onClick:t[4]||(t[4]=_=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0),e.userStore.name?(p.openBlock(),p.createBlock(u,{key:6,trigger:"click",placement:"bottom-end",options:e.setDropdownMenu(),onSelect:e.dropdownClick},{default:p.withCtx(()=>[p.createVNode(l,{text:"",class:"user",title:e.userStore.name},p.createSlots({default:p.withCtx(()=>[e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(e.userStore.name),1)],64))]),_:2},[e.commonStore.isPad?{name:"icon",fn:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(g)]),_:1})]),key:"0"}:void 0]),1032,["title"])]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0)]),p.createVNode(w,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=_=>e.showMenu=_)},{default:p.withCtx(()=>[p.createVNode(y,{title:e.commonStore.platformName(),"native-scrollbar":!1,closable:""},{default:p.withCtx(()=>[p.createVNode(f,{value:e.activeMenu,"default-expand-all":!0,options:e.menuOptions,"render-label":e.renderMenuLabel2},null,8,["value","options","render-label"])]),_:1},8,["title"])]),_:1},8,["show"])])}const qS=Z(SG,[["render",TG]]),jS=e=>{const t=new FormData;return Object.keys(e).forEach(r=>{e.query&&r==="query"?t.append("query",JSON.stringify(e.query)):t.append(r,e[r])}),$p("api/manager/job/submit",t)},NG=e=>new Promise((t,r)=>{const n=Co(e);ct("api/manager/job/page",n).then(a=>{const o=So(a);t(o)}).catch(()=>{r()})}),DG=(e,t={})=>WS(e,t,"blob"),AG=p.defineComponent({name:"OcImporter",components:{IconDismiss:Fr,IconArrowClockwise:fa,IconMailInboxAdd:wo,IconCloudArrowDown:Zi,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NUpload:O.NUpload,NButton:O.NButton,NTooltip:O.NTooltip,NIcon:O.NIcon,NDataTable:O.NDataTable},props:{show:{required:!0,type:Boolean,default:!1},data:{required:!0,type:Object,default:()=>({type:"",file:""})}},emits:["update:show"],setup(e,{emit:t}){const{t:r}=Gt.useI18n(),n=O.useNotification(),a=p.ref(!1),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:"#",width:60,align:"center",key:"index",render(m,g){return p.h("span",{},{default:()=>g+1})}},{title:r("Common.importer.fileName"),key:"jobName",fixed:"left"},{title:r("Common.importer.status"),key:"jobStatus",width:120,render(m){let g=r("Common.processing");return m.jobStatus===1&&(g=r("Common.success")),m.jobStatus===2&&(g=r("Common.failed")),p.h("span",{},{default:()=>g})}},{title:r("Common.importer.createTime"),key:"commitTime",width:200,render(m){return p.h("div",{},{default:()=>wr(m.commitTime,"yyyy-MM-dd hh:mm:ss")})}},{title:r("Common.action"),key:"action",align:"center",fixed:"right",width:120,render(m){return Gr([{type:"custom",disabled:m.jobStatus===0,onClick:()=>{window.open(m.downloadUrl)},icon:_o,color:"success",tooltipText:()=>r("Common.importer.btnDownload")}])}}]),l=p.ref([]),u=()=>{t("update:show",!1)},c=m=>{i.value.page=m,h()},f=m=>{i.value.pageSize=m,i.value.page=1,h()},d=m=>new Promise((g,y)=>{m.file.file&&jS({jobType:"IMPORT",jobTypeName:e.data.type,jobParams:e.data.params,file:m.file.file}).then(()=>{h(),g()}).catch(()=>{h(),y()}),y()}),h=()=>{o.value=!0,NG({jobType:"IMPORT",jobTypeName:e.data.type,query:i.value}).then(m=>{o.value=!1,l.value=m.records,i.value=m.query}).catch(()=>{o.value=!1})},v=()=>{e.data.steam?DG(e.data.file).then(m=>{const g=document.createElement("a");g.style.display="none",g.download="刀组品号导入模板.xls",g.href=URL.createObjectURL(m),document.body.appendChild(g),g.click(),URL.revokeObjectURL(g.href),document.body.removeChild(g)}).catch(()=>{n.error({content:()=>r("Notice.error"),duration:3e3})}):window.open(`${e.data.file}?v=${Date.now()}`)};return p.watch(()=>e.show,m=>{a.value=m,m&&(i.value={page:1,pageCount:1,pageSize:30},h())}),{modal:a,columns:s,coldata:l,query:i,loading:o,init:h,closeModel:u,pageChange:c,pageSizeChange:f,beforeUpload:d,downloadFile:v}}}),MG={class:"oc-header-download"};function kG(e,t,r,n,a,o){const i=p.resolveComponent("IconMailInboxAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NUpload"),c=p.resolveComponent("IconCloudArrowDown"),f=p.resolveComponent("IconArrowClockwise"),d=p.resolveComponent("NTooltip"),h=p.resolveComponent("IconDismiss"),v=p.resolveComponent("NFlex"),m=p.resolveComponent("NDataTable"),g=p.resolveComponent("NCard"),y=p.resolveComponent("NModal");return p.openBlock(),p.createBlock(y,{show:e.modal,"onUpdate:show":t[0]||(t[0]=w=>e.modal=w),"on-mask-click":e.closeModel},{default:p.withCtx(()=>[p.createVNode(g,{style:{width:"900px"}},{header:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.importer.title"))+" ",1),p.createElementVNode("span",MG,p.toDisplayString(e.$t("Common.validDays")),1)]),"header-extra":p.withCtx(()=>[p.createVNode(v,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{"on-before-upload":e.beforeUpload,accept:".xlsx,.xls","show-file-list":!1},{default:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.file")),1)]),_:1})]),_:1},8,["on-before-upload"]),p.renderSlot(e.$slots,"default"),p.createVNode(l,{onClick:e.downloadFile},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.download")),1)]),_:1},8,["onClick"]),p.createVNode(d,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1}),p.createVNode(l,{quaternary:"",onClick:e.closeModel},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1},8,["onClick"])]),_:3})]),default:p.withCtx(()=>[p.createVNode(m,{columns:e.columns,data:e.coldata,pagination:e.query,loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":"500","max-height":"500","scroll-x":"600",remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:3})]),_:3},8,["show","on-mask-click"])}const Hp=Z(AG,[["render",kG]]),EG=p.defineComponent({name:"OcLogin",components:{NTabs:O.NTabs,NTabPane:O.NTabPane,NForm:O.NForm,NFormItem:O.NFormItem,NDropdown:O.NDropdown,NInput:O.NInput,NButton:O.NButton,NGrid:O.NGrid,NGi:O.NGi,NIcon:O.NIcon,NPopover:O.NPopover,IconWeatherSunny:Yi,IconWeatherMoon:Ui},props:{bg:{type:String,default:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png"},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Gt.useI18n(),t=O.useNotification(),r=Ct.useRouter(),n=p.ref(xt("loginTab","1")),a=p.ref(),o=p.ref(),i=p.ref(),s=p.ref(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref(!1),d=p.ref({phone:"",name:"",password:""}),h=p.ref({name:{required:!0,message:()=>e("Common.login.userNameMessage"),trigger:"blur"},phone:{required:!0,validator:(E,B)=>B?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(B):!1,message:()=>e("Common.login.mobileMessage"),trigger:"blur"},password:{required:!0,message:()=>e("Common.login.passwordMessage"),trigger:"input"}}),v=p.ref([]),m=p.ref([]),g=p.ref([]),y=p.ref([]),w=()=>{const E=xt("loginOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),v.value=B,m.value=B},_=()=>{const E=xt("phoneOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),g.value=B,y.value=B},S=E=>{Ht("token",E,0),Bu().then(B=>{t.success({content:()=>e("Notice.success"),duration:3e3}),B.kind!==1&&r.replace(se.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},x=()=>{var E,B;u.value||(u.value=!0,n.value==="0"?(E=o.value)==null||E.validate(R=>{R?u.value=!1:US({type:n.value,...d.value}).then(V=>{const G=xt("loginOption",{});G[d.value.name]=!0,Ht("loginOption",G,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}):(B=a.value)==null||B.validate(R=>{R?u.value=!1:US({type:n.value,...d.value}).then(V=>{const G=xt("phoneOption",{});G[d.value.name]=!0,Ht("phoneOption",G,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}))},C=E=>{d.value.name=E;const B=m.value.filter(R=>R.label.indexOf(E)>-1);v.value=B,B.length===0?f.value=!1:f.value=!0},T=E=>{d.value.name=E,f.value=!1,i.value.focus(),setTimeout(()=>{var B;(B=o.value)==null||B.restoreValidation()},80)},b=E=>{var B;v.value.length===0?f.value=!1:f.value=E,(B=o.value)==null||B.restoreValidation()},D=E=>{d.value.phone=E;const B=y.value.filter(R=>R.label.indexOf(E)>-1);g.value=B,B.length===0?c.value=!1:c.value=!0},N=E=>{d.value.phone=E,c.value=!1,s.value.focus(),setTimeout(()=>{var B;(B=a.value)==null||B.restoreValidation()},80)},A=E=>{var B;g.value.length===0?c.value=!1:c.value=E,(B=a.value)==null||B.restoreValidation()},M=E=>{l.value=E,To(E),Ht("theme",E,0)},I=E=>{var B,R;n.value=E,d.value={phone:"",name:"",password:""},Ht("loginTab",E,0),(B=o.value)==null||B.restoreValidation(),(R=a.value)==null||R.restoreValidation()},P=E=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>E.label}),p.h(Fr,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=xt("loginOption",{});delete R[E.label],Ht("loginOption",R,0),w();const V=d.value.name,G=m.value.filter(q=>q.label.indexOf(V)>-1);v.value=G}},{default:()=>""})]}),L=E=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>E.label}),p.h(Fr,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=xt("phoneOption",{});delete R[E.label],Ht("phoneOption",R,0),_();const V=d.value.name,G=y.value.filter(q=>q.label.indexOf(V)>-1);g.value=G}},{default:()=>""})]});return Vu(),bo("token"),w(),_(),{tabs:n,commonStore:se,pwdRef:i,pwdPhoneRef:s,formRef:o,formPhoneRef:a,formValue:d,formRules:h,showPhoneDropdown:c,showNameDropdown:f,optionsName:v,optionsPhone:g,loading:u,theme:l,submit:x,tabChange:I,nameChange:C,phoneChange:D,changeTheme:M,fnSetLang:da,dropNameSelect:T,dropPhoneSelect:N,showDropdownNameChange:b,showDropdownPhoneChange:A,renderDropdownNameLabel:P,renderDropdownPhoneLabel:L}}}),PG={class:"oc-login"},IG={class:"oc-login-left"},LG=["src"],OG={class:"oc-login-right"},RG={class:"oc-login-language"},BG=p.createElementVNode("div",{class:"oc-login-title"},null,-1),VG={class:"oc-login-platform"},$G={class:"oc-login-form"},FG=p.createElementVNode("br",null,null,-1),zG=p.createElementVNode("br",null,null,-1),GG={class:"oc-login-submit"},HG=["href"],WG=p.createElementVNode("div",{class:"oc-google-play"},null,-1),UG=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),YG=p.createElementVNode("div",{class:"oc-app-store"},null,-1),qG=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),jG={class:"oc-login-footer"},XG=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),ZG=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function KG(e,t,r,n,a,o){const i=p.resolveComponent("IconWeatherMoon"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("IconWeatherSunny"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NInput"),f=p.resolveComponent("NDropdown"),d=p.resolveComponent("NFormItem"),h=p.resolveComponent("NForm"),v=p.resolveComponent("NTabPane"),m=p.resolveComponent("NTabs"),g=p.resolveComponent("NPopover"),y=p.resolveComponent("NGi"),w=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",PG,[p.createElementVNode("div",IG,[p.createElementVNode("img",{src:e.bg,alt:"logo",class:"oc-login-img"},null,8,LG)]),p.createElementVNode("div",OG,[p.createElementVNode("div",RG,[p.createVNode(u,{onClick:t[0]||(t[0]=_=>e.changeTheme(!e.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1},512),[[p.vShow,e.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(l)]),_:1},512),[[p.vShow,!e.theme]])]),_:1}),e.commonStore.language?(p.openBlock(),p.createBlock(u,{key:0,onClick:t[1]||(t[1]=_=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0)]),BG,p.createElementVNode("div",VG,p.toDisplayString(e.commonStore.platformName()),1),p.createElementVNode("div",$G,[p.createVNode(m,{value:e.tabs,"on-update:value":e.tabChange,type:"segment","justify-content":"end",animated:""},{default:p.withCtx(()=>[p.createVNode(v,{name:"1",tab:e.$t("Common.login.mobile")},{default:p.withCtx(()=>[FG,p.createVNode(h,{ref:"formPhoneRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.mobile"),path:"phone"},{default:p.withCtx(()=>[p.createVNode(f,{show:e.showPhoneDropdown,options:e.optionsPhone,"render-label":e.renderDropdownPhoneLabel,width:"trigger",onClickoutside:t[5]||(t[5]=()=>{e.showPhoneDropdown=!1}),onSelect:e.dropPhoneSelect},{default:p.withCtx(()=>[p.createVNode(c,{value:e.formValue.phone,"onUpdate:value":t[2]||(t[2]=_=>e.formValue.phone=_),placeholder:e.$t("Common.login.mobilePlaceholder"),"on-update:value":e.phoneChange,onClick:t[3]||(t[3]=_=>e.showDropdownPhoneChange(!0)),onFocus:t[4]||(t[4]=_=>e.showDropdownPhoneChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.createVNode(c,{ref:"pwdPhoneRef",value:e.formValue.password,"onUpdate:value":t[6]||(t[6]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder"),onFocus:t[7]||(t[7]=_=>e.showDropdownPhoneChange(!1))},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"]),p.createVNode(v,{name:"0",tab:e.$t("Common.login.userName")},{default:p.withCtx(()=>[zG,p.createVNode(h,{ref:"formRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.userName"),path:"name"},{default:p.withCtx(()=>[p.createVNode(f,{show:e.showNameDropdown,options:e.optionsName,"render-label":e.renderDropdownNameLabel,width:"trigger",onClickoutside:t[11]||(t[11]=()=>{e.showNameDropdown=!1}),onSelect:e.dropNameSelect},{default:p.withCtx(()=>[p.createVNode(c,{value:e.formValue.name,"onUpdate:value":t[8]||(t[8]=_=>e.formValue.name=_),placeholder:e.$t("Common.login.userNamePlaceholder"),"on-update:value":e.nameChange,onClick:t[9]||(t[9]=_=>e.showDropdownNameChange(!0)),onFocus:t[10]||(t[10]=_=>e.showDropdownNameChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.createVNode(c,{ref:"pwdRef",value:e.formValue.password,"onUpdate:value":t[12]||(t[12]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"])]),_:1},8,["value","on-update:value"]),p.createElementVNode("div",GG,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.submit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.login.in")),1)]),_:1},8,["loading","onClick"])]),e.info.href?(p.openBlock(),p.createElementBlock("a",{key:0,href:e.info.href,class:"oc-login-other"},p.toDisplayString(e.info.text),9,HG)):p.createCommentVNode("",!0),p.createVNode(w,{"x-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[WG]),default:p.withCtx(()=>[UG]),_:1})]),_:1}),p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[YG]),default:p.withCtx(()=>[qG]),_:1})]),_:1})]),_:1})]),p.createElementVNode("footer",jG,[p.createTextVNode(" Copyright "),XG,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),ZG])])])}const XS=Z(EG,[["render",KG]]),JG=p.defineComponent({name:"OcNumberRoll",props:{value:{required:!0,type:[Number,String],default:0},duration:{type:Number,default:1e3},precision:{type:Number,default:0},format:{type:Function,default:void 0}},setup(e){const t=p.ref(!1),r=p.ref(0),n=s=>1-Math.pow(1-s,5),a=s=>e.format?e.format(s):s;function o(s,l,u=e.duration){const c=()=>{const d=performance.now(),h=Math.min(d-f,u),v=s+(l-s)*n(h/u);if(h===u){r.value=a(Number(e.value)),t.value=!1;return}const m=Number(v.toFixed(e.precision));r.value=a(m),requestAnimationFrame(c)},f=performance.now();c()}const i=(s=0,l=e.value)=>{t.value=!0,r.value=a(s),String(s)!==String(l)&&o(s,Number(l))};return p.watch(()=>e.value,(s,l)=>{i(Number(l)||0,Number(s))}),p.onMounted(()=>{i()}),{displayedValueRef:r}}});function QG(e,t,r,n,a,o){return p.toDisplayString(e.displayedValueRef)}const Wp=Z(JG,[["render",QG]]),e9=p.defineComponent({name:"OcLogo",components:{NGrid:O.NGrid,NGi:O.NGi,NDivider:O.NDivider,NumberRoll:Wp},props:{text:{type:String,default:"智能效率监测平台"}},setup(){const e=p.ref(Date.now()),t=p.ref(void 0),r=n=>wr(n,"yyyy-MM-dd hh:mm:ss");return p.onMounted(()=>{t.value=setInterval(()=>{e.value=Date.now()},1e3)}),p.onBeforeUnmount(()=>{clearInterval(t.value),t.value=void 0}),{time:e,numFormat:r}}}),t9=p.createElementVNode("div",{class:"oc-logo"},null,-1);function r9(e,t,r,n,a,o){const i=p.resolveComponent("NGi"),s=p.resolveComponent("NDivider"),l=p.resolveComponent("NumberRoll"),u=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(u,{cols:5,class:"oc-dashboard-logo"},{default:p.withCtx(()=>[p.createVNode(i,{span:"1",class:"flex-center-left"},{default:p.withCtx(()=>[t9]),_:1}),p.createVNode(i,{span:"3",class:"flex-center"},{default:p.withCtx(()=>[p.createVNode(s,{class:"oc-dashboard-title-show"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.text),1)]),_:1})]),_:1}),p.createVNode(i,{span:"1",class:"flex-center-right oc-time"},{default:p.withCtx(()=>[p.createVNode(l,{value:e.time,format:e.numFormat},null,8,["value","format"])]),_:1})]),_:1})}const ZS=Z(e9,[["render",r9]]);O.darkTheme.common.cardColor="#32323b",O.darkTheme.common.primaryColor="#b274ef",O.darkTheme.common.primaryColorHover="#b274ef",O.darkTheme.common.borderRadius="16px",O.darkTheme.common.borderRadiusSmall="8px",O.darkTheme.DataTable.tdColor="#2d2d31";const KS={common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}},JS=O.darkTheme,n9=p.defineComponent({name:"OcMain",components:{NConfigProvider:O.NConfigProvider,NDialogProvider:O.NDialogProvider,NNotificationProvider:O.NNotificationProvider},props:{hljs:{type:Object,default:void 0}},setup(){return{zhCN:O.zhCN,dateZhCN:O.dateZhCN,commonStore:se,lightTheme:KS,darkTheme:JS}}});function a9(e,t,r,n,a,o){const i=p.resolveComponent("NNotificationProvider"),s=p.resolveComponent("NDialogProvider"),l=p.resolveComponent("NConfigProvider");return p.openBlock(),p.createBlock(l,{theme:e.commonStore.theme?{name:"darkTheme"}:null,"theme-overrides":e.commonStore.theme?e.darkTheme:e.lightTheme,locale:e.commonStore.lang==="zh-CN"?e.zhCN:null,"date-locale":e.commonStore.lang==="zh-CN"?e.dateZhCN:null,hljs:e.hljs,"inline-theme-disabled":"",abstract:""},{default:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i,{placement:"top"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["theme","theme-overrides","locale","date-locale","hljs"])}const QS=Z(n9,[["render",a9]]),o9=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Hi(t.oldPassword),t.newPassword=Hi(t.newPassword),t.comfirmPassword=Hi(t.comfirmPassword),ct("api/auth/user/modifyPassword",t)},i9=e=>ct("api/auth/user/update",e),s9=p.defineComponent({name:"OcMy",components:{NGrid:O.NGrid,NGi:O.NGi,NForm:O.NForm,NFormItem:O.NFormItem,NInput:O.NInput,NButton:O.NButton},setup(){const{t:e}=Gt.useI18n(),t=O.useNotification(),r=p.ref(),n=p.ref(),a=p.ref(!1),o=p.ref({oldPassword:"",newPassword:"",comfirmPassword:""}),i=p.ref({oldPassword:{required:!0,message:()=>e("Common.my.oldPasswordMessage"),trigger:"blur"},newPassword:{required:!0,message:()=>e("Common.my.newPasswordMessage"),trigger:"blur"},comfirmPassword:{required:!0,message:()=>e("Common.my.checkPasswordMessage"),trigger:"blur"}}),s=p.ref($),l=p.ref({email:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[0-9a-zA-Z_.-]+[@][0-9a-zA-Z_.-]+([.][a-zA-Z]+){1,2}$/.test(d):!0,message:()=>e("Common.my.emailMessage")},phone:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[1][3,4,5,7,8,9][0-9]{9}$/.test(d):!0,message:()=>e("Common.my.phoneMessage")}});return{formRef:n,pwdRef:r,pwdValue:o,formValue:s,pwdRules:i,formRules:l,loading:a,pwdSubmit:()=>{var f;a.value||(a.value=!0,(f=r.value)==null||f.validate(d=>{d?a.value=!1:o9(o.value).then(()=>{var h;o.value={oldPassword:"",newPassword:"",comfirmPassword:""},(h=r.value)==null||h.restoreValidation(),t.success({content:()=>e("Notice.success"),duration:3e3}),setTimeout(()=>{window.location.href="/login"},1e3)}).catch(()=>{a.value=!1})}))},formSubmit:()=>{var f;a.value||(a.value=!0,(f=n.value)==null||f.validate(d=>{d?a.value=!1:i9(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,Bu().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),l9={class:"com-card"},u9={class:"com-title"},c9=p.createElementVNode("br",null,null,-1),f9={class:"text-right"},h9={class:"com-card"},d9={class:"com-title"},p9=p.createElementVNode("br",null,null,-1),v9={class:"text-right"};function g9(e,t,r,n,a,o){const i=p.resolveComponent("NInput"),s=p.resolveComponent("NFormItem"),l=p.resolveComponent("NForm"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NGi"),f=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(f,{"x-gap":"15","y-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",l9,[p.createElementVNode("div",u9,p.toDisplayString(e.$t("Common.my.title")),1),c9,p.createVNode(l,{ref:"formRef",model:e.formValue,rules:e.formRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.tenantCode"),path:"tenantLoginCode"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.tenantLoginCode,"onUpdate:value":t[0]||(t[0]=d=>e.formValue.tenantLoginCode=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.tenantName"),path:"tenantName"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.tenantName,"onUpdate:value":t[1]||(t[1]=d=>e.formValue.tenantName=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.name"),path:"name"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.name,"onUpdate:value":t[2]||(t[2]=d=>e.formValue.name=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.email"),path:"email"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.email,"onUpdate:value":t[3]||(t[3]=d=>e.formValue.email=d),placeholder:"邮箱"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.realName"),path:"realName"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.realName,"onUpdate:value":t[4]||(t[4]=d=>e.formValue.realName=d),placeholder:"真实姓名"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.phone"),path:"phone"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.phone,"onUpdate:value":t[5]||(t[5]=d=>e.formValue.phone=d),placeholder:"手机"},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),p.createElementVNode("div",f9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.formSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1}),p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",h9,[p.createElementVNode("div",d9,p.toDisplayString(e.$t("Common.my.password")),1),p9,p.createVNode(l,{ref:"pwdRef",model:e.pwdValue,rules:e.pwdRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.oldPassword"),path:"oldPassword"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.pwdValue.oldPassword,"onUpdate:value":t[6]||(t[6]=d=>e.pwdValue.oldPassword=d),type:"password",placeholder:e.$t("Common.my.oldPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.newPassword"),path:"newPassword"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.pwdValue.newPassword,"onUpdate:value":t[7]||(t[7]=d=>e.pwdValue.newPassword=d),type:"password",placeholder:e.$t("Common.my.newPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.checkPassword"),path:"comfirmPassword"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.pwdValue.comfirmPassword,"onUpdate:value":t[8]||(t[8]=d=>e.pwdValue.comfirmPassword=d),type:"password",placeholder:e.$t("Common.my.checkPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),p.createElementVNode("div",v9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.pwdSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1})]),_:1})}const eC=Z(s9,[["render",g9]]);function m9(e){return new Promise((t,r)=>{ct("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const y9=p.defineComponent({name:"OcReport",components:{NFlex:O.NFlex,NDataTable:O.NDataTable,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel},setup(){const{t:e}=Gt.useI18n(),t=p.ref(!0),r=O.useNotification(),n=p.ref([{title:"#",width:60,align:"center",key:"index",render(l,u){return p.h("span",{},{default:()=>u+1})}},{title:"名称",key:"name"},{title:"备注",key:"content"},{title:"操作",key:"action",align:"center",fixed:"right",width:120,render(l){return Gr([{type:"custom",onClick:()=>{i(l.key)},icon:_o,color:"success",tooltipText:"下载"}])}}]),a=p.ref([]),o=p.ref([Date.now(),Date.now()]),i=l=>{t.value=!0,jS({jobType:"EXPORT",jobTypeName:l,jobParams:JSON.stringify({startDate:o.value[0],endDate:o.value[1]})}).then(()=>{t.value=!1,r.success({content:()=>e("Notice.success"),duration:3e3}),ic(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return m9("individuation_report_download").then(l=>{a.value=l.map(u=>({key:u.key,name:u.name,content:"默认导出最近30天的数据。每个企业租户下的所有账号,每天累计最多下载10次,采用异步下载"})),t.value=!1}).catch(()=>{t.value=!1}),{columns:n,columnData:a,loading:t,range:o,isRangeDateDisabled:s}}}),_9={class:"com-card"},w9=p.createElementVNode("br",null,null,-1);function b9(e,t,r,n,a,o){const i=p.resolveComponent("NInputGroupLabel"),s=p.resolveComponent("NDatePicker"),l=p.resolveComponent("NInputGroup"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("n-data-table");return p.openBlock(),p.createElementBlock("div",_9,[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(i,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode("日期")]),_:1}),p.createVNode(s,{value:e.range,"onUpdate:value":t[0]||(t[0]=f=>e.range=f),type:"daterange","is-date-disabled":e.isRangeDateDisabled,style:{width:"300px"}},null,8,["value","is-date-disabled"])]),_:1})]),_:1}),w9,p.createVNode(c,{columns:e.columns,data:e.columnData,loading:e.loading,"min-height":"calc(100vh - 180px)","max-height":"calc(100vh - 180px)"},null,8,["columns","data","loading"])])}const tC=Z(y9,[["render",b9]]),S9=p.defineComponent({name:"OcScan",components:{NButton:O.NButton,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NIcon:O.NIcon,IconDismiss:Fr},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(),n=p.ref(!1),a=p.ref(!1),o=O.useNotification(),i=1280,s=720;let l=null,u=null;const c=(_,S)=>{l.beginPath(),l.moveTo(_.x,_.y),l.lineTo(S.x,S.y),l.lineWidth=2,l.strokeStyle="green",l.stroke()},f=()=>{if(u&&u.readyState===u.HAVE_ENOUGH_DATA){u.width=i,u.height=s,l.drawImage(r.value,0,0,i,s);const _=l.getImageData(0,0,i,s);try{const S=bC(_.data,i,s);if(S){const{location:x,data:C}=S;c(x.topLeftCorner,x.topRightCorner),c(x.topRightCorner,x.bottomRightCorner),c(x.bottomRightCorner,x.bottomLeftCorner),c(x.bottomLeftCorner,x.topLeftCorner),t("on-update:value",C),h()}}catch{o.error({content:"扫描失败,请重试",duration:3e3})}}d()},d=()=>{a.value&&requestAnimationFrame(f)},h=()=>{r.value&&r.value.srcObject&&(r.value.srcObject.getTracks().forEach(_=>_.stop()),a.value=!1,l=null,u=null,r.value.srcObject=null,r.value.src=null),n.value=!1},v=_=>{r.value.srcObject!==void 0?r.value.srcObject=_:window.videoEl.mozSrcObject!==void 0?r.value.mozSrcObject=_:window.URL.createObjectURL?r.value.src=window.URL.createObjectURL(_):window.webkitURL?r.value.src=window.webkitURL.createObjectURL(_):r.value.src=_,r.value.play().then(d)},m=()=>{n.value=!0,p.nextTick(()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?(a.value=!0,u=document.getElementById("oc-scan-canvas"),u&&(l=u.getContext("2d",{willReadFrequently:!0})),navigator.mediaDevices.getUserMedia({video:!0}).then(v).catch(function(_){console.log(_)})):(a.value=!1,o.error({content:"您的设备未检测到摄像头,无法进行扫码识别",duration:3e3}))})};let g="",y=0;function w(_){if(_.code==="Enter"){g&&t("on-update:value",g),g="",y=0;return}let S=new Date().getTime();y>0&&(S-y<=100?g+=_.key:S-y>500&&(g="",y=0)),y=S}return p.onMounted(()=>{window.addEventListener("keypress",w)}),p.onBeforeUnmount(()=>{window.removeEventListener("keypress",w),h()}),{videoRef:r,modal:n,loading:a,doScan:m,closeAll:h}}}),C9=p.createElementVNode("div",{class:"oc-scan-canvas-main"},[p.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),x9={class:"oc-scan-video"},T9={ref:"videoRef",playsInline:""};function N9(e,t,r,n,a,o){const i=p.resolveComponent("NButton"),s=p.resolveComponent("IconDismiss"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NCard"),f=p.resolveComponent("NModal");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(i,{type:"primary",loading:e.loading,onClick:e.doScan},{default:p.withCtx(()=>[p.createTextVNode("扫一扫")]),_:1},8,["loading","onClick"]),p.createVNode(f,{show:e.modal,"onUpdate:show":t[0]||(t[0]=d=>e.modal=d),"on-mask-click":e.closeAll},{default:p.withCtx(()=>[p.createVNode(c,{style:{width:"1320px"}},{header:p.withCtx(()=>[p.createTextVNode("扫一扫")]),"header-extra":p.withCtx(()=>[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(i,{quaternary:"",onClick:e.closeAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1},8,["onClick"])]),_:1})]),default:p.withCtx(()=>[C9]),_:1})]),_:1},8,["show","on-mask-click"]),p.createElementVNode("div",x9,[p.createElementVNode("video",T9,null,512)])],64)}const rC=Z(S9,[["render",N9]]),D9=p.defineComponent({name:"OcTimePickRange",components:{NInputGroup:O.NInputGroup,NTimePicker:O.NTimePicker},props:{value:{required:!0,type:Array,default:()=>[]},format:{required:!1,type:String,default:"HH:mm"},disabled:{required:!1,type:Boolean,default:!1},clearable:{required:!1,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(null),n=p.ref(null),a=i=>{r.value=i,t("on-update:value",[r.value,n.value])},o=i=>{n.value=i,t("on-update:value",[r.value,n.value])};return p.onMounted(()=>{e.value&&(r.value=e.value[0],n.value=e.value[1])}),p.watch(()=>e.value,i=>{i&&(r.value=i[0],n.value=i[1])}),{startTime:r,endTime:n,updateStartValue:a,updateEndValue:o}}}),A9=p.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function M9(e,t,r,n,a,o){const i=p.resolveComponent("NTimePicker"),s=p.resolveComponent("NInputGroup");return p.openBlock(),p.createBlock(s,{class:"oc-time-picker"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.startTime,clearable:e.clearable,"on-update:value":e.updateStartValue,format:e.format,disabled:e.disabled},null,8,["value","clearable","on-update:value","format","disabled"]),A9,p.createVNode(i,{value:e.endTime,clearable:e.clearable,format:e.format,disabled:e.disabled,"on-update:value":e.updateEndValue},null,8,["value","clearable","format","disabled","on-update:value"])]),_:1})}const k9=Z(D9,[["render",M9]]),E9=p.defineComponent({name:"OcSearchBarItem",components:{NIcon:O.NIcon,NButton:O.NButton,NGrid:O.NGrid,NGridItem:O.NGridItem,NInput:O.NInput,NInputNumber:O.NInputNumber,NSelect:O.NSelect,NTooltip:O.NTooltip,NPopover:O.NPopover,NDataTable:O.NDataTable,NCascader:O.NCascader,NTreeSelect:O.NTreeSelect,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel,OcTimePickRange:k9,IconArrowDown:Ji,IconArrowUp:ec},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t}){const{t:r}=Gt.useI18n(),n=p.ref({}),a=p.ref(!0),o=p.ref(!0),i=p.ref(0),s=p.ref({}),l=p.ref({}),u=p.ref([{key:"label"}]),c=y=>y.fallbackOption?typeof y.fallbackOption=="boolean"?()=>({label:r("Common.message.all"),value:"",disabled:!0}):y.fallbackOption:!1,f=(y,w,_)=>{const S=_.options.filter(x=>String(x.label).toLocaleLowerCase().indexOf(String(w).toLocaleLowerCase())>-1)||[];s.value[y].options=S,S.length===0?s.value[y].display=!1:s.value[y].display=!0},d=y=>{var x;Object.keys(y).forEach(C=>{var b,D,N;const T=y[C];T.show=T.show??!0,T.type==="dropdown"&&(s.value[C]={display:!1,options:T.options}),T.type==="select"&&T.fallbackOption&&T.multiple&&l.value[C].length===0&&(l.value[C]=[""]),T.type==="group"&&(l.value[C]||(l.value[C]=T.options[0].value),T.inputTemp=T.input.options[l.value[C]?l.value[C]:T.options[0].value],((b=T.inputTemp)==null?void 0:b.type)==="select"&&((D=T.inputTemp)!=null&&D.fallbackOption)&&((N=T.inputTemp)!=null&&N.multiple)&&l.value[T.input.key].length===0&&(l.value[T.input.key]=[""]))});let w=0;const _=e.small?1:e.cols,S=Object.keys(y);if(Object.keys(y).length>0)for(let C=0;C<=_;C++)(x=y[S[C]])!=null&&x.show&&(w=w+1);i.value=_-w>=0?_-w-1:-1,w>_?o.value=!0:o.value=!1,e.small&&(a.value=!1,o.value=!1),n.value=y},h=y=>{s.value[y].options.length===0?s.value[y].display=!1:s.value[y].display=!0},v=()=>{a.value=!a.value},m=()=>{const y=JSON.stringify(l.value,(w,_)=>_===void 0?null:Array.isArray(_)?_.filter(S=>S!==""):_);return JSON.parse(y)},g=y=>{y&&(l.value=y)};return t({getValues:m,setValues:g,dataFactory:d}),{more:o,offset:i,dataList:n,collapsed:a,searchData:l,dropDisplay:s,columnsPopover:u,showMore:v,setValues:g,dropValueChange:f,dropDisplayToggle:h,getDefaultDate:ha,selectFallback:c}}}),P9={class:"oc-search-bar-line"},I9={key:0,class:"oc-search-action-more"};function L9(e,t,r,n,a,o){const i=p.resolveComponent("NGridItem"),s=p.resolveComponent("NInputGroupLabel"),l=p.resolveComponent("NInput"),u=p.resolveComponent("NInputNumber"),c=p.resolveComponent("NSelect"),f=p.resolveComponent("NDataTable"),d=p.resolveComponent("NPopover"),h=p.resolveComponent("NCascader"),v=p.resolveComponent("NTreeSelect"),m=p.resolveComponent("OcTimePickRange"),g=p.resolveComponent("NDatePicker"),y=p.resolveComponent("NInputGroup"),w=p.resolveComponent("NGrid"),_=p.resolveComponent("IconArrowDown"),S=p.resolveComponent("NIcon"),x=p.resolveComponent("IconArrowUp"),C=p.resolveComponent("NButton"),T=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",P9,[p.createVNode(w,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed},{default:p.withCtx(()=>[e.offset>-1?(p.openBlock(),p.createBlock(i,{key:0,offset:e.offset},null,8,["offset"])):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.dataList,(b,D,N)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:`${D}_${N}`},[b.show?(p.openBlock(),p.createBlock(i,{key:0,span:e.small?1:b.span||1},{default:p.withCtx(()=>[b.type!=="group"?(p.openBlock(),p.createBlock(y,{key:0},{default:p.withCtx(()=>{var A;return[p.createVNode(s,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),b.type==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),"on-update:value":M=>{b.updateValue?b.updateValue(M.trim(),JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M.trim()},clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),min:b==null?void 0:b.min,max:b==null?void 0:b.max,step:(b==null?void 0:b.step)||1,"show-button":(b==null?void 0:b.showButton)||!0,"update-value-on-input":!1,validator:b==null?void 0:b.validator,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0},p.createSlots({_:2},[b!=null&&b.suffix?{name:"suffix",fn:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(b==null?void 0:b.suffix),1)]),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="select"?(p.openBlock(),p.createBlock(c,{key:2,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,"show-checkmark":!1,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,multiple:b.multiple,"fallback-option":e.selectFallback(b),"on-update:value":M=>{let I=M,P=M;if(b.multiple){let L=M.filter(E=>E!=="");L.length===0?(I=[""],P=[]):(I=L,P=L)}b.updateValue?b.updateValue(P,JSON.parse(JSON.stringify(e.searchData)),L=>e.setValues(L)):e.searchData[D]=I},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="dropdown"?(p.openBlock(),p.createBlock(d,{key:3,width:"trigger",trigger:"manual",style:{padding:"5px"},"show-arrow":!1,show:(A=e.dropDisplay[D])==null?void 0:A.display,"on-clickoutside":()=>{e.dropDisplay[D].display=!1}},{trigger:p.withCtx(()=>[p.createVNode(l,{value:e.searchData[D],disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),clearable:b.clearable??!0,"on-update:value":M=>{e.searchData[D]=M.trim(),e.dropValueChange(D,M.trim(),b)},onClick:M=>e.dropDisplayToggle(D),onFocus:M=>e.dropDisplayToggle(D)},null,8,["value","disabled","placeholder","clearable","on-update:value","onClick","onFocus"])]),default:p.withCtx(()=>{var M;return[p.createVNode(f,{columns:e.columnsPopover,data:((M=e.dropDisplay[D])==null?void 0:M.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":I=>({style:"cursor: pointer;",onClick:()=>{e.searchData[D]=I.value,e.dropDisplay[D].display=!1}}),size:"small","virtual-scroll":"",class:"oc-popover-table"},null,8,["columns","data","row-props"])]}),_:2},1032,["show","on-clickoutside"])):p.createCommentVNode("",!0),b.type==="cascader"?(p.openBlock(),p.createBlock(h,{key:4,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="treeSelect"?(p.openBlock(),p.createBlock(v,{key:5,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="timePicker"?(p.openBlock(),p.createBlock(m,{key:6,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,"onOnUpdate:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=[...M]},format:b==null?void 0:b.format,clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","onOnUpdate:value","format","clearable"])):p.createCommentVNode("",!0),b.type==="datePicker"?(p.openBlock(),p.createBlock(g,{key:7,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),type:b.dateType,format:b==null?void 0:b.format,"is-date-disabled":b==null?void 0:b.isDateDisabled,shortcuts:b==null?void 0:b.shortcuts,"update-value-on-close":b.dateType!=="year","on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"close-on-select":""},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0),b.type==="group"?(p.openBlock(),p.createBlock(y,{key:1},{default:p.withCtx(()=>{var A,M,I,P,L,E,B,R,V,G,q,J,z,ee,De,de,Ge,rt,Ve,ke,re,ue,St,Be,nr,zt,gn,Fu,Vr,zu,mn,zi,yo;return[p.createVNode(c,{value:e.searchData[D],"onUpdate:value":Se=>e.searchData[D]=Se,options:b.options,"show-checkmark":!1,style:p.normalizeStyle(b.width?typeof b.width=="number"?{width:`${b.width}px`}:{width:b.width}:{}),"on-update:value":Se=>{if(b.inputTemp=b.input.options[Se],b.inputTemp.type==="datePicker"){let Le=0;(b.inputTemp.dateType.indexOf("date")>-1||b.inputTemp.dateType.indexOf("quarter")>-1||b.inputTemp.dateType.indexOf("week")>-1)&&(Le=e.getDefaultDate()),b.inputTemp.dateType.indexOf("month")>-1&&(Le=e.getDefaultDate(void 0,void 0,1)),b.inputTemp.dateType.indexOf("year")>-1&&(Le=e.getDefaultDate(void 0,1,1)),b.inputTemp.dateType.indexOf("range")>-1&&(Le=[Le,Le]),e.searchData[b.input.key]=Le}else b.inputTemp.type==="number"?e.searchData[b.input.key]=null:b.inputTemp.type==="select"&&b.inputTemp.fallbackOption&&b.inputTemp.multiple?e.searchData[b.input.key]=[""]:e.searchData[b.input.key]="";b.updateValue?b.updateValue(Se,JSON.parse(JSON.stringify(e.searchData)),Le=>e.setValues(Le)):e.searchData[D]=Se},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((A=b.inputTemp)==null?void 0:A.type)==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,disabled:(M=b.inputTemp)==null?void 0:M.disabled,placeholder:typeof((I=b.inputTemp)==null?void 0:I.placeholder)=="string"?(P=b.inputTemp)==null?void 0:P.placeholder:((L=b.inputTemp)==null?void 0:L.placeholder)&&((E=b.inputTemp)==null?void 0:E.placeholder()),"on-update:value":Se=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(Se.trim(),JSON.parse(JSON.stringify(e.searchData)),$r=>e.setValues($r)):e.searchData[b.input.key]=Se.trim()},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),((B=b.inputTemp)==null?void 0:B.type)==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,disabled:(R=b.inputTemp)==null?void 0:R.disabled,placeholder:typeof((V=b.inputTemp)==null?void 0:V.placeholder)=="string"?(G=b.inputTemp)==null?void 0:G.placeholder:((q=b.inputTemp)==null?void 0:q.placeholder)&&((J=b.inputTemp)==null?void 0:J.placeholder()),min:(z=b.inputTemp)==null?void 0:z.min,max:(ee=b.inputTemp)==null?void 0:ee.max,step:((De=b.inputTemp)==null?void 0:De.step)||1,"show-button":((de=b.inputTemp)==null?void 0:de.showButton)||!0,"update-value-on-input":!1,validator:(Ge=b.inputTemp)==null?void 0:Ge.validator,"on-update:value":Se=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(Se,JSON.parse(JSON.stringify(e.searchData)),$r=>e.setValues($r)):e.searchData[b.input.key]=Se},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},p.createSlots({_:2},[(rt=b.inputTemp)!=null&&rt.suffix?{name:"suffix",fn:p.withCtx(()=>{var Se;return[p.createTextVNode(p.toDisplayString((Se=b.inputTemp)==null?void 0:Se.suffix),1)]}),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):p.createCommentVNode("",!0),((Ve=b.inputTemp)==null?void 0:Ve.type)==="datePicker"?(p.openBlock(),p.createBlock(g,{key:2,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,disabled:(ke=b.inputTemp)==null?void 0:ke.disabled,placeholder:typeof((re=b.inputTemp)==null?void 0:re.placeholder)=="string"?(ue=b.inputTemp)==null?void 0:ue.placeholder:((St=b.inputTemp)==null?void 0:St.placeholder)&&((Be=b.inputTemp)==null?void 0:Be.placeholder()),type:b.inputTemp.dateType,format:(nr=b.inputTemp)==null?void 0:nr.format,"is-date-disabled":(zt=b.inputTemp)==null?void 0:zt.isDateDisabled,shortcuts:(gn=b.inputTemp)==null?void 0:gn.shortcuts,"update-value-on-close":b.inputTemp.dateType!=="year","on-update:value":Se=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(Se,JSON.parse(JSON.stringify(e.searchData)),$r=>e.setValues($r)):e.searchData[b.input.key]=Se},clearable:b.inputTemp.clearable??!0,"close-on-select":"",style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):p.createCommentVNode("",!0),((Fu=b.inputTemp)==null?void 0:Fu.type)==="select"?(p.openBlock(),p.createBlock(c,{key:3,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,"show-checkmark":!1,disabled:(Vr=b.inputTemp)==null?void 0:Vr.disabled,placeholder:typeof((zu=b.inputTemp)==null?void 0:zu.placeholder)=="string"?(mn=b.inputTemp)==null?void 0:mn.placeholder:((zi=b.inputTemp)==null?void 0:zi.placeholder)&&((yo=b.inputTemp)==null?void 0:yo.placeholder()),options:b.inputTemp.options,multiple:b.inputTemp.multiple,"fallback-option":e.selectFallback(b.inputTemp),"on-update:value":Se=>{var yC,_C,wC;let Le=Se,$r=Se;if(((yC=b.inputTemp)==null?void 0:yC.type)==="select"&&((_C=b.inputTemp)!=null&&_C.multiple)){let Gi=Se.filter(mW=>mW!=="");Gi.length===0?(Le=[""],$r=[]):(Le=Gi,$r=Gi)}(wC=b.inputTemp)!=null&&wC.updateValue?b.inputTemp.updateValue($r,JSON.parse(JSON.stringify(e.searchData)),Gi=>e.setValues(Gi)):e.searchData[b.input.key]=Le},clearable:b.inputTemp.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0)]),_:2},1032,["span"])):p.createCommentVNode("",!0)],64))),128))]),_:1},8,["cols","collapsed"]),e.more?(p.openBlock(),p.createElementBlock("div",I9,[p.createVNode(T,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(C,{onClick:e.showMore},{icon:p.withCtx(()=>[e.collapsed?(p.openBlock(),p.createBlock(S,{key:0},{default:p.withCtx(()=>[p.createVNode(_)]),_:1})):(p.openBlock(),p.createBlock(S,{key:1},{default:p.withCtx(()=>[p.createVNode(x)]),_:1}))]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.more")),1)]),_:1})])):p.createCommentVNode("",!0)])}const O9=Z(E9,[["render",L9]]),R9=p.defineComponent({name:"OcSearchBarPop",props:{value:{required:!0,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){return{close:()=>{t("on-update:value",!1)}}}}),B9={class:"oc-search-bar-pop"},V9={class:"oc-search-bar-pop-plan"},$9={class:"oc-search-bar-pop-action"},F9={class:"oc-search-bar-pop-content"};function z9(e,t,r,n,a,o){return p.withDirectives((p.openBlock(),p.createElementBlock("div",B9,[p.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...i)=>e.close&&e.close(...i))}),p.createElementVNode("div",V9,[p.createElementVNode("div",$9,[p.renderSlot(e.$slots,"action")]),p.createElementVNode("div",F9,[p.renderSlot(e.$slots,"default")])])],512)),[[p.vShow,e.value]])}const G9=Z(R9,[["render",z9]]),H9=p.defineComponent({name:"OcSearchBar",components:{NFlex:O.NFlex,NIcon:O.NIcon,NTooltip:O.NTooltip,NButton:O.NButton,NPopover:O.NPopover,IconArrowDown:Ji,IconReset:tc,IconSearch:qi,IconFilter:ji,OcSearchBarItem:O9,OcSearchBarPop:G9},props:{value:{required:!0,type:Object,default:()=>({})},defaultValue:{required:!0,type:Object,default:()=>({})},data:{required:!0,type:Object,default:()=>({})},loading:{type:Boolean,default:!1},cols:{type:Number,default:4},small:{type:Boolean,default:!1},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,slots:r,expose:n}){const a=Ct.useRoute(),o=Ct.useRouter(),i=p.ref(),s=p.ref({}),l=p.ref(!1),u=p.ref(!!r.header),c=p.ref(!!r.action),f=(m=!1)=>{if(!e.loading&&i.value){const g=i.value.getValues();if(!m&&g.query&&(g.query.page=1),t("update:loading",!0),t("on-update:value",g),e.cache){const y=a.path,w=zr(g),_=zr(y);o.replace(`${y}?cursor=${w}&routerId=${_}`)}}},d=()=>{e.loading||(h(JSON.parse(JSON.stringify(e.defaultValue))),f())},h=(m,g=!1)=>{if(i.value&&i.value.setValues(JSON.parse(JSON.stringify(m))),v(e.data),g)o.replace(a.path);else if(e.cache){const y=a.path,w=zr(m),_=zr(y);o.replace(`${y}?cursor=${w}&routerId=${_}`)}},v=m=>{i.value&&i.value.dataFactory(m)};return n({setValues:h,setData:v}),p.onMounted(()=>{setTimeout(()=>{let m=e.value;if(e.cache){const{cursor:g,routerId:y}=a.query;if(g&&y){const w=a.path,_=xo(y),S=xo(g);_===w&&(m=S)}}i.value&&i.value.setValues(JSON.parse(JSON.stringify(m))),i.value&&i.value.dataFactory(e.data),e.autoSubmit&&f(!0)},100)}),{itemRef:i,drawer:l,isSlotHeader:u,isSlotAction:c,commonStore:se,itemData:s,doSearch:f,clearAll:d}}}),W9={key:0,class:"oc-search-bar-title"},U9={key:1,class:"oc-search-bar-popover"},Y9={key:0},q9={class:"oc-search-bar-center"};function j9(e,t,r,n,a,o){const i=p.resolveComponent("OcSearchBarItem"),s=p.resolveComponent("IconArrowDown"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NButton"),c=p.resolveComponent("IconReset"),f=p.resolveComponent("IconSearch"),d=p.resolveComponent("NFlex"),h=p.resolveComponent("OcSearchBarPop"),v=p.resolveComponent("IconFilter"),m=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["oc-search-bar",{small:!e.isSlotHeader&&(e.small||e.commonStore.isMobile)}]),onKeyup:t[6]||(t[6]=p.withKeys(g=>e.doSearch(!1),["enter"]))},[e.isSlotHeader?(p.openBlock(),p.createElementBlock("span",W9,[p.renderSlot(e.$slots,"header")])):p.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(p.openBlock(),p.createElementBlock("div",U9,[p.createVNode(h,{value:e.drawer,"onUpdate:value":t[2]||(t[2]=g=>e.drawer=g),"onOnUpdate:value":t[3]||(t[3]=g=>e.drawer=g)},{action:p.withCtx(()=>[p.createVNode(d,{size:15,justify:"space-between",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{onClick:t[0]||(t[0]=g=>e.drawer=!1)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1}),e.resetButton?(p.openBlock(),p.createBlock(u,{key:0,loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])):p.createCommentVNode("",!0),e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(u,{key:1,loading:e.loading,class:"button-primary",onClick:t[1]||(t[1]=()=>{e.drawer=!1,e.doSearch(!1)})},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])):p.createCommentVNode("",!0)]),_:1}),e.isSlotAction?(p.openBlock(),p.createElementBlock("br",Y9)):p.createCommentVNode("",!0),e.isSlotAction?(p.openBlock(),p.createBlock(d,{key:1,size:15,justify:"space-between",class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})):p.createCommentVNode("",!0)]),default:p.withCtx(()=>[p.createVNode(i,{ref:"itemRef",loading:e.loading,small:""},null,8,["loading"])]),_:3},8,["value"]),p.createVNode(u,{onClick:t[4]||(t[4]=g=>e.drawer=!0)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1})])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[p.createElementVNode("div",q9,[p.createVNode(i,{ref:"itemRef",loading:e.loading,cols:e.cols},null,8,["loading","cols"]),p.createVNode(d,{size:5,wrap:!1,style:{"padding-left":"15px"}},{default:p.withCtx(()=>[e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(m,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:t[5]||(t[5]=g=>e.doSearch(!1))},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1})):p.createCommentVNode("",!0),e.resetButton?(p.openBlock(),p.createBlock(m,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.reset")),1)]),_:1})):p.createCommentVNode("",!0)]),_:1})]),p.createVNode(d,{size:0,wrap:!1,class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})],64))],34)}const Up=Z(H9,[["render",j9]]),X9=p.defineComponent({name:"OcSkeleton",components:{NGrid:O.NGrid,NGi:O.NGi,NSkeleton:O.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),Z9={class:"com-skeleton"};function K9(e,t,r,n,a,o){const i=p.resolveComponent("NSkeleton"),s=p.resolveComponent("NGi"),l=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",Z9,[p.createVNode(l,{"x-gap":"15","y-gap":"15",cols:e.cols,"item-responsive":"",responsive:"screen"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num,(u,c)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:`skeleton_${c}`},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num[c][0],(f,d)=>(p.openBlock(),p.createBlock(s,{key:`skeleton_${c}_${d}`,span:`${e.cols/2} m:2 l:${e.num[c][1]}`},{default:p.withCtx(()=>[p.createVNode(i)]),_:2},1032,["span"]))),128))],64))),128))]),_:1},8,["cols"])])}const nC=Z(X9,[["render",K9]]),J9=p.defineComponent({name:"OcTable",components:{NDataTable:O.NDataTable,NTooltip:O.NTooltip,NPopover:O.NPopover,NButton:O.NButton,NIcon:O.NIcon,NFlex:O.NFlex,NPopconfirm:O.NPopconfirm,IconFilter:ji,IconNavigation:Ki,IconEye:Xi,IconEyeOff:Zu,IconPin:Ju,IconPinOff:Qu,IconAdd:Wi,IconMailInboxAdd:wo,IconCloudArrowDown:Zi,Draggable:SC,OcSearchBar:Up,OcImporter:Hp},props:{columns:{required:!0,type:Array,default:()=>[]},actions:{type:Array,default:void 0},fetch:{required:!0,type:Function,default:()=>Promise.resolve()},defaultCheckedRowKeys:{type:Array,default:()=>[]},pagination:{type:Boolean,default:!0},scrollX:{type:[Number,String],default:void 0},flexHeight:{type:Boolean,default:!1},height:{type:[Number,String],default:void 0},minHeight:{type:[Number,String],default:void 0},maxHeight:{type:[Number,String],default:void 0},actionsWidth:{type:[Number,String],default:180},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0},filterButton:{type:Boolean,default:!0},pinButton:{type:Boolean,default:!0},realtime:{type:Boolean,default:!1},addFn:{type:Function,default:void 0},importer:{type:Object,default:void 0},exporter:{type:Object,default:void 0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,expose:r}){const n=p.ref(),{t:a}=Gt.useI18n(),o=Ct.useRoute(),i=Ct.useRouter(),s=O.useNotification(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref([]),d=p.ref([]),h=p.ref([]),v=p.ref({query:{page:1}}),m=p.ref({}),g=p.ref({}),y=p.ref(void 0),w=p.ref(void 0),_=o.path,S=E=>{l.value=!0,t("update:loading",!0),E&&(v.value.query={...v.value.query,...E});const B=Co(v.value);e.fetch&&e.fetch(B).then(R=>{const V=So(R);v.value.query=V.query,h.value=V.records,n.value&&n.value.setValues(v.value),l.value=!1,t("on-update:value",Ft(v.value)),t("update:loading",!1)}).catch(()=>{l.value=!1,t("update:loading",!1)})},x=E=>{v.value.query.page=E,Qi(),S()},C=E=>{v.value.query.pageSize=E,v.value.query.page=1,Qi(),S()},T=E=>{E?(v.value.query.columnKey=E.columnKey,v.value.query.order=E.order):(v.value.query.columnKey=null,v.value.query.order=null),S()},b=E=>{E.pin=!E.pin,E.pin?E.fixed="left":E.fixed=E.fixTemp??void 0},D=E=>{E.show=!E.show},N=()=>{const E=[];d.value.forEach(B=>{B.show&&E.push(B)}),f.value=E},A=E=>{if(v.value=E,e.cache){const B=zr(_),R=zr(v.value);i.replace(`${_}?cursor=${R}&routerId=${B}`)}S()},M=()=>{u.value=!0,Fp({...e.exporter,jobParams:JSON.stringify(v.value)}).then(()=>{s.success({content:()=>a("Notice.success"),duration:3e3}),setTimeout(()=>{u.value=!1},2e3)}).catch(()=>{u.value=!1})},I=(E=!1)=>{const B=Ft(e.columns),R=[],V=[],G={},q={};let J={};if(B.forEach(async z=>{if(z.search){if(z.search.title||(z.search.title=z.title),z.search.defaultValue!==void 0)G[z.search.key||z.key]=z.search.defaultValue;else{if(z.search.type==="input"&&(G[z.search.key||z.key]=""),z.search.type==="number"&&(G[z.search.key||z.key]=null),z.search.type==="dropdown"&&(G[z.search.key||z.key]=null),(z.search.type==="cascader"||z.search.type==="treeSelect")&&(z.search.multiple?G[z.search.key||z.key]=[]:G[z.search.key||z.key]=null),z.search.type==="datePicker"){let ee=0;(z.search.dateType.indexOf("date")>-1||z.search.dateType.indexOf("quarter")>-1||z.search.dateType.indexOf("week")>-1)&&(ee=ha()),z.search.dateType.indexOf("month")>-1&&(ee=ha(void 0,void 0,1)),z.search.dateType.indexOf("year")>-1&&(ee=ha(void 0,1,1)),z.search.dateType.indexOf("range")>-1&&(ee=[ee,ee]),G[z.search.key||z.key]=ee}z.search.type==="select"&&(typeof z.search.options=="function"&&await z.search.options().then(ee=>{z.search.options=ee}),z.search.multiple?z.search.fallbackOption?G[z.search.key||z.key]=[""]:G[z.search.key||z.key]=[]:G[z.search.key||z.key]=null)}q[z.search.key||z.key]=Ft(z.search)}if(delete z.search,z.render&&typeof z.render=="string"){const ee=z.render,De=new Function("rowData","rowIndex","h",ee);z.render=(de,Ge)=>De(de,Ge,p.h)}R.push(Ft(z)),m.value=Ft(G),V.push({...z,show:z.show??!0,pin:!!z.fixed,fixTemp:z.fixed})}),E&&e.cache){const{cursor:z,routerId:ee}=o.query;if(z&&ee){const De=xo(ee),de=xo(z);De===_&&(J=de)}}if(e.actions&&e.actions.length>0){const z=Ft(e.actions),ee={title:()=>a("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(De,de){return Gr(z,De,de)}};R.push(ee),V.push(ee)}f.value=R,g.value=q,v.value={...v.value,...G,...J},d.value=V,n.value&&n.value.setValues(JSON.parse(JSON.stringify(v.value))),n.value&&n.value.setData(JSON.parse(JSON.stringify(g.value)))},P=E=>typeof E=="number"?`${E}px`:E,L=()=>{if(e.height){const E=P(e.height);y.value=E,w.value=E;return}e.minHeight&&(y.value=P(e.minHeight)),e.maxHeight&&(w.value=P(e.maxHeight))};return r({init:S}),p.onMounted(()=>{I(!0),L()}),p.watch(()=>d.value,()=>{N()},{deep:!0}),p.watch(()=>e.columns,()=>{e.realtime&&I()},{deep:!0}),p.watch(()=>e.actions,()=>{e.realtime&&I()},{deep:!0}),{loading:l,minH:y,maxH:w,searchRef:n,exportLoading:u,tableColumns:f,tableData:h,tableQuery:v,searchDefaultValue:m,searchData:g,baseColumns:d,showImporter:c,pageChange:x,pageSizeChange:C,pageSorter:T,pinChange:b,showChange:D,submit:A,exportData:M,getDefaultDate:ha}}}),Q9={class:"com-card"};function eH(e,t,r,n,a,o){const i=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NTooltip"),c=p.resolveComponent("IconMailInboxAdd"),f=p.resolveComponent("IconCloudArrowDown"),d=p.resolveComponent("NPopconfirm"),h=p.resolveComponent("IconFilter"),v=p.resolveComponent("IconNavigation"),m=p.resolveComponent("IconPin"),g=p.resolveComponent("IconPinOff"),y=p.resolveComponent("IconEye"),w=p.resolveComponent("IconEyeOff"),_=p.resolveComponent("Draggable"),S=p.resolveComponent("NPopover"),x=p.resolveComponent("OcSearchBar"),C=p.resolveComponent("NDataTable"),T=p.resolveComponent("OcImporter");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(x,{ref:"searchRef",value:e.tableQuery,defaultValue:e.searchDefaultValue,data:e.searchData,loading:e.loading,cache:!1,autoSubmit:e.autoSubmit,resetButton:e.resetButton,"onOnUpdate:value":e.submit},{header:p.withCtx(()=>[p.renderSlot(e.$slots,"header")]),action:p.withCtx(()=>[e.addFn?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.addFn},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.add")),1)]),_:1})):p.createCommentVNode("",!0),e.importer?(p.openBlock(),p.createBlock(u,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:t[0]||(t[0]=b=>e.showImporter=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.title")),1)]),_:1})):p.createCommentVNode("",!0),e.exporter?(p.openBlock(),p.createBlock(u,{key:2,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(d,{"positive-text":e.$t("Common.export"),placement:"bottom-end",onPositiveClick:e.exportData},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.exportLoading},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export"))+"? ",1)]),_:1},8,["positive-text","onPositiveClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export")),1)]),_:1})):p.createCommentVNode("",!0),e.filterButton?(p.openBlock(),p.createBlock(u,{key:3,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(S,{placement:"bottom-end",trigger:"click","show-arrow":!1},{trigger:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(_,p.mergeProps({modelValue:e.baseColumns,"onUpdate:modelValue":t[1]||(t[1]=b=>e.baseColumns=b)},{animation:200},{"item-key":"key",class:"oc-table-filter",handle:".oc-drag-handle"}),{item:p.withCtx(({element:b})=>[b.hide?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:b.key,class:"oc-table-sort"},[p.createVNode(l,{quaternary:"",class:"oc-drag-handle"},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1}),p.createVNode(l,{quaternary:"",class:"oc-table-sort-title"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),e.pinButton?(p.openBlock(),p.createBlock(l,{key:0,type:"tertiary",onClick:D=>e.pinChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.pin?(p.openBlock(),p.createBlock(m,{key:0})):(p.openBlock(),p.createBlock(g,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])):p.createCommentVNode("",!0),p.createVNode(l,{type:"tertiary",onClick:D=>e.showChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.show?(p.openBlock(),p.createBlock(y,{key:0})):(p.openBlock(),p.createBlock(w,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue"])]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.filter")),1)]),_:1})):p.createCommentVNode("",!0),p.renderSlot(e.$slots,"action")]),_:3},8,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),p.createElementVNode("div",Q9,[p.createVNode(C,{columns:e.tableColumns,data:e.tableData,pagination:e.pagination&&e.tableQuery.query,loading:e.loading,"default-checked-row-keys":e.defaultCheckedRowKeys,"scroll-x":e.scrollX,"flex-height":e.flexHeight,"min-height":e.minH,"max-height":e.maxH,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"on-update:sorter":e.pageSorter,remote:""},null,8,["columns","data","pagination","loading","default-checked-row-keys","scroll-x","flex-height","min-height","max-height","on-update:page","on-update:page-size","on-update:sorter"])]),e.importer?(p.openBlock(),p.createBlock(T,{key:0,show:e.showImporter,"onUpdate:show":t[2]||(t[2]=b=>e.showImporter=b),data:e.importer},null,8,["show","data"])):p.createCommentVNode("",!0)],64)}const aC=Z(J9,[["render",eH]]),tH=p.defineComponent({name:"OcWorkflowAdd",components:{IconAdd:Wi,NButton:O.NButton,NIcon:O.NIcon,NPopover:O.NPopover},emits:["update:add"],setup(e,{emit:t}){const r=p.ref(!1);return{showPopover:r,submit:a=>{r.value=!1,t("update:add",a)}}}});function rH(e,t,r,n,a,o){const i=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(c,{trigger:"manual",show:e.showPopover},{trigger:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[0]||(t[0]=f=>e.showPopover=!0)},{default:p.withCtx(()=>[p.createVNode(s,{size:"18"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(u,null,{default:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[1]||(t[1]=f=>e.submit(2))},{default:p.withCtx(()=>[p.createTextVNode("节点")]),_:1}),p.createVNode(l,{type:"primary",onClick:t[2]||(t[2]=f=>e.submit(1))},{default:p.withCtx(()=>[p.createTextVNode("分支")]),_:1})]),_:1})]),_:1},8,["show"])}const oC=Z(tH,[["render",rH]]),nH=p.defineComponent({name:"OcWorkflowCard",components:{NFlex:O.NFlex,OcWorkflowAdd:oC,IconDismiss:Fr},props:{data:{type:Object,default:()=>({})}},emits:["update:add","update:delete"],setup(e,{emit:t}){return{addOne:a=>{t("update:add",a)},doDelete:()=>{t("update:delete",!0)}}}}),aH={class:"oc-workflow-node"},oH={class:"oc-workflow-node-ctx"},iH=p.createElementVNode("div",{class:"oc-workflow-node-desc"},"功能",-1),sH={class:"oc-workflow-node-more"};function lH(e,t,r,n,a,o){const i=p.resolveComponent("IconDismiss"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("OcWorkflowAdd");return p.openBlock(),p.createElementBlock("div",aH,[p.createElementVNode("div",oH,[p.createVNode(u,{justify:"space-between",class:"oc-workflow-node-title"},{default:p.withCtx(()=>[p.createElementVNode("div",null,p.toDisplayString(e.data.title),1),e.data.type===1||e.data.type===2?(p.openBlock(),p.createBlock(l,{key:0,onClick:e.doDelete},{default:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1},8,["onClick"])):p.createCommentVNode("",!0)]),_:1}),iH]),p.createElementVNode("div",sH,[p.createVNode(c,{"onUpdate:add":t[0]||(t[0]=f=>{e.addOne(f)})})])])}const uH=Z(nH,[["render",lH]]),cH=p.defineComponent({name:"OcWorkflowNode",components:{NButton:O.NButton,OcWorkflowAdd:oC,OcWorkflowCard:uH},props:{data:{type:Array,default:()=>[]}},setup(e){function t(c){const f=String(Date.now());return{title:"IF",type:1,key:f,parentKey:String(c),children:[{title:"条件1",type:1,key:`${f}1`,parentKey:f,children:[]},{title:"条件2",type:1,key:`${f}2`,parentKey:f,children:[]}]}}function r(c){const f=String(Date.now());return{title:`功能${Math.floor(Math.random()*101)}`,type:2,key:f,parentKey:String(c),children:[]}}return{addStartOne:c=>{e.data.splice(1,0,c===1?t(""):r(""))},addNodeOne:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addCondition:c=>{const f=String(Date.now());c.children.push({title:`条件${c.children.length+1}`,type:1,key:f,parentKey:c.key,children:[]})},addConditionBottom:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addConditionSide:(c,f)=>{c.children.length===0?c.children.push(f===1?t(c.parentKey):r(c.parentKey)):c.children.unshift(f===1?t(c.parentKey):r(c.parentKey))},deleteNodeOne:c=>{e.data.splice(c,1)},deleteConditionSide:(c,f)=>{if(c.children.length===2){const d=e.data.indexOf(c);e.data.splice(d,1)}else c.children.splice(f,1)}}}}),fH={key:2},hH={class:"oc-workflow-node-branch-add"},dH={class:"oc-workflow-branch-ctx"},pH={class:"oc-workflow-node-branch-add-bottom"},vH={key:3,class:"oc-workflow-node-end"},gH=[p.createElementVNode("div",{class:"oc-workflow-node-title-end"},"流程结束",-1)];function mH(e,t,r,n,a,o){const i=p.resolveComponent("OcWorkflowCard"),s=p.resolveComponent("NButton"),l=p.resolveComponent("OcWorkflowNode"),u=p.resolveComponent("OcWorkflowAdd");return p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.data,(c,f)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:c.key},[c.type===0?(p.openBlock(),p.createBlock(i,{data:c,key:f,"onUpdate:add":e.addStartOne},null,8,["data","onUpdate:add"])):p.createCommentVNode("",!0),c.type===2?(p.openBlock(),p.createBlock(i,{data:c,key:f,class:"arrow","onUpdate:add":d=>{e.addNodeOne(c,d)},"onUpdate:delete":d=>e.deleteNodeOne(f)},null,8,["data","onUpdate:add","onUpdate:delete"])):p.createCommentVNode("",!0),c.type===1?(p.openBlock(),p.createElementBlock("div",fH,[(p.openBlock(),p.createElementBlock("div",{class:"oc-workflow-branch",key:f},[p.createElementVNode("div",hH,[p.createVNode(s,{type:"success",onClick:d=>e.addCondition(c)},{default:p.withCtx(()=>[p.createTextVNode("添加条件")]),_:2},1032,["onClick"])]),p.createElementVNode("div",dH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(c.children,(d,h)=>(p.openBlock(),p.createElementBlock("div",{key:`children-${h}`},[p.createVNode(i,{data:d,"onUpdate:add":v=>{e.addConditionSide(d,v)},"onUpdate:delete":v=>e.deleteConditionSide(c,h)},null,8,["data","onUpdate:add","onUpdate:delete"]),p.createVNode(l,{data:d.children},null,8,["data"])]))),128))])])),p.createElementVNode("div",pH,[p.createVNode(u,{"onUpdate:add":d=>{e.addConditionBottom(c,d)}},null,8,["onUpdate:add"])])])):p.createCommentVNode("",!0),c.type===99?(p.openBlock(),p.createElementBlock("div",vH,gH)):p.createCommentVNode("",!0)],64))),128)}const yH=Z(cH,[["render",mH]]),_H=p.defineComponent({name:"OcWorkflow",components:{OcWorkflowNode:yH,NSlider:O.NSlider,NSelect:O.NSelect},props:{data:{type:Array,default:()=>[{title:"流程开始",type:0,key:"1",parentKey:"",children:[]},{title:"流程结束",type:99,key:"2",parentKey:"",children:[]}]}},setup(){const e=p.ref(1),t=p.ref(100),r=p.ref([{label:"50%",value:50},{label:"80%",value:80},{label:"100%",value:100},{label:"120%",value:120},{label:"150%",value:150}]);return{scaleShow:e,scaleFilter:t,scaleOption:r,scaleHandle:i=>{t.value=i,e.value=i/100},formatTooltip:i=>`${i}%`,renderSelectLabel:i=>p.h("div",{},{default:()=>`${i.value}%`})}}}),wH={class:"oc-workflow"},bH={class:"oc-workflow-tools"},SH={class:"oc-workflow-ctx"},CH={class:"oc-workflow-main"};function xH(e,t,r,n,a,o){const i=p.resolveComponent("NSelect"),s=p.resolveComponent("NSlider"),l=p.resolveComponent("OcWorkflowNode");return p.openBlock(),p.createElementBlock("div",wH,[p.createElementVNode("div",bH,[p.createVNode(i,{value:e.scaleFilter,"onUpdate:value":t[0]||(t[0]=u=>e.scaleFilter=u),options:e.scaleOption,"render-label":e.renderSelectLabel,"on-update:value":e.scaleHandle,style:{width:"100px"}},null,8,["value","options","render-label","on-update:value"]),p.createVNode(s,{value:e.scaleFilter,"onUpdate:value":t[1]||(t[1]=u=>e.scaleFilter=u),min:50,max:150,step:10,style:{width:"100px"},"on-update:value":e.scaleHandle,"format-tooltip":e.formatTooltip,class:"oc-workflow-slider"},null,8,["value","on-update:value","format-tooltip"])]),p.createElementVNode("div",SH,[p.createElementVNode("div",CH,[p.createElementVNode("div",{class:"oc-workflow-warp",style:p.normalizeStyle({transform:`scale(${e.scaleShow})`})},[p.createVNode(l,{data:e.data},null,8,["data"])],4)])])])}const iC=Z(_H,[["render",xH]]),sC=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Wi,IconAlert:Wu,IconArrowClockwise:fa,IconArrowDown:Ji,IconArrowSquareDown:qu,IconArrowUp:ec,IconCalendarArrowDown:_o,IconChevronLeft:Yu,IconClear:Uu,IconCloudArrowDown:Zi,IconDelete:Xu,IconDismiss:Fr,IconDrafts:Ku,IconEye:Xi,IconEyeOff:Zu,IconFilter:ji,IconFullScreenMaximize:Zp,IconGridDots:ju,IconMailInboxAdd:wo,IconNavigation:Ki,IconPin:Ju,IconPinOff:Qu,IconReset:tc,IconSearch:qi,IconUser:rc,IconWeatherMoon:Ui,IconWeatherSunny:Yi,OcActionButton:Xp,OcAuth:nv,OcBack:av,OcCircle:ov,OcEcharts:Ub,OcError:Yb,OcFooter:qb,OcForm:GS,OcHeader:qS,OcImporter:Hp,OcLogin:XS,OcLogo:ZS,OcMain:QS,OcMy:eC,OcNumberRoll:Wp,OcReport:tC,OcScan:rC,OcSearchBar:Up,OcSkeleton:nC,OcTable:aC,OcWorkflow:iC,commonStore:se,fnClearUser:Vu,fnDownload:Fp,fnGetUser:Bu,fnRenderAction:Gr,fnSetLang:da,fnSetTheme:To,fnSetUser:zp,fnUserLogout:Gp,i18n:mt,userStore:$},Symbol.toStringTag,{value:"Module"}));var TH=rr,NH=function(){return TH.Date.now()},DH=NH,AH=/\s/;function MH(e){for(var t=e.length;t--&&AH.test(e.charAt(t)););return t}var kH=MH,EH=kH,PH=/^\s+/;function IH(e){return e&&e.slice(0,EH(e)+1).replace(PH,"")}var LH=IH,OH=Fi,RH=po,BH="[object Symbol]";function VH(e){return typeof e=="symbol"||RH(e)&&OH(e)==BH}var $H=VH,FH=LH,lC=la,zH=$H,uC=NaN,GH=/^[-+]0x[0-9a-f]+$/i,HH=/^0b[01]+$/i,WH=/^0o[0-7]+$/i,UH=parseInt;function YH(e){if(typeof e=="number")return e;if(zH(e))return uC;if(lC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=FH(e);var r=HH.test(e);return r||WH.test(e)?UH(e.slice(2),r?2:8):GH.test(e)?uC:+e}var qH=YH,jH=la,Yp=DH,cC=qH,XH="Expected a function",ZH=Math.max,KH=Math.min;function JH(e,t,r){var n,a,o,i,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(XH);t=cC(t)||0,jH(r)&&(c=!!r.leading,f="maxWait"in r,o=f?ZH(cC(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(C){var T=n,b=a;return n=a=void 0,u=C,i=e.apply(b,T),i}function v(C){return u=C,s=setTimeout(y,t),c?h(C):i}function m(C){var T=C-l,b=C-u,D=t-T;return f?KH(D,o-b):D}function g(C){var T=C-l,b=C-u;return l===void 0||T>=t||T<0||f&&b>=o}function y(){var C=Yp();if(g(C))return w(C);s=setTimeout(y,m(C))}function w(C){return s=void 0,d&&n?h(C):(n=a=void 0,i)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function S(){return s===void 0?i:w(Yp())}function x(){var C=Yp(),T=g(C);if(n=arguments,a=this,l=C,T){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),i}return x.cancel=_,x.flush=S,x}var QH=JH;const eW=jb(QH);let qp=3840,jp=2160;const fC=p.reactive({scale:1});function tW(e,t){qp=e,jp=t}function hC(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=qp,a=jp,o=parseFloat((n/a).toFixed(5));if(parseFloat((t/r).toFixed(5))>o){const s=parseFloat((r*o/n).toFixed(5));e=s>1?1:s}else{const s=parseFloat((t/o/a).toFixed(5));e=s>1?1:s}fC.scale=e}function rW(){const e=eW(hC,200);return e(),window.addEventListener("resize",e),()=>{qp=3840,jp=2160,window.removeEventListener("resize",e)}}const nW=e=>!!($.kind===-1||$.kind===99||$.iot_menu_authorization.includes(e)),aW=e=>$.platform_tdm?$.kind===-1||$.kind===99||e==="home"?!0:$.tdm_menu_authorization.includes(e):!1,oW=e=>$.platform_qms?$.kind===-1||$.kind===99||e==="home"?!0:$.qms_menu_authorization.includes(e):!1,iW=e=>$.platform_twin?($.kind===-1||$.kind===99||e==="home",!0):!1,sW=e=>!!($.kind===-1||$.kind===99||$.maintain_menu_authorization.includes(e)),lW=e=>!!($.kind===-1||$.kind===99||$.order_menu_authorization.includes(e));let $u="";const we=navigator.userAgent.toLocaleUpperCase(),uW=()=>{const e=/WINDOWS NT 5.[\d]+/,t=/WINDOWS NT 6.[\d]+/,r=/WINDOWS NT 7.[\d]+/,n=/WINDOWS NT 10.[\d]+/,a=/WINDOWS NT 11.[\d]+/,o=/ANDROID [\d.]+/,i=/IPHONE/,s=/IPAD/,l=/MAC/;if(e.test(we))return"Windows XP";if(t.test(we))return"Windows 7";if(r.test(we))return"Windows 8";if(n.test(we))return"Windows 10";if(a.test(we))return"Windows 11";if(o.test(we)){const u=o.exec(we);return`Android ${u?u[0].split(" ")[1]:""}`}if(i.test(we)){const c=/OS [\d_]+/.exec(we);return`iPhone ${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(we)){const c=/OS [\d_]+/.exec(we);return`iPad${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(we)){const c=/ [\d_]+/.exec(we);return`MAC ${c?c[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},cW=()=>{const e=/MSIE [\d]+/,t=/EDG\/[\d.]+/,r=/FIREFOX\/[\d.]+/,n=/CHROME\/[\d.]+/,a=/SAFARI\/[\d.]+/,o=/OPR\/[\d.]+/,i=/SE \d/,s=/UCBROWSER/,l=/ANDROID [\d.]+/;if(e.test(we)&&i.test(we))return"SogouIE";if(i.test(we))return"SogouFast";if(s.test(we))return"UC";if(l.test(we))return"Android";if(o.test(we))return"Opera";if(e.test(we)){const u=e.exec(we);return`IE ${u?u[0].split("/")[1]:""}`}if(t.test(we)){const u=t.exec(we);return`Edge ${u?u[0].split("/")[1]:""}`}if(n.test(we)){const u=n.exec(we);return`Chrome ${u?u[0].split("/")[1]:""}`}if(r.test(we)){const u=r.exec(we);return`Firefox ${u?u[0].split("/")[1]:""}`}if(a.test(we)){const u=a.exec(we);return`Safari ${u?u[0].split("/")[1]:""}`}return"Others"};function dC(e,t,r,n=!1){if(e!==void 0&&(t in e||n)){const a=e[t],o=r(a);typeof o=="function"&&(e[t]=o)}}function fW(e,t,r,n=!1){e.addEventListener(t,r,n)}function hW(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;dC(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),dC(e,"send",t=>function(...r){const{url:n}=this.xhr;this.onerror=function(){mo(3,n,`Network Error ${this.status}`)},this.ontimeout=function(){mo(3,n,"Network Timeout")},fW(this,"loadend",function(){try{!JSON.parse(this.response).ok&&this.status===200&&$.userId&&mo(3,n,`${r[0]}-${this.status}-${this.response}`),(this.status===500||this.status===405)&&mo(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function dW(e,t){$u=typeof t=="string"?t:$u,!(!t||!$u)&&(hW(),window.addEventListener("error",function(r){mo(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){console.log("捕获到异常",r),r.preventDefault()}),e.config.errorHandler=r=>{mo(2,window.location.href,r)})}const mo=(e,t,r)=>{if(r==="ResizeObserver loop limit exceeded")return;const n={type:e,time:Date.now(),key:"c604902e-4088-4c64-bc73-edfbc971805b",url:encodeURIComponent(t||location.href),title:document.title,browser:cW(),platform:uW(),system:se.platformName,message:e===1||e===2?r.message:r,user:{userId:$.userId,name:$.name,factoryId:$.factoryId,systemType:$.systemType,tenantLoginCode:$.tenantLoginCode,tenantName:$.tenantName,tenantStatus:$.tenantStatus,userAgent:we}},a=zr(n),o=document.body;let i=new Image;i.src=$u+"?data="+a,i.onload=i.onerror=function(){o.removeChild(i),i=null},o.append(i),e!==3&&console.error(r)};let pC;async function vC(){const e=await fetch(`${window.location.protocol}//${window.location.host}`,{method:"HEAD",cache:"no-cache"});return e.headers.get("etag")||e.headers.get("last-modified")}async function pW(){const e=await vC();pC!==e&&Lx(!0)}async function vW(){pC=await vC(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{pW()},60*1e3)}function gC({components:e=[]}={}){const t=[];function r(a,o,i){a.component(o)||a.component(o,i)}function n(a,o){if(!t.includes(a)&&(t.push(a),e.forEach(i=>{const{name:s,alias:l}=i;r(a,s,i),l&&l.forEach(u=>{r(a,u,i)})}),o)){const{platform:i="iot",monitor:s=!1,versionMonitor:l=!0,enableRedirect:u=!0,language:c=!1,local:f="zh-CN"}=o,d=xt("theme",!1),h=xt("lang",f);Ix(i),dG(u),Px(c),da(h),To(d),mt.global.locale.value=h,l&&vW(),s&&dW(a,s)}}return{version:ev,install:n}}const mC=gC({components:Object.keys(sC).map(e=>sC[e])}),gW=mC.install;F.CUSTOM=nG,F.FILE=$p,F.GET=WS,F.IconAdd=Wi,F.IconAlert=Wu,F.IconArrowClockwise=fa,F.IconArrowDown=Ji,F.IconArrowSquareDown=qu,F.IconArrowUp=ec,F.IconCalendarArrowDown=_o,F.IconChevronLeft=Yu,F.IconClear=Uu,F.IconCloudArrowDown=Zi,F.IconDelete=Xu,F.IconDismiss=Fr,F.IconDrafts=Ku,F.IconEye=Xi,F.IconEyeOff=Zu,F.IconFilter=ji,F.IconFullScreenMaximize=Zp,F.IconGridDots=ju,F.IconMailInboxAdd=wo,F.IconNavigation=Ki,F.IconPin=Ju,F.IconPinOff=Qu,F.IconReset=tc,F.IconSearch=qi,F.IconUser=rc,F.IconWeatherMoon=Ui,F.IconWeatherSunny=Yi,F.OcActionButton=Xp,F.OcAuth=nv,F.OcBack=av,F.OcCircle=ov,F.OcEcharts=Ub,F.OcError=Yb,F.OcFooter=qb,F.OcForm=GS,F.OcHeader=qS,F.OcImporter=Hp,F.OcLogin=XS,F.OcLogo=ZS,F.OcMain=QS,F.OcMy=eC,F.OcNumberRoll=Wp,F.OcReport=tC,F.OcScan=rC,F.OcSearchBar=Up,F.OcSkeleton=nC,F.OcTable=aC,F.OcWorkflow=iC,F.POST=ct,F.commonStore=se,F.create=gC,F.darkTheme=JS,F.default=mC,F.fnCancelFetch=rG,F.fnCheckDashRole=iW,F.fnCheckIoTRole=nW,F.fnCheckMaintainRole=sW,F.fnCheckOrderRole=lW,F.fnCheckQMSRole=oW,F.fnCheckTDMRole=aW,F.fnClearUser=Vu,F.fnComputedScale=hC,F.fnDecodeCursor=xo,F.fnDelStorage=bo,F.fnDeleteLoad=Qp,F.fnDownload=Fp,F.fnEncodeCursor=zr,F.fnFormatTime=wr,F.fnFormatUnits=Mx,F.fnFullScreen=Ax,F.fnGetStorage=xt,F.fnGetUser=Bu,F.fnListenerScale=rW,F.fnPageModel2Naive=So,F.fnPageNaive2Model=Co,F.fnRenderAction=Gr,F.fnScrollTop=Qi,F.fnSetLang=da,F.fnSetNormalWidthAndHeight=tW,F.fnSetStorage=Ht,F.fnSetTheme=To,F.fnSetUser=zp,F.fnThrottle=Dx,F.fnUserLogout=Gp,F.getDefaultDate=ha,F.i18n=mt,F.install=gW,F.lightTheme=KS,F.scaleStore=fC,F.userStore=$,Object.defineProperties(F,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
43
+ `:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",i[0],i[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var o=this._ecModel,i=ve(n),s=i.seriesIndex,l=o.getSeriesByIndex(s),u=i.dataModel||l,c=i.dataIndex,f=i.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,m=Li([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),w=new Mh;y.marker=w.makeTooltipMarker("item",Yn(y.color),h);var _=u0(u.formatTooltip(c,!1,f)),S=m.get("order"),x=m.get("valueFormatter"),C=_.frag,T=C?b0(x?H({valueFormatter:x},C):C,w,h,S,o.get("useUTC"),m.get("textStyle")):_.text,b="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,T,y,b,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var o=ve(n),i=o.tooltipConfig,s=i.option||{};if(X(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Li(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",m=new Mh;this._showOrMove(d,function(){var g=ce(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,o,i,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([i,s],a,r.get("trigger"),r.get("borderColor")),m=v.color;if(d)if(X(d)){var g=r.ecModel.get("useUTC"),y=U(a)?a[0]:a,w=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,w&&(h=pl(y.axisValue,h,g)),h=My(h,a,!0)}else if(ae(d)){var _=Q(function(S,x){S===this._ticket&&(f.setContent(x,c,r,m,l),this._updatePosition(r,l,i,s,f,a,u))},this);this._ticket=o,h=d(a,o,_)}else h=d;f.setContent(h,c,r,m,l),f.show(r,m),this._updatePosition(r,l,i,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,o){if(a==="axis"||U(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!U(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,o,i,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=i.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),ae(n)&&(n=n([a,o],s,i.el,v,{viewSize:[u,c],contentSize:f.slice()})),U(n))a=xe(n[0],u),o=xe(n[1],c);else if(K(n)){var m=n;m.width=f[0],m.height=f[1];var g=qn(m,{width:u,height:c});a=g.x,o=g.y,d=null,h=null}else if(X(n)&&l){var y=YR(n,v,f,r.get("borderWidth"));a=y[0],o=y[1]}else{var y=WR(a,o,i,u,c,d?null:20,h?null:20);a=y[0],o=y[1]}if(d&&(a-=Nb(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=Nb(h)?f[1]/2:h==="bottom"?f[1]:0),mb(r)){var y=UR(a,o,i,u,c);a=y[0],o=y[1]}i.moveTo(a,o)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,o=this._cbParamsList,i=!!a&&a.length===r.length;return i&&k(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];i=i&&u.length===f.length,i&&k(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],g=v.seriesDataIndices||[];i=i&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===g.length,i&&k(m,function(y,w){var _=g[w];i=i&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),o&&k(d.seriesDataIndices,function(y){var w=y.seriesIndex,_=n[w],S=o[w];_&&S&&S.data!==_.data&&(i=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!i},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ne.node||!n.getDom()||(kl(this,"_updatePosition"),this._tooltipContent.dispose(),ep("itemTooltip",n))},t.type="tooltip",t}(Jt);function Li(e,t,r){var n=t.ecModel,a;r?(a=new Qe(r,n,n),a=new Qe(t.option,a,n)):a=t;for(var o=e.length-1;o>=0;o--){var i=e[o];i&&(i instanceof Qe&&(i=i.get("tooltip",!0)),X(i)&&(i={formatter:i}),i&&(a=new Qe(i,a,n)))}return a}function Tb(e,t){return e.dispatchAction||Q(t.dispatchAction,t)}function WR(e,t,r,n,a,o,i){var s=r.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>n?e-=l+o:e+=o),i!=null&&(t+u+i>a?t-=u+i:t+=i),[e,t]}function UR(e,t,r,n,a){var o=r.getSize(),i=o[0],s=o[1];return e=Math.min(e+i,n)-i,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function YR(e,t,r,n){var a=r[0],o=r[1],i=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-a/2,l=t.y-o-i;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+i;break;case"left":s=t.x-a-i,l=t.y+c/2-o/2;break;case"right":s=t.x+u+i,l=t.y+c/2-o/2}return[s,l]}function Nb(e){return e==="center"||e==="middle"}function qR(e,t,r){var n=hf(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var o=Go(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),i=o.models[0];if(i){var s=r.getViewOfComponentModel(i),l;if(s.group.traverse(function(u){var c=ve(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:i.componentIndex,el:l}}}}const jR=HR;function XR(e){gr(ub),e.registerComponentModel(MR),e.registerComponentView(jR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ot),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ot)}var ZR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Te),KR=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var o=this.group,i=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=oe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new We({style:Zt(i,{text:r.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new We({style:Zt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),m=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!m&&!g,v&&c.on("click",function(){ky(v,"_"+r.get("target"))}),m&&h.on("click",function(){ky(m,"_"+r.get("subtarget"))}),ve(c).eventData=ve(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(c),d&&o.add(h);var y=o.getBoundingRect(),w=r.getBoxLayoutParams();w.width=y.width,w.height=y.height;var _=qn(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),o.x=_.x,o.y=_.y,o.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=o.getBoundingRect();var x=_.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var T=new Ee({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});o.add(T)}},t.type="title",t}(Jt);function JR(e){e.registerComponentModel(ZR),e.registerComponentView(KR)}function QR(e,t){if(!e)return!1;for(var r=U(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function _u(e){Is(e,"label",["show"])}var wu=Ne(),Db=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(ne.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,o){var i=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=wu(s)[i];if(!l||!l.data){wu(s)[i]=null;return}u?u._mergeOption(l,n,!0):(o&&_u(l),k(l.data,function(c){c instanceof Array?(_u(c[0]),_u(c[1])):_u(c)}),u=this.createMarkerModelFromSeries(l,this,n),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),wu(s)[i]=u},this)},t.prototype.formatTooltip=function(r,n,a){var o=this.getData(),i=this.getRawValue(r),s=o.getName(r);return Kn("section",{header:this.name,blocks:[Kn("nameValue",{name:s,value:i,noName:!s,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return wu(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Te);Wt(Db,l0.prototype);const bu=Db;function eB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function tB(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Su(e,t,r,n,a,o){var i=[],s=ra(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=ap(t,l,e),c=t.indicesOfNearest(l,u)[0];i[a]=t.get(r,c),i[o]=t.get(l,c);var f=t.get(n,c),d=sr(t.get(n,c));return d=Math.min(d,20),d>=0&&(i[o]=+i[o].toFixed(d)),[i,f]}var np={min:be(Su,"min"),max:be(Su,"max"),average:be(Su,"average"),median:be(Su,"median")};function Ab(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!tB(t)&&!U(t.coord)&&U(a)){var o=Mb(t,r,n,e);if(t=ce(t),t.type&&np[t.type]&&o.baseAxis&&o.valueAxis){var i=fe(a,o.baseAxis.dim),s=fe(a,o.valueAxis.dim),l=np[t.type](r,o.baseDataDim,o.valueDataDim,i,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)np[u[c]]&&(u[c]=ap(r,r.mapDimension(a[c]),u[c]));return t}}function Mb(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(rB(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function rB(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function kb(e,t){return e&&e.containData&&t.coord&&!eB(t)?e.containData(t.coord):!0}function nB(e,t){return e?function(r,n,a,o){var i=o<2?r.coord&&r.coord[o]:r.value;return Ka(i,t[o])}:function(r,n,a,o){return Ka(r.value,t[o])}}function ap(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(o,i){isNaN(o)||(n+=o,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var op=Ne(),aB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ie()},t.prototype.render=function(r,n,a){var o=this,i=this.markerGroupMap;i.each(function(s){op(s).keep=!1}),n.eachSeries(function(s){var l=bu.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,n,a)}),i.each(function(s){!op(s).keep&&o.group.remove(s.group)})},t.prototype.markKeep=function(r){op(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;k(r,function(o){var i=bu.getMarkerModelFromSeries(o,a.type);if(i){var s=i.getData();s.eachItemGraphicEl(function(l){l&&(n?gm(l):Lf(l))})}})},t.type="marker",t}(Jt);const oB=aB;var iB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(bu);const sB=iB;var Cu=Ne(),lB=function(e,t,r,n){var a=e.getData(),o;if(U(n))o=n;else{var i=n.type;if(i==="min"||i==="max"||i==="average"||i==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Wr(n.yAxis,n.xAxis);else{var u=Mb(n,a,t,e);s=u.valueAxis;var c=H_(a,u.valueDataDim);l=ap(a,c,i)}var f=s.dim==="x"?0:1,d=1-f,h=ce(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var m=r.get("precision");m>=0&&Ce(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[f]=v.coord[f]=l,o=[h,v,{type:i,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Hr("Invalid markLine data."),o=[]}var g=[Ab(e,o[0]),Ab(e,o[1]),H({},o[2])];return g[2].type=g[2].type||null,pe(g[2],g[0]),pe(g[2],g[1]),g};function xu(e){return!isNaN(e)&&!isFinite(e)}function Eb(e,t,r,n){var a=1-e,o=n.dimensions[e];return xu(t[a])&&xu(r[a])&&t[e]===r[e]&&n.getAxis(o).containData(t[e])}function uB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(Eb(1,r,n,e)||Eb(0,r,n,e)))return!0}return kb(e,t[0])&&kb(e,t[1])}function ip(e,t,r,n,a){var o=n.coordinateSystem,i=e.getItemModel(t),s,l=xe(i.get("x"),a.getWidth()),u=xe(i.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=o.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=o.dataToPoint([f,d])}if(iu(o,"cartesian2d")){var h=o.getAxis("x"),v=o.getAxis("y"),c=o.dimensions;xu(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):xu(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var cB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(o){var i=bu.getMarkerModelFromSeries(o,"markLine");if(i){var s=i.getData(),l=Cu(i).from,u=Cu(i).to;l.each(function(c){ip(l,c,!0,o,a),ip(u,c,!1,o,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,o){var i=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new QL);this.group.add(c.group);var f=fB(i,r,n),d=f.from,h=f.to,v=f.line;Cu(n).from=d,Cu(n).to=h,n.setData(v);var m=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),w=n.get("symbolOffset");U(m)||(m=[m,m]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(w)||(w=[w,w]),f.from.each(function(S){_(d,S,!0),_(h,S,!1)}),v.each(function(S){var x=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),x.stroke==null&&(x.stroke=d.getItemVisual(S,"style").fill),v.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){ve(S).dataModel=n,S.traverse(function(x){ve(x).dataModel=n})});function _(S,x,C){var T=S.getItemModel(x);ip(S,x,C,r,o);var b=T.getModel("itemStyle").getItemStyle();b.fill==null&&(b.fill=W0(l,"color")),S.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:oe(T.get("symbolOffset",!0),w[C?0:1]),symbolRotate:oe(T.get("symbolRotate",!0),y[C?0:1]),symbolSize:oe(T.get("symbolSize"),g[C?0:1]),symbol:oe(T.get("symbol",!0),m[C?0:1]),style:b})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(oB);function fB(e,t,r){var n;e?n=j(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Ni(n,r),o=new Ni(n,r),i=new Ni([],r),s=j(r.get("data"),be(lB,t,e,r));e&&(s=Ue(s,be(uB,e)));var l=nB(!!e,n);return a.initData(j(s,function(u){return u[0]}),null,l),o.initData(j(s,function(u){return u[1]}),null,l),i.initData(j(s,function(u){return u[2]})),i.hasItemOption=!0,{from:a,to:o,line:i}}const hB=cB;function dB(e){e.registerComponentModel(sB),e.registerComponentView(hB),e.registerPreprocessor(function(t){QR(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var pB=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"])}},vB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&k(n,function(o,i){X(o)&&(o={type:o}),n[i]=pe(o,pB(a,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var o=r[a].get("name");if(this.isSelected(o)){this.select(o),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&cf(l)&&n.push(l.name)}),this._availableNames=a;var o=this.get("data")||n,i=ie(),s=j(o,function(l){return(X(l)||Ce(l))&&(l={name:l}),i.get(l.name)?null:(i.set(l.name,!0),new Qe(l,this,this.ecModel))},this);this._data=Ue(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var o=this._data;k(o,function(i){n[i.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){var o=a.get("name",!0);n.hasOwnProperty(o)||(n[o]=!0),n[o]=!n[o]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&fe(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}(Te);const sp=vB;var lo=be,lp=k,Tu=Pe,gB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tu),this.group.add(this._selectorGroup=new Tu),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var i=r.get("align"),s=r.get("orient");(!i||i==="auto")&&(i=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(i,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),h=qn(c,f,d),v=this.layoutInner(r,i,h,o,l,u),m=qn(he({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=DR(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,o,i,s,l){var u=this.getContentGroup(),c=ie(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),lp(n.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
44
+ `)){var g=new Tu;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(m)[0];if(!c.get(m)){if(y){var w=y.getData(),_=w.getVisual("legendLineStyle")||{},S=w.getVisual("legendIcon"),x=w.getVisual("style"),C=this._createItem(y,m,v,h,n,r,_,x,S,f,o);C.on("click",lo(Pb,m,null,o,d)).on("mouseover",lo(up,y.name,null,o,d)).on("mouseout",lo(cp,y.name,null,o,d)),a.ssr&&C.eachChild(function(T){var b=ve(T);b.seriesIndex=y.seriesIndex,b.dataIndex=v,b.ssrType="legend"}),c.set(m,!0)}else a.eachRawSeries(function(T){if(!c.get(m)&&T.legendVisualProvider){var b=T.legendVisualProvider;if(!b.containName(m))return;var D=b.indexOfName(m),N=b.getItemVisual(D,"style"),A=b.getItemVisual(D,"legendIcon"),M=Cr(N.fill);M&&M[3]===0&&(M[3]=.2,N=H(H({},N),{fill:ys(M,"rgba")}));var I=this._createItem(T,m,v,h,n,r,{},N,A,f,o);I.on("click",lo(Pb,null,m,o,d)).on("mouseover",lo(up,null,m,o,d)).on("mouseout",lo(cp,null,m,o,d)),a.ssr&&I.eachChild(function(P){var L=ve(P);L.seriesIndex=T.seriesIndex,L.dataIndex=v,L.ssrType="legend"}),c.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),i&&this._createSelector(i,n,o,s,l)},t.prototype._createSelector=function(r,n,a,o,i){var s=this.getSelectorGroup();lp(r,function(u){var c=u.type,f=new We({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Ga(f,{normal:d,emphasis:h},{defaultText:u.title}),qs(f)})},t.prototype._createItem=function(r,n,a,o,i,s,l,u,c,f,d){var h=r.visualDrawType,v=i.get("itemWidth"),m=i.get("itemHeight"),g=i.isSelected(n),y=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),_=o.get("icon");c=_||c||"roundRect";var S=mB(c,o,l,u,h,g,d),x=new Tu,C=o.getModel("textStyle");if(ae(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;x.add(yB({itemWidth:v,itemHeight:m,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}))}var b=s==="left"?v+5:-5,D=s,N=i.get("formatter"),A=n;X(N)&&N?A=N.replace("{name}",n??""):ae(N)&&(A=N(n));var M=g?C.getTextColor():o.get("inactiveColor");x.add(new We({style:Zt(C,{text:A,x:b,y:m/2,fill:M,align:D,verticalAlign:"middle"},{inheritColor:M})}));var I=new Ee({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=o.getModel("tooltip");return P.get("show")&&Jf({el:I,componentModel:i,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(L){L.silent=!0}),I.silent=!f,this.getContentGroup().add(x),qs(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getContentGroup(),u=this.getSelectorGroup();oi(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),i){oi("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),m=r.getOrient().index,g=m===0?"width":"height",y=m===0?"height":"width",w=m===0?"y":"x";s==="end"?h[m]+=c[g]+v:f[m]+=d[g]+v,h[1-m]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[y]=Math.max(c[y],d[y]),_[w]=Math.min(0,d[w]+h[1-m]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Jt);function mB(e,t,r,n,a,o,i){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),lp(g,function(w,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Fl(f,i),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!o){var v=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function yB(e){var t=e.icon||"roundRect",r=Pr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function Pb(e,t,r,n){cp(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),up(e,t,r,n)}function Ib(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function up(e,t,r,n){Ib(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function cp(e,t,r,n){Ib(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const Lb=gB;function _B(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Oi(e,t,r){var n={},a=e==="toggleSelected",o;return r.eachComponent("legend",function(i){a&&o!=null?i[o?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?i[e]():(i[e](t.name),o=i.isSelected(t.name));var s=i.getData();k(s,function(l){var u=l.get("name");if(!(u===`
45
+ `||u==="")){var c=i.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function wB(e){e.registerAction("legendToggleSelect","legendselectchanged",be(Oi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",be(Oi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",be(Oi,"inverseSelect")),e.registerAction("legendSelect","legendselected",be(Oi,"select")),e.registerAction("legendUnSelect","legendunselected",be(Oi,"unSelect"))}function Ob(e){e.registerComponentModel(sp),e.registerComponentView(Lb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,_B),e.registerSubTypeDefaulter("legend",function(){return"plain"}),wB(e)}var bB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var o=si(r);e.prototype.init.call(this,r,n,a),Rb(this,r,o)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Rb(this,this.option,r)},t.type="legend.scroll",t.defaultOption=cl(sp.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}(sp);function Rb(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Ya(t,r,{type:"box",ignoreSize:!!a})}const SB=bB;var Bb=Pe,fp=["width","height"],hp=["x","y"],CB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Bb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Bb)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,o,i,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,o,i,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=U(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new We({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,g){var y=m+"DataIndex",w=Zf(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:Q(u._pageGo,u,y,n,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});w.name=m,c.add(w)}},t.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=fp[u],f=hp[u],d=fp[1-u],h=hp[1-u];i&&oi("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],y=ce(a);i&&(y[c]=a[c]-m[c]-v);var w=this._layoutContentAndController(r,o,y,u,c,d,h,f);if(i){if(s==="end")g[u]+=w[c]+v;else{var _=m[c]+v;g[u]-=_,w[f]-=_}w[c]+=m[c]+v,g[1-u]+=w[h]+w[d]/2-m[d]/2,w[d]=Math.max(w[d],m[d]),w[h]=Math.min(w[h],m[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(r,n,a,o,i,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;oi(r.get("orient"),c,r.get("itemGap"),o?a.width:null,o?null:a.height),oi("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),m=this._showController=h[i]>a[i],g=[-h.x,-h.y];n||(g[o]=c[u]);var y=[0,0],w=[-v.x,-v.y],_=oe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var S=r.get("pageButtonPosition",!0);S==="end"?w[o]+=a[i]-v[i]:y[o]+=v[i]+_}w[1-o]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(w);var x={x:0,y:0};if(x[i]=m?a[i]:h[i],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+w[1-o]),f.__rectSize=a[i],m){var C={x:0,y:0};C[i]=Math.max(a[i]-v[i]-_,0),C[s]=x[s],f.setClipPath(new Ee({shape:C})),f.__rectSize=C[i]}else d.eachChild(function(b){b.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Je(c,{x:T.contentPosition[0],y:T.contentPosition[1]},m?r:null),this._updatePageInfoView(r,T),x},t.prototype._pageGo=function(r,n,a){var o=this._getPageInfo(n)[r];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var o=a.childOfName("pageText"),i=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;o&&i&&o.setStyle("text",X(i)?i.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):i({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,i=r.getOrient().index,s=fp[i],l=hp[i],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=S(f);v.contentPosition[i]=-m.s;for(var g=u+1,y=m,w=m,_=null;g<=d;++g)_=S(c[g]),(!_&&w.e>y.s+o||_&&!x(_,y.s))&&(w.i>y.i?y=w:y=_,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),w=_;for(var g=u-1,y=m,w=m,_=null;g>=-1;--g)_=S(c[g]),(!_||!x(w,_.s))&&y.i<w.i&&(w=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=_;return v;function S(C){if(C){var T=C.getBoundingRect(),b=T[l]+C[l];return{s:b,e:b+T[s],i:C.__legendDataIndex}}}function x(C,T){return C.e>=T&&C.s<=T+o}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),o;return a.eachChild(function(i,s){var l=i.__legendDataIndex;o==null&&l!=null&&(o=s),l===r&&(n=s)}),n??o},t.type="legend.scroll",t}(Lb);const xB=CB;function TB(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function NB(e){gr(Ob),e.registerComponentModel(SB),e.registerComponentView(xB),TB(e)}function DB(e){gr(Ob),gr(NB)}var AB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=cl(yu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(yu);const MB=AB;var dp=Ne();function kB(e,t,r){dp(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function EB(e,t){for(var r=dp(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var o=n[a],i=r.get(o),s=i.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Vb(r,i))}}}function Vb(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function PB(e,t){var r={model:t,containsPoint:be(LB,t),dispatchAction:be(IB,e),dataZoomInfoMap:null,controller:null},n=r.controller=new YL(e.getZr());return k(["pan","zoom","scrollMove"],function(a){n.on(a,function(o){var i=[];r.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,o);!s.model.get("disabled",!0)&&u&&i.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),i.length&&r.dispatchAction(i)})}),r}function IB(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function LB(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function OB(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(o){var i=o.model,s=i.get("disabled",!0)?!1:i.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&i.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function RB(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=dp(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=ie());a.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var i=fb(o);k(i.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,PB(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ie());c.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),a.each(function(o){var i=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Vb(a,o);return}var c=OB(l);i.enable(c.controlType,c.opt),i.setPointerChecker(o.containsPoint),Ml(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var BB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),kB(a,r,{pan:Q(pp.pan,this),zoom:Q(pp.zoom,this),scrollMove:Q(pp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){EB(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(db),pp={zoom:function(e,t,r,n){var a=this.range,o=a.slice(),i=e.axisModels[0];if(i){var s=vp[t](null,[n.originX,n.originY],i,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hu(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}},pan:$b(function(e,t,r,n,a,o){var i=vp[n]([o.oldX,o.oldY],[o.newX,o.newY],t,a,r);return i.signal*(e[1]-e[0])*i.pixel/i.pixelLength}),scrollMove:$b(function(e,t,r,n,a,o){var i=vp[n]([0,0],[o.scrollDelta,o.scrollDelta],t,a,r);return i.signal*(e[1]-e[0])*o.scrollDelta})};function $b(e){return function(t,r,n,a){var o=this.range,i=o.slice(),s=t.axisModels[0];if(s){var l=e(i,s,t,r,n,a);if(hu(l,i,[0,100],"all"),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}}}var vp={grid:function(e,t,r,n,a){var o=r.axis,i={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],o.dim==="x"?(i.pixel=t[0]-e[0],i.pixelLength=s.width,i.pixelStart=s.x,i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=s.height,i.pixelStart=s.y,i.signal=o.inverse?-1:1),i},polar:function(e,t,r,n,a){var o=r.axis,i={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(i.pixel=t[0]-e[0],i.pixelLength=l[1]-l[0],i.pixelStart=l[0],i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=u[1]-u[0],i.pixelStart=u[0],i.signal=o.inverse?-1:1),i},singleAxis:function(e,t,r,n,a){var o=r.axis,i=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=i.width,s.pixelStart=i.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=i.height,s.pixelStart=i.y,s.signal=o.inverse?-1:1),s}};const VB=BB;function $B(e){gb(e),e.registerComponentModel(MB),e.registerComponentView(VB),RB(e)}var FB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=cl(yu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(yu);const zB=FB;var Ri=Ee,Fb=7,GB=1,gp=30,HB=7,Bi="horizontal",zb="vertical",WB=5,UB=["line","bar","candlestick","scatter"],YB={easing:"cubicOut",duration:100,delay:0},qB=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,o){if(e.prototype.render.apply(this,arguments),Ml(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){kl(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Pe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),o=a?HB:0,i=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Bi?{right:s.width-i.x-i.width,top:s.height-gp-Fb-o,width:i.width,height:gp}:{right:Fb,top:i.y,width:gp,height:i.height},u=si(r.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=qn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===zb&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),i=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Bi&&!i?{scaleY:l?1:-1,scaleX:1}:a===Bi&&i?{scaleY:l?1:-1,scaleX:-1}:a===zb&&!i?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,o=r.get("brushSelect");a.add(new Ri({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var i=new Ri({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();o?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(i)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],o=r.series,i=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&i.getDimensionInfo(s)?o.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=i.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],v=[0,n[0]],m=[[n[0],0],[0,0]],g=[],y=v[1]/(i.count()-1),w=0,_=Math.round(i.count()/n[0]),S;i.each([l],function(D,N){if(_>0&&N%_){w+=y;return}var A=D==null||isNaN(D)||D==="",M=A?0:Ye(D,f,h,!0);A&&!S&&N?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&S&&(m.push([w,0]),g.push([w,0])),m.push([w,M]),g.push([w,M]),w+=y,S=A}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function C(D){var N=x.getModel(D?"selectedDataBackground":"dataBackground"),A=new Pe,M=new Hf({shape:{points:u},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Fa({shape:{points:c},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(M),A.add(I),A}for(var T=0;T<3;T++){var b=C(T===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,o=this.ecModel;return r.eachTargetAxis(function(i,s){var l=r.getAxisProxy(i,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(n!==!0&&fe(UB,u.get("type"))<0)){var c=o.getComponent(pn(i),s).axis,f=jB(i),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:i,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],o=n.handleLabels=[null,null],i=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Ri({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new Ri({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:GB,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var S=l.get("handleIcon");!Ll[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&qt("handleIcon now needs 'path://' prefix when using a path string"));var x=Pr(S,-1,0,2,2,null,!0);x.attr({cursor:Gb(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var C=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=xe(T,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),qs(x);var b=l.get("handleColor");b!=null&&(x.style.fill=b),i.add(a[_]=x);var D=l.getModel("textStyle");r.add(o[_]=new We({silent:!0,invisible:!0,style:Zt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var h=d;if(f){var v=xe(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new Ee({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,y=n.moveHandleIcon=Pr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Ee({invisible:!0,shape:{y:s[1]-w,height:v+w}}),h.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),i.add(m),i.add(y),i.add(h)}h.attr({draggable:!0,cursor:Gb(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ye(r[0],[0,100],n,!0),Ye(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,o=this._handleEnds,i=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];hu(n,o,i,a.get("zoomLock")?"all":r,s.minSpan!=null?Ye(s.minSpan,l,i,!0):null,s.maxSpan!=null?Ye(s.maxSpan,l,i,!0):null);var u=this._range,c=this._range=$o([Ye(o[0],i,l,!0),Ye(o[1],i,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,o=$o(a.slice()),i=this._size;k([0,1],function(h){var v=n.handles[h],m=this._handleHeight;v.attr({scaleX:m/2,scaleY:m/2,x:a[h]+(h?-1:1),y:i[1]/2-m/2})},this),n.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:i[1]});var s={x:o[0],width:o[1]-o[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,o[0],o[1],i[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Ee,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:i[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,o=a.handleLabels,i=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=$o(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var m=Qm(a.handles[v].parent,this.group),g=ey(v===0?"right":"left",m),y=this._handleWidth/2+WB,w=ti([d[v]+(v===0?-y:y),this._size[1]/2],m);o[v].setStyle({x:w[0],y:w[1],verticalAlign:i===Bi?"middle":g,align:i===Bi?g:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,o=a.get("labelFormatter"),i=a.get("labelPrecision");(i==null||i==="auto")&&(i=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(i,20));return ae(o)?o(r,s):X(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,o){this._dragging=!0,Ca(o.event);var i=this._displayables.sliderGroup.getLocalTransform(),s=ti([n,a],i,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var o=this._handleEnds,i=(o[0]+o[1])/2,s=this._updateInterval("all",a[0]-i);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new le(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(a.width)<5)){var i=this._getViewExtent(),s=[0,100];this._range=$o([Ye(a.x,i,s,!0),Ye(a.x+a.width,i,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Ca(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,o=this.dataZoomModel,i=a.brushRect;i||(i=a.brushRect=new Ri({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(i)),i.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),i.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?YB:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=fb(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var o=this.api.getWidth(),i=this.api.getHeight();r={x:o*.2,y:i*.2,width:o*.6,height:i*.6}}return r},t.type="dataZoom.slider",t}(db);function jB(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Gb(e){return e==="vertical"?"ns-resize":"ew-resize"}const XB=qB;function ZB(e){e.registerComponentModel(zB),e.registerComponentView(XB),gb(e)}function KB(e){gr($B),gr(ZB)}function Hb(e,t,r){var n=pa.createCanvas(),a=t.getWidth(),o=t.getHeight(),i=n.style;return i&&(i.position="absolute",i.left="0",i.top="0",i.width=a+"px",i.height=o+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=o*r,n}var JB=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var i;a=a||Ns,typeof r=="string"?i=Hb(r,n,a):K(r)&&(i=r,r=i.id),o.id=r,o.dom=i;var s=i.style;return s&&(pv(i),i.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=n,o.dpr=a,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Hb("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],s=this.maxRepaintRectCount,l=!1,u=new ye(0,0,0,0);function c(w){if(!(!w.isFinite()||w.isZero()))if(i.length===0){var _=new ye(0,0,0,0);_.copy(w),i.push(_)}else{for(var S=!1,x=1/0,C=0,T=0;T<i.length;++T){var b=i[T];if(b.intersect(w)){var D=new ye(0,0,0,0);D.copy(b),D.union(w),i[T]=D,S=!0;break}else if(l){u.copy(w),u.union(b);var N=w.width*w.height,A=b.width*b.height,M=u.width*u.height,I=M-N-A;I<x&&(x=I,C=T)}}if(l&&(i[C].union(w),S=!0),!S){var _=new ye(0,0,0,0);_.copy(w),i.push(_)}l||(l=i.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(a,o,!0,!0),v=d.__isRendered&&(d.__dirty&yt||!h)?d.getPrevPaintRect():null;v&&c(v);var m=h&&(d.__dirty&yt||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d&&d.shouldBePainted(a,o,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<i.length;){if(i[f].isZero()){i.splice(f,1);continue}for(var y=f+1;y<i.length;)i[f].intersect(i[y])?(g=!0,i[f].union(i[y]),i.splice(y,1)):y++;f++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,o=this.dom,i=o.style,s=this.domBack;i&&(i.width=r+"px",i.height=n+"px"),o.width=r*a,o.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var o=this.dom,i=this.ctx,s=o.width,l=o.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var h=this.domBack;function v(m,g,y,w){if(i.clearRect(m,g,y,w),n&&n!=="transparent"){var _=void 0;if(os(n)){var S=n.global||n.__width===y&&n.__height===w;_=S&&n.__canvasGradient||Bh(i,n,{x:0,y:0,width:y,height:w}),n.__canvasGradient=_,n.__width=y,n.__height=w}else dT(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=Vh(i,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));i.save(),i.fillStyle=_||n,i.fillRect(m,g,y,w),i.restore()}u&&(i.save(),i.globalAlpha=c,i.drawImage(h,m,g,y,w),i.restore())}!a||u?v(0,0,s,l):a.length&&k(a,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(Ut);const mp=JB;var Wb=1e5,sa=314159,Nu=.01,QB=.001;function eV(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function tV(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var rV=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||Ns,this._singleCanvas=o,this.root=t;var i=t.style;i&&(pv(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new mp(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[sa]=h,h.zlevel=sa,s.push(sa),this._domRoot=t}else{this._width=Bl(t,0,n),this._height=Bl(t,1,n);var u=this._domRoot=tV(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var o=0;o<a.length;o++){var i=a[o],s=this._layers[i];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,i=0;i<r;i++){var s=t[i];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Wb)),o||(o=n.ctx,o.save()),Qn(o,s,a,i===r-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Wb)},e.prototype.paintOne=function(t,r){a_(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,r,n),i=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),i)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Ic(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(sa).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,o=[],i=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var c=!0,f=!1,d=function(m){var g=o[m],y=g.ctx,w=i&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),C=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,C,w);else if(_===g.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&g.clear(!1,C,w)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var b,D=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(b=_;b<g.__endIndex;b++){var L=t[b];if(L.__inHover&&(f=!0),a._doPaintEl(L,g,i,I,P,b===g.__endIndex-1),S){var E=Date.now()-x;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(w)if(w.length===0)b=g.__endIndex;else for(var N=h.dpr,A=0;A<w.length;++A){var M=w[A];y.save(),y.beginPath(),y.rect(M.x*N,M.y*N,M.width*N,M.height*N),y.clip(),D(M),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=b,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<o.length;v++)d(v);return ne.wxa&&k(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,a,o,i){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Qn(s,t,o,i),t.setPrevPaintRect(l))}else Qn(s,t,o,i)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=sa);var n=this._layers[t];return n||(n=new mp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?pe(n,this._layerConfig[t],!0):this._layerConfig[t-Nu]&&pe(n,this._layerConfig[t-Nu],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,o=a.length,i=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&Hr("ZLevel "+t+" has been used already");return}if(!eV(r)){process.env.NODE_ENV!=="production"&&Hr("Layer of zlevel "+t+" is not valid");return}if(o>0&&t>a[0]){for(l=0;l<o-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?i.insertBefore(r.dom,u.nextSibling):i.appendChild(r.dom)}else i.firstChild?i.insertBefore(r.dom,i.firstChild):i.appendChild(r.dom);r.painter||(r.painter=this)},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a];t.call(r,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a],i=this._layers[o];i.__builtin__&&t.call(r,i,o)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a],i=this._layers[o];i.__builtin__||t.call(r,i,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,i=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,i=0),a.incremental?(c=this.getLayer(u+QB,this._needsManuallyCompositing),c.incremental=!0,i=1):c=this.getLayer(u+(i>0?Nu:0),this._needsManuallyCompositing),c.__builtin__||Hr("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),o=c),a.__dirty&yt&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,k(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?pe(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===t||o===t+Nu){var i=this._layers[o];pe(i,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(fe(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,o=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=Bl(o,0,a),r=Bl(o,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var i in this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(sa).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[sa].dom;var r=new mp("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,o=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,o):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var i={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Qn(n,c,i,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const nV=rV;function aV(e){e.registerPainter("canvas",nV)}const oV={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#333333",fontWeight:"normal"},subtextStyle:{color:"#eeeeee"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetY:3},label:{color:"#333333",textBorderColor:"rgba(255, 255, 255, 1)",textBorderWidth:4},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.1)",borderRadius:[16]},itemStyle:{shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#fff"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},legend:{textStyle:{color:"#333333"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"#8e54c8"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#8e54c8"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},visualMap:{color:["#5ab1ef","#e0ffff"]},dataZoom:{brushSelect:!0,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#333"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}},iV={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#ffffff",fontWeight:"normal"},subtextStyle:{color:"#cccccc"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowBlur:3,shadowOffsetY:3},label:{color:"#ffffff",textBorderColor:"rgba(0, 0, 0, 1)",textBorderWidth:2},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(142, 84, 200, 0.03)",borderRadius:[16]},label:{show:!0,color:"#fff"},itemStyle:{shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{label:{color:"#fff"},itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#2d2d31"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!1,lineStyle:{color:["#363636"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#fff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#cccccc"},splitLine:{show:!0,lineStyle:{color:["#363636"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},legend:{textStyle:{color:"#cccccc"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"rgb(45, 45, 49)"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#8fd3e8",width:1},itemStyle:{color:"#8fd3e8",borderWidth:1},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},checkpointStyle:{color:"#8fd3e8",borderColor:"#8a7ca8"},label:{color:"#8fd3e8"},emphasis:{itemStyle:{color:"#8fd3e8"},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},label:{color:"#8fd3e8"}}},visualMap:{color:["#8a7ca8","#e098c7","#cceffa"]},dataZoom:{brushSelect:!1,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#fff"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}};ql("white",oV),ql("dark",iV),gr([UI,AI,sL,GO,JR,XR,mR,aV,DB,KB,dB]);const sV={display:"flex",flexDirection:"column",width:"100%",height:"100%"},_r=new WeakMap,Ub=p.defineComponent({name:"OcEcharts",props:{options:{type:Object,required:!0},renderer:{type:String,default:()=>"canvas"},style:{type:Object,default:()=>null},notMerge:{type:Boolean,default:()=>!1},ariaShow:{type:Boolean,default:()=>!1},lazyUpdate:{type:Boolean,default:()=>!1},silent:{type:Boolean,default:()=>!1},resizeAble:{type:Boolean,default:()=>!0},events:{type:Object,default:()=>({})},theme:{type:String,default:void 0}},watch:{options:{deep:!0,handler(e){e&&this.setOption()}}},beforeUnmount(){this.dispose()},mounted(){this.$watch(()=>se.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{_r.set(this,null)}},methods:{init(){this.initChart(this.$el).then(e=>{this.setOption(),this.bindEvents(e,this.events),this.resizeAble&&window.addEventListener("resize",this.resizeChart)})},initChart(e){const t=this.renderer||"canvas";return new Promise(r=>{this.$nextTick(()=>{const n=this.theme?this.theme:se.theme?"dark":"white",a=T5(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});_r.set(this,a),r(_r.get(this))})})},setOption(){if(!_r.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=_r.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=_r.get(this))==null||e.resize()})},getInstance(){return _r.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=_r.get(this))==null||e.dispose(),_r.set(this,null),_r.delete(this)},bindEvents(e,t){const r=(n,a)=>{typeof n=="string"&&typeof a=="function"&&e.on(n,o=>{a(o,e)})};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&r(n,t[n])}},render(){const{style:e}=this,t=Object.assign({},sV,e||{});return p.h("div",{style:t})}}),Br=Ct.createRouter({history:Ct.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),yp=document.querySelector("html");Br.beforeEach(()=>{yp==null||yp.removeAttribute("style")});const lV=p.defineComponent({name:"OcError",components:{NButton:O.NButton},props:{type:{type:String,default:"404"}},setup(e){const t={404:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."},500:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/500.png",txt:"500",title:"服务暂时中断,请稍后重试.",title2:"Oops! No Internet connection found."}},r=p.ref({img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."}),n=()=>{Br.push(se.platformUrl)},a=p.ref();return p.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{Br.push(se.platformUrl)},3e3)}),p.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),uV={class:"com-card flex-center oc-error"},cV=["src","alt"],fV={class:"oc-miss-txt"},hV={class:"oc-miss-title"},dV={class:"oc-miss-title2"};function pV(e,t,r,n,a,o){const i=p.resolveComponent("NButton");return p.openBlock(),p.createElementBlock("div",uV,[p.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,cV),p.createElementVNode("div",fV,p.toDisplayString(e.content.txt),1),p.createElementVNode("p",hV,p.toDisplayString(e.content.title),1),p.createElementVNode("p",dV,p.toDisplayString(e.content.title2),1),p.createVNode(i,{tertiary:"",onClick:e.goBack},{default:p.withCtx(()=>[p.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const Yb=Z(lV,[["render",pV]]),vV=p.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),gV={class:"oc-footer"},mV=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),yV=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function _V(e,t,r,n,a,o){return p.openBlock(),p.createElementBlock("footer",gV,[p.createTextVNode(" Copyright "),mV,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),yV])}const qb=Z(vV,[["render",_V]]);var Du=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wV(){this.__data__=[],this.size=0}var bV=wV;function SV(e,t){return e===t||e!==e&&t!==t}var Xb=SV,CV=Xb;function xV(e,t){for(var r=e.length;r--;)if(CV(e[r][0],t))return r;return-1}var Au=xV,TV=Au,NV=Array.prototype,DV=NV.splice;function AV(e){var t=this.__data__,r=TV(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():DV.call(t,r,1),--this.size,!0}var MV=AV,kV=Au;function EV(e){var t=this.__data__,r=kV(t,e);return r<0?void 0:t[r][1]}var PV=EV,IV=Au;function LV(e){return IV(this.__data__,e)>-1}var OV=LV,RV=Au;function BV(e,t){var r=this.__data__,n=RV(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var VV=BV,$V=bV,FV=MV,zV=PV,GV=OV,HV=VV;function uo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uo.prototype.clear=$V,uo.prototype.delete=FV,uo.prototype.get=zV,uo.prototype.has=GV,uo.prototype.set=HV;var Mu=uo,WV=Mu;function UV(){this.__data__=new WV,this.size=0}var YV=UV;function qV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var jV=qV;function XV(e){return this.__data__.get(e)}var ZV=XV;function KV(e){return this.__data__.has(e)}var JV=KV,QV=typeof Du=="object"&&Du&&Du.Object===Object&&Du,Zb=QV,e3=Zb,t3=typeof self=="object"&&self&&self.Object===Object&&self,r3=e3||t3||Function("return this")(),rr=r3,n3=rr,a3=n3.Symbol,_p=a3,Kb=_p,Jb=Object.prototype,o3=Jb.hasOwnProperty,i3=Jb.toString,Vi=Kb?Kb.toStringTag:void 0;function s3(e){var t=o3.call(e,Vi),r=e[Vi];try{e[Vi]=void 0;var n=!0}catch{}var a=i3.call(e);return n&&(t?e[Vi]=r:delete e[Vi]),a}var l3=s3,u3=Object.prototype,c3=u3.toString;function f3(e){return c3.call(e)}var h3=f3,Qb=_p,d3=l3,p3=h3,v3="[object Null]",g3="[object Undefined]",eS=Qb?Qb.toStringTag:void 0;function m3(e){return e==null?e===void 0?g3:v3:eS&&eS in Object(e)?d3(e):p3(e)}var $i=m3;function y3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var la=y3,_3=$i,w3=la,b3="[object AsyncFunction]",S3="[object Function]",C3="[object GeneratorFunction]",x3="[object Proxy]";function T3(e){if(!w3(e))return!1;var t=_3(e);return t==S3||t==C3||t==b3||t==x3}var tS=T3,N3=rr,D3=N3["__core-js_shared__"],A3=D3,wp=A3,rS=function(){var e=/[^.]+$/.exec(wp&&wp.keys&&wp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M3(e){return!!rS&&rS in e}var k3=M3,E3=Function.prototype,P3=E3.toString;function I3(e){if(e!=null){try{return P3.call(e)}catch{}try{return e+""}catch{}}return""}var nS=I3,L3=tS,O3=k3,R3=la,B3=nS,V3=/[\\^$.*+?()[\]{}|]/g,$3=/^\[object .+?Constructor\]$/,F3=Function.prototype,z3=Object.prototype,G3=F3.toString,H3=z3.hasOwnProperty,W3=RegExp("^"+G3.call(H3).replace(V3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U3(e){if(!R3(e)||O3(e))return!1;var t=L3(e)?W3:$3;return t.test(B3(e))}var Y3=U3;function q3(e,t){return e==null?void 0:e[t]}var j3=q3,X3=Y3,Z3=j3;function K3(e,t){var r=Z3(e,t);return X3(r)?r:void 0}var ua=K3,J3=ua,Q3=rr,e$=J3(Q3,"Map"),bp=e$,t$=ua,r$=t$(Object,"create"),ku=r$,aS=ku;function n$(){this.__data__=aS?aS(null):{},this.size=0}var a$=n$;function o$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var i$=o$,s$=ku,l$="__lodash_hash_undefined__",u$=Object.prototype,c$=u$.hasOwnProperty;function f$(e){var t=this.__data__;if(s$){var r=t[e];return r===l$?void 0:r}return c$.call(t,e)?t[e]:void 0}var h$=f$,d$=ku,p$=Object.prototype,v$=p$.hasOwnProperty;function g$(e){var t=this.__data__;return d$?t[e]!==void 0:v$.call(t,e)}var m$=g$,y$=ku,_$="__lodash_hash_undefined__";function w$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=y$&&t===void 0?_$:t,this}var b$=w$,S$=a$,C$=i$,x$=h$,T$=m$,N$=b$;function co(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}co.prototype.clear=S$,co.prototype.delete=C$,co.prototype.get=x$,co.prototype.has=T$,co.prototype.set=N$;var D$=co,oS=D$,A$=Mu,M$=bp;function k$(){this.size=0,this.__data__={hash:new oS,map:new(M$||A$),string:new oS}}var E$=k$;function P$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var I$=P$,L$=I$;function O$(e,t){var r=e.__data__;return L$(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Eu=O$,R$=Eu;function B$(e){var t=R$(this,e).delete(e);return this.size-=t?1:0,t}var V$=B$,$$=Eu;function F$(e){return $$(this,e).get(e)}var z$=F$,G$=Eu;function H$(e){return G$(this,e).has(e)}var W$=H$,U$=Eu;function Y$(e,t){var r=U$(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var q$=Y$,j$=E$,X$=V$,Z$=z$,K$=W$,J$=q$;function fo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fo.prototype.clear=j$,fo.prototype.delete=X$,fo.prototype.get=Z$,fo.prototype.has=K$,fo.prototype.set=J$;var Q$=fo,e7=Mu,t7=bp,r7=Q$,n7=200;function a7(e,t){var r=this.__data__;if(r instanceof e7){var n=r.__data__;if(!t7||n.length<n7-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new r7(n)}return r.set(e,t),this.size=r.size,this}var o7=a7,i7=Mu,s7=YV,l7=jV,u7=ZV,c7=JV,f7=o7;function ho(e){var t=this.__data__=new i7(e);this.size=t.size}ho.prototype.clear=s7,ho.prototype.delete=l7,ho.prototype.get=u7,ho.prototype.has=c7,ho.prototype.set=f7;var h7=ho;function d7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var p7=d7,v7=ua,g7=function(){try{var e=v7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),m7=g7,iS=m7;function y7(e,t,r){t=="__proto__"&&iS?iS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var sS=y7,_7=sS,w7=Xb,b7=Object.prototype,S7=b7.hasOwnProperty;function C7(e,t,r){var n=e[t];(!(S7.call(e,t)&&w7(n,r))||r===void 0&&!(t in e))&&_7(e,t,r)}var lS=C7,x7=lS,T7=sS;function N7(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?T7(r,s,l):x7(r,s,l)}return r}var Pu=N7;function D7(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var A7=D7;function M7(e){return e!=null&&typeof e=="object"}var po=M7,k7=$i,E7=po,P7="[object Arguments]";function I7(e){return E7(e)&&k7(e)==P7}var L7=I7,uS=L7,O7=po,cS=Object.prototype,R7=cS.hasOwnProperty,B7=cS.propertyIsEnumerable,V7=uS(function(){return arguments}())?uS:function(e){return O7(e)&&R7.call(e,"callee")&&!B7.call(e,"callee")},$7=V7,F7=Array.isArray,Sp=F7,Iu={exports:{}};function z7(){return!1}var G7=z7;Iu.exports,function(e,t){var r=rr,n=G7,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Iu,Iu.exports);var fS=Iu.exports,H7=9007199254740991,W7=/^(?:0|[1-9]\d*)$/;function U7(e,t){var r=typeof e;return t=t??H7,!!t&&(r=="number"||r!="symbol"&&W7.test(e))&&e>-1&&e%1==0&&e<t}var Y7=U7,q7=9007199254740991;function j7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=q7}var hS=j7,X7=$i,Z7=hS,K7=po,J7="[object Arguments]",Q7="[object Array]",e4="[object Boolean]",t4="[object Date]",r4="[object Error]",n4="[object Function]",a4="[object Map]",o4="[object Number]",i4="[object Object]",s4="[object RegExp]",l4="[object Set]",u4="[object String]",c4="[object WeakMap]",f4="[object ArrayBuffer]",h4="[object DataView]",d4="[object Float32Array]",p4="[object Float64Array]",v4="[object Int8Array]",g4="[object Int16Array]",m4="[object Int32Array]",y4="[object Uint8Array]",_4="[object Uint8ClampedArray]",w4="[object Uint16Array]",b4="[object Uint32Array]",Me={};Me[d4]=Me[p4]=Me[v4]=Me[g4]=Me[m4]=Me[y4]=Me[_4]=Me[w4]=Me[b4]=!0,Me[J7]=Me[Q7]=Me[f4]=Me[e4]=Me[h4]=Me[t4]=Me[r4]=Me[n4]=Me[a4]=Me[o4]=Me[i4]=Me[s4]=Me[l4]=Me[u4]=Me[c4]=!1;function S4(e){return K7(e)&&Z7(e.length)&&!!Me[X7(e)]}var C4=S4;function x4(e){return function(t){return e(t)}}var Cp=x4,Lu={exports:{}};Lu.exports,function(e,t){var r=Zb,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}(Lu,Lu.exports);var xp=Lu.exports,T4=C4,N4=Cp,dS=xp,pS=dS&&dS.isTypedArray,D4=pS?N4(pS):T4,A4=D4,M4=A7,k4=$7,E4=Sp,P4=fS,I4=Y7,L4=A4,O4=Object.prototype,R4=O4.hasOwnProperty;function B4(e,t){var r=E4(e),n=!r&&k4(e),a=!r&&!n&&P4(e),o=!r&&!n&&!a&&L4(e),i=r||n||a||o,s=i?M4(e.length,String):[],l=s.length;for(var u in e)(t||R4.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||I4(u,l)))&&s.push(u);return s}var vS=B4,V4=Object.prototype;function $4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||V4;return e===r}var Tp=$4;function F4(e,t){return function(r){return e(t(r))}}var gS=F4,z4=gS,G4=z4(Object.keys,Object),H4=G4,W4=Tp,U4=H4,Y4=Object.prototype,q4=Y4.hasOwnProperty;function j4(e){if(!W4(e))return U4(e);var t=[];for(var r in Object(e))q4.call(e,r)&&r!="constructor"&&t.push(r);return t}var X4=j4,Z4=tS,K4=hS;function J4(e){return e!=null&&K4(e.length)&&!Z4(e)}var mS=J4,Q4=vS,eF=X4,tF=mS;function rF(e){return tF(e)?Q4(e):eF(e)}var Np=rF,nF=Pu,aF=Np;function oF(e,t){return e&&nF(t,aF(t),e)}var iF=oF;function sF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var lF=sF,uF=la,cF=Tp,fF=lF,hF=Object.prototype,dF=hF.hasOwnProperty;function pF(e){if(!uF(e))return fF(e);var t=cF(e),r=[];for(var n in e)n=="constructor"&&(t||!dF.call(e,n))||r.push(n);return r}var vF=pF,gF=vS,mF=vF,yF=mS;function _F(e){return yF(e)?gF(e,!0):mF(e)}var Dp=_F,wF=Pu,bF=Dp;function SF(e,t){return e&&wF(t,bF(t),e)}var CF=SF,Ou={exports:{}};Ou.exports,function(e,t){var r=rr,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}e.exports=l}(Ou,Ou.exports);var xF=Ou.exports;function TF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var NF=TF;function DF(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}var AF=DF;function MF(){return[]}var yS=MF,kF=AF,EF=yS,PF=Object.prototype,IF=PF.propertyIsEnumerable,_S=Object.getOwnPropertySymbols,LF=_S?function(e){return e==null?[]:(e=Object(e),kF(_S(e),function(t){return IF.call(e,t)}))}:EF,Ap=LF,OF=Pu,RF=Ap;function BF(e,t){return OF(e,RF(e),t)}var VF=BF;function $F(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var wS=$F,FF=gS,zF=FF(Object.getPrototypeOf,Object),bS=zF,GF=wS,HF=bS,WF=Ap,UF=yS,YF=Object.getOwnPropertySymbols,qF=YF?function(e){for(var t=[];e;)GF(t,WF(e)),e=HF(e);return t}:UF,SS=qF,jF=Pu,XF=SS;function ZF(e,t){return jF(e,XF(e),t)}var KF=ZF,JF=wS,QF=Sp;function ez(e,t,r){var n=t(e);return QF(e)?n:JF(n,r(e))}var CS=ez,tz=CS,rz=Ap,nz=Np;function az(e){return tz(e,nz,rz)}var oz=az,iz=CS,sz=SS,lz=Dp;function uz(e){return iz(e,lz,sz)}var cz=uz,fz=ua,hz=rr,dz=fz(hz,"DataView"),pz=dz,vz=ua,gz=rr,mz=vz(gz,"Promise"),yz=mz,_z=ua,wz=rr,bz=_z(wz,"Set"),Sz=bz,Cz=ua,xz=rr,Tz=Cz(xz,"WeakMap"),Nz=Tz,Mp=pz,kp=bp,Ep=yz,Pp=Sz,Ip=Nz,xS=$i,vo=nS,TS="[object Map]",Dz="[object Object]",NS="[object Promise]",DS="[object Set]",AS="[object WeakMap]",MS="[object DataView]",Az=vo(Mp),Mz=vo(kp),kz=vo(Ep),Ez=vo(Pp),Pz=vo(Ip),ca=xS;(Mp&&ca(new Mp(new ArrayBuffer(1)))!=MS||kp&&ca(new kp)!=TS||Ep&&ca(Ep.resolve())!=NS||Pp&&ca(new Pp)!=DS||Ip&&ca(new Ip)!=AS)&&(ca=function(e){var t=xS(e),r=t==Dz?e.constructor:void 0,n=r?vo(r):"";if(n)switch(n){case Az:return MS;case Mz:return TS;case kz:return NS;case Ez:return DS;case Pz:return AS}return t});var Lp=ca,Iz=Object.prototype,Lz=Iz.hasOwnProperty;function Oz(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Lz.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Rz=Oz,Bz=rr,Vz=Bz.Uint8Array,$z=Vz,kS=$z;function Fz(e){var t=new e.constructor(e.byteLength);return new kS(t).set(new kS(e)),t}var Op=Fz,zz=Op;function Gz(e,t){var r=t?zz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Hz=Gz,Wz=/\w*$/;function Uz(e){var t=new e.constructor(e.source,Wz.exec(e));return t.lastIndex=e.lastIndex,t}var Yz=Uz,ES=_p,PS=ES?ES.prototype:void 0,IS=PS?PS.valueOf:void 0;function qz(e){return IS?Object(IS.call(e)):{}}var jz=qz,Xz=Op;function Zz(e,t){var r=t?Xz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Kz=Zz,Jz=Op,Qz=Hz,e8=Yz,t8=jz,r8=Kz,n8="[object Boolean]",a8="[object Date]",o8="[object Map]",i8="[object Number]",s8="[object RegExp]",l8="[object Set]",u8="[object String]",c8="[object Symbol]",f8="[object ArrayBuffer]",h8="[object DataView]",d8="[object Float32Array]",p8="[object Float64Array]",v8="[object Int8Array]",g8="[object Int16Array]",m8="[object Int32Array]",y8="[object Uint8Array]",_8="[object Uint8ClampedArray]",w8="[object Uint16Array]",b8="[object Uint32Array]";function S8(e,t,r){var n=e.constructor;switch(t){case f8:return Jz(e);case n8:case a8:return new n(+e);case h8:return Qz(e,r);case d8:case p8:case v8:case g8:case m8:case y8:case _8:case w8:case b8:return r8(e,r);case o8:return new n;case i8:case u8:return new n(e);case s8:return e8(e);case l8:return new n;case c8:return t8(e)}}var C8=S8,x8=la,LS=Object.create,T8=function(){function e(){}return function(t){if(!x8(t))return{};if(LS)return LS(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),N8=T8,D8=N8,A8=bS,M8=Tp;function k8(e){return typeof e.constructor=="function"&&!M8(e)?D8(A8(e)):{}}var E8=k8,P8=Lp,I8=po,L8="[object Map]";function O8(e){return I8(e)&&P8(e)==L8}var R8=O8,B8=R8,V8=Cp,OS=xp,RS=OS&&OS.isMap,$8=RS?V8(RS):B8,F8=$8,z8=Lp,G8=po,H8="[object Set]";function W8(e){return G8(e)&&z8(e)==H8}var U8=W8,Y8=U8,q8=Cp,BS=xp,VS=BS&&BS.isSet,j8=VS?q8(VS):Y8,X8=j8,Z8=h7,K8=p7,J8=lS,Q8=iF,e6=CF,t6=xF,r6=NF,n6=VF,a6=KF,o6=oz,i6=cz,s6=Lp,l6=Rz,u6=C8,c6=E8,f6=Sp,h6=fS,d6=F8,p6=la,v6=X8,g6=Np,m6=Dp,y6=1,_6=2,w6=4,$S="[object Arguments]",b6="[object Array]",S6="[object Boolean]",C6="[object Date]",x6="[object Error]",FS="[object Function]",T6="[object GeneratorFunction]",N6="[object Map]",D6="[object Number]",zS="[object Object]",A6="[object RegExp]",M6="[object Set]",k6="[object String]",E6="[object Symbol]",P6="[object WeakMap]",I6="[object ArrayBuffer]",L6="[object DataView]",O6="[object Float32Array]",R6="[object Float64Array]",B6="[object Int8Array]",V6="[object Int16Array]",$6="[object Int32Array]",F6="[object Uint8Array]",z6="[object Uint8ClampedArray]",G6="[object Uint16Array]",H6="[object Uint32Array]",Ae={};Ae[$S]=Ae[b6]=Ae[I6]=Ae[L6]=Ae[S6]=Ae[C6]=Ae[O6]=Ae[R6]=Ae[B6]=Ae[V6]=Ae[$6]=Ae[N6]=Ae[D6]=Ae[zS]=Ae[A6]=Ae[M6]=Ae[k6]=Ae[E6]=Ae[F6]=Ae[z6]=Ae[G6]=Ae[H6]=!0,Ae[x6]=Ae[FS]=Ae[P6]=!1;function Ru(e,t,r,n,a,o){var i,s=t&y6,l=t&_6,u=t&w6;if(r&&(i=a?r(e,n,a,o):r(e)),i!==void 0)return i;if(!p6(e))return e;var c=f6(e);if(c){if(i=l6(e),!s)return r6(e,i)}else{var f=s6(e),d=f==FS||f==T6;if(h6(e))return t6(e,s);if(f==zS||f==$S||d&&!a){if(i=l||d?{}:c6(e),!s)return l?a6(e,e6(i,e)):n6(e,Q8(i,e))}else{if(!Ae[f])return a?e:{};i=u6(e,f,s)}}o||(o=new Z8);var h=o.get(e);if(h)return h;o.set(e,i),v6(e)?e.forEach(function(g){i.add(Ru(g,t,r,g,e,o))}):d6(e)&&e.forEach(function(g,y){i.set(y,Ru(g,t,r,y,e,o))});var v=u?l?i6:o6:l?m6:g6,m=c?void 0:v(e);return K8(m||e,function(g,y){m&&(y=g,g=e[y]),J8(i,y,Ru(g,t,r,y,e,o))}),i}var W6=Ru,U6=W6,Y6=1,q6=4;function j6(e){return U6(e,Y6|q6)}var X6=j6;const Ft=jb(X6),Z6=p.defineComponent({name:"OcForm",components:{NIcon:O.NIcon,NGrid:O.NGrid,NForm:O.NForm,NFormItemGi:O.NFormItemGi,NButton:O.NButton,NInput:O.NInput,NSelect:O.NSelect,NInputNumber:O.NInputNumber,NDatePicker:O.NDatePicker,NTimePicker:O.NTimePicker,NSwitch:O.NSwitch,NUpload:O.NUpload,NUploadDragger:O.NUploadDragger,IconMailInboxAdd:_o},props:{items:{required:!0,type:Array,default:()=>[]},data:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},labelWidth:{type:[String,Number],default:"auto"},labelAlign:{type:String,default:"left"},labelPlacement:{type:String,default:"top"}},setup(e,{expose:t}){const r=p.ref(),n=p.ref({}),a=p.ref([]),{t:o}=Gt.useI18n(),i=v=>!((v==null?void 0:v.show)===!1||e.edit&&v.edit&&!v.edit.show),s=()=>{const v=Ft(e.items);v.forEach(m=>{if(m.rule&&m.rule.validator&&typeof m.rule.validator=="string"){const g=m.rule.validator,y=new Function("rule","value",g);m.rule.validator=(w,_)=>y(w,_)}if(m.input==="date"&&m.isDateDisabled&&typeof m.isDateDisabled=="string"){const g=m.isDateDisabled,y=new Function("ts","detail",g);m.isDateDisabled=(w,_)=>y(w,_)}m.input==="select"&&m.fallbackOption&&m.multiple&&(!n.value[m.key]||n.value[m.key].length===0)&&(n.value[m.key]=[""])}),a.value=v},l=(v,m)=>{if(v.updateValue){const g=Ft(n.value);if(typeof v.updateValue=="string"){const y=v.updateValue;new Function("value","formValue",y)(m,g)}else v.updateValue(m,g)}},u=(v,m)=>new Promise((g,y)=>{v.file.file&&(n.value[m]=v.file.file,g()),y()}),c=(v,m)=>{v.length===0&&(n.value[m]="")},f=v=>v.fallbackOption?typeof v.fallbackOption=="boolean"?()=>({label:o("Common.message.all"),value:"",disabled:!0}):v.fallbackOption:!1,d=()=>new Promise((v,m)=>{var g;(g=r.value)==null||g.validate(y=>{if(y)m();else{const w=Ft(n.value),_=JSON.stringify(w,(S,x)=>x===void 0?null:Array.isArray(x)?x.filter(C=>C!==""):x);v(JSON.parse(_))}})}),h=()=>{var v;(v=r.value)==null||v.restoreValidation()};return p.onMounted(()=>{n.value=Ft(e.data),s()}),t({validate:d,restoreValidation:h}),p.watch(()=>e.items,()=>{s()},{deep:!0}),p.watch(()=>e.data,v=>{n.value=Ft(v)},{deep:!0}),{formRef:r,formValue:n,formItems:a,cloneDeep:Ft,updateValue:l,beforeUpload:u,uploadChange:c,elementShow:i,selectFallback:f}}}),K6=p.createElementVNode("br",null,null,-1),J6=p.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),Q6=p.createElementVNode("p",null," 请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码 ",-1);function eG(e,t,r,n,a,o){const i=p.resolveComponent("NInput"),s=p.resolveComponent("NInputNumber"),l=p.resolveComponent("NDatePicker"),u=p.resolveComponent("NSelect"),c=p.resolveComponent("NTimePicker"),f=p.resolveComponent("NSwitch"),d=p.resolveComponent("IconMailInboxAdd"),h=p.resolveComponent("NIcon"),v=p.resolveComponent("NUploadDragger"),m=p.resolveComponent("NUpload"),g=p.resolveComponent("NFormItemGi"),y=p.resolveComponent("NGrid"),w=p.resolveComponent("NForm");return p.openBlock(),p.createBlock(w,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:p.withCtx(()=>[p.createVNode(y,{cols:12,"x-gap":8},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.formItems,_=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:_.key},[e.elementShow(_)?(p.openBlock(),p.createBlock(g,{key:0,span:_.span||6,label:_.label,path:_.key,rule:_.rule},{default:p.withCtx(()=>[_.input==="input"?(p.openBlock(),p.createBlock(i,{key:0,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,minlength:_.minlength,maxlength:_.maxlength,rows:_.rows,"show-count":!!_.maxlength,"on-update:value":S=>{e.formValue[_.key]=S.trim(),e.updateValue(_,S.trim())}},null,8,["value","onUpdate:value","type","placeholder","disabled","readonly","clearable","minlength","maxlength","rows","show-count","on-update:value"])):p.createCommentVNode("",!0),_.input==="number"?(p.openBlock(),p.createBlock(s,{key:1,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,precision:_.precision||0,min:_.min,max:_.max,step:_.step,showButton:_.showButton,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","disabled","readonly","clearable","precision","min","max","step","showButton","on-update:value"])):p.createCommentVNode("",!0),_.input==="date"&&!_.format?(p.openBlock(),p.createBlock(l,{key:2,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","type","placeholder","disabled","input-readonly","clearable","time-picker-props","is-date-disabled","on-update:value"])):p.createCommentVNode("",!0),_.input==="date"&&_.format?(p.openBlock(),p.createBlock(l,{key:3,"formatted-value":e.formValue[_.key],"onUpdate:formattedValue":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,format:_.format,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:formatted-value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["formatted-value","onUpdate:formattedValue","type","placeholder","disabled","input-readonly","clearable","format","time-picker-props","is-date-disabled","on-update:formatted-value"])):p.createCommentVNode("",!0),_.input==="select"?(p.openBlock(),p.createBlock(u,{key:4,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,options:_.options,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,filterable:_.filterable,multiple:_.multiple,"fallback-option":e.selectFallback(_),maxTagCount:_.maxTagCount,"render-label":_.renderLabel,"render-option":_.renderOption,"render-tag":_.renderTag,"on-update:value":S=>{let x=S,C=S;if(_.multiple){let T=S.filter(b=>b);T.length===0?(x=[""],C=[]):(x=T,C=T)}e.formValue[_.key]=x,e.updateValue(_,C)}},null,8,["value","onUpdate:value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):p.createCommentVNode("",!0),_.input==="time"?(p.openBlock(),p.createBlock(c,{key:5,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,format:_.format,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","format","disabled","readonly","clearable","on-update:value"])):p.createCommentVNode("",!0),_.input==="switch"?(p.openBlock(),p.createBlock(f,{key:6,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,size:"large","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","disabled","on-update:value"])):p.createCommentVNode("",!0),_.input==="upload"?(p.openBlock(),p.createBlock(m,{key:7,"default-file-list":e.formValue[_.key]?[{id:"1",name:"File",status:"finished",url:e.formValue[_.key]}]:void 0,"on-before-upload":S=>{e.beforeUpload(S,_.key)},accept:_.accept,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,max:_.max,"on-update:file-list":S=>{e.uploadChange(S,_.key)},"directory-dnd":""},{default:p.withCtx(()=>[p.withDirectives(p.createVNode(v,null,{default:p.withCtx(()=>[p.createVNode(h,{size:"32"},{default:p.withCtx(()=>[p.createVNode(d)]),_:1}),K6,J6,Q6]),_:2},1536),[[p.vShow,!e.formValue[_.key]]])]),_:2},1032,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):p.createCommentVNode("",!0)]),_:2},1032,["span","label","path","rule"])):p.createCommentVNode("",!0)],64))),128))]),_:1})]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const GS=Z(Z6,[["render",eG]]),tG=Object.prototype.hasOwnProperty;function HS(e,t){const r=[];for(const n in e){if(!tG.call(e,n))continue;const a=e[n],o=encodeURIComponent(n);let i;typeof a=="object"?i=HS(a,t?t+"["+o+"]":o):i=(t?t+"["+o+"]":o)+"="+encodeURIComponent(a),r.push(i)}return r.join("&")}const{notification:Rp}=O.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),go=Hu.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}});let Bp=Hu.CancelToken.source();go.interceptors.request.use(e=>{var r;e.cancelToken=Bp.token;const t=xt("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=HS(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e)),go.interceptors.response.use(e=>{const t=e.data;if(e.config.responseType==="blob"||e.config.responseType==="text")return Promise.resolve(e.data);if(t.ok)return Promise.resolve(t.data);{let r=t.message;return(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Rp.error({content:r,duration:3e3}),Promise.reject(r)}},e=>{if(e&&e.code==="ECONNABORTED"&&e.config&&e.config.url&&e.config.url.indexOf("auth/user/getCurrentUserInfo")>-1&&(Qp(),Br.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:wo("token"),window.location.href="/login";break;default:return Rp.destroyAll(),Rp.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const rG=()=>{Bp.cancel(),Bp=Hu.CancelToken.source()},Vp="/apiserver/",WS=(e,t,r="json")=>go({url:`${Vp}${e}`,method:"GET",data:t,responseType:r}),ct=(e,t={},r="json",n=3e5)=>go({url:`${Vp}${e}`,method:"POST",data:t,responseType:r,timeout:n}),nG=e=>go(e),$p=(e,t)=>go({headers:{"Content-Type":"multipart/form-data"},url:`${Vp}${e}`,method:"POST",data:t}),US=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Hi(t.password),ct("api/user/v2/login",t)},aG=()=>new Promise((e,t)=>{ct("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(r=>{const n=["046459"];r.commissioner=!1,n.includes(String(r.tenantLoginCode))&&(r.commissioner=!0);const a=r.ownedProducts?JSON.parse(r.ownedProducts):[];switch(a.includes(2)?r.platform_tdm=!0:r.platform_tdm=!1,a.includes(3)?r.platform_qms=!0:r.platform_qms=!1,a.includes(4)?r.platform_twin=!0:r.platform_twin=!1,a.includes(5)?r.platform_maintain=!0:r.platform_maintain=!1,a.includes(6)?r.platform_simple_tdm=!0:r.platform_simple_tdm=!1,a.includes(7)?r.platform_order=!0:r.platform_order=!1,r.systemType){case"Premium":r.systemType=1;break;case"Flagship":r.systemType=2;break;default:r.systemType=0;break}r.info=JSON.parse(r.info),e(r)}).catch(()=>{t()})}),oG=()=>ct("api/auth/user/logout"),iG=()=>ct("api/manager/message/markReadAll"),sG=()=>ct("api/auth/user/updateTenantRenewalStatus"),lG=e=>ct("api/manager/job/remove",e),uG=e=>ct("api/manager/job/retry",{jobId:e}),cG=e=>new Promise((t,r)=>{const n=So(e);ct("api/manager/job/page",n).then(a=>{const o=bo(a);t(o)}).catch(()=>{r()})}),Fp=e=>new Promise((t,r)=>{const n=new FormData;n.append("jobType","EXPORT"),Object.keys(e).forEach(a=>{e.query&&a==="query"?n.append("query",JSON.stringify(e.query)):n.append(a,e[a])}),$p("api/manager/job/submit",n).then(()=>{ic(!0),t()}).catch(a=>{r(a)})}),fG=e=>new Promise((t,r)=>{const n=So(e);n.status===-1&&(n.status=""),ct("api/manager/message/messagePage",n).then(a=>{const o=bo(a);t({data:o,unRead:a.unRead})}).catch(()=>{r()})}),hG=e=>ct("api/manager/message/markRead",{messageId:e});let YS=!0;const $=p.reactive({commissioner:!1,factoryId:"",tenantLoginCode:"",thirdUserId:"",userId:"",email:"",name:"",realName:"",phone:"",description:"",tenantName:"",oeeStatus:0,ncFlg:0,info:{type:0,id:"",viewType:1,interval:5,theme:"light"},kind:0,systemType:0,password:"",enable:!0,platform_tdm:!1,platform_qms:!1,platform_twin:!1,platform_maintain:!1,platform_order:!1,platform_simple_tdm:!1,authorizationGroupArray:[],authorizationMachineArray:[],iot_menu_authorization:[],tdm_menu_authorization:[],qms_menu_authorization:[],maintain_menu_authorization:[],order_menu_authorization:[],endTime:0,tenantStatus:1,renewalStatus:0,roleId:1,industryCategory:"0"});function dG(e){YS=e}function zp(e){const t=window.location.host;if(t.includes("partexiot")){const r=xt("token",!1);$.industryCategory=e.industryCategory||"0",!t.includes("vpn")&&YS&&(e.industryCategory==="0"&&t.includes("printing")&&(window.location.href=`https://www.partexiot.cn/auth?auth=${r}`),e.industryCategory==="1"&&!t.includes("printing")&&(window.location.href=`https://printing.partexiot.cn/auth?auth=${r}`))}if($.commissioner=e.commissioner,$.factoryId=e.factoryId,$.tenantLoginCode=e.tenantLoginCode,$.userId=e.userId,$.email=e.email,$.name=e.name,$.realName=e.realName,$.tenantName=e.tenantName,$.phone=e.phone,$.info=e.info,$.kind=e.kind,$.oeeStatus=e.oeeStatus||0,$.ncFlg=e.ncFlg||0,$.systemType=e.systemType,$.platform_tdm=e.platform_tdm,$.platform_qms=e.platform_qms,$.platform_twin=e.platform_twin,$.platform_maintain=e.platform_maintain,$.platform_order=e.platform_order,$.platform_simple_tdm=e.platform_simple_tdm,$.authorizationGroupArray=e.authorizationGroupArray||[],$.authorizationMachineArray=e.authorizationMachineArray||[],$.iot_menu_authorization=e.iot_menu_authorization||[],$.tdm_menu_authorization=e.tdm_menu_authorization||[],$.qms_menu_authorization=e.qms_menu_authorization||[],$.maintain_menu_authorization=e.maintain_menu_authorization||[],$.order_menu_authorization=e.order_menu_authorization||[],$.endTime=e.endTime??0,$.tenantStatus=e.tenantStatus??1,$.renewalStatus=e.renewalStatus??0,$.roleId=e.roleId||0,$.kind===1){const r=e.info,n=String(e.info.type);n==="0"&&Br.replace(`/dashboard/list?machGroupId=${r.id}&theme=${r.theme||"light"}`),n==="1"&&Br.replace(`/dashboard/single?machId=${r.id}&type=${r.viewType??1}&theme=${r.theme||"light"}`),n==="2"&&Br.push(`/dashboard/carousel?theme=${r.theme||"light"}`),n==="3"&&Br.push(`/dashboard/carouselist?theme=${r.theme||"light"}`),n==="4"&&Br.push(`/dashboard/performance?schemeId=${r.id}&theme=${r.theme||"light"}`)}}function Bu(){return new Promise((e,t)=>{aG().then(r=>{zp(r),e(r)}).catch(()=>{t()})})}function Vu(){$.factoryId="",$.commissioner=!1,$.tenantLoginCode="",$.userId="",$.email="",$.name="",$.realName="",$.tenantName="",$.phone="",$.description="",$.info={type:0,id:"",viewType:1,interval:5,theme:"light"},$.kind=0,$.systemType=0,$.oeeStatus=0,$.ncFlg=0,$.password="",$.enable=!0,$.platform_tdm=!1,$.platform_qms=!1,$.platform_twin=!1,$.platform_maintain=!1,$.platform_order=!1,$.platform_simple_tdm=!1,$.authorizationGroupArray=[],$.authorizationMachineArray=[],$.iot_menu_authorization=[],$.tdm_menu_authorization=[],$.qms_menu_authorization=[],$.maintain_menu_authorization=[],$.order_menu_authorization=[],$.endTime=0,$.tenantStatus=1,$.renewalStatus=0,$.roleId=1}async function Gp(){await oG().catch(()=>null),wo("token"),Vu(),window.location.href="/login"}const pG=p.defineComponent({name:"HeaderPop",components:{NFlex:O.NFlex,NInput:O.NInput,NPopover:O.NPopover,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,IconSearch:qi,IconArrowClockwise:fa,IconArrowSquareDown:qu},setup(){const{t:e}=Gt.useI18n(),t=p.ref(!1),r=O.useNotification(),n=p.ref([]),a=p.ref(""),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.importer.fileName"),key:"jobName",width:300,render(h){return p.h("div",{},{default:()=>[p.h("p",{},{default:()=>h.jobName||"--"}),p.h("p",{style:{color:"rgba(var(--font), 0.6)"}},{default:()=>wr(h.commitTime,"yyyy-MM-dd hh:mm:ss")})]})}},{title:()=>e("Common.importer.status"),key:"jobStatus",align:"center",width:90,render(h){let v=e("Common.processing");return h.jobStatus===1&&(v=e("Common.success")),h.jobStatus===2&&(v=e("Common.failed")),p.h("span",{},{default:()=>v})}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){const v=[{type:"delete",onClick:()=>{lG([h.jobId]).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})}}];return h.jobStatus===2?v.unshift({type:"custom",onClick:()=>{uG(h.jobId).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})},icon:fa,color:"info",tooltipText:()=>e("Common.importer.retry")}):v.unshift({type:"custom",disabled:h.jobStatus!==1,onClick:()=>{window.open(h.downloadUrl)},icon:yo,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),Gr(v)}}]),l=h=>{i.value.page=h,f()},u=h=>{i.value.pageSize=h,i.value.page=1,f()},c=()=>{i.value.page=1,f()},f=()=>{o.value||(o.value=!0,cG({jobType:"EXPORT",jobName:a.value,query:i.value}).then(h=>{i.value=h.query,n.value=h.records,o.value=!1}).catch(()=>{o.value=!1}))},d=h=>{ic(h),t.value=h};return f(),p.watch(()=>se.download,h=>{t.value=h,h&&f()}),{jobName:a,loading:o,columns:s,coldata:n,query:i,popDownload:t,init:f,pageChange:l,pageSizeChange:u,doSearch:c,popDownloadUpdate:d}}}),vG={class:"oc-header-download"};function gG(e,t,r,n,a,o){const i=p.resolveComponent("IconArrowSquareDown"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NInput"),c=p.resolveComponent("IconSearch"),f=p.resolveComponent("NTooltip"),d=p.resolveComponent("IconArrowClockwise"),h=p.resolveComponent("NFlex"),v=p.resolveComponent("NDataTable"),m=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(m,{trigger:"click",placement:"bottom-end",show:e.popDownload,"show-arrow":!1,"on-update:show":e.popDownloadUpdate,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"15px"}},{icon:p.withCtx(()=>[p.createVNode(s,{class:"com-header-icon"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(h,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createElementVNode("span",vG,p.toDisplayString(e.$t("Common.validDays")),1),p.createVNode(u,{value:e.jobName,"onUpdate:value":t[0]||(t[0]=g=>e.jobName=g),type:"text",clearable:"",autosize:"",style:{width:"200px"},placeholder:e.$t("Common.importer.fileName")},null,8,["value","placeholder"]),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,class:"button-primary",onClick:e.doSearch},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1}),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})]),_:1}),p.createVNode(v,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1},8,["show","on-update:show"])}const mG=Z(pG,[["render",gG]]),yG=p.defineComponent({name:"HeaderPop",components:{NBadge:O.NBadge,NPopover:O.NPopover,NFlex:O.NFlex,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,NRadioGroup:O.NRadioGroup,NRadioButton:O.NRadioButton,IconAlert:Wu,IconClear:Uu,IconArrowClockwise:fa},setup(){const{t:e}=Gt.useI18n(),t=p.ref(0),r=p.ref(0),n=p.ref([]),a=p.ref(""),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.message.title2"),key:"messageContent",width:300,render(h){return[p.h("div",{class:h.status===1?"card-grey-txt":""},{default:()=>h.messageContent}),p.h("div",{class:"card-grey-txt"},{default:()=>wr(h.createTime,"yyyy-MM-dd hh:mm:ss")})]}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){return h.status===0?Gr([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{hG(h.messageId).then(()=>{d()}).catch(()=>{d()})}}]):p.h("div",{},{default:()=>`${h.updateByName} ${e("Common.message.read")}`})}}]),l=h=>{i.value.page=1,t.value=h,d()},u=()=>{iG().then(()=>{d()}).catch(()=>{d()})},c=h=>{i.value.page=h,d()},f=h=>{i.value.pageSize=h,i.value.page=1,d()},d=()=>{o.value||(o.value=!0,fG({status:t.value,query:i.value}).then(h=>{r.value=h.unRead,i.value=h.data.query,n.value=h.data.records,o.value=!1}).catch(()=>{o.value=!1}))};return d(),{badge:r,radios:t,jobName:a,loading:o,columns:s,coldata:n,query:i,clearAll:u,pageChange:c,pageSizeChange:f,init:d,radiosChecked:l}}}),_G={class:"com-title"};function wG(e,t,r,n,a,o){const i=p.resolveComponent("IconAlert"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NBadge"),c=p.resolveComponent("NRadioButton"),f=p.resolveComponent("NRadioGroup"),d=p.resolveComponent("IconClear"),h=p.resolveComponent("NTooltip"),v=p.resolveComponent("IconArrowClockwise"),m=p.resolveComponent("NFlex"),g=p.resolveComponent("NDataTable"),y=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(y,{trigger:"click",placement:"bottom-end","show-arrow":!1,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(u,{value:e.badge,max:99},{default:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:p.withCtx(()=>[p.createVNode(s,{class:"com-header-icon"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),_:1},8,["value"])]),default:p.withCtx(()=>[p.createVNode(m,{justify:"space-between"},{default:p.withCtx(()=>[p.createElementVNode("div",_G,p.toDisplayString(e.$t("Common.message.title")),1),p.createVNode(f,{value:e.radios,"onUpdate:value":t[0]||(t[0]=w=>e.radios=w),name:"radios","on-update:value":e.radiosChecked},{default:p.withCtx(()=>[p.createVNode(c,{key:"0",value:0,label:e.$t("Common.message.unRead")},null,8,["label"]),p.createVNode(c,{key:"-1",value:-1,label:e.$t("Common.message.all")},null,8,["label"]),p.createVNode(c,{key:"1",value:1,label:e.$t("Common.message.read")},null,8,["label"])]),_:1},8,["value","on-update:value"]),p.createElementVNode("div",null,[p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.message.readAll")),1)]),_:1}),p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})])]),_:1}),p.createVNode(g,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1})}const bG=Z(yG,[["render",wG]]),SG=p.defineComponent({name:"OcHeader",components:{Pop:mG,Message:bG,NDropdown:O.NDropdown,NMenu:O.NMenu,NIcon:O.NIcon,NButton:O.NButton,NDrawer:O.NDrawer,NFlex:O.NFlex,NDrawerContent:O.NDrawerContent,NCard:O.NCard,IconWeatherSunny:Yi,IconWeatherMoon:Ui,IconGridDots:ju,IconDismiss:Fr,IconNavigation:Ki,IconUser:rc},props:{menuOptions:{required:!0,type:Array,default:()=>[]},qiankun:{type:Boolean,default:!1},mainUrl:{type:String,default:"https://www.partexiot.cn"},report:{type:Boolean,default:!1},download:{type:Boolean,default:!0},message:{type:Boolean,default:!0}},setup(e){const{t}=Gt.useI18n(),r=Ct.useRoute(),n=Ct.useRouter(),a=O.useNotification(),o=p.ref(se.platformUrl),i=p.ref(!1),s=p.ref(void 0),l=p.ref(10),u=p.ref([]),c=N=>{xo(N),Ht("theme",N,0)},f=N=>{N.indexOf("/iot/home")>-1&&(N="/iot/home/all"),N.indexOf("/iot/timeline")>-1&&(N="/iot/timeline/all"),o.value=N,Qi()},d=N=>{N.disabled||(f(N.key),n.push(N.key))},h=N=>{if(!N.disabled){if(N.children)return;f(N.key),n.push(N.key),i.value=!1}},v=N=>p.h("div",{onClick:()=>d(N)},{default:()=>N.label}),m=N=>p.h("div",{onClick:()=>h(N)},{default:()=>N.label}),g=N=>N.icon?p.h(O.NIcon,{size:24,onClick:()=>d(N)},{default:()=>N.icon&&N.icon()}):!1,y=N=>{e.qiankun?window.location.href=`${e.mainUrl||"https://www.partexiot.cn"}${N}`:n.replace(N)},w=()=>{i.value=!1},_=()=>{let N=se.platformMainUrl||se.platformUrl;se.platformMainUrl==="auto"&&($.industryCategory==="0"?N="https://www.partexiot.cn":$.industryCategory==="1"&&(N="https://printing.partexiot.cn"));const A=[{label:()=>t("Platform.iot"),key:N}];return $.platform_tdm&&A.push({label:()=>t("Platform.tdm"),key:"/tdm/home"}),$.platform_qms&&A.push({label:()=>t("Platform.qms"),key:"/qms/home"}),$.platform_twin&&A.push({label:()=>t("Platform.twin"),key:"/twin/home"}),$.platform_maintain&&A.push({label:()=>t("Platform.maintain"),key:"/maintain/home"}),$.platform_order&&A.push({label:()=>t("Platform.order"),key:"/order/home"}),A},S=()=>{const N=[{label:$.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${se.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return se.language&&N.push({label:`${t("Common.dropdownMenu.language")} ${se.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),N.push({label:t("Common.dropdownMenu.software"),key:"app",children:[{label:t("Common.dropdownMenu.android"),key:"android"},{label:t("Common.dropdownMenu.ios"),key:"ios"},{label:t("Common.dropdownMenu.chrome"),key:"chrome"},{label:t("Common.dropdownMenu.edge"),key:"edge"},{label:t("Common.dropdownMenu.dashboard_IoT"),key:"dashboard_IoT"},{label:t("Common.dropdownMenu.dashboard_Prt"),key:"dashboard_Prt"}]}),e.report&&N.push({label:t("Common.dropdownMenu.report"),key:"report"}),N.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),N},x=async N=>{N==="logout"&&Gp(),N==="theme"&&c(!se.theme),N==="language"&&da(),N==="info"&&n.push("/custom/my"),N==="report"&&n.push("/custom/report"),N==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),N==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),N==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),N==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),N==="dashboard_IoT"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"),N==="dashboard_Prt"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip")},C=()=>{sG().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},T=()=>{if($.tenantStatus===0&&$.renewalStatus===0){const N=document.getElementById("app");N&&N.classList.add("outrange"),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>p.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${wr($.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if($.tenantStatus===2&&$.renewalStatus===0){let N=`您的订阅即将于${wr($.endTime)}到期,请联系管理员进行续订`,A=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];$.kind===99&&(N=`您的订阅即将于${wr($.endTime)}到期,为保证持续有效的提供服务请立即续订`,A=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),p.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})]),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>A}),closable:!1,content:N,title:"温馨提示"})}},b=()=>{n.push(se.platformUrl)};"backdropFilter"in document.documentElement.style||"WebkitBackdropFilter"in document.documentElement.style||document.body.classList.add("not-support-backdrop");const D=()=>{if($.tenantStatus===0){const N=document.body;N&&N.classList.add("outrange")}};return p.onMounted(()=>{T(),f(r.path),D(),u.value=_()}),p.watch(()=>r.path,N=>{f(N),D()}),p.watch(()=>se.needUpdate,N=>{if(N){s.value=setInterval(()=>{l.value=l.value-1,l.value<=0&&(clearInterval(window.versionMonitor),clearInterval(s.value),s.value=void 0,A.destroy())},1e3);const A=a.create({title:"检测到系统有新版本需要更新",content:()=>`是否立即更新?更新需要重新加载页面,请确保所有项目都已经保存完毕。${l.value}秒后自动关闭`,meta:wr(new Date,"yyyy-MM-dd hh:mm:ss"),onClose:()=>{clearInterval(window.versionMonitor)},action:()=>p.h(O.NFlex,{justify:"space-between"},{default:()=>[p.h(O.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),A.destroy()}},{default:()=>"稍后"}),p.h(O.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:$,commonStore:se,activeMenu:o,platformOption:u,showMenu:i,fnSetLang:da,setDropdownMenu:S,renderMenuLabel:v,renderMenuLabel2:m,renderMenuIcon:g,indexClick:b,platformClick:y,dropdownClick:x,changeTheme:c,closeModel:w}}}),CG={class:"oc-header"},xG={class:"menu"};function TG(e,t,r,n,a,o){const i=p.resolveComponent("IconGridDots"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NDropdown"),c=p.resolveComponent("IconNavigation"),f=p.resolveComponent("NMenu"),d=p.resolveComponent("Pop"),h=p.resolveComponent("Message"),v=p.resolveComponent("IconWeatherMoon"),m=p.resolveComponent("IconWeatherSunny"),g=p.resolveComponent("IconUser"),y=p.resolveComponent("NDrawerContent"),w=p.resolveComponent("NDrawer");return p.openBlock(),p.createElementBlock("header",CG,[e.platformOption.length>1?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover",placement:"bottom-start",size:"huge",options:e.platformOption,onSelect:e.platformClick},{default:p.withCtx(()=>[p.createVNode(l,{style:{padding:"0 14px 0 0"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0),p.createElementVNode("a",{href:"javascript:;",class:"logo",onClick:t[0]||(t[0]=(..._)=>e.indexClick&&e.indexClick(..._))}),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(..._)=>e.indexClick&&e.indexClick(..._))}," | "+p.toDisplayString(e.commonStore.platformName()),1)),p.createElementVNode("div",xG,[e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:0,onClick:t[2]||(t[2]=_=>e.showMenu=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})):(p.openBlock(),p.createBlock(f,{key:1,value:e.activeMenu,mode:"horizontal",options:e.menuOptions,"render-icon":e.renderMenuIcon,"render-label":e.renderMenuLabel,class:"oc-header-menu"},null,8,["value","options","render-icon","render-label"])),e.download&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(d,{key:2})):p.createCommentVNode("",!0),e.message&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(h,{key:3})):p.createCommentVNode("",!0),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:4,style:{"margin-left":"15px"},onClick:t[3]||(t[3]=_=>e.changeTheme(!e.commonStore.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1},512),[[p.vShow,e.commonStore.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(m)]),_:1},512),[[p.vShow,!e.commonStore.theme]])]),_:1})),e.commonStore.language&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:5,class:"com-header-icon",onClick:t[4]||(t[4]=_=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0),e.userStore.name?(p.openBlock(),p.createBlock(u,{key:6,trigger:"click",placement:"bottom-end",options:e.setDropdownMenu(),onSelect:e.dropdownClick},{default:p.withCtx(()=>[p.createVNode(l,{text:"",class:"user",title:e.userStore.name},p.createSlots({default:p.withCtx(()=>[e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(e.userStore.name),1)],64))]),_:2},[e.commonStore.isPad?{name:"icon",fn:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(g)]),_:1})]),key:"0"}:void 0]),1032,["title"])]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0)]),p.createVNode(w,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=_=>e.showMenu=_)},{default:p.withCtx(()=>[p.createVNode(y,{title:e.commonStore.platformName(),"native-scrollbar":!1,closable:""},{default:p.withCtx(()=>[p.createVNode(f,{value:e.activeMenu,"default-expand-all":!0,options:e.menuOptions,"render-label":e.renderMenuLabel2},null,8,["value","options","render-label"])]),_:1},8,["title"])]),_:1},8,["show"])])}const qS=Z(SG,[["render",TG]]),jS=e=>{const t=new FormData;return Object.keys(e).forEach(r=>{e.query&&r==="query"?t.append("query",JSON.stringify(e.query)):t.append(r,e[r])}),$p("api/manager/job/submit",t)},NG=e=>new Promise((t,r)=>{const n=So(e);ct("api/manager/job/page",n).then(a=>{const o=bo(a);t(o)}).catch(()=>{r()})}),DG=(e,t={})=>WS(e,t,"blob"),AG=p.defineComponent({name:"OcImporter",components:{IconDismiss:Fr,IconArrowClockwise:fa,IconMailInboxAdd:_o,IconCloudArrowDown:Zi,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NUpload:O.NUpload,NButton:O.NButton,NTooltip:O.NTooltip,NIcon:O.NIcon,NDataTable:O.NDataTable},props:{show:{required:!0,type:Boolean,default:!1},data:{required:!0,type:Object,default:()=>({type:"",file:""})}},emits:["update:show"],setup(e,{emit:t}){const{t:r}=Gt.useI18n(),n=O.useNotification(),a=p.ref(!1),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:"#",width:60,align:"center",key:"index",render(m,g){return p.h("span",{},{default:()=>g+1})}},{title:r("Common.importer.fileName"),key:"jobName",fixed:"left"},{title:r("Common.importer.status"),key:"jobStatus",width:120,render(m){let g=r("Common.processing");return m.jobStatus===1&&(g=r("Common.success")),m.jobStatus===2&&(g=r("Common.failed")),p.h("span",{},{default:()=>g})}},{title:r("Common.importer.createTime"),key:"commitTime",width:200,render(m){return p.h("div",{},{default:()=>wr(m.commitTime,"yyyy-MM-dd hh:mm:ss")})}},{title:r("Common.action"),key:"action",align:"center",fixed:"right",width:120,render(m){return Gr([{type:"custom",disabled:m.jobStatus===0,onClick:()=>{window.open(m.downloadUrl)},icon:yo,color:"success",tooltipText:()=>r("Common.importer.btnDownload")}])}}]),l=p.ref([]),u=()=>{t("update:show",!1)},c=m=>{i.value.page=m,h()},f=m=>{i.value.pageSize=m,i.value.page=1,h()},d=m=>new Promise((g,y)=>{m.file.file&&jS({jobType:"IMPORT",jobTypeName:e.data.type,jobParams:e.data.params,file:m.file.file}).then(()=>{h(),g()}).catch(()=>{h(),y()}),y()}),h=()=>{o.value=!0,NG({jobType:"IMPORT",jobTypeName:e.data.type,query:i.value}).then(m=>{o.value=!1,l.value=m.records,i.value=m.query}).catch(()=>{o.value=!1})},v=()=>{e.data.steam?DG(e.data.file).then(m=>{const g=document.createElement("a");g.style.display="none",g.download="刀组品号导入模板.xls",g.href=URL.createObjectURL(m),document.body.appendChild(g),g.click(),URL.revokeObjectURL(g.href),document.body.removeChild(g)}).catch(()=>{n.error({content:()=>r("Notice.error"),duration:3e3})}):window.open(`${e.data.file}?v=${Date.now()}`)};return p.watch(()=>e.show,m=>{a.value=m,m&&(i.value={page:1,pageCount:1,pageSize:30},h())}),{modal:a,columns:s,coldata:l,query:i,loading:o,init:h,closeModel:u,pageChange:c,pageSizeChange:f,beforeUpload:d,downloadFile:v}}}),MG={class:"oc-header-download"};function kG(e,t,r,n,a,o){const i=p.resolveComponent("IconMailInboxAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NUpload"),c=p.resolveComponent("IconCloudArrowDown"),f=p.resolveComponent("IconArrowClockwise"),d=p.resolveComponent("NTooltip"),h=p.resolveComponent("IconDismiss"),v=p.resolveComponent("NFlex"),m=p.resolveComponent("NDataTable"),g=p.resolveComponent("NCard"),y=p.resolveComponent("NModal");return p.openBlock(),p.createBlock(y,{show:e.modal,"onUpdate:show":t[0]||(t[0]=w=>e.modal=w),"on-mask-click":e.closeModel},{default:p.withCtx(()=>[p.createVNode(g,{style:{width:"900px"}},{header:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.importer.title"))+" ",1),p.createElementVNode("span",MG,p.toDisplayString(e.$t("Common.validDays")),1)]),"header-extra":p.withCtx(()=>[p.createVNode(v,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{"on-before-upload":e.beforeUpload,accept:".xlsx,.xls","show-file-list":!1},{default:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.file")),1)]),_:1})]),_:1},8,["on-before-upload"]),p.renderSlot(e.$slots,"default"),p.createVNode(l,{onClick:e.downloadFile},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.download")),1)]),_:1},8,["onClick"]),p.createVNode(d,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1}),p.createVNode(l,{quaternary:"",onClick:e.closeModel},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1},8,["onClick"])]),_:3})]),default:p.withCtx(()=>[p.createVNode(m,{columns:e.columns,data:e.coldata,pagination:e.query,loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":"500","max-height":"500","scroll-x":"600",remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:3})]),_:3},8,["show","on-mask-click"])}const Hp=Z(AG,[["render",kG]]),EG=p.defineComponent({name:"OcLogin",components:{NTabs:O.NTabs,NTabPane:O.NTabPane,NForm:O.NForm,NFormItem:O.NFormItem,NDropdown:O.NDropdown,NInput:O.NInput,NButton:O.NButton,NGrid:O.NGrid,NGi:O.NGi,NIcon:O.NIcon,NPopover:O.NPopover,IconWeatherSunny:Yi,IconWeatherMoon:Ui},props:{bg:{type:String,default:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png"},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Gt.useI18n(),t=O.useNotification(),r=Ct.useRouter(),n=p.ref(xt("loginTab","1")),a=p.ref(),o=p.ref(),i=p.ref(),s=p.ref(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref(!1),d=p.ref({phone:"",name:"",password:""}),h=p.ref({name:{required:!0,message:()=>e("Common.login.userNameMessage"),trigger:"blur"},phone:{required:!0,validator:(E,B)=>B?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(B):!1,message:()=>e("Common.login.mobileMessage"),trigger:"blur"},password:{required:!0,message:()=>e("Common.login.passwordMessage"),trigger:"input"}}),v=p.ref([]),m=p.ref([]),g=p.ref([]),y=p.ref([]),w=()=>{const E=xt("loginOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),v.value=B,m.value=B},_=()=>{const E=xt("phoneOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),g.value=B,y.value=B},S=E=>{Ht("token",E,0),Bu().then(B=>{t.success({content:()=>e("Notice.success"),duration:3e3}),B.kind!==1&&r.replace(se.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},x=()=>{var E,B;u.value||(u.value=!0,n.value==="0"?(E=o.value)==null||E.validate(R=>{R?u.value=!1:US({type:n.value,...d.value}).then(V=>{const G=xt("loginOption",{});G[d.value.name]=!0,Ht("loginOption",G,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}):(B=a.value)==null||B.validate(R=>{R?u.value=!1:US({type:n.value,...d.value}).then(V=>{const G=xt("phoneOption",{});G[d.value.name]=!0,Ht("phoneOption",G,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}))},C=E=>{d.value.name=E;const B=m.value.filter(R=>R.label.indexOf(E)>-1);v.value=B,B.length===0?f.value=!1:f.value=!0},T=E=>{d.value.name=E,f.value=!1,i.value.focus(),setTimeout(()=>{var B;(B=o.value)==null||B.restoreValidation()},80)},b=E=>{var B;v.value.length===0?f.value=!1:f.value=E,(B=o.value)==null||B.restoreValidation()},D=E=>{d.value.phone=E;const B=y.value.filter(R=>R.label.indexOf(E)>-1);g.value=B,B.length===0?c.value=!1:c.value=!0},N=E=>{d.value.phone=E,c.value=!1,s.value.focus(),setTimeout(()=>{var B;(B=a.value)==null||B.restoreValidation()},80)},A=E=>{var B;g.value.length===0?c.value=!1:c.value=E,(B=a.value)==null||B.restoreValidation()},M=E=>{l.value=E,xo(E),Ht("theme",E,0)},I=E=>{var B,R;n.value=E,d.value={phone:"",name:"",password:""},Ht("loginTab",E,0),(B=o.value)==null||B.restoreValidation(),(R=a.value)==null||R.restoreValidation()},P=E=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>E.label}),p.h(Fr,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=xt("loginOption",{});delete R[E.label],Ht("loginOption",R,0),w();const V=d.value.name,G=m.value.filter(q=>q.label.indexOf(V)>-1);v.value=G}},{default:()=>""})]}),L=E=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>E.label}),p.h(Fr,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=xt("phoneOption",{});delete R[E.label],Ht("phoneOption",R,0),_();const V=d.value.name,G=y.value.filter(q=>q.label.indexOf(V)>-1);g.value=G}},{default:()=>""})]});return Vu(),wo("token"),w(),_(),{tabs:n,commonStore:se,pwdRef:i,pwdPhoneRef:s,formRef:o,formPhoneRef:a,formValue:d,formRules:h,showPhoneDropdown:c,showNameDropdown:f,optionsName:v,optionsPhone:g,loading:u,theme:l,submit:x,tabChange:I,nameChange:C,phoneChange:D,changeTheme:M,fnSetLang:da,dropNameSelect:T,dropPhoneSelect:N,showDropdownNameChange:b,showDropdownPhoneChange:A,renderDropdownNameLabel:P,renderDropdownPhoneLabel:L}}}),PG={class:"oc-login"},IG={class:"oc-login-left"},LG=["src"],OG={class:"oc-login-right"},RG={class:"oc-login-language"},BG=p.createElementVNode("div",{class:"oc-login-title"},null,-1),VG={class:"oc-login-platform"},$G={class:"oc-login-form"},FG=p.createElementVNode("br",null,null,-1),zG=p.createElementVNode("br",null,null,-1),GG={class:"oc-login-submit"},HG=["href"],WG=p.createElementVNode("div",{class:"oc-google-play"},null,-1),UG=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),YG=p.createElementVNode("div",{class:"oc-app-store"},null,-1),qG=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),jG={class:"oc-login-footer"},XG=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),ZG=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function KG(e,t,r,n,a,o){const i=p.resolveComponent("IconWeatherMoon"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("IconWeatherSunny"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NInput"),f=p.resolveComponent("NDropdown"),d=p.resolveComponent("NFormItem"),h=p.resolveComponent("NForm"),v=p.resolveComponent("NTabPane"),m=p.resolveComponent("NTabs"),g=p.resolveComponent("NPopover"),y=p.resolveComponent("NGi"),w=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",PG,[p.createElementVNode("div",IG,[p.createElementVNode("img",{src:e.bg,alt:"logo",class:"oc-login-img"},null,8,LG)]),p.createElementVNode("div",OG,[p.createElementVNode("div",RG,[p.createVNode(u,{onClick:t[0]||(t[0]=_=>e.changeTheme(!e.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1},512),[[p.vShow,e.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(l)]),_:1},512),[[p.vShow,!e.theme]])]),_:1}),e.commonStore.language?(p.openBlock(),p.createBlock(u,{key:0,onClick:t[1]||(t[1]=_=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0)]),BG,p.createElementVNode("div",VG,p.toDisplayString(e.commonStore.platformName()),1),p.createElementVNode("div",$G,[p.createVNode(m,{value:e.tabs,"on-update:value":e.tabChange,type:"segment","justify-content":"end",animated:""},{default:p.withCtx(()=>[p.createVNode(v,{name:"1",tab:e.$t("Common.login.mobile")},{default:p.withCtx(()=>[FG,p.createVNode(h,{ref:"formPhoneRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.mobile"),path:"phone"},{default:p.withCtx(()=>[p.createVNode(f,{show:e.showPhoneDropdown,options:e.optionsPhone,"render-label":e.renderDropdownPhoneLabel,width:"trigger",onClickoutside:t[5]||(t[5]=()=>{e.showPhoneDropdown=!1}),onSelect:e.dropPhoneSelect},{default:p.withCtx(()=>[p.createVNode(c,{value:e.formValue.phone,"onUpdate:value":t[2]||(t[2]=_=>e.formValue.phone=_),placeholder:e.$t("Common.login.mobilePlaceholder"),"on-update:value":e.phoneChange,onClick:t[3]||(t[3]=_=>e.showDropdownPhoneChange(!0)),onFocus:t[4]||(t[4]=_=>e.showDropdownPhoneChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.createVNode(c,{ref:"pwdPhoneRef",value:e.formValue.password,"onUpdate:value":t[6]||(t[6]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder"),onFocus:t[7]||(t[7]=_=>e.showDropdownPhoneChange(!1))},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"]),p.createVNode(v,{name:"0",tab:e.$t("Common.login.userName")},{default:p.withCtx(()=>[zG,p.createVNode(h,{ref:"formRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.userName"),path:"name"},{default:p.withCtx(()=>[p.createVNode(f,{show:e.showNameDropdown,options:e.optionsName,"render-label":e.renderDropdownNameLabel,width:"trigger",onClickoutside:t[11]||(t[11]=()=>{e.showNameDropdown=!1}),onSelect:e.dropNameSelect},{default:p.withCtx(()=>[p.createVNode(c,{value:e.formValue.name,"onUpdate:value":t[8]||(t[8]=_=>e.formValue.name=_),placeholder:e.$t("Common.login.userNamePlaceholder"),"on-update:value":e.nameChange,onClick:t[9]||(t[9]=_=>e.showDropdownNameChange(!0)),onFocus:t[10]||(t[10]=_=>e.showDropdownNameChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.createVNode(c,{ref:"pwdRef",value:e.formValue.password,"onUpdate:value":t[12]||(t[12]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"])]),_:1},8,["value","on-update:value"]),p.createElementVNode("div",GG,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.submit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.login.in")),1)]),_:1},8,["loading","onClick"])]),e.info.href?(p.openBlock(),p.createElementBlock("a",{key:0,href:e.info.href,class:"oc-login-other"},p.toDisplayString(e.info.text),9,HG)):p.createCommentVNode("",!0),p.createVNode(w,{"x-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[WG]),default:p.withCtx(()=>[UG]),_:1})]),_:1}),p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[YG]),default:p.withCtx(()=>[qG]),_:1})]),_:1})]),_:1})]),p.createElementVNode("footer",jG,[p.createTextVNode(" Copyright "),XG,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),ZG])])])}const XS=Z(EG,[["render",KG]]),JG=p.defineComponent({name:"OcNumberRoll",props:{value:{required:!0,type:[Number,String],default:0},duration:{type:Number,default:1e3},precision:{type:Number,default:0},format:{type:Function,default:void 0}},setup(e){const t=p.ref(!1),r=p.ref(0),n=s=>1-Math.pow(1-s,5),a=s=>e.format?e.format(s):s;function o(s,l,u=e.duration){const c=()=>{const d=performance.now(),h=Math.min(d-f,u),v=s+(l-s)*n(h/u);if(h===u){r.value=a(Number(e.value)),t.value=!1;return}const m=Number(v.toFixed(e.precision));r.value=a(m),requestAnimationFrame(c)},f=performance.now();c()}const i=(s=0,l=e.value)=>{t.value=!0,r.value=a(s),String(s)!==String(l)&&o(s,Number(l))};return p.watch(()=>e.value,(s,l)=>{i(Number(l)||0,Number(s))}),p.onMounted(()=>{i()}),{displayedValueRef:r}}});function QG(e,t,r,n,a,o){return p.toDisplayString(e.displayedValueRef)}const Wp=Z(JG,[["render",QG]]),e9=p.defineComponent({name:"OcLogo",components:{NGrid:O.NGrid,NGi:O.NGi,NDivider:O.NDivider,NumberRoll:Wp},props:{text:{type:String,default:"智能效率监测平台"}},setup(){const e=p.ref(Date.now()),t=p.ref(void 0),r=n=>wr(n,"yyyy-MM-dd hh:mm:ss");return p.onMounted(()=>{t.value=setInterval(()=>{e.value=Date.now()},1e3)}),p.onBeforeUnmount(()=>{clearInterval(t.value),t.value=void 0}),{time:e,numFormat:r}}}),t9=p.createElementVNode("div",{class:"oc-logo"},null,-1);function r9(e,t,r,n,a,o){const i=p.resolveComponent("NGi"),s=p.resolveComponent("NDivider"),l=p.resolveComponent("NumberRoll"),u=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(u,{cols:5,class:"oc-dashboard-logo"},{default:p.withCtx(()=>[p.createVNode(i,{span:"1",class:"flex-center-left"},{default:p.withCtx(()=>[t9]),_:1}),p.createVNode(i,{span:"3",class:"flex-center"},{default:p.withCtx(()=>[p.createVNode(s,{class:"oc-dashboard-title-show"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.text),1)]),_:1})]),_:1}),p.createVNode(i,{span:"1",class:"flex-center-right oc-time"},{default:p.withCtx(()=>[p.createVNode(l,{value:e.time,format:e.numFormat},null,8,["value","format"])]),_:1})]),_:1})}const ZS=Z(e9,[["render",r9]]);O.darkTheme.common.cardColor="#32323b",O.darkTheme.common.primaryColor="#b274ef",O.darkTheme.common.primaryColorHover="#b274ef",O.darkTheme.common.borderRadius="16px",O.darkTheme.common.borderRadiusSmall="8px",O.darkTheme.DataTable.tdColor="#2d2d31";const KS={common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}},JS=O.darkTheme,n9=p.defineComponent({name:"OcMain",components:{NConfigProvider:O.NConfigProvider,NDialogProvider:O.NDialogProvider,NNotificationProvider:O.NNotificationProvider},props:{hljs:{type:Object,default:void 0}},setup(){return{zhCN:O.zhCN,dateZhCN:O.dateZhCN,commonStore:se,lightTheme:KS,darkTheme:JS}}});function a9(e,t,r,n,a,o){const i=p.resolveComponent("NNotificationProvider"),s=p.resolveComponent("NDialogProvider"),l=p.resolveComponent("NConfigProvider");return p.openBlock(),p.createBlock(l,{theme:e.commonStore.theme?{name:"darkTheme"}:null,"theme-overrides":e.commonStore.theme?e.darkTheme:e.lightTheme,locale:e.commonStore.lang==="zh-CN"?e.zhCN:null,"date-locale":e.commonStore.lang==="zh-CN"?e.dateZhCN:null,hljs:e.hljs,"inline-theme-disabled":"",abstract:""},{default:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i,{placement:"top"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["theme","theme-overrides","locale","date-locale","hljs"])}const QS=Z(n9,[["render",a9]]),o9=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Hi(t.oldPassword),t.newPassword=Hi(t.newPassword),t.comfirmPassword=Hi(t.comfirmPassword),ct("api/auth/user/modifyPassword",t)},i9=e=>ct("api/auth/user/update",e),s9=p.defineComponent({name:"OcMy",components:{NGrid:O.NGrid,NGi:O.NGi,NForm:O.NForm,NFormItem:O.NFormItem,NInput:O.NInput,NButton:O.NButton},setup(){const{t:e}=Gt.useI18n(),t=O.useNotification(),r=p.ref(),n=p.ref(),a=p.ref(!1),o=p.ref({oldPassword:"",newPassword:"",comfirmPassword:""}),i=p.ref({oldPassword:{required:!0,message:()=>e("Common.my.oldPasswordMessage"),trigger:"blur"},newPassword:{required:!0,message:()=>e("Common.my.newPasswordMessage"),trigger:"blur"},comfirmPassword:{required:!0,message:()=>e("Common.my.checkPasswordMessage"),trigger:"blur"}}),s=p.ref($),l=p.ref({email:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[0-9a-zA-Z_.-]+[@][0-9a-zA-Z_.-]+([.][a-zA-Z]+){1,2}$/.test(d):!0,message:()=>e("Common.my.emailMessage")},phone:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[1][3,4,5,7,8,9][0-9]{9}$/.test(d):!0,message:()=>e("Common.my.phoneMessage")}});return{formRef:n,pwdRef:r,pwdValue:o,formValue:s,pwdRules:i,formRules:l,loading:a,pwdSubmit:()=>{var f;a.value||(a.value=!0,(f=r.value)==null||f.validate(d=>{d?a.value=!1:o9(o.value).then(()=>{var h;o.value={oldPassword:"",newPassword:"",comfirmPassword:""},(h=r.value)==null||h.restoreValidation(),t.success({content:()=>e("Notice.success"),duration:3e3}),setTimeout(()=>{window.location.href="/login"},1e3)}).catch(()=>{a.value=!1})}))},formSubmit:()=>{var f;a.value||(a.value=!0,(f=n.value)==null||f.validate(d=>{d?a.value=!1:i9(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,Bu().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),l9={class:"com-card"},u9={class:"com-title"},c9=p.createElementVNode("br",null,null,-1),f9={class:"text-right"},h9={class:"com-card"},d9={class:"com-title"},p9=p.createElementVNode("br",null,null,-1),v9={class:"text-right"};function g9(e,t,r,n,a,o){const i=p.resolveComponent("NInput"),s=p.resolveComponent("NFormItem"),l=p.resolveComponent("NForm"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NGi"),f=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(f,{"x-gap":"15","y-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",l9,[p.createElementVNode("div",u9,p.toDisplayString(e.$t("Common.my.title")),1),c9,p.createVNode(l,{ref:"formRef",model:e.formValue,rules:e.formRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.tenantCode"),path:"tenantLoginCode"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.tenantLoginCode,"onUpdate:value":t[0]||(t[0]=d=>e.formValue.tenantLoginCode=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.tenantName"),path:"tenantName"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.tenantName,"onUpdate:value":t[1]||(t[1]=d=>e.formValue.tenantName=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.name"),path:"name"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.name,"onUpdate:value":t[2]||(t[2]=d=>e.formValue.name=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.email"),path:"email"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.email,"onUpdate:value":t[3]||(t[3]=d=>e.formValue.email=d),placeholder:"邮箱"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.realName"),path:"realName"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.realName,"onUpdate:value":t[4]||(t[4]=d=>e.formValue.realName=d),placeholder:"真实姓名"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.phone"),path:"phone"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.phone,"onUpdate:value":t[5]||(t[5]=d=>e.formValue.phone=d),placeholder:"手机"},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),p.createElementVNode("div",f9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.formSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1}),p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",h9,[p.createElementVNode("div",d9,p.toDisplayString(e.$t("Common.my.password")),1),p9,p.createVNode(l,{ref:"pwdRef",model:e.pwdValue,rules:e.pwdRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.oldPassword"),path:"oldPassword"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.pwdValue.oldPassword,"onUpdate:value":t[6]||(t[6]=d=>e.pwdValue.oldPassword=d),type:"password",placeholder:e.$t("Common.my.oldPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.newPassword"),path:"newPassword"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.pwdValue.newPassword,"onUpdate:value":t[7]||(t[7]=d=>e.pwdValue.newPassword=d),type:"password",placeholder:e.$t("Common.my.newPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.checkPassword"),path:"comfirmPassword"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.pwdValue.comfirmPassword,"onUpdate:value":t[8]||(t[8]=d=>e.pwdValue.comfirmPassword=d),type:"password",placeholder:e.$t("Common.my.checkPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),p.createElementVNode("div",v9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.pwdSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1})]),_:1})}const eC=Z(s9,[["render",g9]]);function m9(e){return new Promise((t,r)=>{ct("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const y9=p.defineComponent({name:"OcReport",components:{NFlex:O.NFlex,NDataTable:O.NDataTable,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel},setup(){const{t:e}=Gt.useI18n(),t=p.ref(!0),r=O.useNotification(),n=p.ref([{title:"#",width:60,align:"center",key:"index",render(l,u){return p.h("span",{},{default:()=>u+1})}},{title:"名称",key:"name"},{title:"备注",key:"content"},{title:"操作",key:"action",align:"center",fixed:"right",width:120,render(l){return Gr([{type:"custom",onClick:()=>{i(l.key)},icon:yo,color:"success",tooltipText:"下载"}])}}]),a=p.ref([]),o=p.ref([Date.now(),Date.now()]),i=l=>{t.value=!0,jS({jobType:"EXPORT",jobTypeName:l,jobParams:JSON.stringify({startDate:o.value[0],endDate:o.value[1]})}).then(()=>{t.value=!1,r.success({content:()=>e("Notice.success"),duration:3e3}),ic(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return m9("individuation_report_download").then(l=>{a.value=l.map(u=>({key:u.key,name:u.name,content:"默认导出最近30天的数据。每个企业租户下的所有账号,每天累计最多下载10次,采用异步下载"})),t.value=!1}).catch(()=>{t.value=!1}),{columns:n,columnData:a,loading:t,range:o,isRangeDateDisabled:s}}}),_9={class:"com-card"},w9=p.createElementVNode("br",null,null,-1);function b9(e,t,r,n,a,o){const i=p.resolveComponent("NInputGroupLabel"),s=p.resolveComponent("NDatePicker"),l=p.resolveComponent("NInputGroup"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("n-data-table");return p.openBlock(),p.createElementBlock("div",_9,[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(i,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode("日期")]),_:1}),p.createVNode(s,{value:e.range,"onUpdate:value":t[0]||(t[0]=f=>e.range=f),type:"daterange","is-date-disabled":e.isRangeDateDisabled,style:{width:"300px"}},null,8,["value","is-date-disabled"])]),_:1})]),_:1}),w9,p.createVNode(c,{columns:e.columns,data:e.columnData,loading:e.loading,"min-height":"calc(100vh - 180px)","max-height":"calc(100vh - 180px)"},null,8,["columns","data","loading"])])}const tC=Z(y9,[["render",b9]]),S9=p.defineComponent({name:"OcScan",components:{NButton:O.NButton,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NIcon:O.NIcon,IconDismiss:Fr},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(),n=p.ref(!1),a=p.ref(!1),o=O.useNotification(),i=1280,s=720;let l=null,u=null;const c=(_,S)=>{l.beginPath(),l.moveTo(_.x,_.y),l.lineTo(S.x,S.y),l.lineWidth=2,l.strokeStyle="green",l.stroke()},f=()=>{if(u&&u.readyState===u.HAVE_ENOUGH_DATA){u.width=i,u.height=s,l.drawImage(r.value,0,0,i,s);const _=l.getImageData(0,0,i,s);try{const S=bC(_.data,i,s);if(S){const{location:x,data:C}=S;c(x.topLeftCorner,x.topRightCorner),c(x.topRightCorner,x.bottomRightCorner),c(x.bottomRightCorner,x.bottomLeftCorner),c(x.bottomLeftCorner,x.topLeftCorner),t("on-update:value",C),h()}}catch{o.error({content:"扫描失败,请重试",duration:3e3})}}d()},d=()=>{a.value&&requestAnimationFrame(f)},h=()=>{r.value&&r.value.srcObject&&(r.value.srcObject.getTracks().forEach(_=>_.stop()),a.value=!1,l=null,u=null,r.value.srcObject=null,r.value.src=null),n.value=!1},v=_=>{r.value.srcObject!==void 0?r.value.srcObject=_:window.videoEl.mozSrcObject!==void 0?r.value.mozSrcObject=_:window.URL.createObjectURL?r.value.src=window.URL.createObjectURL(_):window.webkitURL?r.value.src=window.webkitURL.createObjectURL(_):r.value.src=_,r.value.play().then(d)},m=()=>{n.value=!0,p.nextTick(()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?(a.value=!0,u=document.getElementById("oc-scan-canvas"),u&&(l=u.getContext("2d",{willReadFrequently:!0})),navigator.mediaDevices.getUserMedia({video:!0}).then(v).catch(function(_){console.log(_)})):(a.value=!1,o.error({content:"您的设备未检测到摄像头,无法进行扫码识别",duration:3e3}))})};let g="",y=0;function w(_){if(_.code==="Enter"){g&&t("on-update:value",g),g="",y=0;return}let S=new Date().getTime();y>0&&(S-y<=100?g+=_.key:S-y>500&&(g="",y=0)),y=S}return p.onMounted(()=>{window.addEventListener("keypress",w)}),p.onBeforeUnmount(()=>{window.removeEventListener("keypress",w),h()}),{videoRef:r,modal:n,loading:a,doScan:m,closeAll:h}}}),C9=p.createElementVNode("div",{class:"oc-scan-canvas-main"},[p.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),x9={class:"oc-scan-video"},T9={ref:"videoRef",playsInline:""};function N9(e,t,r,n,a,o){const i=p.resolveComponent("NButton"),s=p.resolveComponent("IconDismiss"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NCard"),f=p.resolveComponent("NModal");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(i,{type:"primary",loading:e.loading,onClick:e.doScan},{default:p.withCtx(()=>[p.createTextVNode("扫一扫")]),_:1},8,["loading","onClick"]),p.createVNode(f,{show:e.modal,"onUpdate:show":t[0]||(t[0]=d=>e.modal=d),"on-mask-click":e.closeAll},{default:p.withCtx(()=>[p.createVNode(c,{style:{width:"1320px"}},{header:p.withCtx(()=>[p.createTextVNode("扫一扫")]),"header-extra":p.withCtx(()=>[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(i,{quaternary:"",onClick:e.closeAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1},8,["onClick"])]),_:1})]),default:p.withCtx(()=>[C9]),_:1})]),_:1},8,["show","on-mask-click"]),p.createElementVNode("div",x9,[p.createElementVNode("video",T9,null,512)])],64)}const rC=Z(S9,[["render",N9]]),D9=p.defineComponent({name:"OcTimePickRange",components:{NInputGroup:O.NInputGroup,NTimePicker:O.NTimePicker},props:{value:{required:!0,type:Array,default:()=>[]},format:{required:!1,type:String,default:"HH:mm"},disabled:{required:!1,type:Boolean,default:!1},clearable:{required:!1,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(null),n=p.ref(null),a=i=>{r.value=i,t("on-update:value",[r.value,n.value])},o=i=>{n.value=i,t("on-update:value",[r.value,n.value])};return p.onMounted(()=>{e.value&&(r.value=e.value[0],n.value=e.value[1])}),p.watch(()=>e.value,i=>{i&&(r.value=i[0],n.value=i[1])}),{startTime:r,endTime:n,updateStartValue:a,updateEndValue:o}}}),A9=p.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function M9(e,t,r,n,a,o){const i=p.resolveComponent("NTimePicker"),s=p.resolveComponent("NInputGroup");return p.openBlock(),p.createBlock(s,{class:"oc-time-picker"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.startTime,clearable:e.clearable,"on-update:value":e.updateStartValue,format:e.format,disabled:e.disabled},null,8,["value","clearable","on-update:value","format","disabled"]),A9,p.createVNode(i,{value:e.endTime,clearable:e.clearable,format:e.format,disabled:e.disabled,"on-update:value":e.updateEndValue},null,8,["value","clearable","format","disabled","on-update:value"])]),_:1})}const k9=Z(D9,[["render",M9]]),E9=p.defineComponent({name:"OcSearchBarItem",components:{NIcon:O.NIcon,NButton:O.NButton,NGrid:O.NGrid,NGridItem:O.NGridItem,NInput:O.NInput,NInputNumber:O.NInputNumber,NSelect:O.NSelect,NTooltip:O.NTooltip,NPopover:O.NPopover,NDataTable:O.NDataTable,NCascader:O.NCascader,NTreeSelect:O.NTreeSelect,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel,OcTimePickRange:k9,IconArrowDown:Ji,IconArrowUp:ec},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t}){const{t:r}=Gt.useI18n(),n=p.ref({}),a=p.ref(!0),o=p.ref(!0),i=p.ref(0),s=p.ref({}),l=p.ref({}),u=p.ref([{key:"label"}]),c=y=>y.fallbackOption?typeof y.fallbackOption=="boolean"?()=>({label:r("Common.message.all"),value:"",disabled:!0}):y.fallbackOption:!1,f=(y,w,_)=>{const S=_.options.filter(x=>String(x.label).toLocaleLowerCase().indexOf(String(w).toLocaleLowerCase())>-1)||[];s.value[y].options=S,S.length===0?s.value[y].display=!1:s.value[y].display=!0},d=y=>{var x;Object.keys(y).forEach(C=>{var b,D,N;const T=y[C];T.show=T.show??!0,T.type==="dropdown"&&(s.value[C]={display:!1,options:T.options}),T.type==="select"&&T.fallbackOption&&T.multiple&&l.value[C].length===0&&(l.value[C]=[""]),T.type==="group"&&(l.value[C]||(l.value[C]=T.options[0].value),T.inputTemp=T.input.options[l.value[C]?l.value[C]:T.options[0].value],((b=T.inputTemp)==null?void 0:b.type)==="select"&&((D=T.inputTemp)!=null&&D.fallbackOption)&&((N=T.inputTemp)!=null&&N.multiple)&&l.value[T.input.key].length===0&&(l.value[T.input.key]=[""]))});let w=0;const _=e.small?1:e.cols,S=Object.keys(y);if(Object.keys(y).length>0)for(let C=0;C<=_;C++)(x=y[S[C]])!=null&&x.show&&(w=w+1);i.value=_-w>=0?_-w-1:-1,w>_?o.value=!0:o.value=!1,e.small&&(a.value=!1,o.value=!1),n.value=y},h=y=>{s.value[y].options.length===0?s.value[y].display=!1:s.value[y].display=!0},v=()=>{a.value=!a.value},m=()=>{const y=JSON.stringify(l.value,(w,_)=>_===void 0?null:Array.isArray(_)?_.filter(S=>S!==""):_);return JSON.parse(y)},g=y=>{y&&(l.value=y)};return t({getValues:m,setValues:g,dataFactory:d}),{more:o,offset:i,dataList:n,collapsed:a,searchData:l,dropDisplay:s,columnsPopover:u,showMore:v,setValues:g,dropValueChange:f,dropDisplayToggle:h,getDefaultDate:ha,selectFallback:c}}}),P9={class:"oc-search-bar-line"},I9={key:0,class:"oc-search-action-more"};function L9(e,t,r,n,a,o){const i=p.resolveComponent("NGridItem"),s=p.resolveComponent("NInputGroupLabel"),l=p.resolveComponent("NInput"),u=p.resolveComponent("NInputNumber"),c=p.resolveComponent("NSelect"),f=p.resolveComponent("NDataTable"),d=p.resolveComponent("NPopover"),h=p.resolveComponent("NCascader"),v=p.resolveComponent("NTreeSelect"),m=p.resolveComponent("OcTimePickRange"),g=p.resolveComponent("NDatePicker"),y=p.resolveComponent("NInputGroup"),w=p.resolveComponent("NGrid"),_=p.resolveComponent("IconArrowDown"),S=p.resolveComponent("NIcon"),x=p.resolveComponent("IconArrowUp"),C=p.resolveComponent("NButton"),T=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",P9,[p.createVNode(w,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed},{default:p.withCtx(()=>[e.offset>-1?(p.openBlock(),p.createBlock(i,{key:0,offset:e.offset},null,8,["offset"])):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.dataList,(b,D,N)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:`${D}_${N}`},[b.show?(p.openBlock(),p.createBlock(i,{key:0,span:e.small?1:b.span||1},{default:p.withCtx(()=>[b.type!=="group"?(p.openBlock(),p.createBlock(y,{key:0},{default:p.withCtx(()=>{var A;return[p.createVNode(s,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),b.type==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),"on-update:value":M=>{b.updateValue?b.updateValue(M.trim(),JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M.trim()},clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),min:b==null?void 0:b.min,max:b==null?void 0:b.max,step:(b==null?void 0:b.step)||1,"show-button":(b==null?void 0:b.showButton)||!0,"update-value-on-input":!1,validator:b==null?void 0:b.validator,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0},p.createSlots({_:2},[b!=null&&b.suffix?{name:"suffix",fn:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(b==null?void 0:b.suffix),1)]),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="select"?(p.openBlock(),p.createBlock(c,{key:2,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,"show-checkmark":!1,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,multiple:b.multiple,"fallback-option":e.selectFallback(b),"on-update:value":M=>{let I=M,P=M;if(b.multiple){let L=M.filter(E=>E!=="");L.length===0?(I=[""],P=[]):(I=L,P=L)}b.updateValue?b.updateValue(P,JSON.parse(JSON.stringify(e.searchData)),L=>e.setValues(L)):e.searchData[D]=I},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="dropdown"?(p.openBlock(),p.createBlock(d,{key:3,width:"trigger",trigger:"manual",style:{padding:"5px"},"show-arrow":!1,show:(A=e.dropDisplay[D])==null?void 0:A.display,"on-clickoutside":()=>{e.dropDisplay[D].display=!1}},{trigger:p.withCtx(()=>[p.createVNode(l,{value:e.searchData[D],disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),clearable:b.clearable??!0,"on-update:value":M=>{e.searchData[D]=M.trim(),e.dropValueChange(D,M.trim(),b)},onClick:M=>e.dropDisplayToggle(D),onFocus:M=>e.dropDisplayToggle(D)},null,8,["value","disabled","placeholder","clearable","on-update:value","onClick","onFocus"])]),default:p.withCtx(()=>{var M;return[p.createVNode(f,{columns:e.columnsPopover,data:((M=e.dropDisplay[D])==null?void 0:M.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":I=>({style:"cursor: pointer;",onClick:()=>{e.searchData[D]=I.value,e.dropDisplay[D].display=!1}}),size:"small","virtual-scroll":"",class:"oc-popover-table"},null,8,["columns","data","row-props"])]}),_:2},1032,["show","on-clickoutside"])):p.createCommentVNode("",!0),b.type==="cascader"?(p.openBlock(),p.createBlock(h,{key:4,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="treeSelect"?(p.openBlock(),p.createBlock(v,{key:5,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="timePicker"?(p.openBlock(),p.createBlock(m,{key:6,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,"onOnUpdate:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=[...M]},format:b==null?void 0:b.format,clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","onOnUpdate:value","format","clearable"])):p.createCommentVNode("",!0),b.type==="datePicker"?(p.openBlock(),p.createBlock(g,{key:7,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),type:b.dateType,format:b==null?void 0:b.format,"is-date-disabled":b==null?void 0:b.isDateDisabled,shortcuts:b==null?void 0:b.shortcuts,"update-value-on-close":b.dateType!=="year","on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"close-on-select":""},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0),b.type==="group"?(p.openBlock(),p.createBlock(y,{key:1},{default:p.withCtx(()=>{var A,M,I,P,L,E,B,R,V,G,q,J,z,ee,De,de,Ge,rt,Ve,ke,re,ue,St,Be,nr,zt,gn,Fu,Vr,zu,mn,zi,mo;return[p.createVNode(c,{value:e.searchData[D],"onUpdate:value":Se=>e.searchData[D]=Se,options:b.options,"show-checkmark":!1,style:p.normalizeStyle(b.width?typeof b.width=="number"?{width:`${b.width}px`}:{width:b.width}:{}),"on-update:value":Se=>{if(b.inputTemp=b.input.options[Se],b.inputTemp.type==="datePicker"){let Le=0;(b.inputTemp.dateType.indexOf("date")>-1||b.inputTemp.dateType.indexOf("quarter")>-1||b.inputTemp.dateType.indexOf("week")>-1)&&(Le=e.getDefaultDate()),b.inputTemp.dateType.indexOf("month")>-1&&(Le=e.getDefaultDate(void 0,void 0,1)),b.inputTemp.dateType.indexOf("year")>-1&&(Le=e.getDefaultDate(void 0,1,1)),b.inputTemp.dateType.indexOf("range")>-1&&(Le=[Le,Le]),e.searchData[b.input.key]=Le}else b.inputTemp.type==="number"?e.searchData[b.input.key]=null:b.inputTemp.type==="select"&&b.inputTemp.fallbackOption&&b.inputTemp.multiple?e.searchData[b.input.key]=[""]:e.searchData[b.input.key]="";b.updateValue?b.updateValue(Se,JSON.parse(JSON.stringify(e.searchData)),Le=>e.setValues(Le)):e.searchData[D]=Se},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((A=b.inputTemp)==null?void 0:A.type)==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,disabled:(M=b.inputTemp)==null?void 0:M.disabled,placeholder:typeof((I=b.inputTemp)==null?void 0:I.placeholder)=="string"?(P=b.inputTemp)==null?void 0:P.placeholder:((L=b.inputTemp)==null?void 0:L.placeholder)&&((E=b.inputTemp)==null?void 0:E.placeholder()),"on-update:value":Se=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(Se.trim(),JSON.parse(JSON.stringify(e.searchData)),$r=>e.setValues($r)):e.searchData[b.input.key]=Se.trim()},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),((B=b.inputTemp)==null?void 0:B.type)==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,disabled:(R=b.inputTemp)==null?void 0:R.disabled,placeholder:typeof((V=b.inputTemp)==null?void 0:V.placeholder)=="string"?(G=b.inputTemp)==null?void 0:G.placeholder:((q=b.inputTemp)==null?void 0:q.placeholder)&&((J=b.inputTemp)==null?void 0:J.placeholder()),min:(z=b.inputTemp)==null?void 0:z.min,max:(ee=b.inputTemp)==null?void 0:ee.max,step:((De=b.inputTemp)==null?void 0:De.step)||1,"show-button":((de=b.inputTemp)==null?void 0:de.showButton)||!0,"update-value-on-input":!1,validator:(Ge=b.inputTemp)==null?void 0:Ge.validator,"on-update:value":Se=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(Se,JSON.parse(JSON.stringify(e.searchData)),$r=>e.setValues($r)):e.searchData[b.input.key]=Se},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},p.createSlots({_:2},[(rt=b.inputTemp)!=null&&rt.suffix?{name:"suffix",fn:p.withCtx(()=>{var Se;return[p.createTextVNode(p.toDisplayString((Se=b.inputTemp)==null?void 0:Se.suffix),1)]}),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):p.createCommentVNode("",!0),((Ve=b.inputTemp)==null?void 0:Ve.type)==="datePicker"?(p.openBlock(),p.createBlock(g,{key:2,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,disabled:(ke=b.inputTemp)==null?void 0:ke.disabled,placeholder:typeof((re=b.inputTemp)==null?void 0:re.placeholder)=="string"?(ue=b.inputTemp)==null?void 0:ue.placeholder:((St=b.inputTemp)==null?void 0:St.placeholder)&&((Be=b.inputTemp)==null?void 0:Be.placeholder()),type:b.inputTemp.dateType,format:(nr=b.inputTemp)==null?void 0:nr.format,"is-date-disabled":(zt=b.inputTemp)==null?void 0:zt.isDateDisabled,shortcuts:(gn=b.inputTemp)==null?void 0:gn.shortcuts,"update-value-on-close":b.inputTemp.dateType!=="year","on-update:value":Se=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(Se,JSON.parse(JSON.stringify(e.searchData)),$r=>e.setValues($r)):e.searchData[b.input.key]=Se},clearable:b.inputTemp.clearable??!0,"close-on-select":"",style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):p.createCommentVNode("",!0),((Fu=b.inputTemp)==null?void 0:Fu.type)==="select"?(p.openBlock(),p.createBlock(c,{key:3,value:e.searchData[b.input.key],"onUpdate:value":Se=>e.searchData[b.input.key]=Se,"show-checkmark":!1,disabled:(Vr=b.inputTemp)==null?void 0:Vr.disabled,placeholder:typeof((zu=b.inputTemp)==null?void 0:zu.placeholder)=="string"?(mn=b.inputTemp)==null?void 0:mn.placeholder:((zi=b.inputTemp)==null?void 0:zi.placeholder)&&((mo=b.inputTemp)==null?void 0:mo.placeholder()),options:b.inputTemp.options,multiple:b.inputTemp.multiple,"fallback-option":e.selectFallback(b.inputTemp),"on-update:value":Se=>{var yC,_C,wC;let Le=Se,$r=Se;if(((yC=b.inputTemp)==null?void 0:yC.type)==="select"&&((_C=b.inputTemp)!=null&&_C.multiple)){let Gi=Se.filter(mW=>mW!=="");Gi.length===0?(Le=[""],$r=[]):(Le=Gi,$r=Gi)}(wC=b.inputTemp)!=null&&wC.updateValue?b.inputTemp.updateValue($r,JSON.parse(JSON.stringify(e.searchData)),Gi=>e.setValues(Gi)):e.searchData[b.input.key]=Le},clearable:b.inputTemp.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0)]),_:2},1032,["span"])):p.createCommentVNode("",!0)],64))),128))]),_:1},8,["cols","collapsed"]),e.more?(p.openBlock(),p.createElementBlock("div",I9,[p.createVNode(T,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(C,{onClick:e.showMore},{icon:p.withCtx(()=>[e.collapsed?(p.openBlock(),p.createBlock(S,{key:0},{default:p.withCtx(()=>[p.createVNode(_)]),_:1})):(p.openBlock(),p.createBlock(S,{key:1},{default:p.withCtx(()=>[p.createVNode(x)]),_:1}))]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.more")),1)]),_:1})])):p.createCommentVNode("",!0)])}const O9=Z(E9,[["render",L9]]),R9=p.defineComponent({name:"OcSearchBarPop",props:{value:{required:!0,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){return{close:()=>{t("on-update:value",!1)}}}}),B9={class:"oc-search-bar-pop"},V9={class:"oc-search-bar-pop-plan"},$9={class:"oc-search-bar-pop-action"},F9={class:"oc-search-bar-pop-content"};function z9(e,t,r,n,a,o){return p.withDirectives((p.openBlock(),p.createElementBlock("div",B9,[p.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...i)=>e.close&&e.close(...i))}),p.createElementVNode("div",V9,[p.createElementVNode("div",$9,[p.renderSlot(e.$slots,"action")]),p.createElementVNode("div",F9,[p.renderSlot(e.$slots,"default")])])],512)),[[p.vShow,e.value]])}const G9=Z(R9,[["render",z9]]),H9=p.defineComponent({name:"OcSearchBar",components:{NFlex:O.NFlex,NIcon:O.NIcon,NTooltip:O.NTooltip,NButton:O.NButton,NPopover:O.NPopover,IconArrowDown:Ji,IconReset:tc,IconSearch:qi,IconFilter:ji,OcSearchBarItem:O9,OcSearchBarPop:G9},props:{value:{required:!0,type:Object,default:()=>({})},defaultValue:{required:!0,type:Object,default:()=>({})},data:{required:!0,type:Object,default:()=>({})},loading:{type:Boolean,default:!1},cols:{type:Number,default:4},small:{type:Boolean,default:!1},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,slots:r,expose:n}){const a=Ct.useRoute(),o=Ct.useRouter(),i=p.ref(),s=p.ref({}),l=p.ref(!1),u=p.ref(!!r.header),c=p.ref(!!r.action),f=(m=!1)=>{if(!e.loading&&i.value){const g=i.value.getValues();if(!m&&g.query&&(g.query.page=1),t("update:loading",!0),t("on-update:value",g),e.cache){const y=a.path,w=zr(g),_=zr(y);o.replace(`${y}?cursor=${w}&routerId=${_}`)}}},d=()=>{e.loading||(h(JSON.parse(JSON.stringify(e.defaultValue))),f())},h=(m,g=!1)=>{if(i.value&&i.value.setValues(JSON.parse(JSON.stringify(m))),v(e.data),g)o.replace(a.path);else if(e.cache){const y=a.path,w=zr(m),_=zr(y);o.replace(`${y}?cursor=${w}&routerId=${_}`)}},v=m=>{i.value&&i.value.dataFactory(m)};return n({setValues:h,setData:v}),p.onMounted(()=>{setTimeout(()=>{let m=e.value;if(e.cache){const{cursor:g,routerId:y}=a.query;if(g&&y){const w=a.path,_=Co(y),S=Co(g);_===w&&(m=S)}}i.value&&i.value.setValues(JSON.parse(JSON.stringify(m))),i.value&&i.value.dataFactory(e.data),e.autoSubmit&&f(!0)},100)}),{itemRef:i,drawer:l,isSlotHeader:u,isSlotAction:c,commonStore:se,itemData:s,doSearch:f,clearAll:d}}}),W9={key:0,class:"oc-search-bar-title"},U9={key:1,class:"oc-search-bar-popover"},Y9={key:0},q9={class:"oc-search-bar-center"};function j9(e,t,r,n,a,o){const i=p.resolveComponent("OcSearchBarItem"),s=p.resolveComponent("IconArrowDown"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NButton"),c=p.resolveComponent("IconReset"),f=p.resolveComponent("IconSearch"),d=p.resolveComponent("NFlex"),h=p.resolveComponent("OcSearchBarPop"),v=p.resolveComponent("IconFilter"),m=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["oc-search-bar",{small:!e.isSlotHeader&&(e.small||e.commonStore.isMobile)}]),onKeyup:t[6]||(t[6]=p.withKeys(g=>e.doSearch(!1),["enter"]))},[e.isSlotHeader?(p.openBlock(),p.createElementBlock("span",W9,[p.renderSlot(e.$slots,"header")])):p.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(p.openBlock(),p.createElementBlock("div",U9,[p.createVNode(h,{value:e.drawer,"onUpdate:value":t[2]||(t[2]=g=>e.drawer=g),"onOnUpdate:value":t[3]||(t[3]=g=>e.drawer=g)},{action:p.withCtx(()=>[p.createVNode(d,{size:15,justify:"space-between",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{onClick:t[0]||(t[0]=g=>e.drawer=!1)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1}),e.resetButton?(p.openBlock(),p.createBlock(u,{key:0,loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])):p.createCommentVNode("",!0),e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(u,{key:1,loading:e.loading,class:"button-primary",onClick:t[1]||(t[1]=()=>{e.drawer=!1,e.doSearch(!1)})},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])):p.createCommentVNode("",!0)]),_:1}),e.isSlotAction?(p.openBlock(),p.createElementBlock("br",Y9)):p.createCommentVNode("",!0),e.isSlotAction?(p.openBlock(),p.createBlock(d,{key:1,size:15,justify:"space-between",class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})):p.createCommentVNode("",!0)]),default:p.withCtx(()=>[p.createVNode(i,{ref:"itemRef",loading:e.loading,small:""},null,8,["loading"])]),_:3},8,["value"]),p.createVNode(u,{onClick:t[4]||(t[4]=g=>e.drawer=!0)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1})])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[p.createElementVNode("div",q9,[p.createVNode(i,{ref:"itemRef",loading:e.loading,cols:e.cols},null,8,["loading","cols"]),p.createVNode(d,{size:5,wrap:!1,style:{"padding-left":"15px"}},{default:p.withCtx(()=>[e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(m,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:t[5]||(t[5]=g=>e.doSearch(!1))},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1})):p.createCommentVNode("",!0),e.resetButton?(p.openBlock(),p.createBlock(m,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.reset")),1)]),_:1})):p.createCommentVNode("",!0)]),_:1})]),p.createVNode(d,{size:0,wrap:!1,class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})],64))],34)}const Up=Z(H9,[["render",j9]]),X9=p.defineComponent({name:"OcSkeleton",components:{NGrid:O.NGrid,NGi:O.NGi,NSkeleton:O.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),Z9={class:"com-skeleton"};function K9(e,t,r,n,a,o){const i=p.resolveComponent("NSkeleton"),s=p.resolveComponent("NGi"),l=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",Z9,[p.createVNode(l,{"x-gap":"15","y-gap":"15",cols:e.cols,"item-responsive":"",responsive:"screen"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num,(u,c)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:`skeleton_${c}`},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num[c][0],(f,d)=>(p.openBlock(),p.createBlock(s,{key:`skeleton_${c}_${d}`,span:`${e.cols/2} m:2 l:${e.num[c][1]}`},{default:p.withCtx(()=>[p.createVNode(i)]),_:2},1032,["span"]))),128))],64))),128))]),_:1},8,["cols"])])}const nC=Z(X9,[["render",K9]]),J9=p.defineComponent({name:"OcTable",components:{NDataTable:O.NDataTable,NTooltip:O.NTooltip,NPopover:O.NPopover,NButton:O.NButton,NIcon:O.NIcon,NFlex:O.NFlex,NPopconfirm:O.NPopconfirm,IconFilter:ji,IconNavigation:Ki,IconEye:Xi,IconEyeOff:Zu,IconPin:Ju,IconPinOff:Qu,IconAdd:Wi,IconMailInboxAdd:_o,IconCloudArrowDown:Zi,Draggable:SC,OcSearchBar:Up,OcImporter:Hp},props:{columns:{required:!0,type:Array,default:()=>[]},actions:{type:Array,default:void 0},fetch:{required:!0,type:Function,default:()=>Promise.resolve()},defaultCheckedRowKeys:{type:Array,default:()=>[]},pagination:{type:Boolean,default:!0},scrollX:{type:[Number,String],default:void 0},flexHeight:{type:Boolean,default:!1},height:{type:[Number,String],default:void 0},minHeight:{type:[Number,String],default:void 0},maxHeight:{type:[Number,String],default:void 0},actionsWidth:{type:[Number,String],default:180},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0},filterButton:{type:Boolean,default:!0},pinButton:{type:Boolean,default:!0},realtime:{type:Boolean,default:!1},addFn:{type:Function,default:void 0},importer:{type:Object,default:void 0},exporter:{type:Object,default:void 0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,expose:r}){const n=p.ref(),{t:a}=Gt.useI18n(),o=Ct.useRoute(),i=Ct.useRouter(),s=O.useNotification(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref([]),d=p.ref([]),h=p.ref([]),v=p.ref({query:{page:1}}),m=p.ref({}),g=p.ref({}),y=p.ref(void 0),w=p.ref(void 0),_=o.path,S=E=>{l.value=!0,t("update:loading",!0),E&&(v.value.query={...v.value.query,...E});const B=So(v.value);e.fetch&&e.fetch(B).then(R=>{const V=bo(R);v.value.query=V.query,h.value=V.records,n.value&&n.value.setValues(v.value),l.value=!1,t("on-update:value",Ft(v.value)),t("update:loading",!1)}).catch(()=>{l.value=!1,t("update:loading",!1)})},x=E=>{v.value.query.page=E,Qi(),S()},C=E=>{v.value.query.pageSize=E,v.value.query.page=1,Qi(),S()},T=E=>{E?(v.value.query.columnKey=E.columnKey,v.value.query.order=E.order):(v.value.query.columnKey=null,v.value.query.order=null),S()},b=E=>{E.pin=!E.pin,E.pin?E.fixed="left":E.fixed=E.fixTemp??void 0},D=E=>{E.show=!E.show},N=()=>{const E=[];d.value.forEach(B=>{B.show&&E.push(B)}),f.value=E},A=E=>{if(v.value=E,e.cache){const B=zr(_),R=zr(v.value);i.replace(`${_}?cursor=${R}&routerId=${B}`)}S()},M=()=>{u.value=!0,Fp({...e.exporter,jobParams:JSON.stringify(v.value)}).then(()=>{s.success({content:()=>a("Notice.success"),duration:3e3}),setTimeout(()=>{u.value=!1},2e3)}).catch(()=>{u.value=!1})},I=(E=!1)=>{const B=Ft(e.columns),R=[],V=[],G={},q={};let J={};if(B.forEach(async z=>{if(z.search){if(z.search.title||(z.search.title=z.title),z.search.defaultValue!==void 0)G[z.search.key||z.key]=z.search.defaultValue;else{if(z.search.type==="input"&&(G[z.search.key||z.key]=""),z.search.type==="number"&&(G[z.search.key||z.key]=null),z.search.type==="dropdown"&&(G[z.search.key||z.key]=null),(z.search.type==="cascader"||z.search.type==="treeSelect")&&(z.search.multiple?G[z.search.key||z.key]=[]:G[z.search.key||z.key]=null),z.search.type==="datePicker"){let ee=0;(z.search.dateType.indexOf("date")>-1||z.search.dateType.indexOf("quarter")>-1||z.search.dateType.indexOf("week")>-1)&&(ee=ha()),z.search.dateType.indexOf("month")>-1&&(ee=ha(void 0,void 0,1)),z.search.dateType.indexOf("year")>-1&&(ee=ha(void 0,1,1)),z.search.dateType.indexOf("range")>-1&&(ee=[ee,ee]),G[z.search.key||z.key]=ee}z.search.type==="select"&&(typeof z.search.options=="function"&&await z.search.options().then(ee=>{z.search.options=ee}),z.search.multiple?z.search.fallbackOption?G[z.search.key||z.key]=[""]:G[z.search.key||z.key]=[]:G[z.search.key||z.key]=null)}q[z.search.key||z.key]=Ft(z.search)}if(delete z.search,z.render&&typeof z.render=="string"){const ee=z.render,De=new Function("rowData","rowIndex","h",ee);z.render=(de,Ge)=>De(de,Ge,p.h)}R.push(Ft(z)),m.value=Ft(G),V.push({...z,show:z.show??!0,pin:!!z.fixed,fixTemp:z.fixed})}),E&&e.cache){const{cursor:z,routerId:ee}=o.query;if(z&&ee){const De=Co(ee),de=Co(z);De===_&&(J=de)}}if(e.actions&&e.actions.length>0){const z=Ft(e.actions),ee={title:()=>a("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(De,de){return Gr(z,De,de)}};R.push(ee),V.push(ee)}f.value=R,g.value=q,v.value={...v.value,...G,...J},d.value=V,n.value&&n.value.setValues(JSON.parse(JSON.stringify(v.value))),n.value&&n.value.setData(JSON.parse(JSON.stringify(g.value)))},P=E=>typeof E=="number"?`${E}px`:E,L=()=>{if(e.height){const E=P(e.height);y.value=E,w.value=E;return}e.minHeight&&(y.value=P(e.minHeight)),e.maxHeight&&(w.value=P(e.maxHeight))};return r({init:S}),p.onMounted(()=>{I(!0),L()}),p.watch(()=>d.value,()=>{N()},{deep:!0}),p.watch(()=>e.columns,()=>{e.realtime&&I()},{deep:!0}),p.watch(()=>e.actions,()=>{e.realtime&&I()},{deep:!0}),{loading:l,minH:y,maxH:w,searchRef:n,exportLoading:u,tableColumns:f,tableData:h,tableQuery:v,searchDefaultValue:m,searchData:g,baseColumns:d,showImporter:c,pageChange:x,pageSizeChange:C,pageSorter:T,pinChange:b,showChange:D,submit:A,exportData:M,getDefaultDate:ha}}}),Q9={class:"com-card"};function eH(e,t,r,n,a,o){const i=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NTooltip"),c=p.resolveComponent("IconMailInboxAdd"),f=p.resolveComponent("IconCloudArrowDown"),d=p.resolveComponent("NPopconfirm"),h=p.resolveComponent("IconFilter"),v=p.resolveComponent("IconNavigation"),m=p.resolveComponent("IconPin"),g=p.resolveComponent("IconPinOff"),y=p.resolveComponent("IconEye"),w=p.resolveComponent("IconEyeOff"),_=p.resolveComponent("Draggable"),S=p.resolveComponent("NPopover"),x=p.resolveComponent("OcSearchBar"),C=p.resolveComponent("NDataTable"),T=p.resolveComponent("OcImporter");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(x,{ref:"searchRef",value:e.tableQuery,defaultValue:e.searchDefaultValue,data:e.searchData,loading:e.loading,cache:!1,autoSubmit:e.autoSubmit,resetButton:e.resetButton,"onOnUpdate:value":e.submit},{header:p.withCtx(()=>[p.renderSlot(e.$slots,"header")]),action:p.withCtx(()=>[e.addFn?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.addFn},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.add")),1)]),_:1})):p.createCommentVNode("",!0),e.importer?(p.openBlock(),p.createBlock(u,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:t[0]||(t[0]=b=>e.showImporter=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.title")),1)]),_:1})):p.createCommentVNode("",!0),e.exporter?(p.openBlock(),p.createBlock(u,{key:2,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(d,{"positive-text":e.$t("Common.export"),placement:"bottom-end",onPositiveClick:e.exportData},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.exportLoading},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export"))+"? ",1)]),_:1},8,["positive-text","onPositiveClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export")),1)]),_:1})):p.createCommentVNode("",!0),e.filterButton?(p.openBlock(),p.createBlock(u,{key:3,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(S,{placement:"bottom-end",trigger:"click","show-arrow":!1},{trigger:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(_,p.mergeProps({modelValue:e.baseColumns,"onUpdate:modelValue":t[1]||(t[1]=b=>e.baseColumns=b)},{animation:200},{"item-key":"key",class:"oc-table-filter",handle:".oc-drag-handle"}),{item:p.withCtx(({element:b})=>[b.hide?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:b.key,class:"oc-table-sort"},[p.createVNode(l,{quaternary:"",class:"oc-drag-handle"},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1}),p.createVNode(l,{quaternary:"",class:"oc-table-sort-title"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),e.pinButton?(p.openBlock(),p.createBlock(l,{key:0,type:"tertiary",onClick:D=>e.pinChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.pin?(p.openBlock(),p.createBlock(m,{key:0})):(p.openBlock(),p.createBlock(g,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])):p.createCommentVNode("",!0),p.createVNode(l,{type:"tertiary",onClick:D=>e.showChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.show?(p.openBlock(),p.createBlock(y,{key:0})):(p.openBlock(),p.createBlock(w,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue"])]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.filter")),1)]),_:1})):p.createCommentVNode("",!0),p.renderSlot(e.$slots,"action")]),_:3},8,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),p.createElementVNode("div",Q9,[p.createVNode(C,{columns:e.tableColumns,data:e.tableData,pagination:e.pagination&&e.tableQuery.query,loading:e.loading,"default-checked-row-keys":e.defaultCheckedRowKeys,"scroll-x":e.scrollX,"flex-height":e.flexHeight,"min-height":e.minH,"max-height":e.maxH,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"on-update:sorter":e.pageSorter,remote:""},null,8,["columns","data","pagination","loading","default-checked-row-keys","scroll-x","flex-height","min-height","max-height","on-update:page","on-update:page-size","on-update:sorter"])]),e.importer?(p.openBlock(),p.createBlock(T,{key:0,show:e.showImporter,"onUpdate:show":t[2]||(t[2]=b=>e.showImporter=b),data:e.importer},null,8,["show","data"])):p.createCommentVNode("",!0)],64)}const aC=Z(J9,[["render",eH]]),tH=p.defineComponent({name:"OcWorkflowAdd",components:{IconAdd:Wi,NButton:O.NButton,NIcon:O.NIcon,NPopover:O.NPopover},emits:["update:add"],setup(e,{emit:t}){const r=p.ref(!1);return{showPopover:r,submit:a=>{r.value=!1,t("update:add",a)}}}});function rH(e,t,r,n,a,o){const i=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(c,{trigger:"manual",show:e.showPopover},{trigger:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[0]||(t[0]=f=>e.showPopover=!0)},{default:p.withCtx(()=>[p.createVNode(s,{size:"18"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(u,null,{default:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[1]||(t[1]=f=>e.submit(2))},{default:p.withCtx(()=>[p.createTextVNode("节点")]),_:1}),p.createVNode(l,{type:"primary",onClick:t[2]||(t[2]=f=>e.submit(1))},{default:p.withCtx(()=>[p.createTextVNode("分支")]),_:1})]),_:1})]),_:1},8,["show"])}const oC=Z(tH,[["render",rH]]),nH=p.defineComponent({name:"OcWorkflowCard",components:{NFlex:O.NFlex,OcWorkflowAdd:oC,IconDismiss:Fr},props:{data:{type:Object,default:()=>({})}},emits:["update:add","update:delete"],setup(e,{emit:t}){return{addOne:a=>{t("update:add",a)},doDelete:()=>{t("update:delete",!0)}}}}),aH={class:"oc-workflow-node"},oH={class:"oc-workflow-node-ctx"},iH=p.createElementVNode("div",{class:"oc-workflow-node-desc"},"功能",-1),sH={class:"oc-workflow-node-more"};function lH(e,t,r,n,a,o){const i=p.resolveComponent("IconDismiss"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("OcWorkflowAdd");return p.openBlock(),p.createElementBlock("div",aH,[p.createElementVNode("div",oH,[p.createVNode(u,{justify:"space-between",class:"oc-workflow-node-title"},{default:p.withCtx(()=>[p.createElementVNode("div",null,p.toDisplayString(e.data.title),1),e.data.type===1||e.data.type===2?(p.openBlock(),p.createBlock(l,{key:0,onClick:e.doDelete},{default:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1},8,["onClick"])):p.createCommentVNode("",!0)]),_:1}),iH]),p.createElementVNode("div",sH,[p.createVNode(c,{"onUpdate:add":t[0]||(t[0]=f=>{e.addOne(f)})})])])}const uH=Z(nH,[["render",lH]]),cH=p.defineComponent({name:"OcWorkflowNode",components:{NButton:O.NButton,OcWorkflowAdd:oC,OcWorkflowCard:uH},props:{data:{type:Array,default:()=>[]}},setup(e){function t(c){const f=String(Date.now());return{title:"IF",type:1,key:f,parentKey:String(c),children:[{title:"条件1",type:1,key:`${f}1`,parentKey:f,children:[]},{title:"条件2",type:1,key:`${f}2`,parentKey:f,children:[]}]}}function r(c){const f=String(Date.now());return{title:`功能${Math.floor(Math.random()*101)}`,type:2,key:f,parentKey:String(c),children:[]}}return{addStartOne:c=>{e.data.splice(1,0,c===1?t(""):r(""))},addNodeOne:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addCondition:c=>{const f=String(Date.now());c.children.push({title:`条件${c.children.length+1}`,type:1,key:f,parentKey:c.key,children:[]})},addConditionBottom:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addConditionSide:(c,f)=>{c.children.length===0?c.children.push(f===1?t(c.parentKey):r(c.parentKey)):c.children.unshift(f===1?t(c.parentKey):r(c.parentKey))},deleteNodeOne:c=>{e.data.splice(c,1)},deleteConditionSide:(c,f)=>{if(c.children.length===2){const d=e.data.indexOf(c);e.data.splice(d,1)}else c.children.splice(f,1)}}}}),fH={key:2},hH={class:"oc-workflow-node-branch-add"},dH={class:"oc-workflow-branch-ctx"},pH={class:"oc-workflow-node-branch-add-bottom"},vH={key:3,class:"oc-workflow-node-end"},gH=[p.createElementVNode("div",{class:"oc-workflow-node-title-end"},"流程结束",-1)];function mH(e,t,r,n,a,o){const i=p.resolveComponent("OcWorkflowCard"),s=p.resolveComponent("NButton"),l=p.resolveComponent("OcWorkflowNode"),u=p.resolveComponent("OcWorkflowAdd");return p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.data,(c,f)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:c.key},[c.type===0?(p.openBlock(),p.createBlock(i,{data:c,key:f,"onUpdate:add":e.addStartOne},null,8,["data","onUpdate:add"])):p.createCommentVNode("",!0),c.type===2?(p.openBlock(),p.createBlock(i,{data:c,key:f,class:"arrow","onUpdate:add":d=>{e.addNodeOne(c,d)},"onUpdate:delete":d=>e.deleteNodeOne(f)},null,8,["data","onUpdate:add","onUpdate:delete"])):p.createCommentVNode("",!0),c.type===1?(p.openBlock(),p.createElementBlock("div",fH,[(p.openBlock(),p.createElementBlock("div",{class:"oc-workflow-branch",key:f},[p.createElementVNode("div",hH,[p.createVNode(s,{type:"success",onClick:d=>e.addCondition(c)},{default:p.withCtx(()=>[p.createTextVNode("添加条件")]),_:2},1032,["onClick"])]),p.createElementVNode("div",dH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(c.children,(d,h)=>(p.openBlock(),p.createElementBlock("div",{key:`children-${h}`},[p.createVNode(i,{data:d,"onUpdate:add":v=>{e.addConditionSide(d,v)},"onUpdate:delete":v=>e.deleteConditionSide(c,h)},null,8,["data","onUpdate:add","onUpdate:delete"]),p.createVNode(l,{data:d.children},null,8,["data"])]))),128))])])),p.createElementVNode("div",pH,[p.createVNode(u,{"onUpdate:add":d=>{e.addConditionBottom(c,d)}},null,8,["onUpdate:add"])])])):p.createCommentVNode("",!0),c.type===99?(p.openBlock(),p.createElementBlock("div",vH,gH)):p.createCommentVNode("",!0)],64))),128)}const yH=Z(cH,[["render",mH]]),_H=p.defineComponent({name:"OcWorkflow",components:{OcWorkflowNode:yH,NSlider:O.NSlider,NSelect:O.NSelect},props:{data:{type:Array,default:()=>[{title:"流程开始",type:0,key:"1",parentKey:"",children:[]},{title:"流程结束",type:99,key:"2",parentKey:"",children:[]}]}},setup(){const e=p.ref(1),t=p.ref(100),r=p.ref([{label:"50%",value:50},{label:"80%",value:80},{label:"100%",value:100},{label:"120%",value:120},{label:"150%",value:150}]);return{scaleShow:e,scaleFilter:t,scaleOption:r,scaleHandle:i=>{t.value=i,e.value=i/100},formatTooltip:i=>`${i}%`,renderSelectLabel:i=>p.h("div",{},{default:()=>`${i.value}%`})}}}),wH={class:"oc-workflow"},bH={class:"oc-workflow-tools"},SH={class:"oc-workflow-ctx"},CH={class:"oc-workflow-main"};function xH(e,t,r,n,a,o){const i=p.resolveComponent("NSelect"),s=p.resolveComponent("NSlider"),l=p.resolveComponent("OcWorkflowNode");return p.openBlock(),p.createElementBlock("div",wH,[p.createElementVNode("div",bH,[p.createVNode(i,{value:e.scaleFilter,"onUpdate:value":t[0]||(t[0]=u=>e.scaleFilter=u),options:e.scaleOption,"render-label":e.renderSelectLabel,"on-update:value":e.scaleHandle,style:{width:"100px"}},null,8,["value","options","render-label","on-update:value"]),p.createVNode(s,{value:e.scaleFilter,"onUpdate:value":t[1]||(t[1]=u=>e.scaleFilter=u),min:50,max:150,step:10,style:{width:"100px"},"on-update:value":e.scaleHandle,"format-tooltip":e.formatTooltip,class:"oc-workflow-slider"},null,8,["value","on-update:value","format-tooltip"])]),p.createElementVNode("div",SH,[p.createElementVNode("div",CH,[p.createElementVNode("div",{class:"oc-workflow-warp",style:p.normalizeStyle({transform:`scale(${e.scaleShow})`})},[p.createVNode(l,{data:e.data},null,8,["data"])],4)])])])}const iC=Z(_H,[["render",xH]]),sC=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Wi,IconAlert:Wu,IconArrowClockwise:fa,IconArrowDown:Ji,IconArrowSquareDown:qu,IconArrowUp:ec,IconCalendarArrowDown:yo,IconChevronLeft:Yu,IconClear:Uu,IconCloudArrowDown:Zi,IconDelete:Xu,IconDismiss:Fr,IconDrafts:Ku,IconEye:Xi,IconEyeOff:Zu,IconFilter:ji,IconFullScreenMaximize:Zp,IconGridDots:ju,IconMailInboxAdd:_o,IconNavigation:Ki,IconPin:Ju,IconPinOff:Qu,IconReset:tc,IconSearch:qi,IconUser:rc,IconWeatherMoon:Ui,IconWeatherSunny:Yi,OcActionButton:Xp,OcAuth:nv,OcBack:av,OcCircle:ov,OcEcharts:Ub,OcError:Yb,OcFooter:qb,OcForm:GS,OcHeader:qS,OcImporter:Hp,OcLogin:XS,OcLogo:ZS,OcMain:QS,OcMy:eC,OcNumberRoll:Wp,OcReport:tC,OcScan:rC,OcSearchBar:Up,OcSkeleton:nC,OcTable:aC,OcWorkflow:iC,commonStore:se,fnClearUser:Vu,fnDownload:Fp,fnGetUser:Bu,fnRenderAction:Gr,fnSetLang:da,fnSetTheme:xo,fnSetUser:zp,fnUserLogout:Gp,i18n:mt,userStore:$},Symbol.toStringTag,{value:"Module"}));var TH=rr,NH=function(){return TH.Date.now()},DH=NH,AH=/\s/;function MH(e){for(var t=e.length;t--&&AH.test(e.charAt(t)););return t}var kH=MH,EH=kH,PH=/^\s+/;function IH(e){return e&&e.slice(0,EH(e)+1).replace(PH,"")}var LH=IH,OH=$i,RH=po,BH="[object Symbol]";function VH(e){return typeof e=="symbol"||RH(e)&&OH(e)==BH}var $H=VH,FH=LH,lC=la,zH=$H,uC=NaN,GH=/^[-+]0x[0-9a-f]+$/i,HH=/^0b[01]+$/i,WH=/^0o[0-7]+$/i,UH=parseInt;function YH(e){if(typeof e=="number")return e;if(zH(e))return uC;if(lC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=FH(e);var r=HH.test(e);return r||WH.test(e)?UH(e.slice(2),r?2:8):GH.test(e)?uC:+e}var qH=YH,jH=la,Yp=DH,cC=qH,XH="Expected a function",ZH=Math.max,KH=Math.min;function JH(e,t,r){var n,a,o,i,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(XH);t=cC(t)||0,jH(r)&&(c=!!r.leading,f="maxWait"in r,o=f?ZH(cC(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(C){var T=n,b=a;return n=a=void 0,u=C,i=e.apply(b,T),i}function v(C){return u=C,s=setTimeout(y,t),c?h(C):i}function m(C){var T=C-l,b=C-u,D=t-T;return f?KH(D,o-b):D}function g(C){var T=C-l,b=C-u;return l===void 0||T>=t||T<0||f&&b>=o}function y(){var C=Yp();if(g(C))return w(C);s=setTimeout(y,m(C))}function w(C){return s=void 0,d&&n?h(C):(n=a=void 0,i)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function S(){return s===void 0?i:w(Yp())}function x(){var C=Yp(),T=g(C);if(n=arguments,a=this,l=C,T){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),i}return x.cancel=_,x.flush=S,x}var QH=JH;const eW=jb(QH);let qp=3840,jp=2160;const fC=p.reactive({scale:1});function tW(e,t){qp=e,jp=t}function hC(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=qp,a=jp,o=parseFloat((n/a).toFixed(5));if(parseFloat((t/r).toFixed(5))>o){const s=parseFloat((r*o/n).toFixed(5));e=s>1?1:s}else{const s=parseFloat((t/o/a).toFixed(5));e=s>1?1:s}fC.scale=e}function rW(){const e=eW(hC,200);return e(),window.addEventListener("resize",e),()=>{qp=3840,jp=2160,window.removeEventListener("resize",e)}}const nW=e=>!!($.kind===-1||$.kind===99||$.iot_menu_authorization.includes(e)),aW=e=>$.platform_tdm?$.kind===-1||$.kind===99||e==="home"?!0:$.tdm_menu_authorization.includes(e):!1,oW=e=>$.platform_qms?$.kind===-1||$.kind===99||e==="home"?!0:$.qms_menu_authorization.includes(e):!1,iW=e=>$.platform_twin?($.kind===-1||$.kind===99||e==="home",!0):!1,sW=e=>!!($.kind===-1||$.kind===99||$.maintain_menu_authorization.includes(e)),lW=e=>!!($.kind===-1||$.kind===99||$.order_menu_authorization.includes(e));let $u="";const we=navigator.userAgent.toLocaleUpperCase(),uW=()=>{const e=/WINDOWS NT 5.[\d]+/,t=/WINDOWS NT 6.[\d]+/,r=/WINDOWS NT 7.[\d]+/,n=/WINDOWS NT 10.[\d]+/,a=/WINDOWS NT 11.[\d]+/,o=/ANDROID [\d.]+/,i=/IPHONE/,s=/IPAD/,l=/MAC/;if(e.test(we))return"Windows XP";if(t.test(we))return"Windows 7";if(r.test(we))return"Windows 8";if(n.test(we))return"Windows 10";if(a.test(we))return"Windows 11";if(o.test(we)){const u=o.exec(we);return`Android ${u?u[0].split(" ")[1]:""}`}if(i.test(we)){const c=/OS [\d_]+/.exec(we);return`iPhone ${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(we)){const c=/OS [\d_]+/.exec(we);return`iPad${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(we)){const c=/ [\d_]+/.exec(we);return`MAC ${c?c[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},cW=()=>{const e=/MSIE [\d]+/,t=/EDG\/[\d.]+/,r=/FIREFOX\/[\d.]+/,n=/CHROME\/[\d.]+/,a=/SAFARI\/[\d.]+/,o=/OPR\/[\d.]+/,i=/SE \d/,s=/UCBROWSER/,l=/ANDROID [\d.]+/;if(e.test(we)&&i.test(we))return"SogouIE";if(i.test(we))return"SogouFast";if(s.test(we))return"UC";if(l.test(we))return"Android";if(o.test(we))return"Opera";if(e.test(we)){const u=e.exec(we);return`IE ${u?u[0].split("/")[1]:""}`}if(t.test(we)){const u=t.exec(we);return`Edge ${u?u[0].split("/")[1]:""}`}if(n.test(we)){const u=n.exec(we);return`Chrome ${u?u[0].split("/")[1]:""}`}if(r.test(we)){const u=r.exec(we);return`Firefox ${u?u[0].split("/")[1]:""}`}if(a.test(we)){const u=a.exec(we);return`Safari ${u?u[0].split("/")[1]:""}`}return"Others"};function dC(e,t,r,n=!1){if(e!==void 0&&(t in e||n)){const a=e[t],o=r(a);typeof o=="function"&&(e[t]=o)}}function fW(e,t,r,n=!1){e.addEventListener(t,r,n)}function hW(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;dC(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),dC(e,"send",t=>function(...r){const{url:n}=this.xhr;this.ontimeout=function(){Fi(3,n,"Network Timeout")},fW(this,"loadend",function(){try{!JSON.parse(this.response).ok&&this.status===200&&$.userId&&Fi(3,n,`${r[0]}-${this.status}-${this.response}`),(this.status===500||this.status===405)&&Fi(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function dW(e,t){$u=typeof t=="string"?t:$u,!(!t||!$u)&&(hW(),window.addEventListener("error",function(r){Fi(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){r.preventDefault()}),e.config.errorHandler=r=>{Fi(2,window.location.href,r)})}const Fi=(e,t,r)=>{if(!$.userId||e===2&&(r.indexOf("ResizeObserver")>-1||r.message.indexOf("ResizeObserver")>-1))return;const n={type:e,time:Date.now(),key:"c604902e-4088-4c64-bc73-edfbc971805b",url:encodeURIComponent(t||location.href),title:document.title,browser:cW(),platform:uW(),system:se.platformName,message:e===1||e===2?r.message:r,user:{userId:$.userId,name:$.name,factoryId:$.factoryId,systemType:$.systemType,tenantLoginCode:$.tenantLoginCode,tenantName:$.tenantName,tenantStatus:$.tenantStatus,userAgent:we}},a=zr(n),o=document.body;let i=new Image;i.src=$u+"?data="+a,i.onload=i.onerror=function(){o.removeChild(i),i=null},o.append(i),e!==3&&console.error(r)};let pC;async function vC(){const e=await fetch(`${window.location.protocol}//${window.location.host}`,{method:"HEAD",cache:"no-cache"});return e.headers.get("etag")||e.headers.get("last-modified")}async function pW(){const e=await vC();pC!==e&&Lx(!0)}async function vW(){pC=await vC(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{pW()},60*1e3)}function gC({components:e=[]}={}){const t=[];function r(a,o,i){a.component(o)||a.component(o,i)}function n(a,o){if(!t.includes(a)&&(t.push(a),e.forEach(i=>{const{name:s,alias:l}=i;r(a,s,i),l&&l.forEach(u=>{r(a,u,i)})}),o)){const{platform:i="iot",monitor:s=!1,versionMonitor:l=!0,enableRedirect:u=!0,language:c=!1,local:f="zh-CN"}=o,d=xt("theme",!1),h=xt("lang",f);Ix(i),dG(u),Px(c),da(h),xo(d),mt.global.locale.value=h,l&&vW(),s&&dW(a,s)}}return{version:ev,install:n}}const mC=gC({components:Object.keys(sC).map(e=>sC[e])}),gW=mC.install;F.CUSTOM=nG,F.FILE=$p,F.GET=WS,F.IconAdd=Wi,F.IconAlert=Wu,F.IconArrowClockwise=fa,F.IconArrowDown=Ji,F.IconArrowSquareDown=qu,F.IconArrowUp=ec,F.IconCalendarArrowDown=yo,F.IconChevronLeft=Yu,F.IconClear=Uu,F.IconCloudArrowDown=Zi,F.IconDelete=Xu,F.IconDismiss=Fr,F.IconDrafts=Ku,F.IconEye=Xi,F.IconEyeOff=Zu,F.IconFilter=ji,F.IconFullScreenMaximize=Zp,F.IconGridDots=ju,F.IconMailInboxAdd=_o,F.IconNavigation=Ki,F.IconPin=Ju,F.IconPinOff=Qu,F.IconReset=tc,F.IconSearch=qi,F.IconUser=rc,F.IconWeatherMoon=Ui,F.IconWeatherSunny=Yi,F.OcActionButton=Xp,F.OcAuth=nv,F.OcBack=av,F.OcCircle=ov,F.OcEcharts=Ub,F.OcError=Yb,F.OcFooter=qb,F.OcForm=GS,F.OcHeader=qS,F.OcImporter=Hp,F.OcLogin=XS,F.OcLogo=ZS,F.OcMain=QS,F.OcMy=eC,F.OcNumberRoll=Wp,F.OcReport=tC,F.OcScan=rC,F.OcSearchBar=Up,F.OcSkeleton=nC,F.OcTable=aC,F.OcWorkflow=iC,F.POST=ct,F.commonStore=se,F.create=gC,F.darkTheme=JS,F.default=mC,F.fnCancelFetch=rG,F.fnCheckDashRole=iW,F.fnCheckIoTRole=nW,F.fnCheckMaintainRole=sW,F.fnCheckOrderRole=lW,F.fnCheckQMSRole=oW,F.fnCheckTDMRole=aW,F.fnClearUser=Vu,F.fnComputedScale=hC,F.fnDecodeCursor=Co,F.fnDelStorage=wo,F.fnDeleteLoad=Qp,F.fnDownload=Fp,F.fnEncodeCursor=zr,F.fnFormatTime=wr,F.fnFormatUnits=Mx,F.fnFullScreen=Ax,F.fnGetStorage=xt,F.fnGetUser=Bu,F.fnListenerScale=rW,F.fnPageModel2Naive=bo,F.fnPageNaive2Model=So,F.fnRenderAction=Gr,F.fnScrollTop=Qi,F.fnSetLang=da,F.fnSetNormalWidthAndHeight=tW,F.fnSetStorage=Ht,F.fnSetTheme=xo,F.fnSetUser=zp,F.fnThrottle=Dx,F.fnUserLogout=Gp,F.getDefaultDate=ha,F.i18n=mt,F.install=gW,F.lightTheme=KS,F.scaleStore=fC,F.userStore=$,Object.defineProperties(F,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});