@nikoyo-spa/app-monitor 0.0.0-patch.2 → 0.0.0-patch.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/assets/{business-logic-CQZiy0-Y.js → business-logic-CsUgQnbN.js} +3 -3
  2. package/dist/assets/business-logic-CsUgQnbN.js.br +0 -0
  3. package/dist/assets/business-logic-CsUgQnbN.js.gz +0 -0
  4. package/dist/assets/{data-summary-CKL-5kdr.js → data-summary-Ds9kOYG5.js} +1 -1
  5. package/dist/assets/data-summary-Ds9kOYG5.js.br +0 -0
  6. package/dist/assets/data-summary-Ds9kOYG5.js.gz +0 -0
  7. package/dist/assets/en-W2saJBv2.js +1 -0
  8. package/dist/assets/en-W2saJBv2.js.br +0 -0
  9. package/dist/assets/en-W2saJBv2.js.gz +0 -0
  10. package/dist/assets/index-B8u4w97s.js +1 -0
  11. package/dist/assets/index-B8u4w97s.js.br +0 -0
  12. package/dist/assets/index-B8u4w97s.js.gz +0 -0
  13. package/dist/assets/{index-SqS0gDQA.js → index-DMPooeiL.js} +2 -2
  14. package/dist/assets/index-DMPooeiL.js.br +0 -0
  15. package/dist/assets/index-DMPooeiL.js.gz +0 -0
  16. package/dist/assets/index-ELnadNM_.js +1 -0
  17. package/dist/assets/index-ELnadNM_.js.br +0 -0
  18. package/dist/assets/index-ELnadNM_.js.gz +0 -0
  19. package/dist/assets/{main-bukQV6XT.js → main-ctqCe6Vq.js} +2 -2
  20. package/dist/assets/main-ctqCe6Vq.js.br +0 -0
  21. package/dist/assets/main-ctqCe6Vq.js.gz +0 -0
  22. package/dist/assets/vpss(monitor)index-BVzuQSY7.css +1 -0
  23. package/dist/assets/vpss(monitor)index-BVzuQSY7.css.br +0 -0
  24. package/dist/assets/vpss(monitor)index-BVzuQSY7.css.gz +0 -0
  25. package/dist/assets/vpss(monitor)index-yqpGLQSq.css +1 -0
  26. package/dist/assets/vpss(monitor)index-yqpGLQSq.css.br +0 -0
  27. package/dist/assets/vpss(monitor)index-yqpGLQSq.css.gz +0 -0
  28. package/dist/assets/{zh-CN-erm_dIiM.js → zh-CN-CZN8jO9c.js} +1 -1
  29. package/dist/assets/zh-CN-CZN8jO9c.js.br +0 -0
  30. package/dist/assets/zh-CN-CZN8jO9c.js.gz +0 -0
  31. package/dist/assets/{zh-TW-DGE4XIkc.js → zh-TW-D3FLLmAu.js} +1 -1
  32. package/dist/assets/zh-TW-D3FLLmAu.js.br +0 -0
  33. package/dist/assets/zh-TW-D3FLLmAu.js.gz +0 -0
  34. package/dist/main.js +1 -1
  35. package/dist/main.js.br +0 -0
  36. package/dist/main.js.gz +0 -0
  37. package/package.json +6 -6
  38. package/dist/assets/business-logic-CQZiy0-Y.js.br +0 -0
  39. package/dist/assets/business-logic-CQZiy0-Y.js.gz +0 -0
  40. package/dist/assets/data-summary-CKL-5kdr.js.br +0 -0
  41. package/dist/assets/data-summary-CKL-5kdr.js.gz +0 -0
  42. package/dist/assets/en-CTnCQPEB.js +0 -1
  43. package/dist/assets/en-CTnCQPEB.js.br +0 -0
  44. package/dist/assets/en-CTnCQPEB.js.gz +0 -0
  45. package/dist/assets/index-B634hXKg.js +0 -1
  46. package/dist/assets/index-B634hXKg.js.br +0 -0
  47. package/dist/assets/index-B634hXKg.js.gz +0 -0
  48. package/dist/assets/index-BL-tJd9M.js +0 -1
  49. package/dist/assets/index-BL-tJd9M.js.br +0 -0
  50. package/dist/assets/index-BL-tJd9M.js.gz +0 -0
  51. package/dist/assets/index-SqS0gDQA.js.br +0 -0
  52. package/dist/assets/index-SqS0gDQA.js.gz +0 -0
  53. package/dist/assets/main-bukQV6XT.js.br +0 -0
  54. package/dist/assets/main-bukQV6XT.js.gz +0 -0
  55. package/dist/assets/vpss(monitor)index-6qFReK_f.css +0 -1
  56. package/dist/assets/vpss(monitor)index-6qFReK_f.css.br +0 -0
  57. package/dist/assets/vpss(monitor)index-6qFReK_f.css.gz +0 -0
  58. package/dist/assets/vpss(monitor)index-CPI3e561.css +0 -1
  59. package/dist/assets/vpss(monitor)index-CPI3e561.css.br +0 -0
  60. package/dist/assets/vpss(monitor)index-CPI3e561.css.gz +0 -0
  61. package/dist/assets/zh-CN-erm_dIiM.js.br +0 -0
  62. package/dist/assets/zh-CN-erm_dIiM.js.gz +0 -0
  63. package/dist/assets/zh-TW-DGE4XIkc.js.br +0 -0
  64. package/dist/assets/zh-TW-DGE4XIkc.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import{inject as sa,ref as Me,getCurrentInstance as Po,computed as Te,onMounted as tf,watch as cr,toRef as Gg,onUnmounted as Gk,unref as Ye,shallowRef as FM,nextTick as Or,defineComponent as ca,onBeforeUnmount as n0,createBlock as er,openBlock as Ne,Transition as HM,withCtx as Dt,withDirectives as Is,createElementVNode as lt,withModifiers as Hn,normalizeClass as ke,normalizeStyle as ln,vShow as mh,createElementBlock as nt,Fragment as gs,createVNode as _r,provide as i0,reactive as Bs,onActivated as Fk,onUpdated as Hk,createCommentVNode as Gt,resolveDynamicComponent as Hv,renderSlot as Ot,isVNode as Wv,toRaw as Wk,toDisplayString as en,toRefs as o0,watchEffect as Uk,resolveComponent as An,resolveDirective as Yk,toHandlerKey as $k,renderList as Af,mergeProps as Y1,normalizeProps as Zk,createTextVNode as $1,vModelText as Xk}from"vue";import{ap as qk,o as Fg,u as WM,t as Kk,aq as UM,x as jk,ar as YM,H as $M,a7 as ra,as as Jk,C as Qk,at as eO,L as _h,R as s0,au as ZM,av as l0,aw as tO,ai as Ps,a4 as ao,ax as rO,Z as el,_ as hi,Y as ii,N as xs,P as XM,$ as jr,ay as Z1,aj as an,W as Ia,a1 as u0,U as xr,az as aO,a8 as qM,E as Hg,aA as X1,ag as nO,X as no,aB as iO,aC as oO,aD as sO,T as Mf,aE as q1,aF as lO,aG as uO,ac as K1,ad as qr,aH as fO,M as vO,aI as cO,a9 as j1,aJ as hO,ab as dO,aK as J1,aL as pO,Q as gO,aM as yO,a5 as mO,a2 as KM,aN as Sh}from"./main-bukQV6XT.js";import{useI18n as jM}from"vue-i18n";var _O=/\s/;function SO(r){for(var e=r.length;e--&&_O.test(r.charAt(e)););return e}var bO=/^\s+/;function xO(r){return r&&r.slice(0,SO(r)+1).replace(bO,"")}var Q1=NaN,wO=/^[-+]0x[0-9a-f]+$/i,TO=/^0b[01]+$/i,CO=/^0o[0-7]+$/i,AO=parseInt;function fd(r){if(typeof r=="number")return r;if(qk(r))return Q1;if(Fg(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Fg(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=xO(r);var t=TO.test(r);return t||CO.test(r)?AO(r.slice(2),t?2:8):wO.test(r)?Q1:+r}function MO(r,e,t,a){r.length;for(var n=t+1;n--;)if(e(r[n],n,r))return n;return-1}function Fn(){if(!arguments.length)return[];var r=arguments[0];return WM(r)?r:[r]}function DO(r,e,t){return r===r&&(t!==void 0&&(r=r<=t?r:t),e!==void 0&&(r=r>=e?r:e)),r}function LO(r,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=fd(t),t=t===t?t:0),e!==void 0&&(e=fd(e),e=e===e?e:0),DO(fd(r),e,t)}var IO=1,PO=2;function RO(r,e,t,a){var n=t.length,i=n;if(r==null)return!i;for(r=Object(r);n--;){var o=t[n];if(o[2]?o[1]!==r[o[0]]:!(o[0]in r))return!1}for(;++n<i;){o=t[n];var s=o[0],l=r[s],u=o[1];if(o[2]){if(l===void 0&&!(s in r))return!1}else{var f=new Kk,v;if(!(v===void 0?UM(u,l,IO|PO,a,f):v))return!1}}return!0}function JM(r){return r===r&&!Fg(r)}function EO(r){for(var e=jk(r),t=e.length;t--;){var a=e[t],n=r[a];e[t]=[a,n,JM(n)]}return e}function QM(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}function kO(r){var e=EO(r);return e.length==1&&e[0][2]?QM(e[0][0],e[0][1]):function(t){return t===r||RO(t,r,e)}}var OO=1,NO=2;function BO(r,e){return YM(r)&&JM(e)?QM($M(r),e):function(t){var a=ra(t,r);return a===void 0&&a===e?Jk(t,r):UM(e,a,OO|NO)}}function zO(r){return function(e){return e?.[r]}}function VO(r){return function(e){return Qk(e,r)}}function GO(r){return YM(r)?zO($M(r)):VO(r)}function FO(r){return typeof r=="function"?r:r==null?eO:typeof r=="object"?WM(r)?BO(r[0],r[1]):kO(r):GO(r)}function HO(r,e,t){var a=r==null?0:r.length;if(!a)return-1;var n=a-1;return MO(r,FO(e),n)}class WO extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function eD(r,e){throw new WO(`[${r}] ${e}`)}function EQ(r,e){}const ys="update:modelValue",tD="change";function UO(r,e){if(!_h)return;if(!e){r.scrollTop=0;return}const t=[];let a=e.offsetParent;for(;a!==null&&r!==a&&r.contains(a);)t.push(a),a=a.offsetParent;const n=e.offsetTop+t.reduce((l,u)=>l+u.offsetTop,0),i=n+e.offsetHeight,o=r.scrollTop,s=o+r.clientHeight;n<o?r.scrollTop=n:i>s&&(r.scrollTop=i-r.clientHeight)}const YO=()=>{const r=sa(s0,void 0),e=sa(ZM,void 0);return{form:r,formItem:e}},$O=(r,{formItemContext:e,disableIdGeneration:t,disableIdManagement:a})=>{t||(t=Me(!1)),a||(a=Me(!1));const n=Po(),i=()=>{let u=n?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},o=Me();let s;const l=Te(()=>{var u;return!!(!(r.label||r.ariaLabel)&&e&&e.inputIds&&((u=e.inputIds)==null?void 0:u.length)<=1)});return tf(()=>{s=cr([Gg(r,"id"),t],([u,f])=>{const v=u??(f?void 0:l0().value);v!==o.value&&(e?.removeInputId&&!i()&&(o.value&&e.removeInputId(o.value),!a?.value&&!f&&v&&e.addInputId(v)),o.value=v)},{immediate:!0})}),Gk(()=>{s&&s(),e?.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},rD=r=>{const e=Po();return Te(()=>{var t,a;return(a=(t=e?.proxy)==null?void 0:t.$props)==null?void 0:a[r]})},aD=(r,e={})=>{const t=Me(void 0),a=e.prop?t:rD("size"),n=e.global?t:tO(),i=e.form?{size:void 0}:sa(s0,void 0),o=e.formItem?{size:void 0}:sa(ZM,void 0);return Te(()=>a.value||Ye(r)||o?.size||i?.size||n.value||"")},ZO=r=>{const e=rD("disabled"),t=sa(s0,void 0);return Te(()=>{var a,n,i;return(i=(n=(a=e.value)!=null?a:Ye(r))!=null?n:t?.disabled)!=null?i:!1})};function XO(r,{disabled:e,beforeFocus:t,afterFocus:a,beforeBlur:n,afterBlur:i}={}){const o=Po(),{emit:s}=o,l=FM(),u=Me(!1),f=h=>{const d=ao(t)?t(h):!1;Ye(e)||u.value||d||(u.value=!0,s("focus",h),a?.())},v=h=>{var d;const p=ao(n)?n(h):!1;Ye(e)||h.relatedTarget&&((d=l.value)!=null&&d.contains(h.relatedTarget))||p||(u.value=!1,s("blur",h),i?.())},c=h=>{var d,p;Ye(e)||rO(h.target)||(d=l.value)!=null&&d.contains(document.activeElement)&&l.value!==document.activeElement||(p=r.value)==null||p.focus()};return cr([l,()=>Ye(e)],([h,d])=>{h&&(d?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Ps(l,"focus",f,!0),Ps(l,"blur",v,!0),Ps(l,"click",c,!0),{isFocused:u,wrapperRef:l,handleFocus:f,handleBlur:v}}const qO=r=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(r);function KO({afterComposition:r,emit:e}){const t=Me(!1),a=s=>{e?.("compositionstart",s),t.value=!0},n=s=>{var l;e?.("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,f=u[u.length-1]||"";t.value=!qO(f)},i=s=>{e?.("compositionend",s),t.value&&(t.value=!1,Or(()=>r(s)))};return{isComposing:t,handleComposition:s=>{s.type==="compositionend"?i(s):n(s)},handleCompositionStart:a,handleCompositionUpdate:n,handleCompositionEnd:i}}const Wo=4,jO={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},JO=({move:r,size:e,bar:t})=>({[t.size]:e,transform:`translate${t.axis}(${r}%)`}),f0=Symbol("scrollbarContextKey"),QO=el({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),eN="Thumb",tN=ca({__name:"thumb",props:QO,setup(r){const e=r,t=sa(f0),a=ii("scrollbar");t||eD(eN,"can not inject scrollbar context");const n=Me(),i=Me(),o=Me({}),s=Me(!1);let l=!1,u=!1,f=0,v=0,c=_h?document.onselectstart:null;const h=Te(()=>jO[e.vertical?"vertical":"horizontal"]),d=Te(()=>JO({size:e.size,move:e.move,bar:h.value})),p=Te(()=>n.value[h.value.offset]**2/t.wrapElement[h.value.scrollSize]/e.ratio/i.value[h.value.offset]),g=T=>{var M;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(M=window.getSelection())==null||M.removeAllRanges(),m(T);const C=T.currentTarget;C&&(o.value[h.value.axis]=C[h.value.offset]-(T[h.value.client]-C.getBoundingClientRect()[h.value.direction]))},y=T=>{if(!i.value||!n.value||!t.wrapElement)return;const M=Math.abs(T.target.getBoundingClientRect()[h.value.direction]-T[h.value.client]),C=i.value[h.value.offset]/2,A=(M-C)*100*p.value/n.value[h.value.offset];t.wrapElement[h.value.scroll]=A*t.wrapElement[h.value.scrollSize]/100},m=T=>{T.stopImmediatePropagation(),l=!0,f=t.wrapElement.scrollHeight,v=t.wrapElement.scrollWidth,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S),c=document.onselectstart,document.onselectstart=()=>!1},_=T=>{if(!n.value||!i.value||l===!1)return;const M=o.value[h.value.axis];if(!M)return;const C=(n.value.getBoundingClientRect()[h.value.direction]-T[h.value.client])*-1,A=i.value[h.value.offset]-M,I=(C-A)*100*p.value/n.value[h.value.offset];h.value.scroll==="scrollLeft"?t.wrapElement[h.value.scroll]=I*v/100:t.wrapElement[h.value.scroll]=I*f/100},S=()=>{l=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S),w(),u&&(s.value=!1)},x=()=>{u=!1,s.value=!!e.size},b=()=>{u=!0,s.value=l};n0(()=>{w(),document.removeEventListener("mouseup",S)});const w=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Ps(Gg(t,"scrollbarElement"),"mousemove",x),Ps(Gg(t,"scrollbarElement"),"mouseleave",b),(T,M)=>(Ne(),er(HM,{name:Ye(a).b("fade"),persisted:""},{default:Dt(()=>[Is(lt("div",{ref_key:"instance",ref:n,class:ke([Ye(a).e("bar"),Ye(a).is(Ye(h).key)]),onMousedown:y,onClick:Hn(()=>{},["stop"])},[lt("div",{ref_key:"thumb",ref:i,class:ke(Ye(a).e("thumb")),style:ln(Ye(d)),onMousedown:g},null,38)],42,["onClick"]),[[mh,T.always||s.value]])]),_:1},8,["name"]))}});var eS=hi(tN,[["__file","thumb.vue"]]);const rN=el({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),aN=ca({__name:"bar",props:rN,setup(r,{expose:e}){const t=r,a=sa(f0),n=Me(0),i=Me(0),o=Me(""),s=Me(""),l=Me(1),u=Me(1);return e({handleScroll:c=>{if(c){const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo;i.value=c.scrollTop*100/h*l.value,n.value=c.scrollLeft*100/d*u.value}},update:()=>{const c=a?.wrapElement;if(!c)return;const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo,p=h**2/c.scrollHeight,g=d**2/c.scrollWidth,y=Math.max(p,t.minSize),m=Math.max(g,t.minSize);l.value=p/(h-p)/(y/(h-y)),u.value=g/(d-g)/(m/(d-m)),s.value=y+Wo<h?`${y}px`:"",o.value=m+Wo<d?`${m}px`:""}}),(c,h)=>(Ne(),nt(gs,null,[_r(eS,{move:n.value,ratio:u.value,size:o.value,always:c.always},null,8,["move","ratio","size","always"]),_r(eS,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:c.always},null,8,["move","ratio","size","always"])],64))}});var nN=hi(aN,[["__file","bar.vue"]]);const iN=el({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:jr([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...XM(["ariaLabel","ariaOrientation"])}),nD={"end-reached":r=>["left","right","top","bottom"].includes(r),scroll:({scrollTop:r,scrollLeft:e})=>[r,e].every(xs)},oN="ElScrollbar",sN=ca({name:oN}),lN=ca({...sN,props:iN,emits:nD,setup(r,{expose:e,emit:t}){const a=r,n=ii("scrollbar");let i,o,s,l=0,u=0,f="";const v={bottom:!1,top:!1,right:!1,left:!1},c=Me(),h=Me(),d=Me(),p=Me(),g=Te(()=>{const A={},I=Z1(a.height),L=Z1(a.maxHeight);return I&&(A.height=I),L&&(A.maxHeight=L),[a.wrapStyle,A]}),y=Te(()=>[a.wrapClass,n.e("wrap"),{[n.em("wrap","hidden-default")]:!a.native}]),m=Te(()=>[n.e("view"),a.viewClass]),_=A=>{var I;return(I=v[A])!=null?I:!1},S={top:"bottom",bottom:"top",left:"right",right:"left"},x=A=>{const I=S[f];if(!I)return;const L=A[f],P=A[I];L&&!v[f]&&(v[f]=!0),!P&&v[I]&&(v[I]=!1)},b=()=>{var A;if(h.value){(A=p.value)==null||A.handleScroll(h.value);const I=l,L=u;l=h.value.scrollTop,u=h.value.scrollLeft;const P={bottom:l+h.value.clientHeight>=h.value.scrollHeight-a.distance,top:l<=a.distance&&I!==0,right:u+h.value.clientWidth>=h.value.scrollWidth-a.distance&&L!==u,left:u<=a.distance&&L!==0};if(t("scroll",{scrollTop:l,scrollLeft:u}),I!==l&&(f=l>I?"bottom":"top"),L!==u&&(f=u>L?"right":"left"),a.distance>0){if(_(f))return;x(P)}P[f]&&t("end-reached",f)}};function w(A,I){Ia(A)?h.value.scrollTo(A):xs(A)&&xs(I)&&h.value.scrollTo(A,I)}const T=A=>{xs(A)&&(h.value.scrollTop=A)},M=A=>{xs(A)&&(h.value.scrollLeft=A)},C=()=>{var A;(A=p.value)==null||A.update(),v[f]=!1};return cr(()=>a.noresize,A=>{A?(i?.(),o?.(),s?.()):({stop:i}=an(d,C),{stop:o}=an(h,C),s=Ps("resize",C))},{immediate:!0}),cr(()=>[a.maxHeight,a.height],()=>{a.native||Or(()=>{var A;C(),h.value&&((A=p.value)==null||A.handleScroll(h.value))})}),i0(f0,Bs({scrollbarElement:c,wrapElement:h})),Fk(()=>{h.value&&(h.value.scrollTop=l,h.value.scrollLeft=u)}),tf(()=>{a.native||Or(()=>{C()})}),Hk(()=>C()),e({wrapRef:h,update:C,scrollTo:w,setScrollTop:T,setScrollLeft:M,handleScroll:b}),(A,I)=>(Ne(),nt("div",{ref_key:"scrollbarRef",ref:c,class:ke(Ye(n).b())},[lt("div",{ref_key:"wrapRef",ref:h,class:ke(Ye(y)),style:ln(Ye(g)),tabindex:A.tabindex,onScroll:b},[(Ne(),er(Hv(A.tag),{id:A.id,ref_key:"resizeRef",ref:d,class:ke(Ye(m)),style:ln(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:Dt(()=>[Ot(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),A.native?Gt("v-if",!0):(Ne(),er(nN,{key:0,ref_key:"barRef",ref:p,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var uN=hi(lN,[["__file","scrollbar.vue"]]);const fN=u0(uN),jl=r=>{const e=xr(r)?r:[r],t=[];return e.forEach(a=>{var n;xr(a)?t.push(...jl(a)):Wv(a)&&((n=a.component)!=null&&n.subTree)?t.push(a,...jl(a.component.subTree)):Wv(a)&&xr(a.children)?t.push(...jl(a.children)):Wv(a)&&a.shapeFlag===2?t.push(...jl(a.type())):t.push(a)}),t},Wg=el({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:aO},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),vN={close:r=>r instanceof MouseEvent,click:r=>r instanceof MouseEvent},cN=ca({name:"ElTag"}),hN=ca({...cN,props:Wg,emits:vN,setup(r,{emit:e}){const t=r,a=aD(),{t:n}=qM(),i=ii("tag"),o=Te(()=>{const{type:f,hit:v,effect:c,closable:h,round:d}=t;return[i.b(),i.is("closable",h),i.m(f||"primary"),i.m(a.value),i.m(c),i.is("hit",v),i.is("round",d)]}),s=f=>{e("close",f)},l=f=>{e("click",f)},u=f=>{var v,c,h;(h=(c=(v=f?.component)==null?void 0:v.subTree)==null?void 0:c.component)!=null&&h.bum&&(f.component.subTree.component.bum=null)};return(f,v)=>f.disableTransitions?(Ne(),nt("span",{key:0,class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)):(Ne(),er(HM,{key:1,name:`${Ye(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:Dt(()=>[lt("span",{class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)]),_:3},8,["name"]))}});var dN=hi(hN,[["__file","tag.vue"]]);const pN=u0(dN),Nn=new Map;if(_h){let r;document.addEventListener("mousedown",e=>r=e),document.addEventListener("mouseup",e=>{if(r){for(const t of Nn.values())for(const{documentHandler:a}of t)a(e,r);r=void 0}})}function tS(r,e){let t=[];return xr(e.arg)?t=e.arg:nO(e.arg)&&t.push(e.arg),function(a,n){const i=e.instance.popperRef,o=a.target,s=n?.target,l=!e||!e.instance,u=!o||!s,f=r.contains(o)||r.contains(s),v=r===o,c=t.length&&t.some(d=>d?.contains(o))||t.length&&t.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||f||v||c||h||e.value(a,n)}}const gN={beforeMount(r,e){Nn.has(r)||Nn.set(r,[]),Nn.get(r).push({documentHandler:tS(r,e),bindingFn:e.value})},updated(r,e){Nn.has(r)||Nn.set(r,[]);const t=Nn.get(r),a=t.findIndex(i=>i.bindingFn===e.oldValue),n={documentHandler:tS(r,e),bindingFn:e.value};a>=0?t.splice(a,1,n):t.push(n)},unmounted(r){Nn.delete(r)}},iD=11,yN=2;function mN(){const r=FM(),e=Me(0),t=Te(()=>({minWidth:`${Math.max(e.value,iD)}px`}));return an(r,()=>{var n,i;e.value=(i=(n=r.value)==null?void 0:n.getBoundingClientRect().width)!=null?i:0}),{calculatorRef:r,calculatorWidth:e,inputStyle:t}}const Ug={label:"label",value:"value",disabled:"disabled",options:"options"};function _N(r){const e=Me({...Ug,...r.props});let t={...r.props};return cr(()=>r.props,s=>{no(s,t)||(e.value={...Ug,...s},t={...s})},{deep:!0}),{aliasProps:e,getLabel:s=>ra(s,e.value.label),getValue:s=>ra(s,e.value.value),getDisabled:s=>ra(s,e.value.disabled),getOptions:s=>ra(s,e.value.options)}}const oD=Symbol("ElSelectGroup"),bh=Symbol("ElSelect"),Yg="ElOption",SN=el({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),bN=(r="")=>r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function xN(r,e){const t=sa(bh);t||eD(Yg,"usage: <el-select><el-option /></el-select/>");const a=sa(oD,{disabled:!1}),n=Te(()=>f(Fn(t.props.modelValue),r.value)),i=Te(()=>{var h;if(t.props.multiple){const d=Fn((h=t.props.modelValue)!=null?h:[]);return!n.value&&d.length>=t.props.multipleLimit&&t.props.multipleLimit>0}else return!1}),o=Te(()=>{var h;return(h=r.label)!=null?h:Ia(r.value)?"":r.value}),s=Te(()=>r.value||r.label||""),l=Te(()=>r.disabled||e.groupDisabled||i.value),u=Po(),f=(h=[],d)=>{if(Ia(r.value)){const p=t.props.valueKey;return h&&h.some(g=>Wk(ra(g,p))===ra(d,p))}else return h&&h.includes(d)},v=()=>{l.value||(t.states.hoveringIndex=t.optionsArray.indexOf(u.proxy))},c=h=>{const d=new RegExp(bN(h),"i");e.visible=d.test(String(o.value))||r.created};return cr(()=>o.value,()=>{!r.created&&!t.props.remote&&t.setSelected()}),cr(()=>r.value,(h,d)=>{const{remote:p,valueKey:g}=t.props;if((p?h!==d:!no(h,d))&&(t.onOptionDestroy(d,u.proxy),t.onOptionCreate(u.proxy)),!r.created&&!p){if(g&&Ia(h)&&Ia(d)&&h[g]===d[g])return;t.setSelected()}}),cr(()=>a.disabled,()=>{e.groupDisabled=a.disabled},{immediate:!0}),{select:t,currentLabel:o,currentValue:s,itemSelected:n,isDisabled:l,hoverItem:v,updateOption:c}}const wN=ca({name:Yg,componentName:Yg,props:SN,setup(r){const e=ii("select"),t=l0(),a=Te(()=>[e.be("dropdown","item"),e.is("disabled",Ye(s)),e.is("selected",Ye(o)),e.is("hovering",Ye(c))]),n=Bs({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,updateOption:f}=xN(r,n),{visible:v,hover:c}=o0(n),h=Po().proxy;l.onOptionCreate(h),n0(()=>{const p=h.value;Or(()=>{const{selected:g}=l.states,y=g.some(m=>m.value===h.value);l.states.cachedOptions.get(p)===h&&!y&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,h)});function d(){s.value||l.handleOptionSelect(h)}return{ns:e,id:t,containerKls:a,currentLabel:i,itemSelected:o,isDisabled:s,select:l,visible:v,hover:c,states:n,hoverItem:u,updateOption:f,selectOptionClick:d}}});function TN(r,e){return Is((Ne(),nt("li",{id:r.id,class:ke(r.containerKls),role:"option","aria-disabled":r.isDisabled||void 0,"aria-selected":r.itemSelected,onMousemove:r.hoverItem,onClick:Hn(r.selectOptionClick,["stop"])},[Ot(r.$slots,"default",{},()=>[lt("span",null,en(r.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[mh,r.visible]])}var v0=hi(wN,[["render",TN],["__file","option.vue"]]);const CN=ca({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const r=sa(bh),e=ii("select"),t=Te(()=>r.props.popperClass),a=Te(()=>r.props.multiple),n=Te(()=>r.props.fitInputWidth),i=Me("");function o(){var s;const l=(s=r.selectRef)==null?void 0:s.offsetWidth;l?i.value=`${l-yN}px`:i.value=""}return tf(()=>{o(),an(r.selectRef,o)}),{ns:e,minWidth:i,popperClass:t,isMultiple:a,isFitInputWidth:n}}});function AN(r,e,t,a,n,i){return Ne(),nt("div",{class:ke([r.ns.b("dropdown"),r.ns.is("multiple",r.isMultiple),r.popperClass]),style:ln({[r.isFitInputWidth?"width":"minWidth"]:r.minWidth})},[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.ns.be("dropdown","header"))},[Ot(r.$slots,"header")],2)):Gt("v-if",!0),Ot(r.$slots,"default"),r.$slots.footer?(Ne(),nt("div",{key:1,class:ke(r.ns.be("dropdown","footer"))},[Ot(r.$slots,"footer")],2)):Gt("v-if",!0)],6)}var MN=hi(CN,[["render",AN],["__file","select-dropdown.vue"]]);const DN=(r,e)=>{const{t}=qM(),a=l0(),n=ii("select"),i=ii("input"),o=Bs({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=Me(),l=Me(),u=Me(),f=Me(),v=Me(),c=Me(),h=Me(),d=Me(),p=Me(),g=Me(),y=Me(),m=Me(!1),_=Me(),S=Me(!1),{form:x,formItem:b}=YO(),{inputId:w}=$O(r,{formItemContext:b}),{valueOnClear:T,isEmptyValue:M}=iO(r),{isComposing:C,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L}=KO({afterComposition:G=>O1(G)}),P=ZO(),{wrapperRef:R,isFocused:E,handleBlur:O}=XO(v,{disabled:P,afterFocus(){r.automaticDropdown&&!m.value&&(m.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(G){var Q,Se;return((Q=u.value)==null?void 0:Q.isFocusInsideContent(G))||((Se=f.value)==null?void 0:Se.isFocusInsideContent(G))},afterBlur(){var G;m.value=!1,o.menuVisibleOnFocus=!1,r.validateEvent&&((G=b?.validate)==null||G.call(b,"blur").catch(Q=>void 0))}}),k=Te(()=>xr(r.modelValue)?r.modelValue.length>0:!M(r.modelValue)),B=Te(()=>{var G;return(G=x?.statusIcon)!=null?G:!1}),V=Te(()=>r.clearable&&!P.value&&k.value&&(E.value||o.inputHovering)),H=Te(()=>r.remote&&r.filterable&&!r.remoteShowSuffix?"":r.suffixIcon),W=Te(()=>n.is("reverse",!!(H.value&&m.value))),$=Te(()=>b?.validateState||""),j=Te(()=>$.value&&oO[$.value]),ce=Te(()=>r.remote?r.debounce:0),Re=Te(()=>r.remote&&!o.inputValue&&o.options.size===0),He=Te(()=>r.loading?r.loadingText||t("el.select.loading"):r.filterable&&o.inputValue&&o.options.size>0&&le.value===0?r.noMatchText||t("el.select.noMatch"):o.options.size===0?r.noDataText||t("el.select.noData"):null),le=Te(()=>K.value.filter(G=>G.visible).length),K=Te(()=>{const G=Array.from(o.options.values()),Q=[];return o.optionValues.forEach(Se=>{const Je=G.findIndex(it=>it.value===Se);Je>-1&&Q.push(G[Je])}),Q.length>=G.length?Q:G}),ge=Te(()=>Array.from(o.cachedOptions.values())),ee=Te(()=>{const G=K.value.filter(Q=>!Q.created).some(Q=>Q.currentLabel===o.inputValue);return r.filterable&&r.allowCreate&&o.inputValue!==""&&!G}),he=()=>{r.filterable&&ao(r.filterMethod)||r.filterable&&r.remote&&ao(r.remoteMethod)||K.value.forEach(G=>{var Q;(Q=G.updateOption)==null||Q.call(G,o.inputValue)})},We=aD(),Pe=Te(()=>["small"].includes(We.value)?"small":"default"),ze=Te({get(){return m.value&&(r.loading||!Re.value)&&(!S.value||!sO(o.previousQuery))},set(G){m.value=G}}),Ue=Te(()=>{if(r.multiple&&!Mf(r.modelValue))return Fn(r.modelValue).length===0&&!o.inputValue;const G=xr(r.modelValue)?r.modelValue[0]:r.modelValue;return r.filterable||Mf(G)?!o.inputValue:!0}),ht=Te(()=>{var G;const Q=(G=r.placeholder)!=null?G:t("el.select.placeholder");return r.multiple||!k.value?Q:o.selectedLabel}),Jt=Te(()=>q1?null:"mouseenter");cr(()=>r.modelValue,(G,Q)=>{r.multiple&&r.filterable&&!r.reserveKeyword&&(o.inputValue="",Mt("")),Xr(),!no(G,Q)&&r.validateEvent&&b?.validate("change").catch(Se=>void 0)},{flush:"post",deep:!0}),cr(()=>m.value,G=>{G?Mt(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0)}),cr(()=>o.options.entries(),()=>{_h&&(Xr(),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value&&ga())},{flush:"post"}),cr([()=>o.hoveringIndex,K],([G])=>{xs(G)&&G>-1?_.value=K.value[G]||{}:_.value={},K.value.forEach(Q=>{Q.hover=_.value===Q})}),Uk(()=>{o.isBeforeHide||he()});const Mt=G=>{o.previousQuery===G||C.value||(o.previousQuery=G,r.filterable&&ao(r.filterMethod)?r.filterMethod(G):r.filterable&&r.remote&&ao(r.remoteMethod)&&r.remoteMethod(G),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value?Or(ga):Or(_k))},ga=()=>{const G=K.value.filter(it=>it.visible&&!it.disabled&&!it.states.groupDisabled),Q=G.find(it=>it.created),Se=G[0],Je=K.value.map(it=>it.value);o.hoveringIndex=G1(Je,Q||Se)},Xr=()=>{if(r.multiple)o.selectedLabel="";else{const Q=xr(r.modelValue)?r.modelValue[0]:r.modelValue,Se=mi(Q);o.selectedLabel=Se.currentLabel,o.selected=[Se];return}const G=[];Mf(r.modelValue)||Fn(r.modelValue).forEach(Q=>{G.push(mi(Q))}),o.selected=G},mi=G=>{let Q;const Se=lO(G);for(let lr=o.cachedOptions.size-1;lr>=0;lr--){const gr=ge.value[lr];if(Se?ra(gr.value,r.valueKey)===ra(G,r.valueKey):gr.value===G){Q={index:K.value.filter(Si=>!Si.created).indexOf(gr),value:G,currentLabel:gr.currentLabel,get isDisabled(){return gr.isDisabled}};break}}if(Q)return Q;const Je=Se?G.label:G??"";return{index:-1,value:G,currentLabel:Je}},_k=()=>{const G=o.selected.length;if(G>0){const Q=o.selected[G-1];o.hoveringIndex=K.value.findIndex(Se=>xf(Q)===xf(Se))}else o.hoveringIndex=-1},Sk=()=>{o.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},bk=()=>{o.collapseItemWidth=g.value.getBoundingClientRect().width},ud=()=>{var G,Q;(Q=(G=u.value)==null?void 0:G.updatePopper)==null||Q.call(G)},E1=()=>{var G,Q;(Q=(G=f.value)==null?void 0:G.updatePopper)==null||Q.call(G)},k1=()=>{o.inputValue.length>0&&!m.value&&(m.value=!0),Mt(o.inputValue)},O1=G=>{if(o.inputValue=G.target.value,r.remote)S.value=!0,N1();else return k1()},N1=uO(()=>{k1(),S.value=!1},ce),yl=G=>{no(r.modelValue,G)||e(tD,G)},xk=G=>HO(G,Q=>{const Se=o.cachedOptions.get(Q);return!Se?.disabled&&!Se?.states.groupDisabled}),B1=G=>{const Q=K1(G);if(r.multiple&&Q!==qr.delete&&G.target.value.length<=0){const Se=Fn(r.modelValue).slice(),Je=xk(Se);if(Je<0)return;const it=Se[Je];Se.splice(Je,1),e(ys,Se),yl(Se),e("remove-tag",it)}},wk=(G,Q)=>{const Se=o.selected.indexOf(Q);if(Se>-1&&!P.value){const Je=Fn(r.modelValue).slice();Je.splice(Se,1),e(ys,Je),yl(Je),e("remove-tag",Q.value)}G.stopPropagation(),bf()},z1=G=>{G.stopPropagation();const Q=r.multiple?[]:T.value;if(r.multiple)for(const Se of o.selected)Se.isDisabled&&Q.push(Se.value);e(ys,Q),yl(Q),o.hoveringIndex=-1,m.value=!1,e("clear"),bf()},V1=G=>{var Q;if(r.multiple){const Se=Fn((Q=r.modelValue)!=null?Q:[]).slice(),Je=G1(Se,G);Je>-1?Se.splice(Je,1):(r.multipleLimit<=0||Se.length<r.multipleLimit)&&Se.push(G.value),e(ys,Se),yl(Se),G.created&&Mt(""),r.filterable&&!r.reserveKeyword&&(o.inputValue="")}else!no(r.modelValue,G.value)&&e(ys,G.value),yl(G.value),m.value=!1;bf(),!m.value&&Or(()=>{ml(G)})},G1=(G,Q)=>Mf(Q)?-1:Ia(Q.value)?G.findIndex(Se=>no(ra(Se,r.valueKey),xf(Q))):G.indexOf(Q.value),ml=G=>{var Q,Se,Je,it,lr;const gr=xr(G)?G[G.length-1]:G;let _i=null;if(!fO(gr?.value)){const Si=K.value.filter(Vk=>Vk.value===gr.value);Si.length>0&&(_i=Si[0].$el)}if(u.value&&_i){const Si=(it=(Je=(Se=(Q=u.value)==null?void 0:Q.popperRef)==null?void 0:Se.contentRef)==null?void 0:Je.querySelector)==null?void 0:it.call(Je,`.${n.be("dropdown","wrap")}`);Si&&UO(Si,_i)}(lr=y.value)==null||lr.handleScroll()},Tk=G=>{o.options.set(G.value,G),o.cachedOptions.set(G.value,G)},Ck=(G,Q)=>{o.options.get(G)===Q&&o.options.delete(G)},Ak=Te(()=>{var G,Q;return(Q=(G=u.value)==null?void 0:G.popperRef)==null?void 0:Q.contentRef}),Mk=()=>{o.isBeforeHide=!1,Or(()=>{var G;(G=y.value)==null||G.update(),ml(o.selected)})},bf=()=>{var G;(G=v.value)==null||G.focus()},Dk=()=>{var G;if(m.value){m.value=!1,Or(()=>{var Q;return(Q=v.value)==null?void 0:Q.blur()});return}(G=v.value)==null||G.blur()},Lk=G=>{z1(G)},Ik=G=>{if(m.value=!1,E.value){const Q=new FocusEvent("blur",G);Or(()=>O(Q))}},F1=()=>{o.inputValue.length>0?o.inputValue="":m.value=!1},H1=G=>{var Q;P.value||r.filterable&&m.value&&G&&!((Q=h.value)!=null&&Q.contains(G.target))||(q1&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:m.value=!m.value)},W1=()=>{if(!m.value)H1();else{const G=K.value[o.hoveringIndex];G&&!G.isDisabled&&V1(G)}},xf=G=>Ia(G.value)?ra(G.value,r.valueKey):G.value,Pk=Te(()=>K.value.filter(G=>G.visible).every(G=>G.isDisabled)),Rk=Te(()=>r.multiple?r.collapseTags?o.selected.slice(0,r.maxCollapseTags):o.selected:[]),Ek=Te(()=>r.multiple?r.collapseTags?o.selected.slice(r.maxCollapseTags):[]:[]),wf=G=>{if(!m.value){m.value=!0;return}if(!(o.options.size===0||le.value===0||C.value)&&!Pk.value){G==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):G==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const Q=K.value[o.hoveringIndex];(Q.isDisabled||!Q.visible)&&wf(G),Or(()=>ml(_.value))}},U1=(G,Q,Se,Je)=>{for(let it=Q;it>=0&&it<Je;it+=Se){const lr=G[it];if(!lr?.isDisabled&&lr?.visible)return it}return null},Tf=(G,Q)=>{var Se;const Je=o.options.size;if(Je===0)return;const it=LO(G,0,Je-1),lr=K.value,gr=Q==="up"?-1:1,_i=(Se=U1(lr,it,gr,Je))!=null?Se:U1(lr,it-gr,-gr,Je);_i!=null&&(o.hoveringIndex=_i,Or(()=>ml(_.value)))},kk=G=>{const Q=K1(G);let Se=!0;switch(Q){case qr.up:wf("prev");break;case qr.down:wf("next");break;case qr.enter:case qr.numpadEnter:C.value||W1();break;case qr.esc:F1();break;case qr.backspace:Se=!1,B1(G);return;case qr.home:if(!m.value)return;Tf(0,"down");break;case qr.end:if(!m.value)return;Tf(o.options.size-1,"up");break;case qr.pageUp:if(!m.value)return;Tf(o.hoveringIndex-10,"up");break;case qr.pageDown:if(!m.value)return;Tf(o.hoveringIndex+10,"down");break;default:Se=!1;break}Se&&(G.preventDefault(),G.stopPropagation())},Ok=()=>{if(!l.value)return 0;const G=window.getComputedStyle(l.value);return Number.parseFloat(G.gap||"6px")},Nk=Te(()=>{const G=Ok(),Q=r.filterable?G+iD:0;return{maxWidth:`${g.value&&r.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-G-Q:o.selectionWidth-Q}px`}}),Bk=Te(()=>({maxWidth:`${o.selectionWidth}px`})),zk=G=>{e("popup-scroll",G)};an(l,Sk),an(R,ud),an(p,E1),an(g,bk);let Cf;return cr(()=>ze.value,G=>{G?Cf=an(d,ud).stop:(Cf?.(),Cf=void 0),e("visible-change",G)}),tf(()=>{Xr()}),{inputId:w,contentId:a,nsSelect:n,nsInput:i,states:o,isFocused:E,expanded:m,optionsArray:K,hoverOption:_,selectSize:We,filteredOptionsCount:le,updateTooltip:ud,updateTagTooltip:E1,debouncedOnInputChange:N1,onInput:O1,deletePrevTag:B1,deleteTag:wk,deleteSelected:z1,handleOptionSelect:V1,scrollToOption:ml,hasModelValue:k,shouldShowPlaceholder:Ue,currentPlaceholder:ht,mouseEnterEventName:Jt,needStatusIcon:B,showClearBtn:V,iconComponent:H,iconReverse:W,validateState:$,validateIcon:j,showNewOption:ee,updateOptions:he,collapseTagSize:Pe,setSelected:Xr,selectDisabled:P,emptyText:He,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L,handleKeydown:kk,onOptionCreate:Tk,onOptionDestroy:Ck,handleMenuEnter:Mk,focus:bf,blur:Dk,handleClearClick:Lk,handleClickOutside:Ik,handleEsc:F1,toggleMenu:H1,selectOption:W1,getValueKey:xf,navigateOptions:wf,dropdownMenuVisible:ze,showTagList:Rk,collapseTagList:Ek,popupScroll:zk,getOption:mi,tagStyle:Nk,collapseTagStyle:Bk,popperRef:Ak,inputRef:v,tooltipRef:u,tagTooltipRef:f,prefixRef:c,suffixRef:h,selectRef:s,wrapperRef:R,selectionRef:l,scrollbarRef:y,menuRef:d,tagMenuRef:p,collapseItemRef:g}};var LN=ca({name:"ElOptions",setup(r,{slots:e}){const t=sa(bh);let a=[];return()=>{var n,i;const o=(n=e.default)==null?void 0:n.call(e),s=[];function l(u){xr(u)&&u.forEach(f=>{var v,c,h,d;const p=(v=f?.type||{})==null?void 0:v.name;p==="ElOptionGroup"?l(!vO(f.children)&&!xr(f.children)&&ao((c=f.children)==null?void 0:c.default)?(h=f.children)==null?void 0:h.default():f.children):p==="ElOption"?s.push((d=f.props)==null?void 0:d.value):xr(f.children)&&l(f.children)})}return o.length&&l((i=o[0])==null?void 0:i.children),no(s,a)||(a=s,t&&(t.states.optionValues=s)),o}}});const IN=el({name:String,id:String,modelValue:{type:jr([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:gO,effect:{type:jr(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:jr([String,Object])},popperOptions:{type:jr(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:jr(Function)},filterMethod:{type:jr(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:j1.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:J1,default:pO},fitInputWidth:Boolean,suffixIcon:{type:J1,default:dO},tagType:{...Wg.type,default:"info"},tagEffect:{...Wg.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:jr(String),values:hO,default:"bottom-start"},fallbackPlacements:{type:jr(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:j1.appendTo,options:{type:jr(Array)},props:{type:jr(Object),default:()=>Ug},...cO,...XM(["ariaLabel"])});nD.scroll;const PN=ca({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(r){const e=ii("select"),t=Me(),a=Po(),n=Me([]);i0(oD,Bs({...o0(r)}));const i=Te(()=>n.value.some(u=>u.visible===!0)),o=u=>{var f;return u.type.name==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},s=u=>{const f=Fn(u),v=[];return f.forEach(c=>{var h;Wv(c)&&(o(c)?v.push(c.component.proxy):xr(c.children)&&c.children.length?v.push(...s(c.children)):(h=c.component)!=null&&h.subTree&&v.push(...s(c.component.subTree)))}),v},l=()=>{n.value=s(a.subTree)};return tf(()=>{l()}),yO(t,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:t,visible:i,ns:e}}});function RN(r,e,t,a,n,i){return Is((Ne(),nt("ul",{ref:"groupRef",class:ke(r.ns.be("group","wrap"))},[lt("li",{class:ke(r.ns.be("group","title"))},en(r.label),3),lt("li",null,[lt("ul",{class:ke(r.ns.b("group"))},[Ot(r.$slots,"default")],2)])],2)),[[mh,r.visible]])}var c0=hi(PN,[["render",RN],["__file","option-group.vue"]]);const rS="ElSelect",Tu=new WeakMap,EN=r=>(...e)=>{var t,a;const n=e[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((t=e[2])!=null&&t.includes("ElTreeSelect")))return;const i=(a=Tu.get(r))==null?void 0:a.originalWarnHandler;if(i){i(...e);return}console.warn(...e)},kN=r=>{let e=Tu.get(r);return e||(e={originalWarnHandler:r.config.warnHandler,handler:EN(r),count:0},Tu.set(r,e)),e},ON=ca({name:rS,componentName:rS,components:{ElSelectMenu:MN,ElOption:v0,ElOptions:LN,ElOptionGroup:c0,ElTag:pN,ElScrollbar:fN,ElTooltip:mO,ElIcon:Hg},directives:{ClickOutside:gN},props:IN,emits:[ys,tD,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(r,{emit:e,slots:t}){const a=Po(),n=kN(a.appContext);n.count+=1,a.appContext.config.warnHandler=n.handler;const i=Te(()=>{const{modelValue:m,multiple:_}=r,S=_?[]:void 0;return xr(m)?_?m:S:_?S:m}),o=Bs({...o0(r),modelValue:i}),s=DN(o,e),{calculatorRef:l,inputStyle:u}=mN(),{getLabel:f,getValue:v,getOptions:c,getDisabled:h}=_N(r),d=m=>({label:f(m),value:v(m),disabled:h(m)}),p=m=>m.reduce((_,S)=>(_.push(S),S.children&&S.children.length>0&&_.push(...p(S.children)),_),[]),g=m=>{jl(m||[]).forEach(S=>{var x;if(Ia(S)&&(S.type.name==="ElOption"||S.type.name==="ElTree")){const b=S.type.name;if(b==="ElTree"){const w=((x=S.props)==null?void 0:x.data)||[];p(w).forEach(M=>{M.currentLabel=M.label||(Ia(M.value)?"":M.value),s.onOptionCreate(M)})}else if(b==="ElOption"){const w={...S.props};w.currentLabel=w.label||(Ia(w.value)?"":w.value),s.onOptionCreate(w)}}})};cr(()=>{var m;return[(m=t.default)==null?void 0:m.call(t),i.value]},()=>{var m;r.persistent||s.expanded.value||(s.states.options.clear(),g((m=t.default)==null?void 0:m.call(t)))},{immediate:!0}),i0(bh,Bs({props:o,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=Te(()=>r.multiple?s.states.selected.map(m=>m.currentLabel):s.states.selectedLabel);return n0(()=>{const m=Tu.get(a.appContext);m&&(m.count-=1,m.count<=0&&(a.appContext.config.warnHandler=m.originalWarnHandler,Tu.delete(a.appContext)))}),{...s,modelValue:i,selectedLabel:y,calculatorRef:l,inputStyle:u,getLabel:f,getValue:v,getOptions:c,getDisabled:h,getOptionProps:d}}});function NN(r,e){const t=An("el-tag"),a=An("el-tooltip"),n=An("el-icon"),i=An("el-option"),o=An("el-option-group"),s=An("el-options"),l=An("el-scrollbar"),u=An("el-select-menu"),f=Yk("click-outside");return Is((Ne(),nt("div",{ref:"selectRef",class:ke([r.nsSelect.b(),r.nsSelect.m(r.selectSize)]),[$k(r.mouseEnterEventName)]:v=>r.states.inputHovering=!0,onMouseleave:v=>r.states.inputHovering=!1},[_r(a,{ref:"tooltipRef",visible:r.dropdownMenuVisible,placement:r.placement,teleported:r.teleported,"popper-class":[r.nsSelect.e("popper"),r.popperClass],"popper-style":r.popperStyle,"popper-options":r.popperOptions,"fallback-placements":r.fallbackPlacements,effect:r.effect,pure:"",trigger:"click",transition:`${r.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:r.persistent,"append-to":r.appendTo,"show-arrow":r.showArrow,offset:r.offset,onBeforeShow:r.handleMenuEnter,onHide:v=>r.states.isBeforeHide=!1},{default:Dt(()=>{var v;return[lt("div",{ref:"wrapperRef",class:ke([r.nsSelect.e("wrapper"),r.nsSelect.is("focused",r.isFocused),r.nsSelect.is("hovering",r.states.inputHovering),r.nsSelect.is("filterable",r.filterable),r.nsSelect.is("disabled",r.selectDisabled)]),onClick:Hn(r.toggleMenu,["prevent"])},[r.$slots.prefix?(Ne(),nt("div",{key:0,ref:"prefixRef",class:ke(r.nsSelect.e("prefix"))},[Ot(r.$slots,"prefix")],2)):Gt("v-if",!0),lt("div",{ref:"selectionRef",class:ke([r.nsSelect.e("selection"),r.nsSelect.is("near",r.multiple&&!r.$slots.prefix&&!!r.states.selected.length)])},[r.multiple?Ot(r.$slots,"tag",{key:0,data:r.states.selected,deleteTag:r.deleteTag,selectDisabled:r.selectDisabled},()=>[(Ne(!0),nt(gs,null,Af(r.showTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.tagStyle),onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),r.collapseTags&&r.states.selected.length>r.maxCollapseTags?(Ne(),er(a,{key:0,ref:"tagTooltipRef",disabled:r.dropdownMenuVisible||!r.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:r.effect,placement:"bottom","popper-class":r.popperClass,"popper-style":r.popperStyle,teleported:r.teleported},{default:Dt(()=>[lt("div",{ref:"collapseItemRef",class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!1,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.collapseTagStyle)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))}," + "+en(r.states.selected.length-r.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Dt(()=>[lt("div",{ref:"tagMenuRef",class:ke(r.nsSelect.e("selection"))},[(Ne(!0),nt(gs,null,Af(r.collapseTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{class:"in-tooltip",closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):Gt("v-if",!0)]):Gt("v-if",!0),lt("div",{class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("input-wrapper"),r.nsSelect.is("hidden",!r.filterable||r.selectDisabled)])},[Is(lt("input",{id:r.inputId,ref:"inputRef","onUpdate:modelValue":c=>r.states.inputValue=c,type:"text",name:r.name,class:ke([r.nsSelect.e("input"),r.nsSelect.is(r.selectSize)]),disabled:r.selectDisabled,autocomplete:r.autocomplete,style:ln(r.inputStyle),tabindex:r.tabindex,role:"combobox",readonly:!r.filterable,spellcheck:"false","aria-activedescendant":((v=r.hoverOption)==null?void 0:v.id)||"","aria-controls":r.contentId,"aria-expanded":r.dropdownMenuVisible,"aria-label":r.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:r.handleKeydown,onCompositionstart:r.handleCompositionStart,onCompositionupdate:r.handleCompositionUpdate,onCompositionend:r.handleCompositionEnd,onInput:r.onInput,onClick:Hn(r.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Xk,r.states.inputValue]]),r.filterable?(Ne(),nt("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:ke(r.nsSelect.e("input-calculator")),textContent:en(r.states.inputValue)},null,10,["textContent"])):Gt("v-if",!0)],2),r.shouldShowPlaceholder?(Ne(),nt("div",{key:1,class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("placeholder"),r.nsSelect.is("transparent",!r.hasModelValue||r.expanded&&!r.states.inputValue)])},[r.hasModelValue?Ot(r.$slots,"label",{key:0,index:r.getOption(r.modelValue).index,label:r.currentPlaceholder,value:r.modelValue},()=>[lt("span",null,en(r.currentPlaceholder),1)]):(Ne(),nt("span",{key:1},en(r.currentPlaceholder),1))],2)):Gt("v-if",!0)],2),lt("div",{ref:"suffixRef",class:ke(r.nsSelect.e("suffix"))},[r.iconComponent&&!r.showClearBtn?(Ne(),er(n,{key:0,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.iconReverse])},{default:Dt(()=>[(Ne(),er(Hv(r.iconComponent)))]),_:1},8,["class"])):Gt("v-if",!0),r.showClearBtn&&r.clearIcon?(Ne(),er(n,{key:1,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.nsSelect.e("clear")]),onClick:r.handleClearClick},{default:Dt(()=>[(Ne(),er(Hv(r.clearIcon)))]),_:1},8,["class","onClick"])):Gt("v-if",!0),r.validateState&&r.validateIcon&&r.needStatusIcon?(Ne(),er(n,{key:2,class:ke([r.nsInput.e("icon"),r.nsInput.e("validateIcon"),r.nsInput.is("loading",r.validateState==="validating")])},{default:Dt(()=>[(Ne(),er(Hv(r.validateIcon)))]),_:1},8,["class"])):Gt("v-if",!0)],2)],10,["onClick"])]}),content:Dt(()=>[_r(u,{ref:"menuRef"},{default:Dt(()=>[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.nsSelect.be("dropdown","header")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"header")],10,["onClick"])):Gt("v-if",!0),Is(_r(l,{id:r.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":r.nsSelect.be("dropdown","wrap"),"view-class":r.nsSelect.be("dropdown","list"),class:ke([r.nsSelect.is("empty",r.filteredOptionsCount===0)]),role:"listbox","aria-label":r.ariaLabel,"aria-orientation":"vertical",onScroll:r.popupScroll},{default:Dt(()=>[r.showNewOption?(Ne(),er(i,{key:0,value:r.states.inputValue,created:!0},null,8,["value"])):Gt("v-if",!0),_r(s,null,{default:Dt(()=>[Ot(r.$slots,"default",{},()=>[(Ne(!0),nt(gs,null,Af(r.options,(v,c)=>{var h;return Ne(),nt(gs,{key:c},[(h=r.getOptions(v))!=null&&h.length?(Ne(),er(o,{key:0,label:r.getLabel(v),disabled:r.getDisabled(v)},{default:Dt(()=>[(Ne(!0),nt(gs,null,Af(r.getOptions(v),d=>(Ne(),er(i,Y1({key:r.getValue(d)},r.getOptionProps(d)),null,16))),128))]),_:2},1032,["label","disabled"])):(Ne(),er(i,Zk(Y1({key:1},r.getOptionProps(v))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[mh,r.states.options.size>0&&!r.loading]]),r.$slots.loading&&r.loading?(Ne(),nt("div",{key:1,class:ke(r.nsSelect.be("dropdown","loading"))},[Ot(r.$slots,"loading")],2)):r.loading||r.filteredOptionsCount===0?(Ne(),nt("div",{key:2,class:ke(r.nsSelect.be("dropdown","empty"))},[Ot(r.$slots,"empty",{},()=>[lt("span",null,en(r.emptyText),1)])],2)):Gt("v-if",!0),r.$slots.footer?(Ne(),nt("div",{key:3,class:ke(r.nsSelect.be("dropdown","footer")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"footer")],10,["onClick"])):Gt("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[f,r.handleClickOutside,r.popperRef]])}var BN=hi(ON,[["render",NN],["__file","select.vue"]]);const kQ=u0(BN,{Option:v0,OptionGroup:c0}),OQ=KM(v0);KM(c0);function NQ(){const{t:r}=jM();return{timeOptions:[{label:r("buttons.today"),value:"today"},{label:r("buttons.week"),value:"week"},{label:r("buttons.month"),value:"month"},{label:r("buttons.custom"),value:"custom"}]}}const aS=["#249EFF","#846BCE","#21CCFF","#0E42D2","#86DF6C","#F6693D","#FF6B9D","#FFA940","#9254DE","#36CFC9","#5CDBD3","#B37FEB"];function zN(){const r="0123456789ABCDEF";let e="#";for(let t=0;t<6;t++)e+=r[Math.floor(Math.random()*16)];return e}function VN(r){return r<aS.length?aS[r]:zN()}const GN={title:{left:"center",top:"90%",textStyle:{fontSize:16,fontWeight:"normal"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},series:[{name:"",type:"pie",radius:["50%","80%"],center:["50%","45%"],avoidLabelOverlap:!1,itemStyle:{borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:[]}],graphic:{elements:[{type:"text",left:"center",top:"40%",style:{text:"",fontSize:14,fontWeight:"bold",textAlign:"center"}}]}},FN={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:[]},series:[{name:"",type:"bar",barWidth:"10",data:[],itemStyle:{color:"#4086FF",borderRadius:[5,5,5,5]}}]},nS={"#F6693D":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"#FFA07A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"rgba(246, 105, 61, 0)"}]}},"#622BDF":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"#9370DB"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"rgba(98, 43, 223, 0)"}]}},"#47C86B":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"#66FF99"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"rgba(71, 200, 107, 0)"}]}},default:{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"#67C23A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"rgba(64, 158, 255, 0)"}]}}},HN={tooltip:{trigger:"axis"},xAxis:{type:"category",data:[],axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},yAxis:{type:"value",axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},series:[{name:"",type:"line",data:[],smooth:!1,showSymbol:!1,lineStyle:{width:2},areaStyle:{opacity:.3}}]},BQ=(r,e)=>{const t=r.__vccOpts||r;for(const[a,n]of e)t[a]=n;return t};function WN(){return Sh.get("/svc/monitor/summary",{params:{_dc:Date.now()}})}function zQ(r){return Sh.get(`/svc/monitor/nodes/${r}`)}function VQ(r,e){return Sh.get(`/svc/monitor/nodes/${r}/usages`,{params:e})}async function GQ(){return Sh.get("/svc/types")}var $g=function(r,e){return $g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},$g(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$g(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var UN=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),YN=(function(){function r(){this.browser=new UN,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 r})(),De=new YN;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(De.wxa=!0,De.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?De.worker=!0:!De.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(De.node=!0,De.svgSupported=!0):$N(navigator.userAgent,De);function $N(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var h0=12,sD="sans-serif",dn=h0+"px "+sD,ZN=20,XN=100,qN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function KN(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-ZN)/XN;e[a]=n}return e}var jN=KN(qN),la={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=la.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||dn),r.measureText(t);t=t||"",a=a||dn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||h0,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=jN[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},lD=Fa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),uD=Fa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),tl=Object.prototype.toString,xh=Array.prototype,JN=xh.forEach,QN=xh.filter,d0=xh.slice,eB=xh.map,iS=(function(){}).constructor,Df=iS?iS.prototype:null,p0="__proto__",tB=2311;function fD(){return tB++}function g0(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ie(r){if(r==null||typeof r!="object")return r;var e=r,t=tl.call(r);if(t==="[object Array]"){if(!vu(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=ie(r[a])}}else if(uD[t]){if(!vu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!lD[t]&&!vu(r)&&!zs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==p0&&(e[o]=ie(r[o]))}return e}function _e(r,e,t){if(!fe(e)||!fe(r))return t?ie(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==p0){var n=r[a],i=e[a];fe(i)&&fe(n)&&!U(i)&&!U(n)&&!zs(i)&&!zs(n)&&!oS(i)&&!oS(n)&&!vu(i)&&!vu(n)?_e(n,i,t):(t||!(a in r))&&(r[a]=ie(e[a]))}return r}function y0(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=_e(t,r[a],e);return t}function F(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==p0&&(r[t]=e[t]);return r}function ue(r,e,t){for(var a=Ie(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function me(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function rB(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function bt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ue(r,e,t)}function Xt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===JN)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Y(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.map&&r.map===eB)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Fa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Fe(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.filter&&r.filter===QN)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Ro(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Ie(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function aB(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(d0.call(arguments)))}}var q=Df&&ae(Df.bind)?Df.call.bind(Df.bind):aB;function ye(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(d0.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):tl.call(r)==="[object Array]"}function ae(r){return typeof r=="function"}function X(r){return typeof r=="string"}function Zg(r){return tl.call(r)==="[object String]"}function Ee(r){return typeof r=="number"}function fe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function oS(r){return!!lD[tl.call(r)]}function pr(r){return!!uD[tl.call(r)]}function zs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function wh(r){return r.colorStops!=null}function nB(r){return r.image!=null}function iB(r){return tl.call(r)==="[object RegExp]"}function Zt(r){return r!==r}function Wt(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function re(r,e){return r??e}function Cr(r,e,t){return r??e??t}function m0(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return d0.apply(r,e)}function Th(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function qt(r,e){if(!r)throw new Error(e)}function Hr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vD="__ec_primitive__";function cc(r){r[vD]=!0}function vu(r){return r[vD]}var oB=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Ie(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),cD=typeof Map=="function";function sB(){return cD?new Map:new oB}var lB=(function(){function r(e){var t=U(e);this.data=sB();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return cD?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function te(r){return new lB(r)}function Cu(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Ch(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&F(t,e),t}function hD(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function vt(){}var Uv=180/Math.PI;function Eo(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function tr(r,e){return r[0]=e[0],r[1]=e[1],r}function un(r){return[r[0],r[1]]}function _0(r,e,t){return r[0]=e,r[1]=t,r}function sS(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Xg(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function io(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function qg(r){return Math.sqrt(uB(r))}function uB(r){return r[0]*r[0]+r[1]*r[1]}function Yv(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function rl(r,e){var t=qg(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Kg(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Wn=Kg;function fB(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var co=fB;function $v(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function ct(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Un(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Yn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Uo=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),vB=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Uo(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Uo(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Uo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Uo(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Uo(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Uo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Zr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),cB=Math.log(2);function jg(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/cB);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&n||(v+=(h%2?-1:1)*r[t][c]*jg(r,e-1,f,u,n|d,i),h++)}return i[o]=v,v}function lS(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=jg(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*jg(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var hc="___zrEVENTSAVED",vd=[];function hB(r,e,t,a,n){return Jg(vd,e,a,n,!0)&&Jg(r,t,vd[0],vd[1])}function dB(r,e){r&&t(r),e&&t(e);function t(a){var n=a[hc];n&&(n.clearMarkers&&n.clearMarkers(),delete a[hc])}}function Jg(r,e,t,a,n){if(e.getBoundingClientRect&&De.domSupported&&!dD(e)){var i=e[hc]||(e[hc]={}),o=pB(e,i),s=gB(o,i,n);if(s)return s(r,t,a),!0}return!1}function pB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){D(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function gB(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?lS(s,o):lS(o,s))}function dD(r){return r.nodeName.toUpperCase()==="CANVAS"}var yB=/([&<>"'])/g,mB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function nr(r){return r==null?"":(r+"").replace(yB,function(e,t){return mB[t]})}var _B=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cd=[],SB=De.browser.firefox&&+De.browser.version.split(".")[0]<39;function Qg(r,e,t,a){return t=t||{},a?uS(r,e,t):SB&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):uS(r,e,t),t}function uS(r,e,t){if(De.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(dD(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Jg(cd,r,a,n)){t.zrX=cd[0],t.zrY=cd[1];return}}t.zrX=t.zrY=0}function S0(r){return r||window.event}function Er(r,e,t){if(e=S0(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Qg(r,o,e,t)}else{Qg(r,e,e,t);var i=bB(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_B.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function bB(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function ey(r,e,t,a){r.addEventListener(e,t,a)}function xB(r,e,t,a){r.removeEventListener(e,t,a)}var pn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fS(r){return r.which===2||r.which===3}var wB=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Qg(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hd)if(hd.hasOwnProperty(t)){var a=hd[t](this._track,e);if(a)return a}},r})();function vS(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function TB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hd={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=vS(a)/vS(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=TB(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Bt(){return[1,0,0,1,0,0]}function Ah(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Mh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ba(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ha(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function di(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function b0(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ua(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function CB(r){var e=Bt();return Mh(e,r),e}var se=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),oo=Math.min,ws=Math.max,ty=Math.abs,cS=["x","y"],AB=["width","height"],bi=new se,xi=new se,wi=new se,Ti=new se,Sr=pD(),Jl=Sr.minTv,ry=Sr.maxTv,cu=[0,0],ve=(function(){function r(e,t,a,n){r.set(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=oo(e.x,this.x),a=oo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ws(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ws(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Bt();return Ha(i,i,[-t.x,-t.y]),b0(i,i,[a,n]),Ha(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&se.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(MB,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(DB,t.x,t.y,t.width,t.height));var s=!!a;Sr.reset(n,s);var l=Sr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(cu[0]=1/0,cu[1]=0,hS(u,f,h,d,0,s,i,o),hS(v,c,p,g,1,s,i,o),s&&se.copy(a,y?Sr.useDir?Sr.dirMinTv:Jl:ry)),y},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bi.x=wi.x=t.x,bi.y=Ti.y=t.y,xi.x=Ti.x=t.x+t.width,xi.y=wi.y=t.y+t.height,bi.transform(a),Ti.transform(a),xi.transform(a),wi.transform(a),e.x=oo(bi.x,xi.x,wi.x,Ti.x),e.y=oo(bi.y,xi.y,wi.y,Ti.y);var l=ws(bi.x,xi.x,wi.x,Ti.x),u=ws(bi.y,xi.y,wi.y,Ti.y);e.width=l-e.x,e.height=u-e.y},r})(),MB=new ve(0,0,0,0),DB=new ve(0,0,0,0);function hS(r,e,t,a,n,i,o,s){var l=ty(e-t),u=ty(a-r),f=oo(l,u),v=cS[n],c=cS[1-n],h=AB[n];e<t||a<r?l<u?(i&&(ry[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(ry[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=ws(r,t),o[h]=oo(e,a)-o[v]),i&&(f<cu[0]||Sr.useDir)&&(cu[0]=oo(f,cu[0]),(l<u||!Sr.bidirectional)&&(Jl[v]=l,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV()),(l>=u||!Sr.bidirectional)&&(Jl[v]=-u,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV())))}function pD(){var r=0,e=new se,t=new se,a={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=ws(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(i){return ty(i)<1e-10}return a}var gD="silent";function LB(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:IB}}function IB(){pn(this.event)}var PB=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Zr),_l=(function(){function r(e,t){this.x=e,this.y=t}return r})(),RB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dd=new ve(0,0,0,0),yD=(function(r){N(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new _l(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new PB,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new vB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(RB,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=mD(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new _l(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new _l(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=LB(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new _l(t,a);if(dS(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ve(t-u,a-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(dd.copy(c.getBoundingRect()),c.transform&&dd.applyTransform(c.transform),dd.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(dS(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new wB);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new _l;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Zr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){yD.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=mD(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function EB(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?gD:!0}return!1}function dS(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=EB(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==gD)){e.target=o;break}}}function mD(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var _D=32,Sl=7;function kB(r){for(var e=0;r>=_D;)e|=r&1,r>>=1;return r+e}function pS(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;OB(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function OB(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function gS(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function pd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function gd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function NB(r,e){var t=Sl,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=a[h],p=n[h],g=a[h+1],y=n[h+1];n[h]=p+y,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var m=gd(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=pd(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,b,w,T;;){b=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=gd(r[_],o,m,d,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=pd(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=Sl||w>=Sl);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var T=0,M=0,C=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],M++,T=0,--g===1){C=!0;break}while((T|M)<w);if(C)break;do{if(T=d-gd(o[_],r,h,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(M=g-pd(r[m],o,0,g,g-1,e),M!==0){for(S-=M,_-=M,g-=M,b=S+1,x=_+1,y=0;y<M;y++)r[b+y]=o[x+y];if(g<=1){C=!0;break}}if(r[S--]=r[m--],--d===0){C=!0;break}w--}while(T>=Sl||M>=Sl);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Zv(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<_D){i=pS(r,t,a,e),gS(r,t,a,t+i,e);return}var o=NB(r,e),s=kB(n);do{if(i=pS(r,t,a,e),i<s){var l=n;l>s&&(l=s),gS(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var br=1,Ql=2,ms=4,yS=!1;function yd(){yS||(yS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mS(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var BB=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mS}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Zv(a,mS)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=br),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(yd(),d.z=0),isNaN(d.z2)&&(yd(),d.z2=0),isNaN(d.zlevel)&&(yd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,a);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=me(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),dc;dc=De.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var hu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-hu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?hu.bounceIn(r*2)*.5:hu.bounceOut(r*2-1)*.5+.5}},Lf=Math.pow,Jn=Math.sqrt,pc=1e-8,SD=1e-4,_S=Jn(3),If=1/3,Ma=Eo(),zr=Eo(),Rs=Eo();function $n(r){return r>-pc&&r<pc}function bD(r){return r>pc||r<-pc}function Lt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function SS(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function gc(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if($n(f)&&$n(v))if($n(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if($n(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Jn(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-Lf(-_,If):_=Lf(_,If),S<0?S=-Lf(-S,If):S=Lf(S,If);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*Jn(f*f*f)),b=Math.acos(x)/3,w=Jn(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+_S*Math.sin(b)))/(3*o),M=(-s+w*(T-_S*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),M>=0&&M<=1&&(i[h++]=M)}}return h}function xD(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if($n(o)){if(bD(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if($n(f))n[0]=-i/(2*o);else if(f>0){var v=Jn(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function oi(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function wD(r,e,t,a,n,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;Ma[0]=l,Ma[1]=u;for(var m=0;m<1;m+=.05)zr[0]=Lt(r,t,n,o,m),zr[1]=Lt(e,a,i,s,m),g=co(Ma,zr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<SD);_++)d=v-c,p=v+c,zr[0]=Lt(r,t,n,o,d),zr[1]=Lt(e,a,i,s,d),g=co(zr,Ma),d>=0&&g<h?(v=d,h=g):(Rs[0]=Lt(r,t,n,o,p),Rs[1]=Lt(e,a,i,s,p),y=co(Rs,Ma),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Lt(r,t,n,o,v),f[1]=Lt(e,a,i,s,v)),Jn(h)}function zB(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Lt(r,t,n,o,d),g=Lt(e,a,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Nt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function ay(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function VB(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if($n(i)){if(bD(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if($n(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=Jn(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function TD(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Au(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function CD(r,e,t,a,n,i,o,s,l){var u,f=.005,v=1/0;Ma[0]=o,Ma[1]=s;for(var c=0;c<1;c+=.05){zr[0]=Nt(r,t,n,c),zr[1]=Nt(e,a,i,c);var h=co(Ma,zr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<SD);d++){var p=u-f,g=u+f;zr[0]=Nt(r,t,n,p),zr[1]=Nt(e,a,i,p);var h=co(zr,Ma);if(p>=0&&h<v)u=p,v=h;else{Rs[0]=Nt(r,t,n,g),Rs[1]=Nt(e,a,i,g);var y=co(Rs,Ma);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Nt(r,t,n,u),l[1]=Nt(e,a,i,u)),Jn(v)}function GB(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Nt(r,t,n,c),d=Nt(e,a,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var FB=/cubic-bezier\(([0-9,\.e ]+)\)/;function x0(r){var e=r&&FB.exec(r);if(e){var t=e[1].split(","),a=+Hr(t[0]),n=+Hr(t[1]),i=+Hr(t[2]),o=+Hr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:gc(0,a,i,1,l,s)&&Lt(0,n,o,1,s[0])}}}var HB=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||vt,this.ondestroy=e.ondestroy||vt,this.onrestart=e.onrestart||vt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ae(e)?e:hu[e]||x0(e)},r})(),AD=(function(){function r(e){this.value=e}return r})(),WB=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new AD(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Vs=(function(){function r(e){this._list=new WB,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new AD(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),bS={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 na(r){return r=Math.round(r),r<0?0:r>255?255:r}function UB(r){return r=Math.round(r),r<0?0:r>360?360:r}function Mu(r){return r<0?0:r>1?1:r}function md(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?na(parseFloat(e)/100*255):na(parseInt(e,10))}function Qn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Mu(parseFloat(e)/100):Mu(parseFloat(e))}function _d(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Zn(r,e,t){return r+(e-r)*t}function Rr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function ny(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MD=new Vs(20),Pf=null;function Yo(r,e){Pf&&ny(Pf,e),Pf=MD.put(r,Pf||e.slice())}function dr(r,e){if(r){e=e||[];var t=MD.get(r);if(t)return ny(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in bS)return ny(e,bS[a]),Yo(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Rr(e,0,0,0,1);return}return Rr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Yo(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Rr(e,0,0,0,1);return}return Rr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Yo(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Rr(e,+u[0],+u[1],+u[2],1):Rr(e,0,0,0,1);f=Qn(u.pop());case"rgb":if(u.length>=3)return Rr(e,md(u[0]),md(u[1]),md(u[2]),u.length===3?f:Qn(u[3])),Yo(r,e),e;Rr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Rr(e,0,0,0,1);return}return u[3]=Qn(u[3]),iy(u,e),Yo(r,e),e;case"hsl":if(u.length!==3){Rr(e,0,0,0,1);return}return iy(u,e),Yo(r,e),e;default:return}}Rr(e,0,0,0,1)}}function iy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Qn(r[1]),n=Qn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Rr(e,na(_d(o,i,t+1/3)*255),na(_d(o,i,t)*255),na(_d(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function YB(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-a)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function oy(r,e){var t=dr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return za(t,t.length===4?"rgba":"rgb")}}function Sd(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=na(Zn(o[0],s[0],l)),t[1]=na(Zn(o[1],s[1],l)),t[2]=na(Zn(o[2],s[2],l)),t[3]=Mu(Zn(o[3],s[3],l)),t}}function $B(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=dr(e[n]),s=dr(e[i]),l=a-n,u=za([na(Zn(o[0],s[0],l)),na(Zn(o[1],s[1],l)),na(Zn(o[2],s[2],l)),Mu(Zn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function ei(r,e,t,a){var n=dr(r);if(r)return n=YB(n),e!=null&&(n[0]=UB(ae(e)?e(n[0]):e)),t!=null&&(n[1]=Qn(ae(t)?t(n[1]):t)),a!=null&&(n[2]=Qn(ae(a)?a(n[2]):a)),za(iy(n),"rgba")}function yc(r,e){var t=dr(r);if(t&&e!=null)return t[3]=Mu(e),za(t,"rgba")}function za(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function mc(r,e){var t=dr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var xS=new Vs(100);function sy(r){if(X(r)){var e=xS.get(r);return e||(e=oy(r,-.1),xS.put(r,e)),e}else if(wh(r)){var t=F({},r);return t.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:oy(a.color,-.1)}}),t}return r}var _c=Math.round;function Du(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=dr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var wS=1e-4;function Xn(r){return r<wS&&r>-wS}function Rf(r){return _c(r*1e3)/1e3}function ly(r){return _c(r*1e4)/1e4}function ZB(r){return"matrix("+Rf(r[0])+","+Rf(r[1])+","+Rf(r[2])+","+Rf(r[3])+","+ly(r[4])+","+ly(r[5])+")"}var XB={left:"start",right:"end",center:"middle",middle:"middle"};function qB(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function KB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function jB(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function DD(r){return r&&!!r.image}function JB(r){return r&&!!r.svgElement}function w0(r){return DD(r)||JB(r)}function LD(r){return r.type==="linear"}function ID(r){return r.type==="radial"}function PD(r){return r&&(r.type==="linear"||r.type==="radial")}function Dh(r){return"url(#"+r+")"}function RD(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ED(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Uv,n=re(r.scaleX,1),i=re(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+_c(o*Uv)+"deg, "+_c(s*Uv)+"deg)"),l.join(" ")}var QB=(function(){return De.hasGlobalWindow&&ae(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),uy=Array.prototype.slice;function tn(r,e,t){return(e-r)*t+r}function bd(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=tn(e[i],t[i],a);return r}function ez(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=tn(e[o][s],t[o][s],a)}return r}function Ef(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function TS(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function tz(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function rz(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:uy.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function du(r){if(Xt(r)){var e=r.length;if(Xt(r[0])){for(var t=[],a=0;a<e;a++)t.push(uy.call(r[a]));return t}return uy.call(r)}return r}function Xv(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function az(r){return Xt(r&&r[0])?2:1}var kf=0,qv=1,kD=2,eu=3,fy=4,vy=5,CS=6;function AS(r){return r===fy||r===vy}function Of(r){return r===qv||r===kD}var bl=[0,0,0,0],nz=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=CS,l=t;if(Xt(t)){var u=az(t);s=u,(u===1&&!Ee(t[0])||u===2&&!Ee(t[0][0]))&&(o=!0)}else if(Ee(t)&&!Zt(t))s=kf;else if(X(t))if(!isNaN(+t))s=kf;else{var f=dr(t);f&&(l=f,s=eu)}else if(wh(t)){var v=F({},l);v.colorStops=Y(t.colorStops,function(h){return{offset:h.offset,color:dr(h.color)}}),LD(t)?s=fy:ID(t)&&(s=vy),l=v}i===0?this.valType=s:(s!==this.valType||s===CS)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return a&&(c.easing=a,c.easingFunc=ae(a)?a:hu[a]||x0(a)),n.push(c),c},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Of(n),u=AS(n),f=0;f<i;f++){var v=a[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?rz(c,h,n):u&&tz(c.colorStops,h.colorStops))}if(!s&&n!==vy&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===kf?a[f].additiveValue=a[f].value-d:n===eu?a[f].additiveValue=Ef([],a[f].value,d,-1):Of(n)&&(a[f].additiveValue=n===qv?Ef([],a[f].value,d,-1):TS([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===eu,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?bl:e[l];if((Of(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(Of(i))i===qv?bd(m,h[n],d[n],y):ez(m,h[n],d[n],y);else if(AS(i)){var _=h[n],S=d[n],x=i===fy;e[l]={type:x?"linear":"radial",x:tn(_.x,S.x,y),y:tn(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var M=S.colorStops[T];return{offset:tn(w.offset,M.offset,y),color:Xv(bd([],w.color,M.color,y))}}),global:S.global},x?(e[l].x2=tn(_.x2,S.x2,y),e[l].y2=tn(_.y2,S.y2,y)):e[l].r=tn(_.r,S.r,y)}else if(u)bd(m,h[n],d[n],y),a||(e[l]=Xv(m));else{var b=tn(h[n],d[n],y);a?this._additiveValue=b:e[l]=b}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===kf?e[a]=e[a]+n:t===eu?(dr(e[a],bl),Ef(bl,bl,n,1),e[a]=Xv(bl)):t===qv?Ef(e[a],e[a],n,1):t===kD&&TS(e[a],e[a],n,1)},r})(),T0=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){g0("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Ie(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new nz(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===eu&&u&&(u=Xv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,du(u),n),this._trackKeys.push(s)}l.addKeyframe(e,du(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new HB({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Y(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=du(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Ie(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Ts(){return new Date().getTime()}var iz=(function(r){N(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Ts()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(dc(a),!t._paused&&t.update())}dc(a)},e.prototype.start=function(){this._running||(this._time=Ts(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ts(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ts()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new T0(t,a.loop);return this.addAnimator(n),n},e})(Zr),oz=300,xd=De.domSupported,wd=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),MS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},DS=!1;function cy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function sz(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Td(r){r&&(r.zrByTouch=!0)}function lz(r,e){return Er(r.dom,new uz(r,e),!0)}function OD(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var uz=(function(){function r(e,t){this.stopPropagation=vt,this.stopImmediatePropagation=vt,this.preventDefault=vt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Qr={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var e=r.toElement||r.relatedTarget;OD(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){DS=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){DS||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),Td(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Qr.mousemove.call(this,r),Qr.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"change"),Qr.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"end"),Qr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<oz&&Qr.click.call(this,r)},pointerdown:function(r){Qr.mousedown.call(this,r)},pointermove:function(r){cy(r)||Qr.mousemove.call(this,r)},pointerup:function(r){Qr.mouseup.call(this,r)},pointerout:function(r){cy(r)||Qr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Qr[r]=function(e){e=Er(this.dom,e),this.trigger(r,e)}});var hy={pointermove:function(r){cy(r)||hy.mousemove.call(this,r)},pointerup:function(r){hy.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function fz(r,e){var t=e.domHandlers;De.pointerEventsSupported?D(wd.pointer,function(a){Kv(e,a,function(n){t[a].call(r,n)})}):(De.touchEventsSupported&&D(wd.touch,function(a){Kv(e,a,function(n){t[a].call(r,n),sz(e)})}),D(wd.mouse,function(a){Kv(e,a,function(n){n=S0(n),e.touching||t[a].call(r,n)})}))}function vz(r,e){De.pointerEventsSupported?D(MS.pointer,t):De.touchEventsSupported||D(MS.mouse,t);function t(a){function n(i){i=S0(i),OD(r,i.target)||(i=lz(r,i),e.domHandlers[a].call(r,i))}Kv(e,a,n,{capture:!0})}}function Kv(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,ey(r.domTarget,e,t,a)}function Cd(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&xB(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var LS=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),cz=(function(r){N(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new LS(t,Qr),xd&&(n._globalHandlerScope=new LS(document,hy)),fz(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Cd(this._localHandlerScope),xd&&Cd(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,xd&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?vz(this,a):Cd(a)}},e})(Zr),ND=1;De.hasGlobalWindow&&(ND=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sc=ND,dy=.4,py="#333",gy="#ccc",hz="#eee",IS=Ah,PS=5e-5;function Ci(r){return r>PS||r<-PS}var Ai=[],$o=[],Ad=Bt(),Md=Math.abs,on=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ci(this.rotation)||Ci(this.x)||Ci(this.y)||Ci(this.scaleX-1)||Ci(this.scaleY-1)||Ci(this.skewX)||Ci(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(IS(a),this.invTransform=null);return}a=a||Bt(),t?this.getLocalTransform(a):IS(a),e&&(t?Ba(a,e,a):Mh(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ai);var a=Ai[0]<0?-1:1,n=Ai[1]<0?-1:1,i=((Ai[0]-a)*t+a)/Ai[0]||0,o=((Ai[1]-n)*t+n)/Ai[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Bt(),ua(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Bt(),Ba($o,e.invTransform,t),t=$o);var a=this.originX,n=this.originY;(a||n)&&(Ad[4]=a,Ad[5]=n,Ba($o,t,Ad),$o[4]-=a,$o[5]-=n,t=$o),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ct(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ct(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Md(e[0]-1)>1e-10&&Md(e[3]-1)>1e-10?Math.sqrt(Md(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){bc(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&di(t,t,u),t[4]+=a+f,t[5]+=n+v,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Wa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bc(r,e){for(var t=0;t<Wa.length;t++){var a=Wa[t];r[a]=e[a]}}function Va(r){Nf||(Nf=new Vs(100)),r=r||dn;var e=Nf.get(r);return e||(e={font:r,strWidthCache:new Vs(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:la.measureText("国",r).width,asciiCharWidth:la.measureText("a",r).width},Nf.put(r,e)),e}var Nf;function dz(r){if(!(Dd>=RS)){r=r||dn;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=la.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?Dd=RS:n>2&&Dd++,e}}var Dd=0,RS=5;function BD(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=dz(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ga(r,e){var t=r.strWidthCache,a=t.get(e);return a==null&&(a=la.measureText(e,r.font).width,t.put(e,a)),a}function ES(r,e,t,a){var n=Ga(Va(e),r),i=rf(e),o=Gs(0,n,t),s=ho(0,i,a),l=new ve(o,s,n,i);return l}function Lh(r,e,t,a){var n=((r||"")+"").split(`
1
+ import{inject as sa,ref as Me,getCurrentInstance as Po,computed as Te,onMounted as tf,watch as cr,toRef as Gg,onUnmounted as Gk,unref as Ye,shallowRef as FM,nextTick as Or,defineComponent as ca,onBeforeUnmount as n0,createBlock as er,openBlock as Ne,Transition as HM,withCtx as Dt,withDirectives as Is,createElementVNode as lt,withModifiers as Hn,normalizeClass as ke,normalizeStyle as ln,vShow as mh,createElementBlock as nt,Fragment as gs,createVNode as _r,provide as i0,reactive as Bs,onActivated as Fk,onUpdated as Hk,createCommentVNode as Gt,resolveDynamicComponent as Hv,renderSlot as Ot,isVNode as Wv,toRaw as Wk,toDisplayString as en,toRefs as o0,watchEffect as Uk,resolveComponent as An,resolveDirective as Yk,toHandlerKey as $k,renderList as Af,mergeProps as Y1,normalizeProps as Zk,createTextVNode as $1,vModelText as Xk}from"vue";import{ap as qk,o as Fg,u as WM,t as Kk,aq as UM,x as jk,ar as YM,H as $M,a7 as ra,as as Jk,C as Qk,at as eO,L as _h,R as s0,au as ZM,av as l0,aw as tO,ai as Ps,a4 as ao,ax as rO,Z as el,_ as hi,Y as ii,N as xs,P as XM,$ as jr,ay as Z1,aj as an,W as Ia,a1 as u0,U as xr,az as aO,a8 as qM,E as Hg,aA as X1,ag as nO,X as no,aB as iO,aC as oO,aD as sO,T as Mf,aE as q1,aF as lO,aG as uO,ac as K1,ad as qr,aH as fO,M as vO,aI as cO,a9 as j1,aJ as hO,ab as dO,aK as J1,aL as pO,Q as gO,aM as yO,a5 as mO,a2 as KM,aN as Sh}from"./main-ctqCe6Vq.js";import{useI18n as jM}from"vue-i18n";var _O=/\s/;function SO(r){for(var e=r.length;e--&&_O.test(r.charAt(e)););return e}var bO=/^\s+/;function xO(r){return r&&r.slice(0,SO(r)+1).replace(bO,"")}var Q1=NaN,wO=/^[-+]0x[0-9a-f]+$/i,TO=/^0b[01]+$/i,CO=/^0o[0-7]+$/i,AO=parseInt;function fd(r){if(typeof r=="number")return r;if(qk(r))return Q1;if(Fg(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Fg(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=xO(r);var t=TO.test(r);return t||CO.test(r)?AO(r.slice(2),t?2:8):wO.test(r)?Q1:+r}function MO(r,e,t,a){r.length;for(var n=t+1;n--;)if(e(r[n],n,r))return n;return-1}function Fn(){if(!arguments.length)return[];var r=arguments[0];return WM(r)?r:[r]}function DO(r,e,t){return r===r&&(t!==void 0&&(r=r<=t?r:t),e!==void 0&&(r=r>=e?r:e)),r}function LO(r,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=fd(t),t=t===t?t:0),e!==void 0&&(e=fd(e),e=e===e?e:0),DO(fd(r),e,t)}var IO=1,PO=2;function RO(r,e,t,a){var n=t.length,i=n;if(r==null)return!i;for(r=Object(r);n--;){var o=t[n];if(o[2]?o[1]!==r[o[0]]:!(o[0]in r))return!1}for(;++n<i;){o=t[n];var s=o[0],l=r[s],u=o[1];if(o[2]){if(l===void 0&&!(s in r))return!1}else{var f=new Kk,v;if(!(v===void 0?UM(u,l,IO|PO,a,f):v))return!1}}return!0}function JM(r){return r===r&&!Fg(r)}function EO(r){for(var e=jk(r),t=e.length;t--;){var a=e[t],n=r[a];e[t]=[a,n,JM(n)]}return e}function QM(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}function kO(r){var e=EO(r);return e.length==1&&e[0][2]?QM(e[0][0],e[0][1]):function(t){return t===r||RO(t,r,e)}}var OO=1,NO=2;function BO(r,e){return YM(r)&&JM(e)?QM($M(r),e):function(t){var a=ra(t,r);return a===void 0&&a===e?Jk(t,r):UM(e,a,OO|NO)}}function zO(r){return function(e){return e?.[r]}}function VO(r){return function(e){return Qk(e,r)}}function GO(r){return YM(r)?zO($M(r)):VO(r)}function FO(r){return typeof r=="function"?r:r==null?eO:typeof r=="object"?WM(r)?BO(r[0],r[1]):kO(r):GO(r)}function HO(r,e,t){var a=r==null?0:r.length;if(!a)return-1;var n=a-1;return MO(r,FO(e),n)}class WO extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function eD(r,e){throw new WO(`[${r}] ${e}`)}function EQ(r,e){}const ys="update:modelValue",tD="change";function UO(r,e){if(!_h)return;if(!e){r.scrollTop=0;return}const t=[];let a=e.offsetParent;for(;a!==null&&r!==a&&r.contains(a);)t.push(a),a=a.offsetParent;const n=e.offsetTop+t.reduce((l,u)=>l+u.offsetTop,0),i=n+e.offsetHeight,o=r.scrollTop,s=o+r.clientHeight;n<o?r.scrollTop=n:i>s&&(r.scrollTop=i-r.clientHeight)}const YO=()=>{const r=sa(s0,void 0),e=sa(ZM,void 0);return{form:r,formItem:e}},$O=(r,{formItemContext:e,disableIdGeneration:t,disableIdManagement:a})=>{t||(t=Me(!1)),a||(a=Me(!1));const n=Po(),i=()=>{let u=n?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},o=Me();let s;const l=Te(()=>{var u;return!!(!(r.label||r.ariaLabel)&&e&&e.inputIds&&((u=e.inputIds)==null?void 0:u.length)<=1)});return tf(()=>{s=cr([Gg(r,"id"),t],([u,f])=>{const v=u??(f?void 0:l0().value);v!==o.value&&(e?.removeInputId&&!i()&&(o.value&&e.removeInputId(o.value),!a?.value&&!f&&v&&e.addInputId(v)),o.value=v)},{immediate:!0})}),Gk(()=>{s&&s(),e?.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},rD=r=>{const e=Po();return Te(()=>{var t,a;return(a=(t=e?.proxy)==null?void 0:t.$props)==null?void 0:a[r]})},aD=(r,e={})=>{const t=Me(void 0),a=e.prop?t:rD("size"),n=e.global?t:tO(),i=e.form?{size:void 0}:sa(s0,void 0),o=e.formItem?{size:void 0}:sa(ZM,void 0);return Te(()=>a.value||Ye(r)||o?.size||i?.size||n.value||"")},ZO=r=>{const e=rD("disabled"),t=sa(s0,void 0);return Te(()=>{var a,n,i;return(i=(n=(a=e.value)!=null?a:Ye(r))!=null?n:t?.disabled)!=null?i:!1})};function XO(r,{disabled:e,beforeFocus:t,afterFocus:a,beforeBlur:n,afterBlur:i}={}){const o=Po(),{emit:s}=o,l=FM(),u=Me(!1),f=h=>{const d=ao(t)?t(h):!1;Ye(e)||u.value||d||(u.value=!0,s("focus",h),a?.())},v=h=>{var d;const p=ao(n)?n(h):!1;Ye(e)||h.relatedTarget&&((d=l.value)!=null&&d.contains(h.relatedTarget))||p||(u.value=!1,s("blur",h),i?.())},c=h=>{var d,p;Ye(e)||rO(h.target)||(d=l.value)!=null&&d.contains(document.activeElement)&&l.value!==document.activeElement||(p=r.value)==null||p.focus()};return cr([l,()=>Ye(e)],([h,d])=>{h&&(d?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Ps(l,"focus",f,!0),Ps(l,"blur",v,!0),Ps(l,"click",c,!0),{isFocused:u,wrapperRef:l,handleFocus:f,handleBlur:v}}const qO=r=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(r);function KO({afterComposition:r,emit:e}){const t=Me(!1),a=s=>{e?.("compositionstart",s),t.value=!0},n=s=>{var l;e?.("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,f=u[u.length-1]||"";t.value=!qO(f)},i=s=>{e?.("compositionend",s),t.value&&(t.value=!1,Or(()=>r(s)))};return{isComposing:t,handleComposition:s=>{s.type==="compositionend"?i(s):n(s)},handleCompositionStart:a,handleCompositionUpdate:n,handleCompositionEnd:i}}const Wo=4,jO={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},JO=({move:r,size:e,bar:t})=>({[t.size]:e,transform:`translate${t.axis}(${r}%)`}),f0=Symbol("scrollbarContextKey"),QO=el({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),eN="Thumb",tN=ca({__name:"thumb",props:QO,setup(r){const e=r,t=sa(f0),a=ii("scrollbar");t||eD(eN,"can not inject scrollbar context");const n=Me(),i=Me(),o=Me({}),s=Me(!1);let l=!1,u=!1,f=0,v=0,c=_h?document.onselectstart:null;const h=Te(()=>jO[e.vertical?"vertical":"horizontal"]),d=Te(()=>JO({size:e.size,move:e.move,bar:h.value})),p=Te(()=>n.value[h.value.offset]**2/t.wrapElement[h.value.scrollSize]/e.ratio/i.value[h.value.offset]),g=T=>{var M;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(M=window.getSelection())==null||M.removeAllRanges(),m(T);const C=T.currentTarget;C&&(o.value[h.value.axis]=C[h.value.offset]-(T[h.value.client]-C.getBoundingClientRect()[h.value.direction]))},y=T=>{if(!i.value||!n.value||!t.wrapElement)return;const M=Math.abs(T.target.getBoundingClientRect()[h.value.direction]-T[h.value.client]),C=i.value[h.value.offset]/2,A=(M-C)*100*p.value/n.value[h.value.offset];t.wrapElement[h.value.scroll]=A*t.wrapElement[h.value.scrollSize]/100},m=T=>{T.stopImmediatePropagation(),l=!0,f=t.wrapElement.scrollHeight,v=t.wrapElement.scrollWidth,document.addEventListener("mousemove",_),document.addEventListener("mouseup",S),c=document.onselectstart,document.onselectstart=()=>!1},_=T=>{if(!n.value||!i.value||l===!1)return;const M=o.value[h.value.axis];if(!M)return;const C=(n.value.getBoundingClientRect()[h.value.direction]-T[h.value.client])*-1,A=i.value[h.value.offset]-M,I=(C-A)*100*p.value/n.value[h.value.offset];h.value.scroll==="scrollLeft"?t.wrapElement[h.value.scroll]=I*v/100:t.wrapElement[h.value.scroll]=I*f/100},S=()=>{l=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S),w(),u&&(s.value=!1)},x=()=>{u=!1,s.value=!!e.size},b=()=>{u=!0,s.value=l};n0(()=>{w(),document.removeEventListener("mouseup",S)});const w=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Ps(Gg(t,"scrollbarElement"),"mousemove",x),Ps(Gg(t,"scrollbarElement"),"mouseleave",b),(T,M)=>(Ne(),er(HM,{name:Ye(a).b("fade"),persisted:""},{default:Dt(()=>[Is(lt("div",{ref_key:"instance",ref:n,class:ke([Ye(a).e("bar"),Ye(a).is(Ye(h).key)]),onMousedown:y,onClick:Hn(()=>{},["stop"])},[lt("div",{ref_key:"thumb",ref:i,class:ke(Ye(a).e("thumb")),style:ln(Ye(d)),onMousedown:g},null,38)],42,["onClick"]),[[mh,T.always||s.value]])]),_:1},8,["name"]))}});var eS=hi(tN,[["__file","thumb.vue"]]);const rN=el({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),aN=ca({__name:"bar",props:rN,setup(r,{expose:e}){const t=r,a=sa(f0),n=Me(0),i=Me(0),o=Me(""),s=Me(""),l=Me(1),u=Me(1);return e({handleScroll:c=>{if(c){const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo;i.value=c.scrollTop*100/h*l.value,n.value=c.scrollLeft*100/d*u.value}},update:()=>{const c=a?.wrapElement;if(!c)return;const h=c.offsetHeight-Wo,d=c.offsetWidth-Wo,p=h**2/c.scrollHeight,g=d**2/c.scrollWidth,y=Math.max(p,t.minSize),m=Math.max(g,t.minSize);l.value=p/(h-p)/(y/(h-y)),u.value=g/(d-g)/(m/(d-m)),s.value=y+Wo<h?`${y}px`:"",o.value=m+Wo<d?`${m}px`:""}}),(c,h)=>(Ne(),nt(gs,null,[_r(eS,{move:n.value,ratio:u.value,size:o.value,always:c.always},null,8,["move","ratio","size","always"]),_r(eS,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:c.always},null,8,["move","ratio","size","always"])],64))}});var nN=hi(aN,[["__file","bar.vue"]]);const iN=el({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:jr([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...XM(["ariaLabel","ariaOrientation"])}),nD={"end-reached":r=>["left","right","top","bottom"].includes(r),scroll:({scrollTop:r,scrollLeft:e})=>[r,e].every(xs)},oN="ElScrollbar",sN=ca({name:oN}),lN=ca({...sN,props:iN,emits:nD,setup(r,{expose:e,emit:t}){const a=r,n=ii("scrollbar");let i,o,s,l=0,u=0,f="";const v={bottom:!1,top:!1,right:!1,left:!1},c=Me(),h=Me(),d=Me(),p=Me(),g=Te(()=>{const A={},I=Z1(a.height),L=Z1(a.maxHeight);return I&&(A.height=I),L&&(A.maxHeight=L),[a.wrapStyle,A]}),y=Te(()=>[a.wrapClass,n.e("wrap"),{[n.em("wrap","hidden-default")]:!a.native}]),m=Te(()=>[n.e("view"),a.viewClass]),_=A=>{var I;return(I=v[A])!=null?I:!1},S={top:"bottom",bottom:"top",left:"right",right:"left"},x=A=>{const I=S[f];if(!I)return;const L=A[f],P=A[I];L&&!v[f]&&(v[f]=!0),!P&&v[I]&&(v[I]=!1)},b=()=>{var A;if(h.value){(A=p.value)==null||A.handleScroll(h.value);const I=l,L=u;l=h.value.scrollTop,u=h.value.scrollLeft;const P={bottom:l+h.value.clientHeight>=h.value.scrollHeight-a.distance,top:l<=a.distance&&I!==0,right:u+h.value.clientWidth>=h.value.scrollWidth-a.distance&&L!==u,left:u<=a.distance&&L!==0};if(t("scroll",{scrollTop:l,scrollLeft:u}),I!==l&&(f=l>I?"bottom":"top"),L!==u&&(f=u>L?"right":"left"),a.distance>0){if(_(f))return;x(P)}P[f]&&t("end-reached",f)}};function w(A,I){Ia(A)?h.value.scrollTo(A):xs(A)&&xs(I)&&h.value.scrollTo(A,I)}const T=A=>{xs(A)&&(h.value.scrollTop=A)},M=A=>{xs(A)&&(h.value.scrollLeft=A)},C=()=>{var A;(A=p.value)==null||A.update(),v[f]=!1};return cr(()=>a.noresize,A=>{A?(i?.(),o?.(),s?.()):({stop:i}=an(d,C),{stop:o}=an(h,C),s=Ps("resize",C))},{immediate:!0}),cr(()=>[a.maxHeight,a.height],()=>{a.native||Or(()=>{var A;C(),h.value&&((A=p.value)==null||A.handleScroll(h.value))})}),i0(f0,Bs({scrollbarElement:c,wrapElement:h})),Fk(()=>{h.value&&(h.value.scrollTop=l,h.value.scrollLeft=u)}),tf(()=>{a.native||Or(()=>{C()})}),Hk(()=>C()),e({wrapRef:h,update:C,scrollTo:w,setScrollTop:T,setScrollLeft:M,handleScroll:b}),(A,I)=>(Ne(),nt("div",{ref_key:"scrollbarRef",ref:c,class:ke(Ye(n).b())},[lt("div",{ref_key:"wrapRef",ref:h,class:ke(Ye(y)),style:ln(Ye(g)),tabindex:A.tabindex,onScroll:b},[(Ne(),er(Hv(A.tag),{id:A.id,ref_key:"resizeRef",ref:d,class:ke(Ye(m)),style:ln(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:Dt(()=>[Ot(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),A.native?Gt("v-if",!0):(Ne(),er(nN,{key:0,ref_key:"barRef",ref:p,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var uN=hi(lN,[["__file","scrollbar.vue"]]);const fN=u0(uN),jl=r=>{const e=xr(r)?r:[r],t=[];return e.forEach(a=>{var n;xr(a)?t.push(...jl(a)):Wv(a)&&((n=a.component)!=null&&n.subTree)?t.push(a,...jl(a.component.subTree)):Wv(a)&&xr(a.children)?t.push(...jl(a.children)):Wv(a)&&a.shapeFlag===2?t.push(...jl(a.type())):t.push(a)}),t},Wg=el({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:aO},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),vN={close:r=>r instanceof MouseEvent,click:r=>r instanceof MouseEvent},cN=ca({name:"ElTag"}),hN=ca({...cN,props:Wg,emits:vN,setup(r,{emit:e}){const t=r,a=aD(),{t:n}=qM(),i=ii("tag"),o=Te(()=>{const{type:f,hit:v,effect:c,closable:h,round:d}=t;return[i.b(),i.is("closable",h),i.m(f||"primary"),i.m(a.value),i.m(c),i.is("hit",v),i.is("round",d)]}),s=f=>{e("close",f)},l=f=>{e("click",f)},u=f=>{var v,c,h;(h=(c=(v=f?.component)==null?void 0:v.subTree)==null?void 0:c.component)!=null&&h.bum&&(f.component.subTree.component.bum=null)};return(f,v)=>f.disableTransitions?(Ne(),nt("span",{key:0,class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)):(Ne(),er(HM,{key:1,name:`${Ye(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:Dt(()=>[lt("span",{class:ke(Ye(o)),style:ln({backgroundColor:f.color}),onClick:l},[lt("span",{class:ke(Ye(i).e("content"))},[Ot(f.$slots,"default")],2),f.closable?(Ne(),nt("button",{key:0,"aria-label":Ye(n)("el.tag.close"),class:ke(Ye(i).e("close")),type:"button",onClick:Hn(s,["stop"])},[_r(Ye(Hg),null,{default:Dt(()=>[_r(Ye(X1))]),_:1})],10,["aria-label","onClick"])):Gt("v-if",!0)],6)]),_:3},8,["name"]))}});var dN=hi(hN,[["__file","tag.vue"]]);const pN=u0(dN),Nn=new Map;if(_h){let r;document.addEventListener("mousedown",e=>r=e),document.addEventListener("mouseup",e=>{if(r){for(const t of Nn.values())for(const{documentHandler:a}of t)a(e,r);r=void 0}})}function tS(r,e){let t=[];return xr(e.arg)?t=e.arg:nO(e.arg)&&t.push(e.arg),function(a,n){const i=e.instance.popperRef,o=a.target,s=n?.target,l=!e||!e.instance,u=!o||!s,f=r.contains(o)||r.contains(s),v=r===o,c=t.length&&t.some(d=>d?.contains(o))||t.length&&t.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||f||v||c||h||e.value(a,n)}}const gN={beforeMount(r,e){Nn.has(r)||Nn.set(r,[]),Nn.get(r).push({documentHandler:tS(r,e),bindingFn:e.value})},updated(r,e){Nn.has(r)||Nn.set(r,[]);const t=Nn.get(r),a=t.findIndex(i=>i.bindingFn===e.oldValue),n={documentHandler:tS(r,e),bindingFn:e.value};a>=0?t.splice(a,1,n):t.push(n)},unmounted(r){Nn.delete(r)}},iD=11,yN=2;function mN(){const r=FM(),e=Me(0),t=Te(()=>({minWidth:`${Math.max(e.value,iD)}px`}));return an(r,()=>{var n,i;e.value=(i=(n=r.value)==null?void 0:n.getBoundingClientRect().width)!=null?i:0}),{calculatorRef:r,calculatorWidth:e,inputStyle:t}}const Ug={label:"label",value:"value",disabled:"disabled",options:"options"};function _N(r){const e=Me({...Ug,...r.props});let t={...r.props};return cr(()=>r.props,s=>{no(s,t)||(e.value={...Ug,...s},t={...s})},{deep:!0}),{aliasProps:e,getLabel:s=>ra(s,e.value.label),getValue:s=>ra(s,e.value.value),getDisabled:s=>ra(s,e.value.disabled),getOptions:s=>ra(s,e.value.options)}}const oD=Symbol("ElSelectGroup"),bh=Symbol("ElSelect"),Yg="ElOption",SN=el({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),bN=(r="")=>r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function xN(r,e){const t=sa(bh);t||eD(Yg,"usage: <el-select><el-option /></el-select/>");const a=sa(oD,{disabled:!1}),n=Te(()=>f(Fn(t.props.modelValue),r.value)),i=Te(()=>{var h;if(t.props.multiple){const d=Fn((h=t.props.modelValue)!=null?h:[]);return!n.value&&d.length>=t.props.multipleLimit&&t.props.multipleLimit>0}else return!1}),o=Te(()=>{var h;return(h=r.label)!=null?h:Ia(r.value)?"":r.value}),s=Te(()=>r.value||r.label||""),l=Te(()=>r.disabled||e.groupDisabled||i.value),u=Po(),f=(h=[],d)=>{if(Ia(r.value)){const p=t.props.valueKey;return h&&h.some(g=>Wk(ra(g,p))===ra(d,p))}else return h&&h.includes(d)},v=()=>{l.value||(t.states.hoveringIndex=t.optionsArray.indexOf(u.proxy))},c=h=>{const d=new RegExp(bN(h),"i");e.visible=d.test(String(o.value))||r.created};return cr(()=>o.value,()=>{!r.created&&!t.props.remote&&t.setSelected()}),cr(()=>r.value,(h,d)=>{const{remote:p,valueKey:g}=t.props;if((p?h!==d:!no(h,d))&&(t.onOptionDestroy(d,u.proxy),t.onOptionCreate(u.proxy)),!r.created&&!p){if(g&&Ia(h)&&Ia(d)&&h[g]===d[g])return;t.setSelected()}}),cr(()=>a.disabled,()=>{e.groupDisabled=a.disabled},{immediate:!0}),{select:t,currentLabel:o,currentValue:s,itemSelected:n,isDisabled:l,hoverItem:v,updateOption:c}}const wN=ca({name:Yg,componentName:Yg,props:SN,setup(r){const e=ii("select"),t=l0(),a=Te(()=>[e.be("dropdown","item"),e.is("disabled",Ye(s)),e.is("selected",Ye(o)),e.is("hovering",Ye(c))]),n=Bs({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,updateOption:f}=xN(r,n),{visible:v,hover:c}=o0(n),h=Po().proxy;l.onOptionCreate(h),n0(()=>{const p=h.value;Or(()=>{const{selected:g}=l.states,y=g.some(m=>m.value===h.value);l.states.cachedOptions.get(p)===h&&!y&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,h)});function d(){s.value||l.handleOptionSelect(h)}return{ns:e,id:t,containerKls:a,currentLabel:i,itemSelected:o,isDisabled:s,select:l,visible:v,hover:c,states:n,hoverItem:u,updateOption:f,selectOptionClick:d}}});function TN(r,e){return Is((Ne(),nt("li",{id:r.id,class:ke(r.containerKls),role:"option","aria-disabled":r.isDisabled||void 0,"aria-selected":r.itemSelected,onMousemove:r.hoverItem,onClick:Hn(r.selectOptionClick,["stop"])},[Ot(r.$slots,"default",{},()=>[lt("span",null,en(r.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[mh,r.visible]])}var v0=hi(wN,[["render",TN],["__file","option.vue"]]);const CN=ca({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const r=sa(bh),e=ii("select"),t=Te(()=>r.props.popperClass),a=Te(()=>r.props.multiple),n=Te(()=>r.props.fitInputWidth),i=Me("");function o(){var s;const l=(s=r.selectRef)==null?void 0:s.offsetWidth;l?i.value=`${l-yN}px`:i.value=""}return tf(()=>{o(),an(r.selectRef,o)}),{ns:e,minWidth:i,popperClass:t,isMultiple:a,isFitInputWidth:n}}});function AN(r,e,t,a,n,i){return Ne(),nt("div",{class:ke([r.ns.b("dropdown"),r.ns.is("multiple",r.isMultiple),r.popperClass]),style:ln({[r.isFitInputWidth?"width":"minWidth"]:r.minWidth})},[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.ns.be("dropdown","header"))},[Ot(r.$slots,"header")],2)):Gt("v-if",!0),Ot(r.$slots,"default"),r.$slots.footer?(Ne(),nt("div",{key:1,class:ke(r.ns.be("dropdown","footer"))},[Ot(r.$slots,"footer")],2)):Gt("v-if",!0)],6)}var MN=hi(CN,[["render",AN],["__file","select-dropdown.vue"]]);const DN=(r,e)=>{const{t}=qM(),a=l0(),n=ii("select"),i=ii("input"),o=Bs({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=Me(),l=Me(),u=Me(),f=Me(),v=Me(),c=Me(),h=Me(),d=Me(),p=Me(),g=Me(),y=Me(),m=Me(!1),_=Me(),S=Me(!1),{form:x,formItem:b}=YO(),{inputId:w}=$O(r,{formItemContext:b}),{valueOnClear:T,isEmptyValue:M}=iO(r),{isComposing:C,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L}=KO({afterComposition:G=>O1(G)}),P=ZO(),{wrapperRef:R,isFocused:E,handleBlur:O}=XO(v,{disabled:P,afterFocus(){r.automaticDropdown&&!m.value&&(m.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(G){var Q,Se;return((Q=u.value)==null?void 0:Q.isFocusInsideContent(G))||((Se=f.value)==null?void 0:Se.isFocusInsideContent(G))},afterBlur(){var G;m.value=!1,o.menuVisibleOnFocus=!1,r.validateEvent&&((G=b?.validate)==null||G.call(b,"blur").catch(Q=>void 0))}}),k=Te(()=>xr(r.modelValue)?r.modelValue.length>0:!M(r.modelValue)),B=Te(()=>{var G;return(G=x?.statusIcon)!=null?G:!1}),V=Te(()=>r.clearable&&!P.value&&k.value&&(E.value||o.inputHovering)),H=Te(()=>r.remote&&r.filterable&&!r.remoteShowSuffix?"":r.suffixIcon),W=Te(()=>n.is("reverse",!!(H.value&&m.value))),$=Te(()=>b?.validateState||""),j=Te(()=>$.value&&oO[$.value]),ce=Te(()=>r.remote?r.debounce:0),Re=Te(()=>r.remote&&!o.inputValue&&o.options.size===0),He=Te(()=>r.loading?r.loadingText||t("el.select.loading"):r.filterable&&o.inputValue&&o.options.size>0&&le.value===0?r.noMatchText||t("el.select.noMatch"):o.options.size===0?r.noDataText||t("el.select.noData"):null),le=Te(()=>K.value.filter(G=>G.visible).length),K=Te(()=>{const G=Array.from(o.options.values()),Q=[];return o.optionValues.forEach(Se=>{const Je=G.findIndex(it=>it.value===Se);Je>-1&&Q.push(G[Je])}),Q.length>=G.length?Q:G}),ge=Te(()=>Array.from(o.cachedOptions.values())),ee=Te(()=>{const G=K.value.filter(Q=>!Q.created).some(Q=>Q.currentLabel===o.inputValue);return r.filterable&&r.allowCreate&&o.inputValue!==""&&!G}),he=()=>{r.filterable&&ao(r.filterMethod)||r.filterable&&r.remote&&ao(r.remoteMethod)||K.value.forEach(G=>{var Q;(Q=G.updateOption)==null||Q.call(G,o.inputValue)})},We=aD(),Pe=Te(()=>["small"].includes(We.value)?"small":"default"),ze=Te({get(){return m.value&&(r.loading||!Re.value)&&(!S.value||!sO(o.previousQuery))},set(G){m.value=G}}),Ue=Te(()=>{if(r.multiple&&!Mf(r.modelValue))return Fn(r.modelValue).length===0&&!o.inputValue;const G=xr(r.modelValue)?r.modelValue[0]:r.modelValue;return r.filterable||Mf(G)?!o.inputValue:!0}),ht=Te(()=>{var G;const Q=(G=r.placeholder)!=null?G:t("el.select.placeholder");return r.multiple||!k.value?Q:o.selectedLabel}),Jt=Te(()=>q1?null:"mouseenter");cr(()=>r.modelValue,(G,Q)=>{r.multiple&&r.filterable&&!r.reserveKeyword&&(o.inputValue="",Mt("")),Xr(),!no(G,Q)&&r.validateEvent&&b?.validate("change").catch(Se=>void 0)},{flush:"post",deep:!0}),cr(()=>m.value,G=>{G?Mt(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0)}),cr(()=>o.options.entries(),()=>{_h&&(Xr(),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value&&ga())},{flush:"post"}),cr([()=>o.hoveringIndex,K],([G])=>{xs(G)&&G>-1?_.value=K.value[G]||{}:_.value={},K.value.forEach(Q=>{Q.hover=_.value===Q})}),Uk(()=>{o.isBeforeHide||he()});const Mt=G=>{o.previousQuery===G||C.value||(o.previousQuery=G,r.filterable&&ao(r.filterMethod)?r.filterMethod(G):r.filterable&&r.remote&&ao(r.remoteMethod)&&r.remoteMethod(G),r.defaultFirstOption&&(r.filterable||r.remote)&&le.value?Or(ga):Or(_k))},ga=()=>{const G=K.value.filter(it=>it.visible&&!it.disabled&&!it.states.groupDisabled),Q=G.find(it=>it.created),Se=G[0],Je=K.value.map(it=>it.value);o.hoveringIndex=G1(Je,Q||Se)},Xr=()=>{if(r.multiple)o.selectedLabel="";else{const Q=xr(r.modelValue)?r.modelValue[0]:r.modelValue,Se=mi(Q);o.selectedLabel=Se.currentLabel,o.selected=[Se];return}const G=[];Mf(r.modelValue)||Fn(r.modelValue).forEach(Q=>{G.push(mi(Q))}),o.selected=G},mi=G=>{let Q;const Se=lO(G);for(let lr=o.cachedOptions.size-1;lr>=0;lr--){const gr=ge.value[lr];if(Se?ra(gr.value,r.valueKey)===ra(G,r.valueKey):gr.value===G){Q={index:K.value.filter(Si=>!Si.created).indexOf(gr),value:G,currentLabel:gr.currentLabel,get isDisabled(){return gr.isDisabled}};break}}if(Q)return Q;const Je=Se?G.label:G??"";return{index:-1,value:G,currentLabel:Je}},_k=()=>{const G=o.selected.length;if(G>0){const Q=o.selected[G-1];o.hoveringIndex=K.value.findIndex(Se=>xf(Q)===xf(Se))}else o.hoveringIndex=-1},Sk=()=>{o.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},bk=()=>{o.collapseItemWidth=g.value.getBoundingClientRect().width},ud=()=>{var G,Q;(Q=(G=u.value)==null?void 0:G.updatePopper)==null||Q.call(G)},E1=()=>{var G,Q;(Q=(G=f.value)==null?void 0:G.updatePopper)==null||Q.call(G)},k1=()=>{o.inputValue.length>0&&!m.value&&(m.value=!0),Mt(o.inputValue)},O1=G=>{if(o.inputValue=G.target.value,r.remote)S.value=!0,N1();else return k1()},N1=uO(()=>{k1(),S.value=!1},ce),yl=G=>{no(r.modelValue,G)||e(tD,G)},xk=G=>HO(G,Q=>{const Se=o.cachedOptions.get(Q);return!Se?.disabled&&!Se?.states.groupDisabled}),B1=G=>{const Q=K1(G);if(r.multiple&&Q!==qr.delete&&G.target.value.length<=0){const Se=Fn(r.modelValue).slice(),Je=xk(Se);if(Je<0)return;const it=Se[Je];Se.splice(Je,1),e(ys,Se),yl(Se),e("remove-tag",it)}},wk=(G,Q)=>{const Se=o.selected.indexOf(Q);if(Se>-1&&!P.value){const Je=Fn(r.modelValue).slice();Je.splice(Se,1),e(ys,Je),yl(Je),e("remove-tag",Q.value)}G.stopPropagation(),bf()},z1=G=>{G.stopPropagation();const Q=r.multiple?[]:T.value;if(r.multiple)for(const Se of o.selected)Se.isDisabled&&Q.push(Se.value);e(ys,Q),yl(Q),o.hoveringIndex=-1,m.value=!1,e("clear"),bf()},V1=G=>{var Q;if(r.multiple){const Se=Fn((Q=r.modelValue)!=null?Q:[]).slice(),Je=G1(Se,G);Je>-1?Se.splice(Je,1):(r.multipleLimit<=0||Se.length<r.multipleLimit)&&Se.push(G.value),e(ys,Se),yl(Se),G.created&&Mt(""),r.filterable&&!r.reserveKeyword&&(o.inputValue="")}else!no(r.modelValue,G.value)&&e(ys,G.value),yl(G.value),m.value=!1;bf(),!m.value&&Or(()=>{ml(G)})},G1=(G,Q)=>Mf(Q)?-1:Ia(Q.value)?G.findIndex(Se=>no(ra(Se,r.valueKey),xf(Q))):G.indexOf(Q.value),ml=G=>{var Q,Se,Je,it,lr;const gr=xr(G)?G[G.length-1]:G;let _i=null;if(!fO(gr?.value)){const Si=K.value.filter(Vk=>Vk.value===gr.value);Si.length>0&&(_i=Si[0].$el)}if(u.value&&_i){const Si=(it=(Je=(Se=(Q=u.value)==null?void 0:Q.popperRef)==null?void 0:Se.contentRef)==null?void 0:Je.querySelector)==null?void 0:it.call(Je,`.${n.be("dropdown","wrap")}`);Si&&UO(Si,_i)}(lr=y.value)==null||lr.handleScroll()},Tk=G=>{o.options.set(G.value,G),o.cachedOptions.set(G.value,G)},Ck=(G,Q)=>{o.options.get(G)===Q&&o.options.delete(G)},Ak=Te(()=>{var G,Q;return(Q=(G=u.value)==null?void 0:G.popperRef)==null?void 0:Q.contentRef}),Mk=()=>{o.isBeforeHide=!1,Or(()=>{var G;(G=y.value)==null||G.update(),ml(o.selected)})},bf=()=>{var G;(G=v.value)==null||G.focus()},Dk=()=>{var G;if(m.value){m.value=!1,Or(()=>{var Q;return(Q=v.value)==null?void 0:Q.blur()});return}(G=v.value)==null||G.blur()},Lk=G=>{z1(G)},Ik=G=>{if(m.value=!1,E.value){const Q=new FocusEvent("blur",G);Or(()=>O(Q))}},F1=()=>{o.inputValue.length>0?o.inputValue="":m.value=!1},H1=G=>{var Q;P.value||r.filterable&&m.value&&G&&!((Q=h.value)!=null&&Q.contains(G.target))||(q1&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:m.value=!m.value)},W1=()=>{if(!m.value)H1();else{const G=K.value[o.hoveringIndex];G&&!G.isDisabled&&V1(G)}},xf=G=>Ia(G.value)?ra(G.value,r.valueKey):G.value,Pk=Te(()=>K.value.filter(G=>G.visible).every(G=>G.isDisabled)),Rk=Te(()=>r.multiple?r.collapseTags?o.selected.slice(0,r.maxCollapseTags):o.selected:[]),Ek=Te(()=>r.multiple?r.collapseTags?o.selected.slice(r.maxCollapseTags):[]:[]),wf=G=>{if(!m.value){m.value=!0;return}if(!(o.options.size===0||le.value===0||C.value)&&!Pk.value){G==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):G==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const Q=K.value[o.hoveringIndex];(Q.isDisabled||!Q.visible)&&wf(G),Or(()=>ml(_.value))}},U1=(G,Q,Se,Je)=>{for(let it=Q;it>=0&&it<Je;it+=Se){const lr=G[it];if(!lr?.isDisabled&&lr?.visible)return it}return null},Tf=(G,Q)=>{var Se;const Je=o.options.size;if(Je===0)return;const it=LO(G,0,Je-1),lr=K.value,gr=Q==="up"?-1:1,_i=(Se=U1(lr,it,gr,Je))!=null?Se:U1(lr,it-gr,-gr,Je);_i!=null&&(o.hoveringIndex=_i,Or(()=>ml(_.value)))},kk=G=>{const Q=K1(G);let Se=!0;switch(Q){case qr.up:wf("prev");break;case qr.down:wf("next");break;case qr.enter:case qr.numpadEnter:C.value||W1();break;case qr.esc:F1();break;case qr.backspace:Se=!1,B1(G);return;case qr.home:if(!m.value)return;Tf(0,"down");break;case qr.end:if(!m.value)return;Tf(o.options.size-1,"up");break;case qr.pageUp:if(!m.value)return;Tf(o.hoveringIndex-10,"up");break;case qr.pageDown:if(!m.value)return;Tf(o.hoveringIndex+10,"down");break;default:Se=!1;break}Se&&(G.preventDefault(),G.stopPropagation())},Ok=()=>{if(!l.value)return 0;const G=window.getComputedStyle(l.value);return Number.parseFloat(G.gap||"6px")},Nk=Te(()=>{const G=Ok(),Q=r.filterable?G+iD:0;return{maxWidth:`${g.value&&r.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-G-Q:o.selectionWidth-Q}px`}}),Bk=Te(()=>({maxWidth:`${o.selectionWidth}px`})),zk=G=>{e("popup-scroll",G)};an(l,Sk),an(R,ud),an(p,E1),an(g,bk);let Cf;return cr(()=>ze.value,G=>{G?Cf=an(d,ud).stop:(Cf?.(),Cf=void 0),e("visible-change",G)}),tf(()=>{Xr()}),{inputId:w,contentId:a,nsSelect:n,nsInput:i,states:o,isFocused:E,expanded:m,optionsArray:K,hoverOption:_,selectSize:We,filteredOptionsCount:le,updateTooltip:ud,updateTagTooltip:E1,debouncedOnInputChange:N1,onInput:O1,deletePrevTag:B1,deleteTag:wk,deleteSelected:z1,handleOptionSelect:V1,scrollToOption:ml,hasModelValue:k,shouldShowPlaceholder:Ue,currentPlaceholder:ht,mouseEnterEventName:Jt,needStatusIcon:B,showClearBtn:V,iconComponent:H,iconReverse:W,validateState:$,validateIcon:j,showNewOption:ee,updateOptions:he,collapseTagSize:Pe,setSelected:Xr,selectDisabled:P,emptyText:He,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:L,handleKeydown:kk,onOptionCreate:Tk,onOptionDestroy:Ck,handleMenuEnter:Mk,focus:bf,blur:Dk,handleClearClick:Lk,handleClickOutside:Ik,handleEsc:F1,toggleMenu:H1,selectOption:W1,getValueKey:xf,navigateOptions:wf,dropdownMenuVisible:ze,showTagList:Rk,collapseTagList:Ek,popupScroll:zk,getOption:mi,tagStyle:Nk,collapseTagStyle:Bk,popperRef:Ak,inputRef:v,tooltipRef:u,tagTooltipRef:f,prefixRef:c,suffixRef:h,selectRef:s,wrapperRef:R,selectionRef:l,scrollbarRef:y,menuRef:d,tagMenuRef:p,collapseItemRef:g}};var LN=ca({name:"ElOptions",setup(r,{slots:e}){const t=sa(bh);let a=[];return()=>{var n,i;const o=(n=e.default)==null?void 0:n.call(e),s=[];function l(u){xr(u)&&u.forEach(f=>{var v,c,h,d;const p=(v=f?.type||{})==null?void 0:v.name;p==="ElOptionGroup"?l(!vO(f.children)&&!xr(f.children)&&ao((c=f.children)==null?void 0:c.default)?(h=f.children)==null?void 0:h.default():f.children):p==="ElOption"?s.push((d=f.props)==null?void 0:d.value):xr(f.children)&&l(f.children)})}return o.length&&l((i=o[0])==null?void 0:i.children),no(s,a)||(a=s,t&&(t.states.optionValues=s)),o}}});const IN=el({name:String,id:String,modelValue:{type:jr([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:gO,effect:{type:jr(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:jr([String,Object])},popperOptions:{type:jr(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:jr(Function)},filterMethod:{type:jr(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:j1.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:J1,default:pO},fitInputWidth:Boolean,suffixIcon:{type:J1,default:dO},tagType:{...Wg.type,default:"info"},tagEffect:{...Wg.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:jr(String),values:hO,default:"bottom-start"},fallbackPlacements:{type:jr(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:j1.appendTo,options:{type:jr(Array)},props:{type:jr(Object),default:()=>Ug},...cO,...XM(["ariaLabel"])});nD.scroll;const PN=ca({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(r){const e=ii("select"),t=Me(),a=Po(),n=Me([]);i0(oD,Bs({...o0(r)}));const i=Te(()=>n.value.some(u=>u.visible===!0)),o=u=>{var f;return u.type.name==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},s=u=>{const f=Fn(u),v=[];return f.forEach(c=>{var h;Wv(c)&&(o(c)?v.push(c.component.proxy):xr(c.children)&&c.children.length?v.push(...s(c.children)):(h=c.component)!=null&&h.subTree&&v.push(...s(c.component.subTree)))}),v},l=()=>{n.value=s(a.subTree)};return tf(()=>{l()}),yO(t,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:t,visible:i,ns:e}}});function RN(r,e,t,a,n,i){return Is((Ne(),nt("ul",{ref:"groupRef",class:ke(r.ns.be("group","wrap"))},[lt("li",{class:ke(r.ns.be("group","title"))},en(r.label),3),lt("li",null,[lt("ul",{class:ke(r.ns.b("group"))},[Ot(r.$slots,"default")],2)])],2)),[[mh,r.visible]])}var c0=hi(PN,[["render",RN],["__file","option-group.vue"]]);const rS="ElSelect",Tu=new WeakMap,EN=r=>(...e)=>{var t,a;const n=e[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((t=e[2])!=null&&t.includes("ElTreeSelect")))return;const i=(a=Tu.get(r))==null?void 0:a.originalWarnHandler;if(i){i(...e);return}console.warn(...e)},kN=r=>{let e=Tu.get(r);return e||(e={originalWarnHandler:r.config.warnHandler,handler:EN(r),count:0},Tu.set(r,e)),e},ON=ca({name:rS,componentName:rS,components:{ElSelectMenu:MN,ElOption:v0,ElOptions:LN,ElOptionGroup:c0,ElTag:pN,ElScrollbar:fN,ElTooltip:mO,ElIcon:Hg},directives:{ClickOutside:gN},props:IN,emits:[ys,tD,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(r,{emit:e,slots:t}){const a=Po(),n=kN(a.appContext);n.count+=1,a.appContext.config.warnHandler=n.handler;const i=Te(()=>{const{modelValue:m,multiple:_}=r,S=_?[]:void 0;return xr(m)?_?m:S:_?S:m}),o=Bs({...o0(r),modelValue:i}),s=DN(o,e),{calculatorRef:l,inputStyle:u}=mN(),{getLabel:f,getValue:v,getOptions:c,getDisabled:h}=_N(r),d=m=>({label:f(m),value:v(m),disabled:h(m)}),p=m=>m.reduce((_,S)=>(_.push(S),S.children&&S.children.length>0&&_.push(...p(S.children)),_),[]),g=m=>{jl(m||[]).forEach(S=>{var x;if(Ia(S)&&(S.type.name==="ElOption"||S.type.name==="ElTree")){const b=S.type.name;if(b==="ElTree"){const w=((x=S.props)==null?void 0:x.data)||[];p(w).forEach(M=>{M.currentLabel=M.label||(Ia(M.value)?"":M.value),s.onOptionCreate(M)})}else if(b==="ElOption"){const w={...S.props};w.currentLabel=w.label||(Ia(w.value)?"":w.value),s.onOptionCreate(w)}}})};cr(()=>{var m;return[(m=t.default)==null?void 0:m.call(t),i.value]},()=>{var m;r.persistent||s.expanded.value||(s.states.options.clear(),g((m=t.default)==null?void 0:m.call(t)))},{immediate:!0}),i0(bh,Bs({props:o,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=Te(()=>r.multiple?s.states.selected.map(m=>m.currentLabel):s.states.selectedLabel);return n0(()=>{const m=Tu.get(a.appContext);m&&(m.count-=1,m.count<=0&&(a.appContext.config.warnHandler=m.originalWarnHandler,Tu.delete(a.appContext)))}),{...s,modelValue:i,selectedLabel:y,calculatorRef:l,inputStyle:u,getLabel:f,getValue:v,getOptions:c,getDisabled:h,getOptionProps:d}}});function NN(r,e){const t=An("el-tag"),a=An("el-tooltip"),n=An("el-icon"),i=An("el-option"),o=An("el-option-group"),s=An("el-options"),l=An("el-scrollbar"),u=An("el-select-menu"),f=Yk("click-outside");return Is((Ne(),nt("div",{ref:"selectRef",class:ke([r.nsSelect.b(),r.nsSelect.m(r.selectSize)]),[$k(r.mouseEnterEventName)]:v=>r.states.inputHovering=!0,onMouseleave:v=>r.states.inputHovering=!1},[_r(a,{ref:"tooltipRef",visible:r.dropdownMenuVisible,placement:r.placement,teleported:r.teleported,"popper-class":[r.nsSelect.e("popper"),r.popperClass],"popper-style":r.popperStyle,"popper-options":r.popperOptions,"fallback-placements":r.fallbackPlacements,effect:r.effect,pure:"",trigger:"click",transition:`${r.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:r.persistent,"append-to":r.appendTo,"show-arrow":r.showArrow,offset:r.offset,onBeforeShow:r.handleMenuEnter,onHide:v=>r.states.isBeforeHide=!1},{default:Dt(()=>{var v;return[lt("div",{ref:"wrapperRef",class:ke([r.nsSelect.e("wrapper"),r.nsSelect.is("focused",r.isFocused),r.nsSelect.is("hovering",r.states.inputHovering),r.nsSelect.is("filterable",r.filterable),r.nsSelect.is("disabled",r.selectDisabled)]),onClick:Hn(r.toggleMenu,["prevent"])},[r.$slots.prefix?(Ne(),nt("div",{key:0,ref:"prefixRef",class:ke(r.nsSelect.e("prefix"))},[Ot(r.$slots,"prefix")],2)):Gt("v-if",!0),lt("div",{ref:"selectionRef",class:ke([r.nsSelect.e("selection"),r.nsSelect.is("near",r.multiple&&!r.$slots.prefix&&!!r.states.selected.length)])},[r.multiple?Ot(r.$slots,"tag",{key:0,data:r.states.selected,deleteTag:r.deleteTag,selectDisabled:r.selectDisabled},()=>[(Ne(!0),nt(gs,null,Af(r.showTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.tagStyle),onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),r.collapseTags&&r.states.selected.length>r.maxCollapseTags?(Ne(),er(a,{key:0,ref:"tagTooltipRef",disabled:r.dropdownMenuVisible||!r.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:r.effect,placement:"bottom","popper-class":r.popperClass,"popper-style":r.popperStyle,teleported:r.teleported},{default:Dt(()=>[lt("div",{ref:"collapseItemRef",class:ke(r.nsSelect.e("selected-item"))},[_r(t,{closable:!1,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",style:ln(r.collapseTagStyle)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))}," + "+en(r.states.selected.length-r.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Dt(()=>[lt("div",{ref:"tagMenuRef",class:ke(r.nsSelect.e("selection"))},[(Ne(!0),nt(gs,null,Af(r.collapseTagList,c=>(Ne(),nt("div",{key:r.getValueKey(c),class:ke(r.nsSelect.e("selected-item"))},[_r(t,{class:"in-tooltip",closable:!r.selectDisabled&&!c.isDisabled,size:r.collapseTagSize,type:r.tagType,effect:r.tagEffect,"disable-transitions":"",onClose:h=>r.deleteTag(h,c)},{default:Dt(()=>[lt("span",{class:ke(r.nsSelect.e("tags-text"))},[Ot(r.$slots,"label",{index:c.index,label:c.currentLabel,value:c.value},()=>[$1(en(c.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):Gt("v-if",!0)]):Gt("v-if",!0),lt("div",{class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("input-wrapper"),r.nsSelect.is("hidden",!r.filterable||r.selectDisabled)])},[Is(lt("input",{id:r.inputId,ref:"inputRef","onUpdate:modelValue":c=>r.states.inputValue=c,type:"text",name:r.name,class:ke([r.nsSelect.e("input"),r.nsSelect.is(r.selectSize)]),disabled:r.selectDisabled,autocomplete:r.autocomplete,style:ln(r.inputStyle),tabindex:r.tabindex,role:"combobox",readonly:!r.filterable,spellcheck:"false","aria-activedescendant":((v=r.hoverOption)==null?void 0:v.id)||"","aria-controls":r.contentId,"aria-expanded":r.dropdownMenuVisible,"aria-label":r.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:r.handleKeydown,onCompositionstart:r.handleCompositionStart,onCompositionupdate:r.handleCompositionUpdate,onCompositionend:r.handleCompositionEnd,onInput:r.onInput,onClick:Hn(r.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Xk,r.states.inputValue]]),r.filterable?(Ne(),nt("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:ke(r.nsSelect.e("input-calculator")),textContent:en(r.states.inputValue)},null,10,["textContent"])):Gt("v-if",!0)],2),r.shouldShowPlaceholder?(Ne(),nt("div",{key:1,class:ke([r.nsSelect.e("selected-item"),r.nsSelect.e("placeholder"),r.nsSelect.is("transparent",!r.hasModelValue||r.expanded&&!r.states.inputValue)])},[r.hasModelValue?Ot(r.$slots,"label",{key:0,index:r.getOption(r.modelValue).index,label:r.currentPlaceholder,value:r.modelValue},()=>[lt("span",null,en(r.currentPlaceholder),1)]):(Ne(),nt("span",{key:1},en(r.currentPlaceholder),1))],2)):Gt("v-if",!0)],2),lt("div",{ref:"suffixRef",class:ke(r.nsSelect.e("suffix"))},[r.iconComponent&&!r.showClearBtn?(Ne(),er(n,{key:0,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.iconReverse])},{default:Dt(()=>[(Ne(),er(Hv(r.iconComponent)))]),_:1},8,["class"])):Gt("v-if",!0),r.showClearBtn&&r.clearIcon?(Ne(),er(n,{key:1,class:ke([r.nsSelect.e("caret"),r.nsSelect.e("icon"),r.nsSelect.e("clear")]),onClick:r.handleClearClick},{default:Dt(()=>[(Ne(),er(Hv(r.clearIcon)))]),_:1},8,["class","onClick"])):Gt("v-if",!0),r.validateState&&r.validateIcon&&r.needStatusIcon?(Ne(),er(n,{key:2,class:ke([r.nsInput.e("icon"),r.nsInput.e("validateIcon"),r.nsInput.is("loading",r.validateState==="validating")])},{default:Dt(()=>[(Ne(),er(Hv(r.validateIcon)))]),_:1},8,["class"])):Gt("v-if",!0)],2)],10,["onClick"])]}),content:Dt(()=>[_r(u,{ref:"menuRef"},{default:Dt(()=>[r.$slots.header?(Ne(),nt("div",{key:0,class:ke(r.nsSelect.be("dropdown","header")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"header")],10,["onClick"])):Gt("v-if",!0),Is(_r(l,{id:r.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":r.nsSelect.be("dropdown","wrap"),"view-class":r.nsSelect.be("dropdown","list"),class:ke([r.nsSelect.is("empty",r.filteredOptionsCount===0)]),role:"listbox","aria-label":r.ariaLabel,"aria-orientation":"vertical",onScroll:r.popupScroll},{default:Dt(()=>[r.showNewOption?(Ne(),er(i,{key:0,value:r.states.inputValue,created:!0},null,8,["value"])):Gt("v-if",!0),_r(s,null,{default:Dt(()=>[Ot(r.$slots,"default",{},()=>[(Ne(!0),nt(gs,null,Af(r.options,(v,c)=>{var h;return Ne(),nt(gs,{key:c},[(h=r.getOptions(v))!=null&&h.length?(Ne(),er(o,{key:0,label:r.getLabel(v),disabled:r.getDisabled(v)},{default:Dt(()=>[(Ne(!0),nt(gs,null,Af(r.getOptions(v),d=>(Ne(),er(i,Y1({key:r.getValue(d)},r.getOptionProps(d)),null,16))),128))]),_:2},1032,["label","disabled"])):(Ne(),er(i,Zk(Y1({key:1},r.getOptionProps(v))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[mh,r.states.options.size>0&&!r.loading]]),r.$slots.loading&&r.loading?(Ne(),nt("div",{key:1,class:ke(r.nsSelect.be("dropdown","loading"))},[Ot(r.$slots,"loading")],2)):r.loading||r.filteredOptionsCount===0?(Ne(),nt("div",{key:2,class:ke(r.nsSelect.be("dropdown","empty"))},[Ot(r.$slots,"empty",{},()=>[lt("span",null,en(r.emptyText),1)])],2)):Gt("v-if",!0),r.$slots.footer?(Ne(),nt("div",{key:3,class:ke(r.nsSelect.be("dropdown","footer")),onClick:Hn(()=>{},["stop"])},[Ot(r.$slots,"footer")],10,["onClick"])):Gt("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[f,r.handleClickOutside,r.popperRef]])}var BN=hi(ON,[["render",NN],["__file","select.vue"]]);const kQ=u0(BN,{Option:v0,OptionGroup:c0}),OQ=KM(v0);KM(c0);function NQ(){const{t:r}=jM();return{timeOptions:[{label:r("buttons.today"),value:"today"},{label:r("buttons.week"),value:"week"},{label:r("buttons.month"),value:"month"},{label:r("buttons.custom"),value:"custom"}]}}const aS=["#249EFF","#846BCE","#21CCFF","#0E42D2","#86DF6C","#F6693D","#FF6B9D","#FFA940","#9254DE","#36CFC9","#5CDBD3","#B37FEB"];function zN(){const r="0123456789ABCDEF";let e="#";for(let t=0;t<6;t++)e+=r[Math.floor(Math.random()*16)];return e}function VN(r){return r<aS.length?aS[r]:zN()}const GN={title:{left:"center",top:"90%",textStyle:{fontSize:16,fontWeight:"normal"}},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},series:[{name:"",type:"pie",radius:["50%","80%"],center:["50%","45%"],avoidLabelOverlap:!1,itemStyle:{borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:[]}],graphic:{elements:[{type:"text",left:"center",top:"40%",style:{text:"",fontSize:14,fontWeight:"bold",textAlign:"center"}}]}},FN={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:[]},series:[{name:"",type:"bar",barWidth:"10",data:[],itemStyle:{color:"#4086FF",borderRadius:[5,5,5,5]}}]},nS={"#F6693D":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"#FFA07A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#F6693D"},{offset:1,color:"rgba(246, 105, 61, 0)"}]}},"#622BDF":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"#9370DB"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#622BDF"},{offset:1,color:"rgba(98, 43, 223, 0)"}]}},"#47C86B":{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"#66FF99"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#47C86B"},{offset:1,color:"rgba(71, 200, 107, 0)"}]}},default:{gradientColor:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"#67C23A"}]},areaGradientColor:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#409EFF"},{offset:1,color:"rgba(64, 158, 255, 0)"}]}}},HN={tooltip:{trigger:"axis"},xAxis:{type:"category",data:[],axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},yAxis:{type:"value",axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!0}},series:[{name:"",type:"line",data:[],smooth:!1,showSymbol:!1,lineStyle:{width:2},areaStyle:{opacity:.3}}]},BQ=(r,e)=>{const t=r.__vccOpts||r;for(const[a,n]of e)t[a]=n;return t};function WN(){return Sh.get("/svc/monitor/summary",{params:{_dc:Date.now()}})}function zQ(r){return Sh.get(`/svc/monitor/nodes/${r}`)}function VQ(r,e){return Sh.get(`/svc/monitor/nodes/${r}/usages`,{params:e})}async function GQ(){return Sh.get("/svc/types")}var $g=function(r,e){return $g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},$g(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$g(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var UN=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),YN=(function(){function r(){this.browser=new UN,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 r})(),De=new YN;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(De.wxa=!0,De.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?De.worker=!0:!De.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(De.node=!0,De.svgSupported=!0):$N(navigator.userAgent,De);function $N(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var h0=12,sD="sans-serif",dn=h0+"px "+sD,ZN=20,XN=100,qN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function KN(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-ZN)/XN;e[a]=n}return e}var jN=KN(qN),la={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=la.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||dn),r.measureText(t);t=t||"",a=a||dn;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||h0,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=jN[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},lD=Fa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),uD=Fa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),tl=Object.prototype.toString,xh=Array.prototype,JN=xh.forEach,QN=xh.filter,d0=xh.slice,eB=xh.map,iS=(function(){}).constructor,Df=iS?iS.prototype:null,p0="__proto__",tB=2311;function fD(){return tB++}function g0(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ie(r){if(r==null||typeof r!="object")return r;var e=r,t=tl.call(r);if(t==="[object Array]"){if(!vu(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=ie(r[a])}}else if(uD[t]){if(!vu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!lD[t]&&!vu(r)&&!zs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==p0&&(e[o]=ie(r[o]))}return e}function _e(r,e,t){if(!fe(e)||!fe(r))return t?ie(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==p0){var n=r[a],i=e[a];fe(i)&&fe(n)&&!U(i)&&!U(n)&&!zs(i)&&!zs(n)&&!oS(i)&&!oS(n)&&!vu(i)&&!vu(n)?_e(n,i,t):(t||!(a in r))&&(r[a]=ie(e[a]))}return r}function y0(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=_e(t,r[a],e);return t}function F(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==p0&&(r[t]=e[t]);return r}function ue(r,e,t){for(var a=Ie(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function me(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function rB(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function bt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ue(r,e,t)}function Xt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,e,t){if(r&&e)if(r.forEach&&r.forEach===JN)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Y(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.map&&r.map===eB)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Fa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Fe(r,e,t){if(!r)return[];if(!e)return m0(r);if(r.filter&&r.filter===QN)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Ro(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Ie(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function aB(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(d0.call(arguments)))}}var q=Df&&ae(Df.bind)?Df.call.bind(Df.bind):aB;function ye(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(d0.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):tl.call(r)==="[object Array]"}function ae(r){return typeof r=="function"}function X(r){return typeof r=="string"}function Zg(r){return tl.call(r)==="[object String]"}function Ee(r){return typeof r=="number"}function fe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function oS(r){return!!lD[tl.call(r)]}function pr(r){return!!uD[tl.call(r)]}function zs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function wh(r){return r.colorStops!=null}function nB(r){return r.image!=null}function iB(r){return tl.call(r)==="[object RegExp]"}function Zt(r){return r!==r}function Wt(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function re(r,e){return r??e}function Cr(r,e,t){return r??e??t}function m0(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return d0.apply(r,e)}function Th(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function qt(r,e){if(!r)throw new Error(e)}function Hr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vD="__ec_primitive__";function cc(r){r[vD]=!0}function vu(r){return r[vD]}var oB=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Ie(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),cD=typeof Map=="function";function sB(){return cD?new Map:new oB}var lB=(function(){function r(e){var t=U(e);this.data=sB();var a=this;e instanceof r?e.each(n):e&&D(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return cD?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function te(r){return new lB(r)}function Cu(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Ch(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&F(t,e),t}function hD(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function vt(){}var Uv=180/Math.PI;function Eo(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function tr(r,e){return r[0]=e[0],r[1]=e[1],r}function un(r){return[r[0],r[1]]}function _0(r,e,t){return r[0]=e,r[1]=t,r}function sS(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Xg(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function io(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function qg(r){return Math.sqrt(uB(r))}function uB(r){return r[0]*r[0]+r[1]*r[1]}function Yv(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function rl(r,e){var t=qg(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Kg(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Wn=Kg;function fB(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var co=fB;function $v(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function ct(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Un(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Yn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Uo=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),vB=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Uo(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Uo(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Uo(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Uo(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Uo(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Uo(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Zr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),cB=Math.log(2);function jg(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/cB);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&n||(v+=(h%2?-1:1)*r[t][c]*jg(r,e-1,f,u,n|d,i),h++)}return i[o]=v,v}function lS(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=jg(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*jg(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var hc="___zrEVENTSAVED",vd=[];function hB(r,e,t,a,n){return Jg(vd,e,a,n,!0)&&Jg(r,t,vd[0],vd[1])}function dB(r,e){r&&t(r),e&&t(e);function t(a){var n=a[hc];n&&(n.clearMarkers&&n.clearMarkers(),delete a[hc])}}function Jg(r,e,t,a,n){if(e.getBoundingClientRect&&De.domSupported&&!dD(e)){var i=e[hc]||(e[hc]={}),o=pB(e,i),s=gB(o,i,n);if(s)return s(r,t,a),!0}return!1}function pB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){D(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function gB(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?lS(s,o):lS(o,s))}function dD(r){return r.nodeName.toUpperCase()==="CANVAS"}var yB=/([&<>"'])/g,mB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function nr(r){return r==null?"":(r+"").replace(yB,function(e,t){return mB[t]})}var _B=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cd=[],SB=De.browser.firefox&&+De.browser.version.split(".")[0]<39;function Qg(r,e,t,a){return t=t||{},a?uS(r,e,t):SB&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):uS(r,e,t),t}function uS(r,e,t){if(De.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(dD(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(Jg(cd,r,a,n)){t.zrX=cd[0],t.zrY=cd[1];return}}t.zrX=t.zrY=0}function S0(r){return r||window.event}function Er(r,e,t){if(e=S0(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Qg(r,o,e,t)}else{Qg(r,e,e,t);var i=bB(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_B.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function bB(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function ey(r,e,t,a){r.addEventListener(e,t,a)}function xB(r,e,t,a){r.removeEventListener(e,t,a)}var pn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fS(r){return r.which===2||r.which===3}var wB=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Qg(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hd)if(hd.hasOwnProperty(t)){var a=hd[t](this._track,e);if(a)return a}},r})();function vS(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function TB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hd={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=vS(a)/vS(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=TB(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Bt(){return[1,0,0,1,0,0]}function Ah(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Mh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ba(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ha(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function di(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function b0(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ua(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function CB(r){var e=Bt();return Mh(e,r),e}var se=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),oo=Math.min,ws=Math.max,ty=Math.abs,cS=["x","y"],AB=["width","height"],bi=new se,xi=new se,wi=new se,Ti=new se,Sr=pD(),Jl=Sr.minTv,ry=Sr.maxTv,cu=[0,0],ve=(function(){function r(e,t,a,n){r.set(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=oo(e.x,this.x),a=oo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ws(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ws(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Bt();return Ha(i,i,[-t.x,-t.y]),b0(i,i,[a,n]),Ha(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&se.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(MB,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(DB,t.x,t.y,t.width,t.height));var s=!!a;Sr.reset(n,s);var l=Sr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(cu[0]=1/0,cu[1]=0,hS(u,f,h,d,0,s,i,o),hS(v,c,p,g,1,s,i,o),s&&se.copy(a,y?Sr.useDir?Sr.dirMinTv:Jl:ry)),y},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bi.x=wi.x=t.x,bi.y=Ti.y=t.y,xi.x=Ti.x=t.x+t.width,xi.y=wi.y=t.y+t.height,bi.transform(a),Ti.transform(a),xi.transform(a),wi.transform(a),e.x=oo(bi.x,xi.x,wi.x,Ti.x),e.y=oo(bi.y,xi.y,wi.y,Ti.y);var l=ws(bi.x,xi.x,wi.x,Ti.x),u=ws(bi.y,xi.y,wi.y,Ti.y);e.width=l-e.x,e.height=u-e.y},r})(),MB=new ve(0,0,0,0),DB=new ve(0,0,0,0);function hS(r,e,t,a,n,i,o,s){var l=ty(e-t),u=ty(a-r),f=oo(l,u),v=cS[n],c=cS[1-n],h=AB[n];e<t||a<r?l<u?(i&&(ry[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(ry[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=ws(r,t),o[h]=oo(e,a)-o[v]),i&&(f<cu[0]||Sr.useDir)&&(cu[0]=oo(f,cu[0]),(l<u||!Sr.bidirectional)&&(Jl[v]=l,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV()),(l>=u||!Sr.bidirectional)&&(Jl[v]=-u,Jl[c]=0,Sr.useDir&&Sr.calcDirMTV())))}function pD(){var r=0,e=new se,t=new se,a={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=ws(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(i){return ty(i)<1e-10}return a}var gD="silent";function LB(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:IB}}function IB(){pn(this.event)}var PB=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Zr),_l=(function(){function r(e,t){this.x=e,this.y=t}return r})(),RB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dd=new ve(0,0,0,0),yD=(function(r){N(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new _l(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new PB,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new vB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(RB,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=mD(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new _l(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new _l(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=LB(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new _l(t,a);if(dS(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ve(t-u,a-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(dd.copy(c.getBoundingRect()),c.transform&&dd.applyTransform(c.transform),dd.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(dS(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new wB);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new _l;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Zr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){yD.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=mD(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function EB(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?gD:!0}return!1}function dS(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=EB(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==gD)){e.target=o;break}}}function mD(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var _D=32,Sl=7;function kB(r){for(var e=0;r>=_D;)e|=r&1,r>>=1;return r+e}function pS(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;OB(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function OB(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function gS(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function pd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function gd(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function NB(r,e){var t=Sl,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=a[h],p=n[h],g=a[h+1],y=n[h+1];n[h]=p+y,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var m=gd(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=pd(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,b,w,T;;){b=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=gd(r[_],o,m,d,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=pd(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=Sl||w>=Sl);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var T=0,M=0,C=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],M++,T=0,--g===1){C=!0;break}while((T|M)<w);if(C)break;do{if(T=d-gd(o[_],r,h,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--g===1){C=!0;break}if(M=g-pd(r[m],o,0,g,g-1,e),M!==0){for(S-=M,_-=M,g-=M,b=S+1,x=_+1,y=0;y<M;y++)r[b+y]=o[x+y];if(g<=1){C=!0;break}}if(r[S--]=r[m--],--d===0){C=!0;break}w--}while(T>=Sl||M>=Sl);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Zv(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<_D){i=pS(r,t,a,e),gS(r,t,a,t+i,e);return}var o=NB(r,e),s=kB(n);do{if(i=pS(r,t,a,e),i<s){var l=n;l>s&&(l=s),gS(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var br=1,Ql=2,ms=4,yS=!1;function yd(){yS||(yS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mS(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var BB=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mS}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,Zv(a,mS)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=br),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(yd(),d.z=0),isNaN(d.z2)&&(yd(),d.z2=0),isNaN(d.zlevel)&&(yd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,a);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=me(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),dc;dc=De.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var hu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-hu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?hu.bounceIn(r*2)*.5:hu.bounceOut(r*2-1)*.5+.5}},Lf=Math.pow,Jn=Math.sqrt,pc=1e-8,SD=1e-4,_S=Jn(3),If=1/3,Ma=Eo(),zr=Eo(),Rs=Eo();function $n(r){return r>-pc&&r<pc}function bD(r){return r>pc||r<-pc}function Lt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function SS(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function gc(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if($n(f)&&$n(v))if($n(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if($n(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Jn(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-Lf(-_,If):_=Lf(_,If),S<0?S=-Lf(-S,If):S=Lf(S,If);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*Jn(f*f*f)),b=Math.acos(x)/3,w=Jn(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+_S*Math.sin(b)))/(3*o),M=(-s+w*(T-_S*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),M>=0&&M<=1&&(i[h++]=M)}}return h}function xD(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if($n(o)){if(bD(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if($n(f))n[0]=-i/(2*o);else if(f>0){var v=Jn(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function oi(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function wD(r,e,t,a,n,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;Ma[0]=l,Ma[1]=u;for(var m=0;m<1;m+=.05)zr[0]=Lt(r,t,n,o,m),zr[1]=Lt(e,a,i,s,m),g=co(Ma,zr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<SD);_++)d=v-c,p=v+c,zr[0]=Lt(r,t,n,o,d),zr[1]=Lt(e,a,i,s,d),g=co(zr,Ma),d>=0&&g<h?(v=d,h=g):(Rs[0]=Lt(r,t,n,o,p),Rs[1]=Lt(e,a,i,s,p),y=co(Rs,Ma),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Lt(r,t,n,o,v),f[1]=Lt(e,a,i,s,v)),Jn(h)}function zB(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Lt(r,t,n,o,d),g=Lt(e,a,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Nt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function ay(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function VB(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if($n(i)){if(bD(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if($n(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=Jn(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function TD(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Au(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function CD(r,e,t,a,n,i,o,s,l){var u,f=.005,v=1/0;Ma[0]=o,Ma[1]=s;for(var c=0;c<1;c+=.05){zr[0]=Nt(r,t,n,c),zr[1]=Nt(e,a,i,c);var h=co(Ma,zr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<SD);d++){var p=u-f,g=u+f;zr[0]=Nt(r,t,n,p),zr[1]=Nt(e,a,i,p);var h=co(zr,Ma);if(p>=0&&h<v)u=p,v=h;else{Rs[0]=Nt(r,t,n,g),Rs[1]=Nt(e,a,i,g);var y=co(Rs,Ma);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Nt(r,t,n,u),l[1]=Nt(e,a,i,u)),Jn(v)}function GB(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Nt(r,t,n,c),d=Nt(e,a,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var FB=/cubic-bezier\(([0-9,\.e ]+)\)/;function x0(r){var e=r&&FB.exec(r);if(e){var t=e[1].split(","),a=+Hr(t[0]),n=+Hr(t[1]),i=+Hr(t[2]),o=+Hr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:gc(0,a,i,1,l,s)&&Lt(0,n,o,1,s[0])}}}var HB=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||vt,this.ondestroy=e.ondestroy||vt,this.onrestart=e.onrestart||vt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ae(e)?e:hu[e]||x0(e)},r})(),AD=(function(){function r(e){this.value=e}return r})(),WB=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new AD(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Vs=(function(){function r(e){this._list=new WB,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new AD(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),bS={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 na(r){return r=Math.round(r),r<0?0:r>255?255:r}function UB(r){return r=Math.round(r),r<0?0:r>360?360:r}function Mu(r){return r<0?0:r>1?1:r}function md(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?na(parseFloat(e)/100*255):na(parseInt(e,10))}function Qn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Mu(parseFloat(e)/100):Mu(parseFloat(e))}function _d(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Zn(r,e,t){return r+(e-r)*t}function Rr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function ny(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var MD=new Vs(20),Pf=null;function Yo(r,e){Pf&&ny(Pf,e),Pf=MD.put(r,Pf||e.slice())}function dr(r,e){if(r){e=e||[];var t=MD.get(r);if(t)return ny(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in bS)return ny(e,bS[a]),Yo(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Rr(e,0,0,0,1);return}return Rr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Yo(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Rr(e,0,0,0,1);return}return Rr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Yo(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Rr(e,+u[0],+u[1],+u[2],1):Rr(e,0,0,0,1);f=Qn(u.pop());case"rgb":if(u.length>=3)return Rr(e,md(u[0]),md(u[1]),md(u[2]),u.length===3?f:Qn(u[3])),Yo(r,e),e;Rr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Rr(e,0,0,0,1);return}return u[3]=Qn(u[3]),iy(u,e),Yo(r,e),e;case"hsl":if(u.length!==3){Rr(e,0,0,0,1);return}return iy(u,e),Yo(r,e),e;default:return}}Rr(e,0,0,0,1)}}function iy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Qn(r[1]),n=Qn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Rr(e,na(_d(o,i,t+1/3)*255),na(_d(o,i,t)*255),na(_d(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function YB(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-a)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function oy(r,e){var t=dr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return za(t,t.length===4?"rgba":"rgb")}}function Sd(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=na(Zn(o[0],s[0],l)),t[1]=na(Zn(o[1],s[1],l)),t[2]=na(Zn(o[2],s[2],l)),t[3]=Mu(Zn(o[3],s[3],l)),t}}function $B(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=dr(e[n]),s=dr(e[i]),l=a-n,u=za([na(Zn(o[0],s[0],l)),na(Zn(o[1],s[1],l)),na(Zn(o[2],s[2],l)),Mu(Zn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function ei(r,e,t,a){var n=dr(r);if(r)return n=YB(n),e!=null&&(n[0]=UB(ae(e)?e(n[0]):e)),t!=null&&(n[1]=Qn(ae(t)?t(n[1]):t)),a!=null&&(n[2]=Qn(ae(a)?a(n[2]):a)),za(iy(n),"rgba")}function yc(r,e){var t=dr(r);if(t&&e!=null)return t[3]=Mu(e),za(t,"rgba")}function za(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function mc(r,e){var t=dr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var xS=new Vs(100);function sy(r){if(X(r)){var e=xS.get(r);return e||(e=oy(r,-.1),xS.put(r,e)),e}else if(wh(r)){var t=F({},r);return t.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:oy(a.color,-.1)}}),t}return r}var _c=Math.round;function Du(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=dr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var wS=1e-4;function Xn(r){return r<wS&&r>-wS}function Rf(r){return _c(r*1e3)/1e3}function ly(r){return _c(r*1e4)/1e4}function ZB(r){return"matrix("+Rf(r[0])+","+Rf(r[1])+","+Rf(r[2])+","+Rf(r[3])+","+ly(r[4])+","+ly(r[5])+")"}var XB={left:"start",right:"end",center:"middle",middle:"middle"};function qB(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function KB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function jB(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function DD(r){return r&&!!r.image}function JB(r){return r&&!!r.svgElement}function w0(r){return DD(r)||JB(r)}function LD(r){return r.type==="linear"}function ID(r){return r.type==="radial"}function PD(r){return r&&(r.type==="linear"||r.type==="radial")}function Dh(r){return"url(#"+r+")"}function RD(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ED(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Uv,n=re(r.scaleX,1),i=re(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+_c(o*Uv)+"deg, "+_c(s*Uv)+"deg)"),l.join(" ")}var QB=(function(){return De.hasGlobalWindow&&ae(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),uy=Array.prototype.slice;function tn(r,e,t){return(e-r)*t+r}function bd(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=tn(e[i],t[i],a);return r}function ez(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=tn(e[o][s],t[o][s],a)}return r}function Ef(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function TS(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function tz(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function rz(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:uy.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function du(r){if(Xt(r)){var e=r.length;if(Xt(r[0])){for(var t=[],a=0;a<e;a++)t.push(uy.call(r[a]));return t}return uy.call(r)}return r}function Xv(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function az(r){return Xt(r&&r[0])?2:1}var kf=0,qv=1,kD=2,eu=3,fy=4,vy=5,CS=6;function AS(r){return r===fy||r===vy}function Of(r){return r===qv||r===kD}var bl=[0,0,0,0],nz=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=CS,l=t;if(Xt(t)){var u=az(t);s=u,(u===1&&!Ee(t[0])||u===2&&!Ee(t[0][0]))&&(o=!0)}else if(Ee(t)&&!Zt(t))s=kf;else if(X(t))if(!isNaN(+t))s=kf;else{var f=dr(t);f&&(l=f,s=eu)}else if(wh(t)){var v=F({},l);v.colorStops=Y(t.colorStops,function(h){return{offset:h.offset,color:dr(h.color)}}),LD(t)?s=fy:ID(t)&&(s=vy),l=v}i===0?this.valType=s:(s!==this.valType||s===CS)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return a&&(c.easing=a,c.easingFunc=ae(a)?a:hu[a]||x0(a)),n.push(c),c},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Of(n),u=AS(n),f=0;f<i;f++){var v=a[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?rz(c,h,n):u&&tz(c.colorStops,h.colorStops))}if(!s&&n!==vy&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===kf?a[f].additiveValue=a[f].value-d:n===eu?a[f].additiveValue=Ef([],a[f].value,d,-1):Of(n)&&(a[f].additiveValue=n===qv?Ef([],a[f].value,d,-1):TS([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===eu,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?bl:e[l];if((Of(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(Of(i))i===qv?bd(m,h[n],d[n],y):ez(m,h[n],d[n],y);else if(AS(i)){var _=h[n],S=d[n],x=i===fy;e[l]={type:x?"linear":"radial",x:tn(_.x,S.x,y),y:tn(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var M=S.colorStops[T];return{offset:tn(w.offset,M.offset,y),color:Xv(bd([],w.color,M.color,y))}}),global:S.global},x?(e[l].x2=tn(_.x2,S.x2,y),e[l].y2=tn(_.y2,S.y2,y)):e[l].r=tn(_.r,S.r,y)}else if(u)bd(m,h[n],d[n],y),a||(e[l]=Xv(m));else{var b=tn(h[n],d[n],y);a?this._additiveValue=b:e[l]=b}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===kf?e[a]=e[a]+n:t===eu?(dr(e[a],bl),Ef(bl,bl,n,1),e[a]=Xv(bl)):t===qv?Ef(e[a],e[a],n,1):t===kD&&TS(e[a],e[a],n,1)},r})(),T0=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){g0("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Ie(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new nz(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===eu&&u&&(u=Xv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,du(u),n),this._trackKeys.push(s)}l.addKeyframe(e,du(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new HB({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Y(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=du(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Ie(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Ts(){return new Date().getTime()}var iz=(function(r){N(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Ts()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(dc(a),!t._paused&&t.update())}dc(a)},e.prototype.start=function(){this._running||(this._time=Ts(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ts(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ts()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new T0(t,a.loop);return this.addAnimator(n),n},e})(Zr),oz=300,xd=De.domSupported,wd=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),MS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},DS=!1;function cy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function sz(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Td(r){r&&(r.zrByTouch=!0)}function lz(r,e){return Er(r.dom,new uz(r,e),!0)}function OD(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var uz=(function(){function r(e,t){this.stopPropagation=vt,this.stopImmediatePropagation=vt,this.preventDefault=vt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Qr={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var e=r.toElement||r.relatedTarget;OD(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){DS=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){DS||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),Td(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Qr.mousemove.call(this,r),Qr.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"change"),Qr.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),Td(r),this.handler.processGesture(r,"end"),Qr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<oz&&Qr.click.call(this,r)},pointerdown:function(r){Qr.mousedown.call(this,r)},pointermove:function(r){cy(r)||Qr.mousemove.call(this,r)},pointerup:function(r){Qr.mouseup.call(this,r)},pointerout:function(r){cy(r)||Qr.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Qr[r]=function(e){e=Er(this.dom,e),this.trigger(r,e)}});var hy={pointermove:function(r){cy(r)||hy.mousemove.call(this,r)},pointerup:function(r){hy.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function fz(r,e){var t=e.domHandlers;De.pointerEventsSupported?D(wd.pointer,function(a){Kv(e,a,function(n){t[a].call(r,n)})}):(De.touchEventsSupported&&D(wd.touch,function(a){Kv(e,a,function(n){t[a].call(r,n),sz(e)})}),D(wd.mouse,function(a){Kv(e,a,function(n){n=S0(n),e.touching||t[a].call(r,n)})}))}function vz(r,e){De.pointerEventsSupported?D(MS.pointer,t):De.touchEventsSupported||D(MS.mouse,t);function t(a){function n(i){i=S0(i),OD(r,i.target)||(i=lz(r,i),e.domHandlers[a].call(r,i))}Kv(e,a,n,{capture:!0})}}function Kv(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,ey(r.domTarget,e,t,a)}function Cd(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&xB(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var LS=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),cz=(function(r){N(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new LS(t,Qr),xd&&(n._globalHandlerScope=new LS(document,hy)),fz(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Cd(this._localHandlerScope),xd&&Cd(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,xd&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?vz(this,a):Cd(a)}},e})(Zr),ND=1;De.hasGlobalWindow&&(ND=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sc=ND,dy=.4,py="#333",gy="#ccc",hz="#eee",IS=Ah,PS=5e-5;function Ci(r){return r>PS||r<-PS}var Ai=[],$o=[],Ad=Bt(),Md=Math.abs,on=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ci(this.rotation)||Ci(this.x)||Ci(this.y)||Ci(this.scaleX-1)||Ci(this.scaleY-1)||Ci(this.skewX)||Ci(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(IS(a),this.invTransform=null);return}a=a||Bt(),t?this.getLocalTransform(a):IS(a),e&&(t?Ba(a,e,a):Mh(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ai);var a=Ai[0]<0?-1:1,n=Ai[1]<0?-1:1,i=((Ai[0]-a)*t+a)/Ai[0]||0,o=((Ai[1]-n)*t+n)/Ai[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Bt(),ua(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Bt(),Ba($o,e.invTransform,t),t=$o);var a=this.originX,n=this.originY;(a||n)&&(Ad[4]=a,Ad[5]=n,Ba($o,t,Ad),$o[4]-=a,$o[5]-=n,t=$o),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ct(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ct(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Md(e[0]-1)>1e-10&&Md(e[3]-1)>1e-10?Math.sqrt(Md(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){bc(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&di(t,t,u),t[4]+=a+f,t[5]+=n+v,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Wa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bc(r,e){for(var t=0;t<Wa.length;t++){var a=Wa[t];r[a]=e[a]}}function Va(r){Nf||(Nf=new Vs(100)),r=r||dn;var e=Nf.get(r);return e||(e={font:r,strWidthCache:new Vs(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:la.measureText("国",r).width,asciiCharWidth:la.measureText("a",r).width},Nf.put(r,e)),e}var Nf;function dz(r){if(!(Dd>=RS)){r=r||dn;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=la.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?Dd=RS:n>2&&Dd++,e}}var Dd=0,RS=5;function BD(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=dz(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ga(r,e){var t=r.strWidthCache,a=t.get(e);return a==null&&(a=la.measureText(e,r.font).width,t.put(e,a)),a}function ES(r,e,t,a){var n=Ga(Va(e),r),i=rf(e),o=Gs(0,n,t),s=ho(0,i,a),l=new ve(o,s,n,i);return l}function Lh(r,e,t,a){var n=((r||"")+"").split(`
2
2
  `),i=n.length;if(i===1)return ES(n[0],e,t,a);for(var o=new ve(0,0,0,0),s=0;s<n.length;s++){var l=ES(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Gs(r,e,t,a){return t==="right"?a?r+=e:r-=e:t==="center"&&(a?r+=e/2:r-=e/2),r}function ho(r,e,t,a){return t==="middle"?a?r+=e/2:r-=e/2:t==="bottom"&&(a?r+=e:r-=e),r}function rf(r){return Va(r).stWideCharWidth}function fa(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function xc(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(a instanceof Array)l+=fa(a[0],t.width),u+=fa(a[1],t.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Ld="__zr_normal__",Id=Wa.concat(["ignore"]),pz=Fa(Wa,function(r,e){return r[e]=!0,r},{ignore:!1}),Zo={},gz=new ve(0,0,0,0),Bf=[],Ih=(function(){function r(e){this.id=fD(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var f=a.position!=null,v=a.autoOverflowArea,c=void 0;if((v||f)&&(c=gz,a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Zo,a,c):xc(Zo,a,c),i.x=Zo.x,i.y=Zo.y,o=Zo.align,s=Zo.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=fa(h[0],c.width),p=fa(h[1],c.height)),u=!0,i.originX=-i.x+d+(n?0:c.x),i.originY=-i.y+p+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new ve(0,0,0,0);i.getLocalTransform(Bf),ua(Bf,Bf),ve.copy(m,c),m.applyTransform(Bf)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=br,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?gy:py},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&dr(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,za(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(fe(e))for(var a=e,n=Ie(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Ld)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Id)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Ld,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Ld,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(me(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){g0("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var v=this._textContent,c=this._textGuide;return v&&v.useState(e,t,a,f),c&&c.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var v=n[o-1],c=!!(v&&v.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,c),g&&g.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~br)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=me(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=me(n,e),o=me(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];F(t,i),i.textConfig&&(a=a||{},F(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=F({},n?this.textConfig:a.textConfig),F(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Id.length;f++){var v=Id[f],c=i&&pz[v];t&&t[v]!=null?c?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&a[v]!=null&&(c?(u=!0,l[v]=a[v]):this[v]=a[v])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new on,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),F(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=br;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new T0(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=me(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Pd(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Pd(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Pd(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=br;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();bt(Ih,Zr);bt(Ih,on);function Pd(r,e,t,a,n){t=t||{};var i=[];zD(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function Rd(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function yz(r){return Xt(r[0])}function mz(r,e,t){if(Xt(e[t]))if(Xt(r[t])||(r[t]=[]),pr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Rd(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(yz(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Rd(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Rd(i,n,o);i.length=n.length}else r[t]=e[t]}function _z(r,e){return r===e||Xt(r)&&Xt(e)&&Sz(r,e)}function Sz(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function zD(r,e,t,a,n,i,o,s){for(var l=Ie(a),u=n.duration,f=n.delay,v=n.additive,c=n.setToFinal,h=!fe(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&t[y]!=null&&(h||i[y]))if(fe(m)&&!Xt(m)&&!wh(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}zD(r,y,t[y],m,n,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!v&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===e){var b=x.stopTracks(p);if(b){var w=me(d,x);d.splice(w,1)}}}if(n.force||(p=Fe(p,function(A){return!_z(a[A],t[A])}),_=p.length),_>0||n.force&&!o.length){var T=void 0,M=void 0,C=void 0;if(s){M={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];M[y]=t[y],c?T[y]=a[y]:t[y]=a[y]}}else if(c){C={};for(var S=0;S<_;S++){var y=p[S];C[y]=du(t[y]),mz(t,a,y)}}var x=new T0(t,!1,!1,v?Fe(d,function(I){return I.targetName===e}):null);x.targetName=e,n.scope&&(x.scope=n.scope),c&&T&&x.whenWithKeys(0,T,p),C&&x.whenWithKeys(0,C,p),x.whenWithKeys(u??500,s?M:a,p).delay(f||0),r.addAnimator(x,e),o.push(x)}}var ne=(function(r){N(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=me(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=me(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new ve(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ve.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Ih);ne.prototype.type="group";var jv={},VD={};function bz(r){delete VD[r]}function xz(r){if(!r)return!1;if(typeof r=="string")return mc(r,1)<dy;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=mc(e[n].color,1);return t/=a,t<dy}return!1}var wz=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new BB,o=a.renderer||"canvas";jv[o]||(o=Ie(jv)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new jv[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!De.node&&!De.worker&&!l?new cz(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,v=f==null||f==="auto"?De.touchEventsSupported:!!f,c=44,h;v&&(h=re(a.pointerSize,c)),this.handler=new yD(i,s,u,s.root,h),this.animation=new iz({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=xz(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=Ts();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Ts();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ne&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,bz(this.id))},r})();function kS(r,e){var t=new wz(fD(),r,e);return VD[t.id]=t,t}function Tz(r,e){jv[r]=e}var yy;function Cz(r){if(typeof yy=="function")return yy(r)}function Az(r){yy=r}var OS=1e-4,GD=20;function Mz(r){return r.replace(/^\s+|\s+$/g,"")}var Ar=Math.min,ft=Math.max,Pa=Math.abs;function Ge(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var Z=Dz;function Dz(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return wc(r,e,t)}function wc(r,e,t){return X(r)?Mz(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function pt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),GD),r=(+r).toFixed(e),t?r:+r}function Wr(r){return r.sort(function(e,t){return e-t}),r}function Ra(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Lz(r)}function Lz(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function FD(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Pa(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Iz(r,e){var t=Fa(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=Y(r,function(h){return(isNaN(h)?0:h)/t*a*100}),i=a*100,o=Y(n,function(h){return Math.floor(h)}),s=Fa(o,function(h,d){return h+d},0),l=Y(n,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,c=l.length;v<c;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return Y(o,function(h){return h/a})}function Pz(r,e){var t=Math.max(Ra(r),Ra(e)),a=r+e;return t>GD?a:pt(a,t)}var NS=9007199254740991;function HD(r){var e=Math.PI*2;return(r%e+e)%e}function Lu(r){return r>-OS&&r<OS}var Rz=/^(?:(\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 ko(r){if(r instanceof Date)return r;if(X(r)){var e=Rz.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Ez(r){return Math.pow(10,C0(r))}function C0(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function WD(r,e){var t=C0(r),a=Math.pow(10,t),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Ed(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function BS(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function gn(r){var e=parseFloat(r);return e==r&&(e!==0||!X(r)||r.indexOf("x")<=0)?e:NaN}function UD(r){return!isNaN(gn(r))}function YD(){return Math.round(Math.random()*9)}function $D(r,e){return e===0?r:$D(e,r%e)}function zS(r,e){return r==null?e:e==null?r:r*e/$D(r,e)}var kz="[ECharts] ",Oz=typeof console<"u"&&console.warn&&console.log;function Nz(r,e,t){Oz&&console[r](kz+e)}function ZD(r,e){Nz("error",r)}function Ve(r){throw new Error(r)}function VS(r,e,t){return(e-r)*t+r}var XD="series\0",qD="\0_ec_\0";function Ze(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var GS=["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 al(r){return fe(r)&&!U(r)&&!(r instanceof Date)?r.value:r}function Bz(r){return fe(r)&&!(r instanceof Array)}function KD(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=te();D(e,function(l,u){if(!fe(l)){e[u]=null;return}});var s=zz(r,o,t);return(a||n)&&Vz(s,r,o,e),a&&Gz(s,e),a||n?Fz(s,e,n):i&&Hz(s,e),Wz(s),s}function zz(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||Iu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Vz(r,e,t,a){D(a,function(n,i){if(!(!n||n.id==null)){var o=pu(n.id),s=t.get(o);if(s!=null){var l=r[s];qt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function Gz(r,e){D(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!Iu(t)&&!Iu(i)&&jD("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function Fz(r,e,t){D(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Iu(n.existing)||n.existing&&a.id!=null&&!jD("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function Hz(r,e){D(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Wz(r){var e=te();D(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),D(r,function(t){var a=t.newOption;qt(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),D(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(fe(i)){if(o.name=i.name!=null?pu(i.name):n?n.name:XD+a,n)o.id=pu(n.id);else if(i.id!=null)o.id=pu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function jD(r,e,t){var a=wt(e[r],null),n=wt(t[r],null);return a!=null&&n!=null&&a===n}function pu(r){return wt(r,"")}function wt(r,e){return r==null?e:X(r)?r:Ee(r)||Zg(r)?r+"":e}function A0(r){var e=r.name;return!!(e&&e.indexOf(XD))}function Iu(r){return r&&r.id!=null&&pu(r.id).indexOf(qD)===0}function Uz(r){return qD+r}function Yz(r,e,t){D(r,function(a){var n=a.newOption;fe(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=$z(e,n,a.existing,t))})}function $z(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function Zz(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=wt(o[u].seriesId,null);if(v==null)return;for(var c=Ze(o[u].dataIndex),h=l&&l[v],d=0,p=c.length;d<p;d++){var g=c[d];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function wo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?Y(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?Y(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function we(){var r="__ec_inner_"+Xz++;return function(e){return e[r]||(e[r]={})}}var Xz=YD();function Es(r,e,t){var a=M0(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var v=nl(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function M0(r,e){var t;if(X(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=te(),i={},o=!1;return D(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||e&&e.includeMainTypes&&me(e.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var ot={useDefault:!0,enableAll:!1,enableNone:!1},qz={useDefault:!1,enableAll:!0,enableNone:!0};function nl(r,e,t,a){a=a||ot;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function JD(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function Kz(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function jz(r){return r==="auto"?De.domSupported?"html":"richText":r||"html"}function my(r,e){var t=te(),a=[];return D(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function QD(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Ee(a)){var o=VS(t||0,a,n);return pt(o,i?Math.max(Ra(t||0),Ra(a)):e)}else{if(X(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&c.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,d=u[v],o=VS(h,d,n);s[v]=pt(o,i?Math.max(Ra(h),Ra(d)):e)}}return s}}var ti=(function(){function r(){}return r.prototype.reset=function(e,t,a,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=a??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function kd(r){r.option=r.parentModel=r.ecModel=null}var Jz=".",Mi="___EC__COMPONENT__CONTAINER___",eL="___EC__EXTENDED_CLASS___";function Ea(r){var e={main:"",sub:""};if(r){var t=r.split(Jz);e.main=t[0]||"",e.sub=t[1]||""}return e}function Qz(r){qt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function eV(r){return!!(r&&r[eL])}function D0(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return tV(a)?n=(function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},rB(n,this)),F(n.prototype,t),n[eL]=!0,n.extend=this.extend,n.superCall=nV,n.superApply=iV,n.superClass=a,n}}function tV(r){return ae(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function tL(r,e){r.extend=e.extend}var rV=Math.round(Math.random()*10);function aV(r){var e=["__\0is_clz",rV++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function nV(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function iV(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Ph(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){Qz(n),a.prototype.type=n;var i=Ea(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Mi){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Mi]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Ea(a),i=[],o=e[n.main];return o&&o[Mi]?D(o,function(s,l){l!==Mi&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Ea(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return D(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Ea(a),i=e[n.main];return i&&i[Mi]};function t(a){var n=e[a.main];return(!n||!n[Mi])&&(n=e[a.main]={},n[Mi]=!0),n}}function To(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&me(n,l)>=0||i&&me(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var oV=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],sV=To(oV),lV=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return sV(this,e,t)},r})(),_y=new Vs(50);function uV(r){if(typeof r=="string"){var e=_y.get(r);return e&&e.image}else return r}function L0(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=_y.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!Rh(e)&&i.pending.push(o)):(e=la.loadImage(r,FS,FS),e.__zrImageSrc=r,_y.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function FS(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Rh(r){return r&&r.width&&r.height}var Od=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function fV(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
3
  `);i=rL(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)aL(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
4
  `),r.isTruncated=s}function rL(r,e,t,a){a=a||{};var n=F({},a);t=re(t,"..."),n.maxIterations=re(a.maxIterations,2);var i=n.minChar=re(a.minChar,0),o=n.fontMeasureInfo=Va(e),s=o.asciiCharWidth;n.placeholder=re(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=Ga(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function aL(r,e,t){var a=t.containerWidth,n=t.contentWidth,i=t.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ga(i,e);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?vV(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Ga(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function vV(r,e,t){for(var a=0,n=0,i=r.length;n<i&&a<e;n++)a+=BD(t,r.charCodeAt(n));return n}function cV(r,e,t,a){var n=I0(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=i==="truncate",v=rf(u),c=re(e.lineHeight,v),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&a!=null&&(g=a-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=n?nL(n,e.font,p,i==="breakAll",0).lines:[]:y=n?n.split(`
@@ -36,5 +36,5 @@ import{inject as sa,ref as Me,getCurrentInstance as Po,computed as Te,onMounted
36
36
 
37
37
  `:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=de(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,c=u.getData(v),h=this._renderMode,d=t.positionDefault,p=$l([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,v),m=new op;y.marker=m.makeTooltipMarker("item",Do(y.color),h);var _=Xb(u.formatTooltip(f,!1,v)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?ex(x?F({valueFormatter:x},b):b,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=de(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(X(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ie(l),l.content=nr(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=t.positionDefault,d=$l(v,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new op;this._showOrMove(d,function(){var m=ie(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if(X(c)){var g=t.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=Yh(y.axisValue,h,g)),h=eI(h,n,!0)}else if(ae(c)){var _=q(function(S,x){S===this._ticket&&(v.setContent(x,f,t,p,l),this._updatePosition(t,l,o,s,v,n,u))},this);this._ticket=i,h=c(n,i,_)}else h=c;v.setContent(h,f,t,p,l),v.show(t,p),this._updatePosition(t,l,o,s,v,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var v=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ae(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:v.slice()})),U(a))n=Z(a[0],u),i=Z(a[1],f);else if(fe(a)){var p=a;p.width=v[0],p.height=v[1];var g=rt(p,{width:u,height:f});n=g.x,i=g.y,c=null,h=null}else if(X(a)&&l){var y=gK(a,d,v,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=dK(n,i,o,u,f,c?null:20,h?null:20);n=y[0],i=y[1]}if(c&&(n-=OA(c)?v[0]/2:c==="right"?v[0]:0),h&&(i-=OA(h)?v[1]/2:h==="bottom"?v[1]:0),YE(t)){var y=pK(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&D(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&D(u,function(c,h){var d=v[h]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&D(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){De.node||!a.getDom()||(Bu(this,"_updatePosition"),this._tooltipContent.dispose(),Bm("itemTooltip",a))},e.type="tooltip",e})(et);function $l(r,e,t){var a=e.ecModel,n;t?(n=new Le(t,a,a),n=new Le(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Le&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(n=new Le(o,n,a)))}return n}function kA(r,e){return r.dispatchAction||q(e.dispatchAction,e)}function dK(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function pK(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function gK(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function OA(r){return r==="center"||r==="middle"}function yK(r,e,t){var a=M0(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=nl(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=de(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function mK(r){be(Sf),r.registerComponentModel(eK),r.registerComponentView(hK),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},vt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},vt)}var _K=["rect","polygon","keep","clear"];function SK(r,e){var t=Ze(r?r.brush:[]);if(t.length){var a=[];D(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;U(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),bK(s),e&&!s.length&&s.push.apply(s,_K)}}function bK(r){var e={};D(r,function(t){e[t]=1}),r.length=0,D(e,function(t,a){r.push(a)})}var NA=D;function BA(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function $m(r,e,t){var a={};return NA(e,function(i){var o=a[i]=n();NA(r[i],function(s,l){if(Pt.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Pt(u),l==="opacity"&&(u=ie(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Pt(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function qE(r,e,t){var a;D(t,function(n){e.hasOwnProperty(n)&&BA(e[n])&&(a=!0)}),a&&D(t,function(n){e.hasOwnProperty(n)&&BA(e[n])?r[n]=ie(e[n]):delete r[n]})}function xK(r,e,t,a,n,i){var o={};D(r,function(v){var c=Pt.prepareVisualTypes(e[v]);o[v]=c});var s;function l(v){return l_(t,s,v)}function u(v,c){KI(t,s,v,c)}t.each(f);function f(v,c){s=v;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=a.call(n,v),p=e[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(v,l,u)}}}function wK(r,e,t,a){var n={};return D(r,function(i){var o=Pt.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(x){return l_(s,v,x)}function f(x,b){KI(s,v,x,b)}for(var v,c=s.getStore();(v=o.next())!=null;){var h=s.getRawDataItem(v);if(!(h&&h.visualMap===!1))for(var d=a!=null?c.get(l,v):v,p=t(d),g=e[p],y=n[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function TK(r){var e=r.brushType,t={point:function(a){return zA[e].point(a,t,r)},rect:function(a){return zA[e].rect(a,t,r)}};return t}var zA={lineX:VA(0),lineY:VA(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Qi(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Qi(a,n,i)||Qi(a,n+o,i)||Qi(a,n,i+s)||Qi(a,n+o,i+s)||ve.create(r).contain(l[0],l[1])||ru(n,i,n+o,i,a)||ru(n,i,n,i+s,a)||ru(n+o,i,n+o,i+s,a)||ru(n,i+s,n+o,i+s,a))return!0}}};function VA(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return Zl(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),Zl(s[0],o)||Zl(s[1],o)||Zl(o[0],s)||Zl(o[1],s)}}}}function Zl(r,e){return e[0]<=r&&r<=e[1]}var GA=["inBrush","outOfBrush"],Mg="__ecBrushSelect",Zm="__ecInBrushSelectEvent";function KE(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new w1(e.option,r);t.setInputRanges(e.areas,r)})}function CK(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),KE(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ie(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,v=[],c=[],h=[],d=!1;s||(n=u.throttleType,i=u.throttleDelay);var p=Y(o.areas,function(x){var b=LK[x.brushType],w=ue({boundingRect:b?b(x):void 0},x);return w.selectors=TK(w),w}),g=$m(o.option,GA,function(x){x.mappingMethod="fixed"});U(f)&&D(f,function(x){v[x]=1});function y(x){return f==="all"||!!v[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=h[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;d=d||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(T,M){T==="active"&&(c[M]=1)})}function S(x,b,w){if(!(!x.brushSelector||DK(o,b))&&(D(p,function(M){o.brushTargetManager.controlSeries(M,x,r)&&w.push(M),d=d||m(w)}),y(b)&&m(w))){var T=x.getData();T.each(function(M){FA(x,w,T,M)&&(c[M]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var T=h[b],M=x.getData(),C=y(b)?function(A){return c[A]?(w.dataIndex.push(M.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return FA(x,T,M,A)?(w.dataIndex.push(M.getRawIndex(A)),"inBrush"):"outOfBrush"};(y(b)?d:m(T))&&xK(GA,g,M,C)})}),AK(e,n,i,a,t)}function AK(r,e,t,a,n){if(n){var i=r.getZr();if(!i[Zm]){i[Mg]||(i[Mg]=MK);var o=vl(i,Mg,t,e);o(r,a)}}}function MK(r,e){if(!r.isDisposed()){var t=r.getZr();t[Zm]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[Zm]=!1}}function FA(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function DK(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(U(t)?me(t,e)<0:e!==t)}var LK={rect:function(r){return HA(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&HA(e)}};function HA(r){return new ve(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var IK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new X_(a.getZr())).on("brush",q(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){KE(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:ie(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:ie(n),$from:a})},e.type="brush",e})(et),PK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&qE(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=Y(t,function(a){return WA(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=WA(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:z.color.backgroundTint,borderColor:z.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:z.color.disabled},e})(Ae);function WA(r,e){return _e({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Le(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var RK=["rect","polygon","lineX","lineY","keep","clear"],EK=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return D(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:RK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e})(Vr);function kK(r){r.registerComponentView(IK),r.registerComponentModel(PK),r.registerPreprocessor(SK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,CK),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},vt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},vt),bs("brush",EK)}var OK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:z.size.m,backgroundColor:z.color.transparent,borderColor:z.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:z.color.primary},subtextStyle:{fontSize:12,color:z.color.quaternary}},e})(Ae),NK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=re(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Oe({style:qe(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=t.get("subtext"),h=new Oe({style:qe(s,{text:c,fill:s.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){Pc(d,"_"+t.get("target"))}),p&&h.on("click",function(){Pc(p,"_"+t.get("subtarget"))}),de(f).eventData=de(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=At(t,n),S=rt(m,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new xe({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e})(et);function BK(r){r.registerComponentModel(OK),r.registerComponentView(NK)}var UA=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],D(a,function(u,f){var v=wt(al(u),""),c;fe(u)?(c=ie(u),c.value=f):c=f,o.push(c),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new ir([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:z.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:z.color.secondary},data:[]},e})(Ae),jE=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=gi(UA.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:z.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:z.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:z.color.tertiary},itemStyle:{color:z.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:z.color.accent50,borderColor:z.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:z.color.accent50,borderColor:z.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:z.color.accent60},itemStyle:{color:z.color.accent60,borderColor:z.color.accent60},controlStyle:{color:z.color.accent70,borderColor:z.color.accent70}},progress:{lineStyle:{color:z.color.accent30},itemStyle:{color:z.color.accent40}},data:[]}),e})(UA);bt(jE,Xh.prototype);var zK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(et),VK=(function(r){N(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(pa),Dg=Math.PI,YA=we(),GK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return _t("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var n=t.get(["label","position"]),i=t.get("orient"),o=HK(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":X(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Dg/2},v=i==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*Dg/180;var m,_,S,x=c.get("position",!0),b=h&&c.get("showPlayBtn",!0),w=h&&c.get("showPrevBtn",!0),T=h&&c.get("showNextBtn",!0),M=0,C=v;x==="left"||x==="bottom"?(b&&(m=[0,0],M+=g),w&&(_=[M,0],M+=g),T&&(S=[C-d,0],C-=g)):(b&&(m=[C-d,0],C-=g),w&&(_=[0,0],M+=g),T&&(S=[C-d,0],C-=g));var A=[M,C];return t.get("inverse")&&A.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:A,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Bt(),l=o.x,u=o.y+o.height;Ha(s,s,[-l,-u]),di(s,s,-Dg/2),Ha(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=t.labelPosOpt;if(p==null||X(p)){var g=p==="+"?0:1;_(h,v,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(h,v,f,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=FK(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new VK("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new ne;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new gt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:F({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new gt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ue({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=n.dataToCoord(u.value),v=s.getItemModel(u.value),c=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),d=v.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:q(o._changeTimeline,o,u.value)},g=$A(v,c,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),yo(g);var y=de(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],D(u,function(f){var v=f.tickValue,c=l.getItemModel(v),h=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Oe({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:q(o._changeTimeline,o,v),silent:!1,style:qe(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=qe(d),y.ensureState("progress").style=qe(p),a.add(y),yo(y),YA(y).dataIndex=v,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);c(t.nextBtnPosition,"next",q(this._changeTimeline,this,v?"-":"+")),c(t.prevBtnPosition,"prev",q(this._changeTimeline,this,v?"+":"-")),c(t.playPosition,f?"stop":"play",q(this._handlePlayClick,this,!f),!0);function c(h,d,p,g){if(h){var y=fa(re(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=WK(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),yo(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=q(u._handlePointerDrag,u),v.ondragend=q(u._handlePointerDragend,u),ZA(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){ZA(v,u._progressLine,s,n,i)}};this._currentPointer=$A(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=Wr(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return ia(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<n&&(n=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",YA(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(zK);function FK(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Ys({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new m_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Sn}}function HK(r,e){return rt(r.getBoxLayoutParams(),At(r,e).refContainer,r.get("padding"))}function WK(r,e,t,a){var n=a.style,i=lf(r.get(["controlStyle",e]),a||{},new ve(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function $A(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=St(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),a=_e({rectHover:!0,z2:100},a,!0);var u=cl(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=zo(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var v=r.get("symbolRotate");return a.rotation=(v||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function ZA(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function UK(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),ue({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function YK(r){var e=r&&r.timeline;U(e)||(e=e?[e]:[]),D(e,function(t){t&&$K(t)})}function $K(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),XA(r),ro(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});ro(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!ro(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}D(r.data||[],function(n){fe(n)&&!U(n)&&(!ro(n,"value")&&ro(n,"name")&&(n.value=n.name),XA(n))})}function XA(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};D(a,function(o,s){!i[s]&&!ro(n,s)&&(n[s]=o)}),t.label&&!ro(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function ro(r,e){return r.hasOwnProperty(e)}function ZK(r){r.registerComponentModel(jE),r.registerComponentView(GK),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),UK(r),r.registerPreprocessor(YK)}function A1(r,e){if(!r)return!1;for(var t=U(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Ov(r){xo(r,"label",["show"])}var Nv=we(),Za=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(De.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Nv(s)[o];if(!l||!l.data){Nv(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&Ov(l),D(l.data,function(f){f instanceof Array?(Ov(f[0]),Ov(f[1])):Ov(f)}),u=this.createMarkerModelFromSeries(l,this,a),F(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Nv(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return _t("section",{header:this.name,blocks:[_t("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=Xh.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return Nv(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Ae);bt(Za,Xh.prototype);var XK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(Za);function Xm(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function qK(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Bv(r,e,t,a,n,i,o){var s=[],l=li(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,f=fh(e,u,r),v=e.hostModel,c=v.indicesOfNearest(t,u,f)[0];s[i]=e.get(a,c),s[o]=e.get(u,c);var h=e.get(n,c),d=Ra(e.get(n,c));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var zv={min:ye(Bv,"min"),max:ye(Bv,"max"),average:ye(Bv,"average"),median:ye(Bv,"median")};function Qu(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!qK(e)&&!U(e.coord)&&U(n)){var i=JE(e,t,a,r);if(e=ie(e),e.type&&zv[e.type]&&i.baseAxis&&i.valueAxis){var o=me(n,i.baseAxis.dim),s=me(n,i.valueAxis.dim),l=zv[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!U(n)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&zv[e.type]){var f=a.getOtherAxis(u);f&&(e.value=fh(t,t.mapDimension(f.dim),e.type))}}else for(var v=e.coord,c=0;c<2;c++)zv[v[c]]&&(v[c]=fh(t,t.mapDimension(n[c]),v[c]));return e}}function JE(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(KK(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function KK(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function ef(r,e){return r&&r.containData&&e.coord&&!Xm(e)?r.containData(e.coord):!0}function jK(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Xm(e)&&!Xm(t)?r.containZone(e.coord,t.coord):!0}function QE(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return ai(o,e[i])}:function(t,a,n,i){return ai(t.value,e[i])}}function fh(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Lg=we(),M1=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=te()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Lg(s).keep=!1}),a.eachSeries(function(s){var l=Za.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Lg(s).keep&&i.group.remove(s.group)}),JK(a,o,this.type)},e.prototype.markKeep=function(t){Lg(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;D(t,function(i){var o=Za.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?pL(l):O0(l))})}})},e.type="marker",e})(et);function JK(r,e,t){r.eachSeries(function(a){var n=Za.getMarkerModelFromSeries(a,t),i=e.get(a.id);if(n&&i&&i.group){var o=Mo(n),s=o.z,l=o.zlevel;Wh(i.group,s,l)}})}function qA(r,e,t){var a=e.coordinateSystem,n=t.getWidth(),i=t.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,v=u?o?o.height:0:i,c=u&&o?o.x:0,h=u&&o?o.y:0,d,p=Z(l.get("x"),f)+c,g=Z(l.get("y"),v)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(e.getMarkerPosition)d=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);d=a.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var QK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Za.getMarkerModelFromSeries(i,"markPoint");o&&(qA(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new gf),v=ej(o,t,a);a.setData(v),qA(a.getData(),t,i),v.each(function(c){var h=v.getItemModel(c),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ae(d)||ae(p)||ae(g)||ae(y)){var _=a.getRawValue(c),S=a.getDataParams(c);ae(d)&&(d=d(_,S)),ae(p)&&(p=p(_,S)),ae(g)&&(g=g(_,S)),ae(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=cf(l,"color");x.fill||(x.fill=w),v.setItemVisual(c,{z2:re(b,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){de(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e})(M1);function ej(r,e,t){var a;r?a=Y(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return F(F({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new ir(a,t),i=Y(t.get("data"),ye(Qu,e));r&&(i=Fe(i,ye(ef,r)));var o=QE(!!r,a);return n.initData(i,null,o),n}function tj(r){r.registerComponentModel(XK),r.registerComponentView(QK),r.registerPreprocessor(function(e){A1(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var rj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(Za),Vv=we(),aj=function(r,e,t,a){var n=r.getData(),i;if(U(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=Wt(a.yAxis,a.xAxis);else{var u=JE(a,n,e,r);s=u.valueAxis;var f=A2(n,u.valueDataDim);l=fh(n,f,o)}var v=s.dim==="x"?0:1,c=1-v,h=ie(a),d={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,d.coord[c]=1/0;var p=t.get("precision");p>=0&&Ee(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[v]=d.coord[v]=l,i=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Qu(r,i[0]),Qu(r,i[1]),F({},i[2])];return g[2].type=g[2].type||null,_e(g[2],g[0]),_e(g[2],g[1]),g};function vh(r){return!isNaN(r)&&!isFinite(r)}function KA(r,e,t,a){var n=1-r,i=a.dimensions[r];return vh(e[n])&&vh(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function nj(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(KA(1,t,a,r)||KA(0,t,a,r)))return!0}return ef(r,e[0])&&ef(r,e[1])}function Ig(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=Z(o.get("x"),n.getWidth()),u=Z(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,v=r.get(f[0],e),c=r.get(f[1],e);s=i.dataToPoint([v,c])}if(ui(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;vh(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):vh(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var ij=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Za.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Vv(o).from,u=Vv(o).to;l.each(function(f){Ig(l,f,!0,i,n),Ig(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new $_);this.group.add(f.group);var v=oj(o,t,a),c=v.from,h=v.to,d=v.line;Vv(a).from=c,Vv(a).to=h,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:re(w,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.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:b})}),f.updateData(d),v.line.eachItemGraphicEl(function(S){de(S).dataModel=a,S.traverse(function(x){de(x).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);Ig(S,x,b,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=cf(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:re(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:re(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:re(w.get("symbolSize"),g[b?0:1]),symbol:re(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})(M1);function oj(r,e,t){var a;r?a=Y(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return F(F({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new ir(a,t),i=new ir(a,t),o=new ir([],t),s=Y(t.get("data"),ye(aj,e,r,t));r&&(s=Fe(s,ye(nj,r)));var l=QE(!!r,a);return n.initData(Y(s,function(u){return u[0]}),null,l),i.initData(Y(s,function(u){return u[1]}),null,l),o.initData(Y(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function sj(r){r.registerComponentModel(rj),r.registerComponentView(ij),r.registerPreprocessor(function(e){A1(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var lj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(Za),Gv=we(),uj=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Qu(r,n),s=Qu(r,i),l=o.coord,u=s.coord;l[0]=Wt(l[0],-1/0),l[1]=Wt(l[1],-1/0),u[0]=Wt(u[0],1/0),u[1]=Wt(u[1],1/0);var f=y0([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function ch(r){return!isNaN(r)&&!isFinite(r)}function jA(r,e,t,a){var n=1-r;return ch(e[n])&&ch(t[n])}function fj(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return ui(r,"cartesian2d")?t&&a&&(jA(1,t,a)||jA(0,t,a))?!0:jK(r,n,i):ef(r,n)||ef(r,i)}function JA(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=Z(o.get(t[0]),n.getWidth()),u=Z(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),v=r.getValues(["x1","y1"],e),c=i.clampData(f),h=i.clampData(v),d=[];t[0]==="x0"?d[0]=c[0]>h[0]?v[0]:f[0]:d[0]=c[0]>h[0]?f[0]:v[0],t[1]==="y0"?d[1]=c[1]>h[1]?v[1]:f[1]:d[1]=c[1]>h[1]?f[1]:v[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(ui(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);ch(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):ch(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var QA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],vj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Za.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Y(QA,function(v){return JA(s,l,v,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ne});this.group.add(f.group),this.markKeep(f);var v=cj(o,t,a);a.setData(v),v.each(function(c){var h=Y(QA,function(C){return JA(v,c,C,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(v.get("x0",c)),d.parse(v.get("x1",c))],_=[p.parse(v.get("y0",c)),p.parse(v.get("y1",c))];Wr(m),Wr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;v.setItemLayout(c,{points:h,allClipped:x});var b=v.getItemModel(c),w=b.getModel("itemStyle").getItemStyle(),T=b.get("z2"),M=cf(l,"color");w.fill||(w.fill=M,X(w.fill)&&(w.fill=yc(w.fill,.4))),w.stroke||(w.stroke=M),v.setItemVisual(c,"style",w),v.setItemVisual(c,"z2",re(T,0))}),v.diff(Gv(f).data).add(function(c){var h=v.getItemLayout(c),d=v.getItemVisual(c,"z2");if(!h.allClipped){var p=new jt({z2:re(d,0),shape:{points:h.points}});v.setItemGraphicEl(c,p),f.group.add(p)}}).update(function(c,h){var d=Gv(f).data.getItemGraphicEl(h),p=v.getItemLayout(c),g=v.getItemVisual(c,"z2");p.allClipped?d&&f.group.remove(d):(d?Be(d,{z2:re(g,0),shape:{points:p.points}},a,c):d=new jt({shape:{points:p.points}}),v.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var h=Gv(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var d=v.getItemModel(h),p=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),Rt(c,Ct(d),{labelFetcher:a,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:X(p.fill)?yc(p.fill,1):z.color.neutral99}),Tt(c,d),tt(c,null,null,d.get(["emphasis","disabled"])),de(c).dataModel=a}),Gv(f).data=v,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})(M1);function cj(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Y(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return F(F({},v),{name:u,ordinalMeta:null})});n=Y(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new ir(n,t)}else n=[{name:"value",type:"float"}],a=new ir(n,t);var s=Y(t.get("data"),ye(uj,e,r,t));r&&(s=Fe(s,ye(fj,r)));var l=r?function(u,f,v,c){var h=u.coord[Math.floor(c/2)][c%2];return ai(h,n[c])}:function(u,f,v,c){return ai(u.value,n[c])};return a.initData(s,null,l),a.hasItemOption=!0,a}function hj(r){r.registerComponentModel(lj),r.registerComponentView(vj),r.registerPreprocessor(function(e){A1(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var dj=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},qm=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),U(a)&&D(a,function(i,o){X(i)&&(i={type:i}),a[o]=_e(i,dj(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,c=v.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(c)),c.length?a=a.concat(c):f=!0}else f=!0;f&&A0(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=te(),s=Y(i,function(l){return(X(l)||Ee(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Le(l,this,this.ecModel))},this);this._data=Fe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;D(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;D(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;D(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&me(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:z.size.m,align:"auto",backgroundColor:z.color.transparent,borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:z.color.disabled,inactiveBorderColor:z.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:z.color.tertiary,borderWidth:1,borderColor:z.color.border},emphasis:{selectorLabel:{show:!0,color:z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Ae),cs=ye,Km=D,Fv=ne,ek=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Fv),this.group.add(this._selectorGroup=new Fv),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=At(t,n).refContainer,v=t.getBoxLayoutParams(),c=t.get("padding"),h=rt(v,f,c),d=this.layoutInner(t,o,h,i,l,u),p=rt(ue({width:d.width,height:d.height},v),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=HE(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=te(),v=a.get("selectedMode"),c=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Km(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
38
38
  `)){var m=new Fv;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,t,x,w,b,v,i);T.on("click",cs(eM,y,null,i,h)).on("mouseover",cs(jm,_.name,null,i,h)).on("mouseout",cs(Jm,_.name,null,i,h)),n.ssr&&T.eachChild(function(M){var C=de(M);C.seriesIndex=_.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),c&&T.eachChild(function(M){g.packEventData(M,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(M){var C=this;if(!f.get(y)&&M.legendVisualProvider){var A=M.legendVisualProvider;if(!A.containName(y))return;var I=A.indexOfName(y),L=A.getItemVisual(I,"style"),P=A.getItemVisual(I,"legendIcon"),R=dr(L.fill);R&&R[3]===0&&(R[3]=.2,L=F(F({},L),{fill:za(R,"rgba")}));var E=this._createItem(M,y,p,d,a,t,{},L,P,v,i);E.on("click",cs(eM,null,y,i,h)).on("mouseover",cs(jm,null,y,i,h)).on("mouseout",cs(Jm,null,y,i,h)),n.ssr&&E.eachChild(function(O){var k=de(O);k.seriesIndex=M.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),c&&E.eachChild(function(O){C.packEventData(O,a,M,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(t,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};de(t).eventData=s},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Km(t,function(u){var f=u.type,v=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v);var c=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Rt(v,{normal:c,emphasis:h},{defaultText:u.title}),yo(v)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,v,c){var h=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=pj(f,i,l,u,h,g,c),x=new Fv,b=i.getModel("textStyle");if(ae(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;x.add(gj({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,M=s,C=o.get("formatter"),A=a;X(C)&&C?A=C.replace("{name}",a??""):ae(C)&&(A=C(a));var I=g?b.getTextColor():i.get("inactiveColor");x.add(new Oe({style:qe(b,{text:A,x:T,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new xe({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Tn({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(R){R.silent=!0}),L.silent=!v,this.getContentGroup().add(x),yo(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();_o(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){_o("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:v[p]+=c[g]+d,h[1-p]+=f[y]/2-c[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-p]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(et);function pj(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Km(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:Us(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function gj(r){var e=r.icon||"roundRect",t=St(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=z.color.neutral00,t.style.lineWidth=2),t}function eM(r,e,t,a){Jm(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),jm(r,e,t,a)}function tk(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function jm(r,e,t,a){tk(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function Jm(r,e,t,a){tk(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function yj(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function Xl(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),tM(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){D(n,function(l,u){s[l?"select":"unSelect"](u)}),tM(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function tM(r,e){var t=e||{};return D(r.getData(),function(a){var n=a.get("name");if(!(n===`
39
- `||n==="")){var i=r.isSelected(n);J(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function mj(r){r.registerAction("legendToggleSelect","legendselectchanged",ye(Xl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ye(Xl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ye(Xl,"inverseSelect")),r.registerAction("legendSelect","legendselected",ye(Xl,"select")),r.registerAction("legendUnSelect","legendunselected",ye(Xl,"unSelect"))}function rk(r){r.registerComponentModel(qm),r.registerComponentView(ek),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,yj),r.registerSubTypeDefaulter("legend",function(){return"plain"}),mj(r)}var _j=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=No(t);r.prototype.init.call(this,t,a,n),rM(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),rM(this,this.option,t)},e.type="legend.scroll",e.defaultOption=gi(qm.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:z.color.accent50,pageIconInactiveColor:z.color.accent10,pageIconSize:15,pageTextStyle:{color:z.color.tertiary},animationDurationUpdate:800}),e})(qm);function rM(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Ya(e,t,{type:"box",ignoreSize:!!n})}var aM=ne,Pg=["width","height"],Rg=["x","y"],Sj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new aM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new aM)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,v=a.get("pageIconSize",!0),c=U(v)?v:[v,v];d("pagePrev",0);var h=a.getModel("pageTextStyle");f.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=lf(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:q(u._pageGo,u,y,a,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Pg[u],v=Rg[u],c=Pg[1-u],h=Rg[1-u];o&&_o("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ie(n);o&&(y[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,c,h,v);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[v]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;_o(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),_o("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=re(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var x={x:0,y:0};if(x[o]=p?n[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),v.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],v.setClipPath(new xe({shape:b})),v.__rectSize=b[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Be(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=a[v]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",X(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Pg[o],l=Rg[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e})(ek);function bj(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function xj(r){be(rk),r.registerComponentModel(_j),r.registerComponentView(Sj),bj(r)}function wj(r){be(rk),be(xj)}var Tj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=gi(Ju.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Ju),D1=we();function Cj(r,e,t){D1(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function Aj(r,e){for(var t=D1(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||ak(t,o))}}}function ak(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Mj(r,e){var t={model:e,containsPoint:ye(Lj,e),dispatchAction:ye(Dj,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Fo(r.getZr());return D(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Dj(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Lj(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function Ij(r,e,t){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function Pj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=D1(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=te());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=VE(i);D(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Mj(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=te());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){ak(n,i);return}var f=Ij(l,i,t);o.enable(f.controlType,f.opt),vl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Rj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Cj(n,t,{pan:q(Eg.pan,this),zoom:q(Eg.zoom,this),scrollMove:q(Eg.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Aj(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(S1),Eg={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=kg[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(fi(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:nM(function(r,e,t,a,n,i){var o=kg[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:nM(function(r,e,t,a,n,i){var o=kg[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function nM(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(fi(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var kg={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function nk(r){b1(r),r.registerComponentModel(Tj),r.registerComponentView(Rj),Pj(r)}var Ej=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=gi(Ju.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:z.color.accent10,borderRadius:0,backgroundColor:z.color.transparent,dataBackground:{lineStyle:{color:z.color.accent30,width:.5},areaStyle:{color:z.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:z.color.accent40,width:.5},areaStyle:{color:z.color.accent20,opacity:.3}},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:z.color.neutral00,borderColor:z.color.accent20},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:z.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:z.color.tertiary},brushSelect:!0,brushStyle:{color:z.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:z.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(Ju),ql=xe,kj=1,Og=30,Oj=7,Kl="horizontal",iM="vertical",Nj=5,Bj=["line","bar","candlestick","scatter"],zj={easing:"cubicOut",duration:100,delay:0},Vj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=q(this._onBrush,this),this._onBrushEnd=q(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),vl(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Bu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new ne;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?Oj:0,o=At(t,a).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Kl?{right:o.width-s.x-s.width,top:o.height-Og-l-i,width:s.width,height:Og}:{right:l,top:s.y,width:Og,height:s.height},f=No(t.option);D(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=rt(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===iM&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Kl&&!o?{scaleY:l?1:-1,scaleX:1}:n===Kl&&o?{scaleY:l?1:-1,scaleX:-1}:n===iM&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new ql({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ql({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(v[1]-v[0]),S=t.thisAxis.type==="time",x=-m,b=Math.round(o.count()/a[0]),w;o.each([t.thisDim,l],function(I,L,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+I-v[0])*_:x+m;var R=L==null||isNaN(L)||L==="",E=R?0:Ge(L,c,d,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,E]),y.push([x,E])),w=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function M(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),P=new ne,R=new jt({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new Ut({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(E),P}for(var C=0;C<3;C++){var A=M(C===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!n&&!(a!==!0&&me(Bj,u.get("type"))<0)){var f=i.getComponent(jn(o),s).axis,v=Gj(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),c=a.filler=new ql({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new ql({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:kj,fill:z.color.transparent}})),D([0,1],function(_){var S=l.get("handleIcon");!kc[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=St(S,-1,0,2,2,null,!0);x.attr({cursor:Fj(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 b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Z(w,this._size[1]),this._handleWidth=b.width/b.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(),yo(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var M=l.getModel("textStyle"),C=l.get("handleLabel")||{},A=C.show||!1;t.add(i[_]=new Oe({silent:!0,invisible:!A,style:qe(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=c;if(v){var d=Z(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new xe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=St(l.get("moveHandleIcon"),-g/2,-g/2,g,g,z.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new xe({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:q(this._onDragMove,this,"all"),ondragstart:q(this._showDataInfo,this,!0),ondragend:q(this._onDragEnd,this),onmouseover:q(this._showDataInfo,this,!0),onmouseout:q(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Ge(t[0],[0,100],a,!0),Ge(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];fi(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Ge(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ge(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Wr([Ge(i[0],o,l,!0),Ge(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=Wr(n.slice()),o=this._size;D([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],c=v.getClipPath();c||(c=new xe,v.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,v=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(v[0],u),this._formatLabel(v[1],u)]}}var c=Wr(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(d){var p=mo(n.handles[d].parent,this.group),g=Hh(d===0?"right":"left",p),y=this._handleWidth/2+Nj,m=ia([c[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Kl?"middle":g,align:o===Kl?g:"center",text:s[d]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return ae(i)?i(t,s):X(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,pn(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ia([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new se(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();fi(0,l,o,0,u.minSpan!=null?Ge(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ge(u.maxSpan,s,o,!0):null),this._range=Wr([Ge(l[0],o,s,!0),Ge(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(pn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ql({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?zj:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=VE(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(S1);function Gj(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Fj(r){return r==="vertical"?"ns-resize":"ew-resize"}function ik(r){r.registerComponentModel(Ej),r.registerComponentView(Vj),b1(r)}function Hj(r){be(nk),be(ik)}var ok={get:function(r,e,t){var a=ie((Wj[r]||{})[e]);return t&&U(a)?a[a.length-1]:a}},Wj={color:{active:["#006edd","#e0ffff"],inactive:[z.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},oM=Pt.mapVisual,Uj=Pt.eachVisual,Yj=U,sM=D,$j=Wr,Zj=Ge,hh=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&qE(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=q(t,this),this.controllerVisuals=$m(this.option.controller,a,t),this.targetVisuals=$m(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,a=this.option.seriesIndex;a==null&&t==null&&(a="all");var n=nl(this.ecModel,"series",{index:a,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Y(n,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,a){D(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(t)&&(t=t.slice(),u=!0);var f=a?t:u?[v(t[0]),v(t[1])]:v(t);if(X(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ae(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=$j([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});_e(i,n),_e(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){Yj(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},sM(d,function(g,y){if(Pt.isValidType(y)){var m=ok.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";sM(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&ie(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ie(h)||(s?m[0]:[m[0],m[0]])),_.symbol=oM(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;Uj(S,function(b){b>x&&(x=b)}),_.symbolSize=oM(S,function(b){return Zj(b,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:z.color.transparent,borderColor:z.color.borderTint,contentColor:z.color.theme[0],inactiveColor:z.color.disabled,borderWidth:0,padding:z.size.m,textGap:10,precision:0,textStyle:{color:z.color.secondary}},e})(Ae),lM=[20,140],Xj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=lM[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=lM[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Wr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent(),i=re(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=t)&&(i&&a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=uM(this,"outOfRange",this.getExtent()),n=uM(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:t(h,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var v=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=gi(hh.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:z.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:z.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:z.color.shadow}}),e})(hh);function uM(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var sk=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=uf(a.get("padding")||0),i=t.getBoundingRect();t.add(new xe({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var v=o.controllerVisuals[i||o.getValueState(t)],c=Pt.prepareVisualTypes(v);return D(c,function(h){var d=v[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=v.__alphaForOpacity),Pt.dependsOn(h,a)&&d&&d.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api,i=At(a,n).refContainer;$h(t,a.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(et),fM=[["left","right","width"],["top","bottom","height"]];function lk(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=fM[o],l=[0,null,10],u={},f=0;f<3;f++)u[fM[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var v=[["x","width",3],["y","height",0]][o],c=rt(u,i,a.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+c[v[1]]*.5<i[v[1]]*.5?0:1]}function vc(r,e){return D(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Ca=Ge,qj=D,vM=Math.min,Ng=Math.max,Kj=12,jj=6,Jj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=q(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Oe({style:qe(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(c==="horizontal"?"middle":v),align:h.get("align")||(c==="horizontal"?v:"center"),text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=lk(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new ne;u.add(f),f.add(n.outOfRange=cM()),f.add(n.inRange=cM(null,s?dM(this._orient):null,q(this._dragHandle,this,"all",!1),q(this._dragHandle,this,"all",!0))),f.setClipPath(new xe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("国"),c=Ng(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,c,o),this._createHandle(a,u,1,i,c,o)),this._createIndicator(a,u,i,c,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=q(this._dragHandle,this,n,!1),u=q(this._dragHandle,this,n,!0),f=fa(t.get("handleSize"),i[0]),v=St(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=dM(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){pn(y.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),so(v,!0),a.add(v);var h=this.visualMapModel.textStyleModel,d=new Oe({cursor:c,draggable:!0,drift:l,onmousemove:function(y){pn(y.event)},ondragend:u,style:qe(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=fa(t.get("indicatorSize"),n[0]),l=St(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Vt){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,c=new Oe({silent:!0,invisible:!0,style:qe(v,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?i/2:jj)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():hM(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Ca(a[0],n,i,!0),Ca(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];fi(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[Ca(i[0],o,s,!0),Ca(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new ol(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new ne(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);qj([0,1],function(v){var c=o[v];c.setStyle("fill",a.handlesColor[v]),c.y=t[v];var h=Ca(t[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=ia(n.handleLabelPoints[v],mo(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=Ca(t,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=ia(f.indicatorLabelPoint,mo(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,M),_.animateTo(T,M)}else v.attr(w),_.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var A=0;A<C.length;A++)this.api.enterBlur(C[A])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=vM(Ng(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=vM(Ng(o[0],t),o[1]);var l=Qj(n,s,o),u=[t-l,t+l],f=Ca(t,o,s,!0),v=[Ca(u[0],o,s,!0),Ca(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,h=[];(a||hM(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var d=Zz(c,h);this._dispatchHighDown("downplay",vc(d[0],n)),this._dispatchHighDown("highlight",vc(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(uo(t.target,function(l){var u=de(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",vc(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=mo(a,i?null:this.group);return U(t)?ia(t,o,n):Hh(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(sk);function cM(r,e,t,a){return new jt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){pn(n.event)},ondragend:a})}function Qj(r,e,t){var a=Kj/2,n=r.get("hoverLinkDataSize");return n&&(a=Ca(n,e,t,!0)/2),a}function hM(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function dM(r){return r==="vertical"?"ns-resize":"ew-resize"}var eJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},tJ=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},rJ=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(wK(a.stateList,a.targetVisuals,q(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(q(aJ,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function aJ(r,e,t,a){for(var n=e.targetVisuals[a],i=Pt.prepareVisualTypes(n),o={color:cf(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,v,c)}return o.color;function v(h){return o[h]}function c(h,d){o[h]=d}}var pM=D;function nJ(r){var e=r&&r.visualMap;U(e)||(e=e?[e]:[]),pM(e,function(t){if(t){hs(t,"splitList")&&!hs(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&U(a)&&pM(a,function(n){fe(n)&&(hs(n,"start")&&!hs(n,"min")&&(n.min=n.start),hs(n,"end")&&!hs(n,"max")&&(n.max=n.end))})}})}function hs(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var gM=!1;function uk(r){gM||(gM=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(eJ,tJ),D(rJ,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(nJ))}function fk(r){r.registerComponentModel(Xj),r.registerComponentView(Jj),uk(r)}var iJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],oJ[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ie(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=ie(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=Pt.listVisualTypes(),i=this.isCategory();D(t.pieces,function(s){D(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),D(a,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&D(this.stateList,function(f){(t[f]||(t[f]={}))[l]=ok.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=ie(t)},e.prototype.getValueState=function(t){var a=Pt.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Pt.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=t(c,v);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=gi(hh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(hh),oJ={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),BS(r),D(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;D(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),yM(e,r)},pieces:function(r){var e=this.option;D(e.pieces,function(t,a){fe(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],v=0;v<2;v++){for(var c=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&o[v]==null;h++)o[v]=t[c[h]],s[v]=l[h],f[v]=h===2;o[v]==null&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Pt.retrieveVisuals(t),r.push(n)},this),yM(e,r),BS(r),D(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function yM(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var sJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Wt(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),D(l.viewPieceList,function(c){var h=c.piece,d=new ne;d.onclick=q(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Oe({style:qe(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:re(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),_o(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:vc(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return lk(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new ne,l=this.visualMapModel.textStyleModel;s.add(new Oe({style:qe(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=Y(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=St(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=ie(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(sk);function vk(r){r.registerComponentModel(iJ),r.registerComponentView(sJ),uk(r)}function lJ(r){be(fk),be(vk)}var uJ=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:NL(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var a=t.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})(),fJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,a){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new uJ(this);if(this._target=null,this.ecModel.eachSeries(function(n){HT(n,null)}),this.shouldShow()){var a=this.getTarget();HT(a.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:z.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:z.color.neutral30,borderColor:z.color.neutral40,opacity:.3},z:10},e})(Ae),vJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new Ho),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||z.color.neutral00);var l=At(t,n).refContainer,u=rt(iI(t,!0),l),f=s.lineWidth||0,v=this._contentRect=Ao(u.clone(),f/2,!0,!0),c=new ne;i.add(c),c.setClipPath(new xe({shape:v.plain()}));var h=this._targetGroup=new ne;c.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new xe({style:s,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.add(this._windowRect=new xe({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),_M(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),_M(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=t.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=rt({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var a=this._bridgeRendered;a&&a.renderVersion===t.renderVersion&&(a.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=ua([],t.targetTrans),n=Ba([],this._coordSys.transform,a);this._transThisToTarget=ua([],n);var i=t.viewportRect;i?i=i.clone():i=new ve(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(ue({r:s},i))}},e.prototype._resetRoamController=function(t){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new Fo(n.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",q(this._onPan,this)).on("zoom",q(this._onZoom,this))},e.prototype._onPan=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ct([],[t.oldX,t.oldY],a),i=ct([],[t.oldX-t.dx,t.oldY-t.dy],a);this._api.dispatchAction(mM(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ct([],[t.originX,t.originY],a);this._api.dispatchAction(mM(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var a=t.getTarget().baseMapProvider;return!!a},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(et);function mM(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:t};return a[r.mainType+"Id"]=r.id,F(a,e),a}function _M(r,e){var t=Mo(r);Wh(e.group,t.z,t.zlevel)}function cJ(r){r.registerComponentModel(fJ),r.registerComponentView(vJ)}var hJ={label:{enabled:!0},decal:{show:!1}},SM=we(),dJ={};function pJ(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=ie(hJ);_e(a.label,r.getLocaleModel().get("aria"),!1),_e(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var v=te();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=v.get(c.type);h||(h={},v.set(c.type,h)),SM(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(ae(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var m=Vy(c.ecModel,c.name,dJ,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=c.getRawData(),p={},g=SM(c).scope;h.each(function(x){var b=h.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=Vy(c.ecModel,w,g,y),M=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(M,T))})}function S(x,b){var w=x?F(F({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),v=t.getModel("label");if(v.option=ue(v.option,f),!!v.get("enabled")){if(u.setAttribute("role","img"),v.get("description")){u.setAttribute("aria-label",v.get("description"));return}var c=r.getSeriesCount(),h=v.get(["data","maxCount"])||10,d=v.get(["series","maxCount"])||10,p=Math.min(c,d),g;if(!(c<1)){var y=s();if(y){var m=v.get(["general","withTitle"]);g=o(m,{title:y})}else g=v.get(["general","withoutTitle"]);var _=[],S=c>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(T,M){if(M<p){var C=void 0,A=T.get("name"),I=A?"withName":"withoutName";C=c>1?v.get(["series","multiple",I]):v.get(["series","single",I]),C=o(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var P=v.get(["data","partialData"]);C+=o(P,{displayCnt:h})}else C+=v.get(["data","allData"]);for(var R=v.get(["data","separator","middle"]),E=v.get(["data","separator","end"]),O=v.get(["data","excludeDimensionId"]),k=[],B=0;B<L.count();B++)if(B<h){var V=L.getName(B),H=O?Fe(L.getValues(B),function($,j){return me(O,j)===-1}):L.getValues(B),W=v.get(["data",V?"withName":"withoutName"]);k.push(o(W,{name:V,value:H.join(R)}))}C+=k.join(R)+E,_.push(C)}});var x=v.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!X(u))return u;var v=u;return D(f,function(c,h){v=v.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),c)}),v}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function gJ(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},D(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function yJ(r){r.registerPreprocessor(gJ),r.registerVisual(r.PRIORITY.VISUAL.ARIA,pJ)}var bM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mJ=(function(){function r(e){var t=this._condVal=X(e)?new RegExp(e):iB(e)?e:null;if(t==null){var a="";Ve(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return X(t)?this._condVal.test(e):Ee(t)?this._condVal.test(e+""):!1},r})(),_J=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),SJ=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),bJ=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),xJ=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),wJ=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r})();function L1(r,e){if(r===!0||r===!1){var t=new _J;return t.value=r,t}var a="";return ck(r)||Ve(a),r.and?xM("and",r,e):r.or?xM("or",r,e):r.not?TJ(r,e):CJ(r,e)}function xM(r,e,t){var a=e[r],n="";U(a)||Ve(n),a.length||Ve(n);var i=r==="and"?new SJ:new bJ;return i.children=Y(a,function(o){return L1(o,t)}),i.children.length||Ve(n),i}function TJ(r,e){var t=r.not,a="";ck(t)||Ve(a);var n=new xJ;return n.child=L1(t,e),n.child||Ve(a),n}function CJ(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Ie(r),o=r.parser,s=o?MI(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=J(bM,u)?bM[u]:u,v=r[u],c=s?s(v):v,h=lF(f,c)||f==="reg"&&new mJ(c);h||Ve(t),n.push(h)}}n.length||Ve(t);var d=new wJ;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=n,d}function ck(r){return fe(r)&&!Xt(r)}var AJ=(function(){function r(e,t){this._cond=L1(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function MJ(r,e){return new AJ(r,e)}var DJ={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=MJ(r.config,{valueGetterAttrMap:te({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||Ve(l);var f=e.getDimensionInfo(u);return f||Ve(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},LJ={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=Ze(t);n.length||Ve(a);var i=[];D(n,function(f){var v=f.dimension,c=f.order,h=f.parser,d=f.incomparable;if(v==null&&Ve(a),c!=="asc"&&c!=="desc"&&Ve(a),d&&d!=="min"&&d!=="max"){var p="";Ve(p)}if(c!=="asc"&&c!=="desc"){var g="";Ve(g)}var y=e.getDimensionInfo(v);y||Ve(a);var m=h?MI(h):null;h&&!m&&Ve(a),i.push({dimIdx:y.index,parser:m,comparator:new LI(c,d)})});var o=e.sourceFormat;o!==zt&&o!==Dr&&Ve(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],d=e.retrieveValueFromItem(f,h.dimIdx),p=e.retrieveValueFromItem(v,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function IJ(r){r.registerTransform(DJ),r.registerTransform(LJ)}var PJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new EI(this),Jb(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Jb(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:oa},e})(Ae),RJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(et);function EJ(r){r.registerComponentModel(PJ),r.registerComponentView(RJ)}var wa=Ua.CMD;function Ls(r,e){return Math.abs(r-e)<1e-5}function Qm(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(L,P){n&&n.length>2&&a.push(n),n=[L,P]}function f(L,P,R,E){Ls(L,R)&&Ls(P,E)||n.push(L,P,R,E,R,E)}function v(L,P,R,E,O,k){var B=Math.abs(P-L),V=Math.tan(B/4)*4/3,H=P<L?-1:1,W=Math.cos(L),$=Math.sin(L),j=Math.cos(P),ce=Math.sin(P),Re=W*O+R,He=$*k+E,le=j*O+R,K=ce*k+E,ge=O*V*H,ee=k*V*H;n.push(Re-ge*$,He+ee*W,le+ge*ce,K-ee*j,le,K)}for(var c,h,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===wa.L||y===wa.C||y===wa.Q)&&(n=[s,l])),y){case wa.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case wa.L:c=e[g++],h=e[g++],f(i,o,c,h),i=c,o=h;break;case wa.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case wa.Q:c=e[g++],h=e[g++],d=e[g++],p=e[g++],n.push(i+2/3*(c-i),o+2/3*(h-o),d+2/3*(c-d),p+2/3*(h-p),d,p),i=d,o=p;break;case wa.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var M=!e[g++];c=Math.cos(w)*x+_,h=Math.sin(w)*b+S,m?(s=c,l=h,u(s,l)):f(i,o,c,h),i=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var C=(M?-1:1)*Math.PI/2,A=w;M?A>T:A<T;A+=C){var I=M?Math.max(A+C,T):Math.min(A+C,T);v(A,I,_,S,x,b)}break;case wa.R:s=i=e[g++],l=o=e[g++],c=s+e[g++],h=l+e[g++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case wa.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function e0(r,e,t,a,n,i,o,s,l,u){if(Ls(r,t)&&Ls(e,a)&&Ls(n,o)&&Ls(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=t-r,g=a-e,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var x=c*p+h*g,b=-c*y-h*m,w=_-x*x,T=S-b*b;if(w<v&&x>=0&&T<v&&b>=0){l.push(o,s);return}var M=[],C=[];oi(r,t,n,o,.5,M),oi(e,a,i,s,.5,C),e0(M[0],C[0],M[1],C[1],M[2],C[2],M[3],C[3],l,u),e0(M[4],C[4],M[5],C[5],M[6],C[6],M[7],C[7],l,u)}function kJ(r,e){var t=Qm(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],c=i[u++],h=i[u++],d=i[u++],p=i[u++];e0(s,l,f,v,c,h,d,p,o,e),s=d,l=p}a.push(o)}return a}function hk(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,v=t-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function wM(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),v=hk([l,u],f?0:1,e),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var d=(f?u:s)/v[h],p=0;p<v[h];p++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(h+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=a+c*h,g.r=a+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function OJ(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=hk([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*v,p[f]=d*h,p[s]=v,p[l]=h,p.x+=r.x,p.y+=r.y,t.push(p)}}function TM(r,e,t,a){return r*a-t*e}function NJ(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=TM(f,v,l,u);if(Math.abs(c)<1e-6)return null;var h=r-n,d=e-i,p=TM(h,d,f,v)/c;return p<0||p>1?null:new se(p*l+r,p*u+e)}function BJ(r,e,t){var a=new se;se.sub(a,t,e),a.normalize();var n=new se;se.sub(n,r,e);var i=n.dot(a);return i}function ds(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function zJ(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=NJ(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:BJ(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[c],p=[h],i=u.idx+1;i<=f.idx;i++)ds(d,r[i].slice());ds(d,h),ds(d,c);for(var i=f.idx+1;i<=u.idx+a;i++)ds(p,r[i%a].slice());return ds(p,c),ds(p,h),[{points:d},{points:p}]}function CM(r){var e=r.points,t=[],a=[];kh(e,t,a);var n=new ve(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new se,f=new se;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),zJ(e,u,f)}function dh(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);dh(r,i[0],n,a),dh(r,i[1],t-n,a)}return a}function VJ(r,e){for(var t=[],a=0;a<e;a++)t.push(B0(r));return t}function GJ(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function FJ(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function HJ(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":OJ(a,e,t),n=xe;break;case"sector":wM(a,e,t),n=Kt;break;case"circle":wM({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Kt;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Y(kJ(r.getUpdatedPathProxy(),o),function(y){return FJ(y)}),l=s.length;if(l===0)dh(CM,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,v=Y(s,function(y){var m=[],_=[];kh(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});for(var c=e,u=0;u<l;u++){var h=v[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(h.area/f*e);d<0||(dh(CM,{points:h.poly},d,t),c-=d)}}n=jt;break}if(!n)return VJ(r,e);for(var p=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),GJ(r,g),p.push(g)}return p}function WJ(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],c=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],x=o[h++];if(c<=0){v.push(g,y,m,_,S,x);continue}for(var b=Math.min(c,f-1)+1,w=1;w<=b;w++){var T=w/b;oi(d,g,m,S,T,n),oi(p,y,_,x,T,i),d=n[3],p=i[3],v.push(n[1],i[1],n[2],i[2],d,p),g=n[5],y=i[5],m=n[6],_=i[6]}c-=b-1}return o===r?[v,e]:[r,v]}function AM(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function UJ(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(t=WJ(l,u),f=t[0],v=t[1],a=f,n=v):(v=AM(n||l,l),f=l):(f=AM(a||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function MM(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;e+=v,t+=(s+u)*v,a+=(l+f)*v}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function YJ(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,v=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,d=r[h]-t[0],p=r[h+1]-t[1],g=e[c]-a[0],y=e[c+1]-a[1],m=g-d,_=y-p;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function $J(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function ZJ(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=MM(s),f=MM(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,d=1/0,p=[],g=s.length;i&&(s=$J(s));for(var y=YJ(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}v[0]=s[y]-u[0],v[1]=s[y+1]-u[1];for(var x=a/t,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),M=0,_=0;_<s.length;_+=2){var C=v[_],A=v[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,R=I*w+L*T;p[_]=P,p[_+1]=R;var E=P-C,O=R-A;M+=E*E+O*O}if(M<d){d=M,h=b;for(var k=0;k<p.length;k++)c[k]=p[k]}}n.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return n}function ph(r){return r.__isCombineMorphing}var dk="__mOriginal_";function gh(r,e,t){var a=dk+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function wu(r,e){var t=dk+e;r[t]&&(r[e]=r[t],r[t]=null)}function DM(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function pk(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=UJ(Qm(t),Qm(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&DM(i,s),l&&DM(o,l),gh(e,"updateTransform",{replace:u}),e.transform=null;var f=ZJ(i,o,10,Math.PI),v=[];gh(e,"buildPath",{replace:function(c){for(var h=e.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,x=y.fromCp,b=y.toCp,w=Math.sin(S),T=Math.cos(S);$v(p,x,b,h);for(var M=0;M<m.length;M+=2){var C=m[M],A=m[M+1],I=_[M],L=_[M+1],P=C*d+I*h,R=A*d+L*h;v[M]=P*T-R*w+p[0],v[M+1]=P*w+R*T+p[1]}var E=v[0],O=v[1];c.moveTo(E,O);for(var M=2;M<m.length;){var I=v[M++],L=v[M++],k=v[M++],B=v[M++],V=v[M++],H=v[M++];E===I&&O===L&&k===V&&B===H?c.lineTo(V,H):c.bezierCurveTo(I,L,k,B,V,H),E=V,O=H}}}})}function I1(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;pk(r,e),e.__morphT=0;function i(){wu(e,"buildPath"),wu(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},ue({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function XJ(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function yh(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=Y(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),a=Math.max(f,a),n=Math.max(v,n),[f,v]}),o=Y(i,function(s,l){return{cp:s,z:XJ(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function gk(r){return HJ(r.path,r.count)}function t0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function qJ(r,e,t){var a=[];function n(x){for(var b=0;b<x.length;b++){var w=x[b];ph(w)?n(w.childrenRef()):w instanceof Ce&&a.push(w)}}n(r);var i=a.length;if(!i)return t0();var o=t.dividePath||gk,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),t0();a=yh(a),s=yh(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new on,c=0;c<i;c++){var h=a[c],d=s[c];d.parent=e,d.copyTransform(v),f||pk(h,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}gh(e,"addSelfToZr",{after:function(x){p(x)}}),gh(e,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,wu(e,"addSelfToZr"),wu(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?ue({delay:(t.delay||0)+f(c,y,a[c],s[c]),done:_},t):t;I1(a[c],s[c],S)}else e.__morphT=0,e.animateTo({__morphT:1},ue({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)wu(r[x],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function KJ(r,e,t){var a=e.length,n=[],i=t.dividePath||gk;function o(h){for(var d=0;d<h.length;d++){var p=h[d];ph(p)?o(p.childrenRef()):p instanceof Ce&&n.push(p)}}if(ph(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(B0(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),t0()}n=yh(n),e=yh(e);for(var v=t.individualDelay,u=0;u<a;u++){var c=v?ue({delay:(t.delay||0)+v(u,a,n[u],e[u])},t):t;I1(n[u],e[u],c)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function LM(r){return U(r[0])}function IM(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var jJ={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=B0(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Bg(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=sl("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;LM(r)&&(u=r,f=e),LM(e)&&(u=e,f=r);function v(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,M=m?w:b[0];if(ph(T))v({many:[T],one:M},!0,_,S,!0);else{var C=s?ue({delay:s(_,S)},l):l;I1(T,M,C),i(T,M,T,M,C)}}else for(var A=ue({dividePath:jJ[t],individualDelay:s&&function(O,k,B,V){return s(O+_,S)}},l),I=m?qJ(b,w,A):KJ(w,b,A),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;E<R;E++){var C=s?ue({delay:s(E,R)},l):l;i(L[E],P[E],m?b[E]:y.one,m?y.one:b[E],C)}}for(var c=u?u===r:r.length>e.length,h=u?IM(f,u):IM(c?e:r,[c?r:e]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)v(h[p],c,g,d),g+=h[p].many.length}function Ji(r){if(!r)return[];if(U(r)){for(var e=[],t=0;t<r.length;t++)e.push(Ji(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof Ce&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var yk=1e4,JJ=0,PM=1,RM=2,QJ=we();function eQ(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function tQ(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function EM(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=eQ(r,n);if(i){var o=tQ(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function kM(r){var e=[];return D(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>yk))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:EM(a,o,n,!1),childGroupId:EM(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function zg(r,e,t){r.traverse(function(a){a instanceof Ce&&Qe(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Vg(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function ps(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function rQ(r,e,t){var a=sl("update",t,e);a&&r.traverse(function(n){if(n instanceof Yr){var i=O5(n);i&&n.animateFrom({style:i},a)}})}function aQ(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function mk(r,e,t){var a=kM(r),n=kM(e);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?F(F({},x.style),_.style):_.style},w)}var o=!1,s=JJ,l=te(),u=te();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var v=n[f].groupId;if(u.get(v)){s=PM;break}var c=n[f].childGroupId;if(c&&l.get(c)){s=RM;break}}function h(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===PM?x.childGroupId:x.groupId:s===RM?x.childGroupId:x.groupId}}var d=aQ(a,n),p={};if(!d)for(var f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=a[S],b=n[_],w=b.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),M=b.data.getItemGraphicEl(b.dataIndex);if(T===M){M&&rQ(M,b.dataIndex,w);return}T&&p[T.id]||M&&(ps(M),T?(ps(T),Vg(T),o=!0,Bg(Ji(T),Ji(M),b.divide,w,_,i)):zg(M,w,_))}new _n(a,n,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=n[_],b=x.data,w=b.hostModel,T=b.getItemGraphicEl(x.dataIndex),M=Fe(Y(S,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==T&&!p[C.id]});T&&(ps(T),M.length?(D(M,function(C){ps(C),Vg(C)}),o=!0,Bg(Ji(M),Ji(T),x.divide,w,_,i)):zg(T,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=a[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&p[b.id])){var w=Fe(Y(_,function(M){return n[M].data.getItemGraphicEl(n[M].dataIndex)}),function(M){return M&&M!==b}),T=n[_[0]].data.hostModel;w.length&&(D(w,function(M){return ps(M)}),b?(ps(b),Vg(b),o=!0,Bg(Ji(b),Ji(w),x.divide,T,_[0],i)):D(w,function(M){return zg(M,T,_[0])}))}}).updateManyToMany(function(_,S){new _n(S,_,function(x){return a[x].data.getId(a[x].dataIndex)},function(x){return n[x].data.getId(n[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&D(e,function(_){var S=_.data,x=S.hostModel,b=x&&t.getViewOfSeriesModel(x),w=sl("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof Ce&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function OM(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function NM(r){return U(r)?r.sort().join(","):r}function Gn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function nQ(r,e){var t=te(),a=te(),n=te();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=OM(i),f=NM(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&D(u,function(v){n.set(v,{key:f,dataGroupId:s,data:l})})}),D(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=OM(i),u=NM(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Gn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Gn(s),data:s}]});else if(U(l)){var v=[];D(l,function(d){var p=a.get(d);p.data&&v.push({dataGroupId:p.dataGroupId,divide:Gn(p.data),data:p.data})}),v.length&&t.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:Gn(s)}]})}else{var c=n.get(l);if(c){var h=t.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Gn(c.data)}],newSeries:[]},t.set(c.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Gn(s)})}}}}),t}function BM(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function iQ(r,e,t,a){var n=[],i=[];D(Ze(r.from),function(o){var s=BM(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Gn(e.oldData[s]),groupIdDim:o.dimension})}),D(Ze(r.to),function(o){var s=BM(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Gn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&mk(n,i,a)}function oQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){D(Ze(a.seriesTransition),function(n){D(Ze(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][nc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=QJ(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)D(Ze(i),function(h){iQ(h,n,a,t)});else{var o=nQ(n,a);D(o.keys(),function(h){var d=o.get(h);mk(d.oldSeries,d.newSeries,t)})}D(a.updatedSeries,function(h){h[nc]&&(h[nc]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<yk&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}var sQ=(function(){function r(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return r.prototype.setBreaks=function(e){this.breaks=e.breaks},r.prototype.update=function(e){uQ(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<e&&e<n.vmax){var i=t(e,n.vmax);return i}}return 0},r.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},r.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},r.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},r.prototype.elapse=function(e){for(var t=zM,a=VM,n=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(e<=o.vmax){e>o.vmin?t+=o.vmin-a+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:t+=e-a,a=o.vmax,n=!1;break}t+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(t+=e-a),t},r.prototype.unelapse=function(e){for(var t=zM,a=VM,n=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=t+s.vmin-a,u=l+s.gapReal;if(e<=u){e>l?i=s.vmin+(e-l)/(u-l)*(s.vmax-s.vmin):i=a+e-t,a=s.vmax,n=!1;break}t=u,a=s.vmax}return n&&(i=a+e-t),i},r})();function lQ(){return new sQ}var zM=0,VM=0;function uQ(r,e){var t=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};D(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=P1(s,e);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&v))if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=c,a[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));D(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?Math.max(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function fQ(r,e,t,a,n,i){r!=="no"&&D(t,function(o){var s=P1(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=a(u),v=n*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&e.splice(l,1)}})}function vQ(r,e,t,a){D(e,function(n){var i=P1(n,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:a?a(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:a?a(i):void 0}))}),e.length&&r.sort(function(n,i){return n.value-i.value})}function P1(r,e){var t=Math.max(r.vmin,e[0]),a=Math.min(r.vmax,e[1]);return t<a||t===a&&t>e[0]&&t<e[1]?{vmin:t,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function r0(r,e,t){var a=[];if(!r)return{breaks:a};function n(o,s){return o>=0&&o<1-1e-5}D(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ie(o),vmin:e(o.start),vmax:e(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(X(o.gap)){var u=Hr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=e(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&D(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return D(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function R1(r,e){return a0(e)===a0(r)}function a0(r){return r.start+"_\0_"+r.end}function cQ(r,e,t){var a=[];D(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&a.push([o])}),D(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=Ro(a,function(u){return R1(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return D(a,function(i){i.length===2&&n.push(t?i:[r[i[0]],r[i[1]]])}),n}function hQ(r,e,t,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=Ro(t,function(v){return R1(v.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(e,o.vmin),s.vmin),u=a(Math.pow(e,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?pt(Math.pow(e,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function dQ(r,e,t){var a={noNegative:!0},n=r0(r,t,a),i=r0(r,t,a),o=Math.log(e);return i.breaks=Y(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var pQ={vmin:"start",vmax:"end"};function gQ(r,e){return e&&(r=r||{},r.break={type:pQ[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function yQ(){nG({createScaleBreakContext:lQ,pruneTicksByBreak:fQ,addBreaksToTicks:vQ,parseAxisBreakOption:r0,identifyAxisBreak:R1,serializeAxisBreakIdentifier:a0,retrieveAxisBreakPairs:cQ,getTicksLogTransformBreak:hQ,logarithmicParseBreaksFromOption:dQ,makeAxisLabelFormatterParamBreak:gQ})}var GM=we();function mQ(r,e){var t=Ro(r,function(a){return yt().identifyAxisBreak(a.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function _Q(r){D(r,function(e){return e.shouldRemove=!0})}function SQ(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function bQ(r,e,t,a,n){var i=t.axis;if(i.scale.isBlank()||!yt())return;var o=yt().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(M){return M.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var v=s.get("expandOnClick"),c=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new ne({ignoreModelZ:!0}),S=i.isHorizontal(),x=GM(e).visualList||(GM(e).visualList=[]);_Q(x);for(var b=function(M){var C=o[M][0].break.parsedBreak,A=[];A[0]=i.toGlobalCoord(i.dataToCoord(C.vmin,!0)),A[1]=i.toGlobalCoord(i.dataToCoord(C.vmax,!0)),A[1]<A[0]&&A.reverse();var I=mQ(x,C);I.shouldRemove=!1;var L=new ne;T(I.zigzagRandomList,L,A[0],A[1],S,C),v&&L.on("click",function(){var P={type:ed,breaks:[{start:C.breakOption.start,end:C.breakOption.end}]};P[i.dim+"AxisIndex"]=t.componentIndex,n.dispatchAction(P)}),L.silent=!v,_.add(L)},w=0;w<o.length;w++)b(w);r.add(_),SQ(x);function T(M,C,A,I,L,P){var R={stroke:p,lineWidth:g,lineDash:y,fill:"none"},E=L?0:1,O=1-E,k=a[pe[O]]+a[mt[O]];function B(We){var Pe=[],ze=[];Pe[E]=ze[E]=We,Pe[O]=a[pe[O]],ze[O]=k;var Ue={x1:Pe[0],y1:Pe[1],x2:ze[0],y2:ze[1]};return Nh(Ue,Ue,{lineWidth:1}),Pe[0]=Ue.x1,Pe[1]=Ue.y1,Pe[E]}A=B(A),I=B(I);for(var V=[],H=[],W=!0,$=a[pe[O]],j=0;;j++){var ce=$===a[pe[O]],Re=$>=k;Re&&($=k);var He=[],le=[];He[E]=A,le[E]=I,!ce&&!Re&&(He[E]+=W?-l:l,le[E]-=W?l:-l),He[O]=$,le[O]=$,V.push(He),H.push(le);var K=void 0;if(j<M.length?K=M[j]:(K=Math.random(),M.push(K)),$+=K*(f-u)+u,W=!W,Re)break}var ge=yt().serializeAxisBreakIdentifier(P.breakOption);if(C.add(new Ut({anid:"break_a_"+ge,shape:{points:V},style:R,z:c})),P.gapReal!==0){C.add(new Ut({anid:"break_b_"+ge,shape:{points:H},style:R,z:c}));var ee=H.slice();ee.reverse();var he=V.concat(ee);C.add(new jt({anid:"break_c_"+ge,shape:{points:he},style:{fill:m,opacity:d.opacity},z:c}))}}}function xQ(r,e,t,a){var n=r.axis,i=t.transform;qt(a.style);var o=n.getExtent();n.inverse&&(o=o.slice(),o.reverse());var s=yt().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=Y(s,function(g){var y=g[0].break.parsedBreak,m=[n.dataToCoord(y.vmin,!0),n.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:yt().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var c=l[v],h=Math.max(c.coordPair[0],o[0]),d=Math.min(c.coordPair[1],o[1]);u<=h&&p(u,h,f,c),u=d,f=c}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(A,I){i&&(ct(A,A,i),ct(I,I,i))}function x(A,I){var L={x1:A[0],y1:A[1],x2:I[0],y2:I[1]};Nh(L,L,a.style),A[0]=L.x1,A[1]=L.y1,I[0]=L.x2,I[1]=L.y2}var b=[g,0],w=[y,0],T=[g,5],M=[y,5];S(b,T),x(b,T),S(w,M),x(w,M),x(b,w);var C=new gt(F({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},a));e.add(C),C.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function wQ(r,e,t){if(Ro(t,function(m){return!m}))return;var a=new se;if(!Jh(t[0],t[1],a,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var n=Bt();di(n,n,-e);var i=Y(t,function(m){return m.transform?Ba(Bt(),n,m.transform):n});function o(m){var _=t[0].localRect,S=new se(_[mt[m]]*i[0][0],_[mt[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=Y(t,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new se;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(n);var f=a.clone().transform(n),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new se,y=new se;se.scale(g,a,-s),se.scale(y,a,1-s),nm(t[0],g),nm(t[1],y)}function TQ(r,e){var t={breaks:[]};return D(e.breaks,function(a){if(a){var n=Ro(r.get("breaks",!0),function(s){return yt().identifyAxisBreak(s,a)});if(n){var i=e.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===ed?!0:i===VP?!1:i===GP?!n.isExpanded:n.isExpanded,t.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),t}function CQ(){SU({adjustBreakLabelPair:wQ,buildAxisBreakLine:xQ,rectCoordBuildBreakAxis:bQ,updateModelAxisBreak:TQ})}function AQ(r){AU(r),yQ(),CQ()}function MQ(){ZU(DQ)}function DQ(r,e){D(r,function(t){if(!t.model.get(["axisLabel","inside"])){var a=LQ(t);if(a){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[n]-=a[n]+i,t.position==="top"?e.y+=a.height+i:t.position==="left"&&(e.x+=a.width+i)}}})}function LQ(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var a,n,i=t.getExtent();t instanceof Ys?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=hl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var v=a?a[f]:{value:i[0]+f},c=s(v,f),h=o.getTextRect(c),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),b=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new ve(g.x,g.y,x,b);return w}}be([m4]);be([h4]);be([z4,Q4,uU,c6,w6,c8,V8,xY,WY,KY,r$,f$,a7,M7,z7,e9,n9,d9,b9,R9,z9,X9,RZ]);be(jZ);be(xX);be(cR);be(kX);be(JR);be(zX);be(nq);be(hq);be(Qq);be(mK);be(Sf);be(kK);be(BK);be(ZK);be(tj);be(sj);be(hj);be(wj);be(Hj);be(nk);be(ik);be(lJ);be(fk);be(vk);be(cJ);be(yJ);be(IJ);be(EJ);be(oQ);be(EW);be(AQ);be(MQ);be(h6);function FQ(){async function r(){try{const e=await WN();return e.success?e.data:null}catch(e){console.error("Failed to load monitor data:",e)}return null}return{loadData:r}}function HQ(){const{t:r}=jM(),e=Me(null),t=Me(null),a=Me(null),n=Me(null),i=Me(null),o=Me(null),s=Me(null);let l=null,u=null,f=null,v=null,c=null,h=null,d=null;const p=(C,A,I,L)=>{const P=JSON.parse(JSON.stringify(GN));P.title.text=I+r("label.proportion"),P.series[0].name=I,P.series[0].itemStyle.color=R=>VN(R.dataIndex),P.series[0].data=Array.isArray(A)?A.map(R=>({name:R.label,value:R.value})):[{value:A,name:I},{value:100-A,name:""}],P.graphic.elements[0].style.text=`${I}
40
- ${L}`,P.tooltip=P.tooltip||{},P.tooltip.position=R=>[R[0]+15,R[1]],C.setOption(P)},g=(C,A,I)=>{const L=JSON.parse(JSON.stringify(FN)),P=[...A].sort((R,E)=>R.docValue-E.docValue);L.yAxis.data=P.map(R=>R.label),L.series[0].name=I,L.series[0].data=P.map(R=>R.docValue),C.setOption(L)},y=(C,A,I,L,P)=>{const R=JSON.parse(JSON.stringify(HN)),E=nS[P]||nS.default,{gradientColor:O,areaGradientColor:k}=E;if(R.xAxis.data=I,R.series[0].name=A,R.series[0].data=L,R.series[0].lineStyle.color=O,R.series[0].areaStyle.color=k,A.includes(r("label.attachmentSize"))){R.yAxis.axisLabel={formatter:V=>V.toFixed(2)};const B=A.match(/\(([^)]+)\)/);B&&(R.yAxis.name=`${r("label.unit")}:${B[1]}`,R.yAxis.nameLocation="end",R.yAxis.nameGap=15,R.yAxis.nameTextStyle={align:"right",fontSize:12,color:"#666"})}C.setOption(R)},m=(C,A,I,L,P=!1)=>{if(C){const R=dp(C);return p(R,A,I,L),R}return null},_=(C,A,I)=>{if(C){const L=dp(C);return g(L,A,I),L}return null},S=(C,A,I,L,P)=>{if(C){const R=dp(C);return y(R,A,I,L,P),R}return null};return{chart1:e,chart2:t,chart3:a,rightChart:n,bottomChart1:i,bottomChart2:o,bottomChart3:s,initPieCharts:C=>{if(C&&C.types){const A=Object.entries(C.types),I=A.map(([R,E])=>({label:E.name,value:E.total.documentCount})),L=A.map(([R,E])=>({label:E.name,value:E.total.streamCount})),P=A.map(([R,E])=>({label:E.name,value:E.total.streamSize}));l=m(e.value,I,r("label.documentCount"),C.total.documentCount.toString(),!0),u=m(t.value,L,r("label.attachmentCount"),C.total.streamCount.toString()),f=m(a.value,P,r("label.attachmentSize"),C.total.streamSizeVal)}},initRightBarChart:C=>{v=_(n.value,C,r("label.documentCount"))},initBottomCharts:C=>{if(C&&C.months){const A=Object.keys(C.months).sort(),I=A.map(O=>C.months[O].documentCount);c=S(i.value,r("label.documentCount"),A,I,"#F6693D");const L=A.map(O=>C.months[O].streamCount);h=S(o.value,r("label.attachmentCount"),A,L,"#622BDF");const P=A.map(O=>{const k=C.months[O].streamSizeVal,B=Number.parseFloat(k);return Number.isNaN(B)?0:B});let R="";for(const O of A){const B=C.months[O].streamSizeVal.match(/[A-Z]+/);if(B){R=B[0];break}}const E=R?`${r("label.attachmentSize")} (${R})`:r("label.attachmentSize");d=S(s.value,E,A,P,"#47C86B")}},resizeAllCharts:()=>{l?.resize(),u?.resize(),f?.resize(),v?.resize(),c?.resize(),h?.resize(),d?.resize()},destroyAllCharts:()=>{l?.dispose(),u?.dispose(),f?.dispose(),v?.dispose(),c?.dispose(),h?.dispose(),d?.dispose()}}}export{tD as C,kQ as E,ys as U,BQ as _,FQ as a,zQ as b,VQ as c,OQ as d,FO as e,GQ as f,NQ as g,ZO as h,dp as i,YO as j,EQ as k,aD as l,$O as m,eD as n,Fn as o,fN as p,fd as t,HQ as u};
39
+ `||n==="")){var i=r.isSelected(n);J(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function mj(r){r.registerAction("legendToggleSelect","legendselectchanged",ye(Xl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ye(Xl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ye(Xl,"inverseSelect")),r.registerAction("legendSelect","legendselected",ye(Xl,"select")),r.registerAction("legendUnSelect","legendunselected",ye(Xl,"unSelect"))}function rk(r){r.registerComponentModel(qm),r.registerComponentView(ek),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,yj),r.registerSubTypeDefaulter("legend",function(){return"plain"}),mj(r)}var _j=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=No(t);r.prototype.init.call(this,t,a,n),rM(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),rM(this,this.option,t)},e.type="legend.scroll",e.defaultOption=gi(qm.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:z.color.accent50,pageIconInactiveColor:z.color.accent10,pageIconSize:15,pageTextStyle:{color:z.color.tertiary},animationDurationUpdate:800}),e})(qm);function rM(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Ya(e,t,{type:"box",ignoreSize:!!n})}var aM=ne,Pg=["width","height"],Rg=["x","y"],Sj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new aM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new aM)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,v=a.get("pageIconSize",!0),c=U(v)?v:[v,v];d("pagePrev",0);var h=a.getModel("pageTextStyle");f.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=lf(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:q(u._pageGo,u,y,a,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Pg[u],v=Rg[u],c=Pg[1-u],h=Rg[1-u];o&&_o("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ie(n);o&&(y[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,c,h,v);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[v]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;_o(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),_o("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=re(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var x={x:0,y:0};if(x[o]=p?n[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),v.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],v.setClipPath(new xe({shape:b})),v.__rectSize=b[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Be(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=a[v]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",X(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Pg[o],l=Rg[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e})(ek);function bj(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function xj(r){be(rk),r.registerComponentModel(_j),r.registerComponentView(Sj),bj(r)}function wj(r){be(rk),be(xj)}var Tj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=gi(Ju.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Ju),D1=we();function Cj(r,e,t){D1(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function Aj(r,e){for(var t=D1(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||ak(t,o))}}}function ak(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Mj(r,e){var t={model:e,containsPoint:ye(Lj,e),dispatchAction:ye(Dj,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Fo(r.getZr());return D(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Dj(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Lj(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function Ij(r,e,t){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function Pj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=D1(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=te());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=VE(i);D(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Mj(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=te());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){ak(n,i);return}var f=Ij(l,i,t);o.enable(f.controlType,f.opt),vl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Rj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Cj(n,t,{pan:q(Eg.pan,this),zoom:q(Eg.zoom,this),scrollMove:q(Eg.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Aj(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(S1),Eg={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=kg[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(fi(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:nM(function(r,e,t,a,n,i){var o=kg[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:nM(function(r,e,t,a,n,i){var o=kg[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function nM(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(fi(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var kg={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function nk(r){b1(r),r.registerComponentModel(Tj),r.registerComponentView(Rj),Pj(r)}var Ej=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=gi(Ju.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:z.color.accent10,borderRadius:0,backgroundColor:z.color.transparent,dataBackground:{lineStyle:{color:z.color.accent30,width:.5},areaStyle:{color:z.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:z.color.accent40,width:.5},areaStyle:{color:z.color.accent20,opacity:.3}},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:z.color.neutral00,borderColor:z.color.accent20},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:z.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:z.color.tertiary},brushSelect:!0,brushStyle:{color:z.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:z.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(Ju),ql=xe,kj=1,Og=30,Oj=7,Kl="horizontal",iM="vertical",Nj=5,Bj=["line","bar","candlestick","scatter"],zj={easing:"cubicOut",duration:100,delay:0},Vj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=q(this._onBrush,this),this._onBrushEnd=q(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),vl(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Bu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new ne;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?Oj:0,o=At(t,a).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Kl?{right:o.width-s.x-s.width,top:o.height-Og-l-i,width:s.width,height:Og}:{right:l,top:s.y,width:Og,height:s.height},f=No(t.option);D(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=rt(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===iM&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Kl&&!o?{scaleY:l?1:-1,scaleX:1}:n===Kl&&o?{scaleY:l?1:-1,scaleX:-1}:n===iM&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new ql({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ql({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(v[1]-v[0]),S=t.thisAxis.type==="time",x=-m,b=Math.round(o.count()/a[0]),w;o.each([t.thisDim,l],function(I,L,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+I-v[0])*_:x+m;var R=L==null||isNaN(L)||L==="",E=R?0:Ge(L,c,d,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,E]),y.push([x,E])),w=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function M(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),P=new ne,R=new jt({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new Ut({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(E),P}for(var C=0;C<3;C++){var A=M(C===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!n&&!(a!==!0&&me(Bj,u.get("type"))<0)){var f=i.getComponent(jn(o),s).axis,v=Gj(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),c=a.filler=new ql({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new ql({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:kj,fill:z.color.transparent}})),D([0,1],function(_){var S=l.get("handleIcon");!kc[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=St(S,-1,0,2,2,null,!0);x.attr({cursor:Fj(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 b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Z(w,this._size[1]),this._handleWidth=b.width/b.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(),yo(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var M=l.getModel("textStyle"),C=l.get("handleLabel")||{},A=C.show||!1;t.add(i[_]=new Oe({silent:!0,invisible:!A,style:qe(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=c;if(v){var d=Z(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new xe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=St(l.get("moveHandleIcon"),-g/2,-g/2,g,g,z.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new xe({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:q(this._onDragMove,this,"all"),ondragstart:q(this._showDataInfo,this,!0),ondragend:q(this._onDragEnd,this),onmouseover:q(this._showDataInfo,this,!0),onmouseout:q(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Ge(t[0],[0,100],a,!0),Ge(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];fi(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Ge(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ge(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Wr([Ge(i[0],o,l,!0),Ge(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=Wr(n.slice()),o=this._size;D([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],c=v.getClipPath();c||(c=new xe,v.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,v=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(v[0],u),this._formatLabel(v[1],u)]}}var c=Wr(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(d){var p=mo(n.handles[d].parent,this.group),g=Hh(d===0?"right":"left",p),y=this._handleWidth/2+Nj,m=ia([c[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Kl?"middle":g,align:o===Kl?g:"center",text:s[d]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return ae(i)?i(t,s):X(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,pn(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ia([a,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new se(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();fi(0,l,o,0,u.minSpan!=null?Ge(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ge(u.maxSpan,s,o,!0):null),this._range=Wr([Ge(l[0],o,s,!0),Ge(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(pn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ql({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?zj:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=VE(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(S1);function Gj(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Fj(r){return r==="vertical"?"ns-resize":"ew-resize"}function ik(r){r.registerComponentModel(Ej),r.registerComponentView(Vj),b1(r)}function Hj(r){be(nk),be(ik)}var ok={get:function(r,e,t){var a=ie((Wj[r]||{})[e]);return t&&U(a)?a[a.length-1]:a}},Wj={color:{active:["#006edd","#e0ffff"],inactive:[z.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},oM=Pt.mapVisual,Uj=Pt.eachVisual,Yj=U,sM=D,$j=Wr,Zj=Ge,hh=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&qE(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=q(t,this),this.controllerVisuals=$m(this.option.controller,a,t),this.targetVisuals=$m(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,a=this.option.seriesIndex;a==null&&t==null&&(a="all");var n=nl(this.ecModel,"series",{index:a,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Y(n,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,a){D(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(t)&&(t=t.slice(),u=!0);var f=a?t:u?[v(t[0]),v(t[1])]:v(t);if(X(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ae(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=$j([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});_e(i,n),_e(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){Yj(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},sM(d,function(g,y){if(Pt.isValidType(y)){var m=ok.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";sM(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&ie(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ie(h)||(s?m[0]:[m[0],m[0]])),_.symbol=oM(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;Uj(S,function(b){b>x&&(x=b)}),_.symbolSize=oM(S,function(b){return Zj(b,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:z.color.transparent,borderColor:z.color.borderTint,contentColor:z.color.theme[0],inactiveColor:z.color.disabled,borderWidth:0,padding:z.size.m,textGap:10,precision:0,textStyle:{color:z.color.secondary}},e})(Ae),lM=[20,140],Xj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=lM[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=lM[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Wr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent(),i=re(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=t)&&(i&&a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=uM(this,"outOfRange",this.getExtent()),n=uM(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:t(h,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var v=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=gi(hh.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:z.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:z.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:z.color.shadow}}),e})(hh);function uM(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}var sk=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=uf(a.get("padding")||0),i=t.getBoundingRect();t.add(new xe({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var v=o.controllerVisuals[i||o.getValueState(t)],c=Pt.prepareVisualTypes(v);return D(c,function(h){var d=v[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=v.__alphaForOpacity),Pt.dependsOn(h,a)&&d&&d.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api,i=At(a,n).refContainer;$h(t,a.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(et),fM=[["left","right","width"],["top","bottom","height"]];function lk(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=fM[o],l=[0,null,10],u={},f=0;f<3;f++)u[fM[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var v=[["x","width",3],["y","height",0]][o],c=rt(u,i,a.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+c[v[1]]*.5<i[v[1]]*.5?0:1]}function vc(r,e){return D(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Ca=Ge,qj=D,vM=Math.min,Ng=Math.max,Kj=12,jj=6,Jj=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=q(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Oe({style:qe(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(c==="horizontal"?"middle":v),align:h.get("align")||(c==="horizontal"?v:"center"),text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=lk(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new ne;u.add(f),f.add(n.outOfRange=cM()),f.add(n.inRange=cM(null,s?dM(this._orient):null,q(this._dragHandle,this,"all",!1),q(this._dragHandle,this,"all",!0))),f.setClipPath(new xe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("国"),c=Ng(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,c,o),this._createHandle(a,u,1,i,c,o)),this._createIndicator(a,u,i,c,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=q(this._dragHandle,this,n,!1),u=q(this._dragHandle,this,n,!0),f=fa(t.get("handleSize"),i[0]),v=St(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=dM(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){pn(y.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),so(v,!0),a.add(v);var h=this.visualMapModel.textStyleModel,d=new Oe({cursor:c,draggable:!0,drift:l,onmousemove:function(y){pn(y.event)},ondragend:u,style:qe(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=fa(t.get("indicatorSize"),n[0]),l=St(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Vt){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,c=new Oe({silent:!0,invisible:!0,style:qe(v,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?i/2:jj)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():hM(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Ca(a[0],n,i,!0),Ca(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];fi(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[Ca(i[0],o,s,!0),Ca(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new ol(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new ne(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);qj([0,1],function(v){var c=o[v];c.setStyle("fill",a.handlesColor[v]),c.y=t[v];var h=Ca(t[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=ia(n.handleLabelPoints[v],mo(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=Ca(t,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=ia(f.indicatorLabelPoint,mo(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,M),_.animateTo(T,M)}else v.attr(w),_.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var A=0;A<C.length;A++)this.api.enterBlur(C[A])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=vM(Ng(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=vM(Ng(o[0],t),o[1]);var l=Qj(n,s,o),u=[t-l,t+l],f=Ca(t,o,s,!0),v=[Ca(u[0],o,s,!0),Ca(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,h=[];(a||hM(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var d=Zz(c,h);this._dispatchHighDown("downplay",vc(d[0],n)),this._dispatchHighDown("highlight",vc(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(uo(t.target,function(l){var u=de(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",vc(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=mo(a,i?null:this.group);return U(t)?ia(t,o,n):Hh(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(sk);function cM(r,e,t,a){return new jt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){pn(n.event)},ondragend:a})}function Qj(r,e,t){var a=Kj/2,n=r.get("hoverLinkDataSize");return n&&(a=Ca(n,e,t,!0)/2),a}function hM(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function dM(r){return r==="vertical"?"ns-resize":"ew-resize"}var eJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},tJ=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},rJ=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(wK(a.stateList,a.targetVisuals,q(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(q(aJ,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function aJ(r,e,t,a){for(var n=e.targetVisuals[a],i=Pt.prepareVisualTypes(n),o={color:cf(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,v,c)}return o.color;function v(h){return o[h]}function c(h,d){o[h]=d}}var pM=D;function nJ(r){var e=r&&r.visualMap;U(e)||(e=e?[e]:[]),pM(e,function(t){if(t){hs(t,"splitList")&&!hs(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&U(a)&&pM(a,function(n){fe(n)&&(hs(n,"start")&&!hs(n,"min")&&(n.min=n.start),hs(n,"end")&&!hs(n,"max")&&(n.max=n.end))})}})}function hs(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var gM=!1;function uk(r){gM||(gM=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(eJ,tJ),D(rJ,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(nJ))}function fk(r){r.registerComponentModel(Xj),r.registerComponentView(Jj),uk(r)}var iJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],oJ[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ie(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=ie(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=Pt.listVisualTypes(),i=this.isCategory();D(t.pieces,function(s){D(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),D(a,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&D(this.stateList,function(f){(t[f]||(t[f]={}))[l]=ok.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=ie(t)},e.prototype.getValueState=function(t){var a=Pt.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Pt.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=t(c,v);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=gi(hh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(hh),oJ={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),BS(r),D(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;D(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),yM(e,r)},pieces:function(r){var e=this.option;D(e.pieces,function(t,a){fe(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],v=0;v<2;v++){for(var c=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&o[v]==null;h++)o[v]=t[c[h]],s[v]=l[h],f[v]=h===2;o[v]==null&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Pt.retrieveVisuals(t),r.push(n)},this),yM(e,r),BS(r),D(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function yM(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var sJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Wt(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),D(l.viewPieceList,function(c){var h=c.piece,d=new ne;d.onclick=q(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Oe({style:qe(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:re(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),_o(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:vc(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return lk(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new ne,l=this.visualMapModel.textStyleModel;s.add(new Oe({style:qe(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=Y(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=St(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=ie(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(sk);function vk(r){r.registerComponentModel(iJ),r.registerComponentView(sJ),uk(r)}function lJ(r){be(fk),be(vk)}var uJ=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:NL(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var a=t.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})(),fJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,a){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new uJ(this);if(this._target=null,this.ecModel.eachSeries(function(n){HT(n,null)}),this.shouldShow()){var a=this.getTarget();HT(a.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:z.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:z.color.neutral30,borderColor:z.color.neutral40,opacity:.3},z:10},e})(Ae),vJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new Ho),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||z.color.neutral00);var l=At(t,n).refContainer,u=rt(iI(t,!0),l),f=s.lineWidth||0,v=this._contentRect=Ao(u.clone(),f/2,!0,!0),c=new ne;i.add(c),c.setClipPath(new xe({shape:v.plain()}));var h=this._targetGroup=new ne;c.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new xe({style:s,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.add(this._windowRect=new xe({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),_M(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),_M(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=t.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=rt({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var a=this._bridgeRendered;a&&a.renderVersion===t.renderVersion&&(a.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=ua([],t.targetTrans),n=Ba([],this._coordSys.transform,a);this._transThisToTarget=ua([],n);var i=t.viewportRect;i?i=i.clone():i=new ve(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(ue({r:s},i))}},e.prototype._resetRoamController=function(t){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new Fo(n.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",q(this._onPan,this)).on("zoom",q(this._onZoom,this))},e.prototype._onPan=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ct([],[t.oldX,t.oldY],a),i=ct([],[t.oldX-t.dx,t.oldY-t.dy],a);this._api.dispatchAction(mM(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ct([],[t.originX,t.originY],a);this._api.dispatchAction(mM(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var a=t.getTarget().baseMapProvider;return!!a},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(et);function mM(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:t};return a[r.mainType+"Id"]=r.id,F(a,e),a}function _M(r,e){var t=Mo(r);Wh(e.group,t.z,t.zlevel)}function cJ(r){r.registerComponentModel(fJ),r.registerComponentView(vJ)}var hJ={label:{enabled:!0},decal:{show:!1}},SM=we(),dJ={};function pJ(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=ie(hJ);_e(a.label,r.getLocaleModel().get("aria"),!1),_e(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var v=te();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=v.get(c.type);h||(h={},v.set(c.type,h)),SM(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(ae(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var m=Vy(c.ecModel,c.name,dJ,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=c.getRawData(),p={},g=SM(c).scope;h.each(function(x){var b=h.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=Vy(c.ecModel,w,g,y),M=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(M,T))})}function S(x,b){var w=x?F(F({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),v=t.getModel("label");if(v.option=ue(v.option,f),!!v.get("enabled")){if(u.setAttribute("role","img"),v.get("description")){u.setAttribute("aria-label",v.get("description"));return}var c=r.getSeriesCount(),h=v.get(["data","maxCount"])||10,d=v.get(["series","maxCount"])||10,p=Math.min(c,d),g;if(!(c<1)){var y=s();if(y){var m=v.get(["general","withTitle"]);g=o(m,{title:y})}else g=v.get(["general","withoutTitle"]);var _=[],S=c>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(T,M){if(M<p){var C=void 0,A=T.get("name"),I=A?"withName":"withoutName";C=c>1?v.get(["series","multiple",I]):v.get(["series","single",I]),C=o(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var P=v.get(["data","partialData"]);C+=o(P,{displayCnt:h})}else C+=v.get(["data","allData"]);for(var R=v.get(["data","separator","middle"]),E=v.get(["data","separator","end"]),O=v.get(["data","excludeDimensionId"]),k=[],B=0;B<L.count();B++)if(B<h){var V=L.getName(B),H=O?Fe(L.getValues(B),function($,j){return me(O,j)===-1}):L.getValues(B),W=v.get(["data",V?"withName":"withoutName"]);k.push(o(W,{name:V,value:H.join(R)}))}C+=k.join(R)+E,_.push(C)}});var x=v.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!X(u))return u;var v=u;return D(f,function(c,h){v=v.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),c)}),v}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function gJ(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},D(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function yJ(r){r.registerPreprocessor(gJ),r.registerVisual(r.PRIORITY.VISUAL.ARIA,pJ)}var bM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mJ=(function(){function r(e){var t=this._condVal=X(e)?new RegExp(e):iB(e)?e:null;if(t==null){var a="";Ve(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return X(t)?this._condVal.test(e):Ee(t)?this._condVal.test(e+""):!1},r})(),_J=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),SJ=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),bJ=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),xJ=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),wJ=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r})();function L1(r,e){if(r===!0||r===!1){var t=new _J;return t.value=r,t}var a="";return ck(r)||Ve(a),r.and?xM("and",r,e):r.or?xM("or",r,e):r.not?TJ(r,e):CJ(r,e)}function xM(r,e,t){var a=e[r],n="";U(a)||Ve(n),a.length||Ve(n);var i=r==="and"?new SJ:new bJ;return i.children=Y(a,function(o){return L1(o,t)}),i.children.length||Ve(n),i}function TJ(r,e){var t=r.not,a="";ck(t)||Ve(a);var n=new xJ;return n.child=L1(t,e),n.child||Ve(a),n}function CJ(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Ie(r),o=r.parser,s=o?MI(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=J(bM,u)?bM[u]:u,v=r[u],c=s?s(v):v,h=lF(f,c)||f==="reg"&&new mJ(c);h||Ve(t),n.push(h)}}n.length||Ve(t);var d=new wJ;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=n,d}function ck(r){return fe(r)&&!Xt(r)}var AJ=(function(){function r(e,t){this._cond=L1(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function MJ(r,e){return new AJ(r,e)}var DJ={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=MJ(r.config,{valueGetterAttrMap:te({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||Ve(l);var f=e.getDimensionInfo(u);return f||Ve(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},LJ={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=Ze(t);n.length||Ve(a);var i=[];D(n,function(f){var v=f.dimension,c=f.order,h=f.parser,d=f.incomparable;if(v==null&&Ve(a),c!=="asc"&&c!=="desc"&&Ve(a),d&&d!=="min"&&d!=="max"){var p="";Ve(p)}if(c!=="asc"&&c!=="desc"){var g="";Ve(g)}var y=e.getDimensionInfo(v);y||Ve(a);var m=h?MI(h):null;h&&!m&&Ve(a),i.push({dimIdx:y.index,parser:m,comparator:new LI(c,d)})});var o=e.sourceFormat;o!==zt&&o!==Dr&&Ve(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],d=e.retrieveValueFromItem(f,h.dimIdx),p=e.retrieveValueFromItem(v,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function IJ(r){r.registerTransform(DJ),r.registerTransform(LJ)}var PJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new EI(this),Jb(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Jb(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:oa},e})(Ae),RJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(et);function EJ(r){r.registerComponentModel(PJ),r.registerComponentView(RJ)}var wa=Ua.CMD;function Ls(r,e){return Math.abs(r-e)<1e-5}function Qm(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(L,P){n&&n.length>2&&a.push(n),n=[L,P]}function f(L,P,R,E){Ls(L,R)&&Ls(P,E)||n.push(L,P,R,E,R,E)}function v(L,P,R,E,O,k){var B=Math.abs(P-L),V=Math.tan(B/4)*4/3,H=P<L?-1:1,W=Math.cos(L),$=Math.sin(L),j=Math.cos(P),ce=Math.sin(P),Re=W*O+R,He=$*k+E,le=j*O+R,K=ce*k+E,ge=O*V*H,ee=k*V*H;n.push(Re-ge*$,He+ee*W,le+ge*ce,K-ee*j,le,K)}for(var c,h,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===wa.L||y===wa.C||y===wa.Q)&&(n=[s,l])),y){case wa.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case wa.L:c=e[g++],h=e[g++],f(i,o,c,h),i=c,o=h;break;case wa.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case wa.Q:c=e[g++],h=e[g++],d=e[g++],p=e[g++],n.push(i+2/3*(c-i),o+2/3*(h-o),d+2/3*(c-d),p+2/3*(h-p),d,p),i=d,o=p;break;case wa.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],T=e[g++]+w;g+=1;var M=!e[g++];c=Math.cos(w)*x+_,h=Math.sin(w)*b+S,m?(s=c,l=h,u(s,l)):f(i,o,c,h),i=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var C=(M?-1:1)*Math.PI/2,A=w;M?A>T:A<T;A+=C){var I=M?Math.max(A+C,T):Math.min(A+C,T);v(A,I,_,S,x,b)}break;case wa.R:s=i=e[g++],l=o=e[g++],c=s+e[g++],h=l+e[g++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case wa.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function e0(r,e,t,a,n,i,o,s,l,u){if(Ls(r,t)&&Ls(e,a)&&Ls(n,o)&&Ls(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=t-r,g=a-e,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var x=c*p+h*g,b=-c*y-h*m,w=_-x*x,T=S-b*b;if(w<v&&x>=0&&T<v&&b>=0){l.push(o,s);return}var M=[],C=[];oi(r,t,n,o,.5,M),oi(e,a,i,s,.5,C),e0(M[0],C[0],M[1],C[1],M[2],C[2],M[3],C[3],l,u),e0(M[4],C[4],M[5],C[5],M[6],C[6],M[7],C[7],l,u)}function kJ(r,e){var t=Qm(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],c=i[u++],h=i[u++],d=i[u++],p=i[u++];e0(s,l,f,v,c,h,d,p,o,e),s=d,l=p}a.push(o)}return a}function hk(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,v=t-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function wM(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),v=hk([l,u],f?0:1,e),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var d=(f?u:s)/v[h],p=0;p<v[h];p++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(h+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=a+c*h,g.r=a+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function OJ(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=hk([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*v,p[f]=d*h,p[s]=v,p[l]=h,p.x+=r.x,p.y+=r.y,t.push(p)}}function TM(r,e,t,a){return r*a-t*e}function NJ(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=TM(f,v,l,u);if(Math.abs(c)<1e-6)return null;var h=r-n,d=e-i,p=TM(h,d,f,v)/c;return p<0||p>1?null:new se(p*l+r,p*u+e)}function BJ(r,e,t){var a=new se;se.sub(a,t,e),a.normalize();var n=new se;se.sub(n,r,e);var i=n.dot(a);return i}function ds(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function zJ(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=NJ(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:BJ(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[c],p=[h],i=u.idx+1;i<=f.idx;i++)ds(d,r[i].slice());ds(d,h),ds(d,c);for(var i=f.idx+1;i<=u.idx+a;i++)ds(p,r[i%a].slice());return ds(p,c),ds(p,h),[{points:d},{points:p}]}function CM(r){var e=r.points,t=[],a=[];kh(e,t,a);var n=new ve(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new se,f=new se;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),zJ(e,u,f)}function dh(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);dh(r,i[0],n,a),dh(r,i[1],t-n,a)}return a}function VJ(r,e){for(var t=[],a=0;a<e;a++)t.push(B0(r));return t}function GJ(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function FJ(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function HJ(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":OJ(a,e,t),n=xe;break;case"sector":wM(a,e,t),n=Kt;break;case"circle":wM({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Kt;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Y(kJ(r.getUpdatedPathProxy(),o),function(y){return FJ(y)}),l=s.length;if(l===0)dh(CM,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,v=Y(s,function(y){var m=[],_=[];kh(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});for(var c=e,u=0;u<l;u++){var h=v[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(h.area/f*e);d<0||(dh(CM,{points:h.poly},d,t),c-=d)}}n=jt;break}if(!n)return VJ(r,e);for(var p=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),GJ(r,g),p.push(g)}return p}function WJ(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],c=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],x=o[h++];if(c<=0){v.push(g,y,m,_,S,x);continue}for(var b=Math.min(c,f-1)+1,w=1;w<=b;w++){var T=w/b;oi(d,g,m,S,T,n),oi(p,y,_,x,T,i),d=n[3],p=i[3],v.push(n[1],i[1],n[2],i[2],d,p),g=n[5],y=i[5],m=n[6],_=i[6]}c-=b-1}return o===r?[v,e]:[r,v]}function AM(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function UJ(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(t=WJ(l,u),f=t[0],v=t[1],a=f,n=v):(v=AM(n||l,l),f=l):(f=AM(a||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function MM(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;e+=v,t+=(s+u)*v,a+=(l+f)*v}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function YJ(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,v=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,d=r[h]-t[0],p=r[h+1]-t[1],g=e[c]-a[0],y=e[c+1]-a[1],m=g-d,_=y-p;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function $J(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function ZJ(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=MM(s),f=MM(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,d=1/0,p=[],g=s.length;i&&(s=$J(s));for(var y=YJ(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}v[0]=s[y]-u[0],v[1]=s[y+1]-u[1];for(var x=a/t,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),M=0,_=0;_<s.length;_+=2){var C=v[_],A=v[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,R=I*w+L*T;p[_]=P,p[_+1]=R;var E=P-C,O=R-A;M+=E*E+O*O}if(M<d){d=M,h=b;for(var k=0;k<p.length;k++)c[k]=p[k]}}n.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return n}function ph(r){return r.__isCombineMorphing}var dk="__mOriginal_";function gh(r,e,t){var a=dk+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function wu(r,e){var t=dk+e;r[t]&&(r[e]=r[t],r[t]=null)}function DM(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function pk(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=UJ(Qm(t),Qm(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&DM(i,s),l&&DM(o,l),gh(e,"updateTransform",{replace:u}),e.transform=null;var f=ZJ(i,o,10,Math.PI),v=[];gh(e,"buildPath",{replace:function(c){for(var h=e.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,x=y.fromCp,b=y.toCp,w=Math.sin(S),T=Math.cos(S);$v(p,x,b,h);for(var M=0;M<m.length;M+=2){var C=m[M],A=m[M+1],I=_[M],L=_[M+1],P=C*d+I*h,R=A*d+L*h;v[M]=P*T-R*w+p[0],v[M+1]=P*w+R*T+p[1]}var E=v[0],O=v[1];c.moveTo(E,O);for(var M=2;M<m.length;){var I=v[M++],L=v[M++],k=v[M++],B=v[M++],V=v[M++],H=v[M++];E===I&&O===L&&k===V&&B===H?c.lineTo(V,H):c.bezierCurveTo(I,L,k,B,V,H),E=V,O=H}}}})}function I1(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;pk(r,e),e.__morphT=0;function i(){wu(e,"buildPath"),wu(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},ue({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function XJ(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function yh(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=Y(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),a=Math.max(f,a),n=Math.max(v,n),[f,v]}),o=Y(i,function(s,l){return{cp:s,z:XJ(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function gk(r){return HJ(r.path,r.count)}function t0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function qJ(r,e,t){var a=[];function n(x){for(var b=0;b<x.length;b++){var w=x[b];ph(w)?n(w.childrenRef()):w instanceof Ce&&a.push(w)}}n(r);var i=a.length;if(!i)return t0();var o=t.dividePath||gk,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),t0();a=yh(a),s=yh(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new on,c=0;c<i;c++){var h=a[c],d=s[c];d.parent=e,d.copyTransform(v),f||pk(h,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}gh(e,"addSelfToZr",{after:function(x){p(x)}}),gh(e,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,wu(e,"addSelfToZr"),wu(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?ue({delay:(t.delay||0)+f(c,y,a[c],s[c]),done:_},t):t;I1(a[c],s[c],S)}else e.__morphT=0,e.animateTo({__morphT:1},ue({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)wu(r[x],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function KJ(r,e,t){var a=e.length,n=[],i=t.dividePath||gk;function o(h){for(var d=0;d<h.length;d++){var p=h[d];ph(p)?o(p.childrenRef()):p instanceof Ce&&n.push(p)}}if(ph(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(B0(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),t0()}n=yh(n),e=yh(e);for(var v=t.individualDelay,u=0;u<a;u++){var c=v?ue({delay:(t.delay||0)+v(u,a,n[u],e[u])},t):t;I1(n[u],e[u],c)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function LM(r){return U(r[0])}function IM(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var jJ={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=B0(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Bg(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=sl("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;LM(r)&&(u=r,f=e),LM(e)&&(u=e,f=r);function v(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,M=m?w:b[0];if(ph(T))v({many:[T],one:M},!0,_,S,!0);else{var C=s?ue({delay:s(_,S)},l):l;I1(T,M,C),i(T,M,T,M,C)}}else for(var A=ue({dividePath:jJ[t],individualDelay:s&&function(O,k,B,V){return s(O+_,S)}},l),I=m?qJ(b,w,A):KJ(w,b,A),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;E<R;E++){var C=s?ue({delay:s(E,R)},l):l;i(L[E],P[E],m?b[E]:y.one,m?y.one:b[E],C)}}for(var c=u?u===r:r.length>e.length,h=u?IM(f,u):IM(c?e:r,[c?r:e]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)v(h[p],c,g,d),g+=h[p].many.length}function Ji(r){if(!r)return[];if(U(r)){for(var e=[],t=0;t<r.length;t++)e.push(Ji(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof Ce&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var yk=1e4,JJ=0,PM=1,RM=2,QJ=we();function eQ(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function tQ(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function EM(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=eQ(r,n);if(i){var o=tQ(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function kM(r){var e=[];return D(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>yk))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:EM(a,o,n,!1),childGroupId:EM(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function zg(r,e,t){r.traverse(function(a){a instanceof Ce&&Qe(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Vg(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function ps(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function rQ(r,e,t){var a=sl("update",t,e);a&&r.traverse(function(n){if(n instanceof Yr){var i=O5(n);i&&n.animateFrom({style:i},a)}})}function aQ(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function mk(r,e,t){var a=kM(r),n=kM(e);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?F(F({},x.style),_.style):_.style},w)}var o=!1,s=JJ,l=te(),u=te();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var v=n[f].groupId;if(u.get(v)){s=PM;break}var c=n[f].childGroupId;if(c&&l.get(c)){s=RM;break}}function h(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===PM?x.childGroupId:x.groupId:s===RM?x.childGroupId:x.groupId}}var d=aQ(a,n),p={};if(!d)for(var f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=a[S],b=n[_],w=b.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),M=b.data.getItemGraphicEl(b.dataIndex);if(T===M){M&&rQ(M,b.dataIndex,w);return}T&&p[T.id]||M&&(ps(M),T?(ps(T),Vg(T),o=!0,Bg(Ji(T),Ji(M),b.divide,w,_,i)):zg(M,w,_))}new _n(a,n,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=n[_],b=x.data,w=b.hostModel,T=b.getItemGraphicEl(x.dataIndex),M=Fe(Y(S,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==T&&!p[C.id]});T&&(ps(T),M.length?(D(M,function(C){ps(C),Vg(C)}),o=!0,Bg(Ji(M),Ji(T),x.divide,w,_,i)):zg(T,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=a[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&p[b.id])){var w=Fe(Y(_,function(M){return n[M].data.getItemGraphicEl(n[M].dataIndex)}),function(M){return M&&M!==b}),T=n[_[0]].data.hostModel;w.length&&(D(w,function(M){return ps(M)}),b?(ps(b),Vg(b),o=!0,Bg(Ji(b),Ji(w),x.divide,T,_[0],i)):D(w,function(M){return zg(M,T,_[0])}))}}).updateManyToMany(function(_,S){new _n(S,_,function(x){return a[x].data.getId(a[x].dataIndex)},function(x){return n[x].data.getId(n[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&D(e,function(_){var S=_.data,x=S.hostModel,b=x&&t.getViewOfSeriesModel(x),w=sl("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof Ce&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function OM(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function NM(r){return U(r)?r.sort().join(","):r}function Gn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function nQ(r,e){var t=te(),a=te(),n=te();return D(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=OM(i),f=NM(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&D(u,function(v){n.set(v,{key:f,dataGroupId:s,data:l})})}),D(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=OM(i),u=NM(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Gn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Gn(s),data:s}]});else if(U(l)){var v=[];D(l,function(d){var p=a.get(d);p.data&&v.push({dataGroupId:p.dataGroupId,divide:Gn(p.data),data:p.data})}),v.length&&t.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:Gn(s)}]})}else{var c=n.get(l);if(c){var h=t.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Gn(c.data)}],newSeries:[]},t.set(c.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Gn(s)})}}}}),t}function BM(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function iQ(r,e,t,a){var n=[],i=[];D(Ze(r.from),function(o){var s=BM(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Gn(e.oldData[s]),groupIdDim:o.dimension})}),D(Ze(r.to),function(o){var s=BM(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Gn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&mk(n,i,a)}function oQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){D(Ze(a.seriesTransition),function(n){D(Ze(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][nc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=QJ(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)D(Ze(i),function(h){iQ(h,n,a,t)});else{var o=nQ(n,a);D(o.keys(),function(h){var d=o.get(h);mk(d.oldSeries,d.newSeries,t)})}D(a.updatedSeries,function(h){h[nc]&&(h[nc]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<yk&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}var sQ=(function(){function r(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return r.prototype.setBreaks=function(e){this.breaks=e.breaks},r.prototype.update=function(e){uQ(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<e&&e<n.vmax){var i=t(e,n.vmax);return i}}return 0},r.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},r.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},r.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},r.prototype.elapse=function(e){for(var t=zM,a=VM,n=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(e<=o.vmax){e>o.vmin?t+=o.vmin-a+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:t+=e-a,a=o.vmax,n=!1;break}t+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(t+=e-a),t},r.prototype.unelapse=function(e){for(var t=zM,a=VM,n=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=t+s.vmin-a,u=l+s.gapReal;if(e<=u){e>l?i=s.vmin+(e-l)/(u-l)*(s.vmax-s.vmin):i=a+e-t,a=s.vmax,n=!1;break}t=u,a=s.vmax}return n&&(i=a+e-t),i},r})();function lQ(){return new sQ}var zM=0,VM=0;function uQ(r,e){var t=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};D(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=P1(s,e);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&v))if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=c,a[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));D(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?Math.max(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function fQ(r,e,t,a,n,i){r!=="no"&&D(t,function(o){var s=P1(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=a(u),v=n*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&e.splice(l,1)}})}function vQ(r,e,t,a){D(e,function(n){var i=P1(n,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:a?a(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:a?a(i):void 0}))}),e.length&&r.sort(function(n,i){return n.value-i.value})}function P1(r,e){var t=Math.max(r.vmin,e[0]),a=Math.min(r.vmax,e[1]);return t<a||t===a&&t>e[0]&&t<e[1]?{vmin:t,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function r0(r,e,t){var a=[];if(!r)return{breaks:a};function n(o,s){return o>=0&&o<1-1e-5}D(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ie(o),vmin:e(o.start),vmax:e(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(X(o.gap)){var u=Hr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=e(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&D(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return D(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function R1(r,e){return a0(e)===a0(r)}function a0(r){return r.start+"_\0_"+r.end}function cQ(r,e,t){var a=[];D(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&a.push([o])}),D(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=Ro(a,function(u){return R1(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return D(a,function(i){i.length===2&&n.push(t?i:[r[i[0]],r[i[1]]])}),n}function hQ(r,e,t,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=Ro(t,function(v){return R1(v.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(e,o.vmin),s.vmin),u=a(Math.pow(e,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?pt(Math.pow(e,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function dQ(r,e,t){var a={noNegative:!0},n=r0(r,t,a),i=r0(r,t,a),o=Math.log(e);return i.breaks=Y(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var pQ={vmin:"start",vmax:"end"};function gQ(r,e){return e&&(r=r||{},r.break={type:pQ[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function yQ(){nG({createScaleBreakContext:lQ,pruneTicksByBreak:fQ,addBreaksToTicks:vQ,parseAxisBreakOption:r0,identifyAxisBreak:R1,serializeAxisBreakIdentifier:a0,retrieveAxisBreakPairs:cQ,getTicksLogTransformBreak:hQ,logarithmicParseBreaksFromOption:dQ,makeAxisLabelFormatterParamBreak:gQ})}var GM=we();function mQ(r,e){var t=Ro(r,function(a){return yt().identifyAxisBreak(a.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function _Q(r){D(r,function(e){return e.shouldRemove=!0})}function SQ(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function bQ(r,e,t,a,n){var i=t.axis;if(i.scale.isBlank()||!yt())return;var o=yt().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(M){return M.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var v=s.get("expandOnClick"),c=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new ne({ignoreModelZ:!0}),S=i.isHorizontal(),x=GM(e).visualList||(GM(e).visualList=[]);_Q(x);for(var b=function(M){var C=o[M][0].break.parsedBreak,A=[];A[0]=i.toGlobalCoord(i.dataToCoord(C.vmin,!0)),A[1]=i.toGlobalCoord(i.dataToCoord(C.vmax,!0)),A[1]<A[0]&&A.reverse();var I=mQ(x,C);I.shouldRemove=!1;var L=new ne;T(I.zigzagRandomList,L,A[0],A[1],S,C),v&&L.on("click",function(){var P={type:ed,breaks:[{start:C.breakOption.start,end:C.breakOption.end}]};P[i.dim+"AxisIndex"]=t.componentIndex,n.dispatchAction(P)}),L.silent=!v,_.add(L)},w=0;w<o.length;w++)b(w);r.add(_),SQ(x);function T(M,C,A,I,L,P){var R={stroke:p,lineWidth:g,lineDash:y,fill:"none"},E=L?0:1,O=1-E,k=a[pe[O]]+a[mt[O]];function B(We){var Pe=[],ze=[];Pe[E]=ze[E]=We,Pe[O]=a[pe[O]],ze[O]=k;var Ue={x1:Pe[0],y1:Pe[1],x2:ze[0],y2:ze[1]};return Nh(Ue,Ue,{lineWidth:1}),Pe[0]=Ue.x1,Pe[1]=Ue.y1,Pe[E]}A=B(A),I=B(I);for(var V=[],H=[],W=!0,$=a[pe[O]],j=0;;j++){var ce=$===a[pe[O]],Re=$>=k;Re&&($=k);var He=[],le=[];He[E]=A,le[E]=I,!ce&&!Re&&(He[E]+=W?-l:l,le[E]-=W?l:-l),He[O]=$,le[O]=$,V.push(He),H.push(le);var K=void 0;if(j<M.length?K=M[j]:(K=Math.random(),M.push(K)),$+=K*(f-u)+u,W=!W,Re)break}var ge=yt().serializeAxisBreakIdentifier(P.breakOption);if(C.add(new Ut({anid:"break_a_"+ge,shape:{points:V},style:R,z:c})),P.gapReal!==0){C.add(new Ut({anid:"break_b_"+ge,shape:{points:H},style:R,z:c}));var ee=H.slice();ee.reverse();var he=V.concat(ee);C.add(new jt({anid:"break_c_"+ge,shape:{points:he},style:{fill:m,opacity:d.opacity},z:c}))}}}function xQ(r,e,t,a){var n=r.axis,i=t.transform;qt(a.style);var o=n.getExtent();n.inverse&&(o=o.slice(),o.reverse());var s=yt().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=Y(s,function(g){var y=g[0].break.parsedBreak,m=[n.dataToCoord(y.vmin,!0),n.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:yt().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var c=l[v],h=Math.max(c.coordPair[0],o[0]),d=Math.min(c.coordPair[1],o[1]);u<=h&&p(u,h,f,c),u=d,f=c}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(A,I){i&&(ct(A,A,i),ct(I,I,i))}function x(A,I){var L={x1:A[0],y1:A[1],x2:I[0],y2:I[1]};Nh(L,L,a.style),A[0]=L.x1,A[1]=L.y1,I[0]=L.x2,I[1]=L.y2}var b=[g,0],w=[y,0],T=[g,5],M=[y,5];S(b,T),x(b,T),S(w,M),x(w,M),x(b,w);var C=new gt(F({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},a));e.add(C),C.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function wQ(r,e,t){if(Ro(t,function(m){return!m}))return;var a=new se;if(!Jh(t[0],t[1],a,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var n=Bt();di(n,n,-e);var i=Y(t,function(m){return m.transform?Ba(Bt(),n,m.transform):n});function o(m){var _=t[0].localRect,S=new se(_[mt[m]]*i[0][0],_[mt[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=Y(t,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new se;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(n);var f=a.clone().transform(n),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new se,y=new se;se.scale(g,a,-s),se.scale(y,a,1-s),nm(t[0],g),nm(t[1],y)}function TQ(r,e){var t={breaks:[]};return D(e.breaks,function(a){if(a){var n=Ro(r.get("breaks",!0),function(s){return yt().identifyAxisBreak(s,a)});if(n){var i=e.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===ed?!0:i===VP?!1:i===GP?!n.isExpanded:n.isExpanded,t.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),t}function CQ(){SU({adjustBreakLabelPair:wQ,buildAxisBreakLine:xQ,rectCoordBuildBreakAxis:bQ,updateModelAxisBreak:TQ})}function AQ(r){AU(r),yQ(),CQ()}function MQ(){ZU(DQ)}function DQ(r,e){D(r,function(t){if(!t.model.get(["axisLabel","inside"])){var a=LQ(t);if(a){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[n]-=a[n]+i,t.position==="top"?e.y+=a.height+i:t.position==="left"&&(e.x+=a.width+i)}}})}function LQ(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var a,n,i=t.getExtent();t instanceof Ys?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=hl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var v=a?a[f]:{value:i[0]+f},c=s(v,f),h=o.getTextRect(c),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),b=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new ve(g.x,g.y,x,b);return w}}be([m4]);be([h4]);be([z4,Q4,uU,c6,w6,c8,V8,xY,WY,KY,r$,f$,a7,M7,z7,e9,n9,d9,b9,R9,z9,X9,RZ]);be(jZ);be(xX);be(cR);be(kX);be(JR);be(zX);be(nq);be(hq);be(Qq);be(mK);be(Sf);be(kK);be(BK);be(ZK);be(tj);be(sj);be(hj);be(wj);be(Hj);be(nk);be(ik);be(lJ);be(fk);be(vk);be(cJ);be(yJ);be(IJ);be(EJ);be(oQ);be(EW);be(AQ);be(MQ);be(h6);function FQ(){async function r(){try{const e=await WN();return e.success?e.data:null}catch(e){console.error("Failed to load monitor data:",e)}return null}return{loadData:r}}function HQ(){const{t:r}=jM(),e=Me(null),t=Me(null),a=Me(null),n=Me(null),i=Me(null),o=Me(null),s=Me(null);let l=null,u=null,f=null,v=null,c=null,h=null,d=null;const p=(C,A,I,L)=>{const P=JSON.parse(JSON.stringify(GN));P.title.text=I+r("label.proportion"),P.series[0].name=I,P.series[0].itemStyle.color=R=>VN(R.dataIndex),P.series[0].data=Array.isArray(A)?A.map(R=>({name:R.label,value:R.value,formattedValue:R.formattedValue})):[{value:A,name:I,formattedValue:L},{value:100-A,name:"",formattedValue:""}],P.graphic.elements[0].style.text=`${I}
40
+ ${L}`,P.tooltip=P.tooltip||{},P.tooltip.position=R=>[R[0]+15,R[1]],P.tooltip.formatter=R=>{if(Array.isArray(R))return R.map(E=>{const O=E.data&&E.data.formattedValue?E.data.formattedValue:E.value;return`${E.seriesName} <br/> ${E.marker} ${E.name}: ${O} (${E.percent}%)`}).join("<br/>");{const E=R.data&&R.data.formattedValue?R.data.formattedValue:R.value;return`${R.seriesName} <br/> ${R.marker} ${R.name}: ${E} (${R.percent}%)`}},C.setOption(P)},g=(C,A,I)=>{const L=JSON.parse(JSON.stringify(FN)),P=[...A].sort((R,E)=>R.docValue-E.docValue);L.yAxis.data=P.map(R=>R.label),L.series[0].name=I,L.series[0].data=P.map(R=>R.docValue),C.setOption(L)},y=(C,A,I,L,P)=>{const R=JSON.parse(JSON.stringify(HN)),E=nS[P]||nS.default,{gradientColor:O,areaGradientColor:k}=E;if(R.xAxis.data=I,R.series[0].name=A,R.series[0].data=L,R.series[0].lineStyle.color=O,R.series[0].areaStyle.color=k,A.includes(r("label.attachmentSize"))){R.yAxis.axisLabel={formatter:V=>V.toFixed(2)};const B=A.match(/\(([^)]+)\)/);B&&(R.yAxis.name=`${r("label.unit")}:${B[1]}`,R.yAxis.nameLocation="end",R.yAxis.nameGap=15,R.yAxis.nameTextStyle={align:"right",fontSize:12,color:"#666"})}C.setOption(R)},m=(C,A,I,L,P=!1)=>{if(C){const R=dp(C);return p(R,A,I,L),R}return null},_=(C,A,I)=>{if(C){const L=dp(C);return g(L,A,I),L}return null},S=(C,A,I,L,P)=>{if(C){const R=dp(C);return y(R,A,I,L,P),R}return null};return{chart1:e,chart2:t,chart3:a,rightChart:n,bottomChart1:i,bottomChart2:o,bottomChart3:s,initPieCharts:C=>{if(C&&C.types){const A=Object.entries(C.types),I=A.map(([R,E])=>({label:E.name,value:E.total.documentCount,formattedValue:E.total.documentCount.toString()})),L=A.map(([R,E])=>({label:E.name,value:E.total.streamCount,formattedValue:E.total.streamCount.toString()})),P=A.map(([R,E])=>({label:E.name,value:E.total.streamSize,formattedValue:E.total.streamSizeVal}));l=m(e.value,I,r("label.documentCount"),C.total.documentCount.toString(),!0),u=m(t.value,L,r("label.attachmentCount"),C.total.streamCount.toString()),f=m(a.value,P,r("label.attachmentSize"),C.total.streamSizeVal)}},initRightBarChart:C=>{v=_(n.value,C,r("label.documentCount"))},initBottomCharts:C=>{if(C&&C.months){const A=Object.keys(C.months).sort(),I=A.map(O=>C.months[O].documentCount);c=S(i.value,r("label.documentCount"),A,I,"#F6693D");const L=A.map(O=>C.months[O].streamCount);h=S(o.value,r("label.attachmentCount"),A,L,"#622BDF");const P=A.map(O=>{const k=C.months[O].streamSizeVal,B=Number.parseFloat(k);return Number.isNaN(B)?0:B});let R="";for(const O of A){const B=C.months[O].streamSizeVal.match(/[A-Z]+/);if(B){R=B[0];break}}const E=R?`${r("label.attachmentSize")} (${R})`:r("label.attachmentSize");d=S(s.value,E,A,P,"#47C86B")}},resizeAllCharts:()=>{l?.resize(),u?.resize(),f?.resize(),v?.resize(),c?.resize(),h?.resize(),d?.resize()},destroyAllCharts:()=>{l?.dispose(),u?.dispose(),f?.dispose(),v?.dispose(),c?.dispose(),h?.dispose(),d?.dispose()}}}export{tD as C,kQ as E,ys as U,BQ as _,FQ as a,zQ as b,VQ as c,OQ as d,FO as e,GQ as f,NQ as g,ZO as h,dp as i,YO as j,EQ as k,aD as l,$O as m,eD as n,Fn as o,fN as p,fd as t,HQ as u};