PageSourceSearch

https://oecd-public-integrity-indicators.org/_nuxt/BYw7giOy.js

js oecd-public-integrity-indicators.org collected 2026-09-28 09:41:27 UTC 785,169 bytes, 57 lines download raw bytes

1import{e as jn,y as fp,o as _e,k as ze,w as Re,r as at,K as mr,l as X,P as Qf,v as N2,z as z2,F as Gt,L as H2,M as Dx,m as Kt,C as G2,N as hp,b9 as Ax,O as cp,Q as Lx,aM as V2,T as kx,aY as U2,ba as W2,bb as $2,a as Fn,U as Xe,b as je,Y as ha,c as Mt,V as ca,d as ks,t as go,bc as Uu,a0 as Wu,ak as Y2,al as X2,S as Px,bd as q2,an as Z2,Z as K2,X as ea,W as rs,be as j2,bf as Mr,aR as Q2,bg as Ix,aF as J2,aG as eM,aH as tM,ae as $u,af as Yu,b1 as rM,bh as Ex,am as Mv,bi as nM,bj as aM,bk as iM,az as Dv,a6 as De,bl as oM,bm as sM,bn as lM,bo as uM,q as fM,H as hM,a2 as Ox,bp as Rx,a1 as Jf,aq as eh,aj as cM,aA as vM,bq as dM,aQ as o0,h as pM,D as gM,br as mM,bs as yM,bt as Fx,bu as _M,u as xM,aD as wM,ay as SM,bv as bM,ah as TM}from"./BTYw87Qv.js";import{V as CM,u as MM}from"./Bzf0UvO2.js";import{d as kn,u as th,b as Rh,c as DM}from"./Bv9Z3nCr.js";import{_ as AM}from"./DlAUqK2U.js";import{b as LM}from"./DdCRnUws.js";import{c as kM}from"./CoVtYypi.js";var PM=jn({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(t){const e=t;return fp(),(r,n)=>(_e(),ze(X(Qf),mr(e,{onMousedown:n[0]||(n[0]=a=>{!a.defaultPrevented&&a.detail>1&&a.preventDefault()})}),{default:Re(()=>[at(r.$slots,"default")]),_:3},16))}}),IM=PM;const[EM,OM]=G2("SwitchRoot");var RM=jn({__name:"SwitchRoot",props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:"on"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,{disabled:a}=N2(r),i=z2(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0});function o(){a.value||(i.value=!i.value)}const{forwardRef:s,currentElement:l}=fp(),u=MM(l),f=Kt(()=>r.id&&l.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0);return OM({modelValue:i,toggleCheck:o,disabled:a}),(h,v)=>(_e(),ze(X(Qf),mr(h.$attrs,{id:h.id,ref:X(s),role:"switch",type:h.as==="button"?"button":void 0,value:h.value,"aria-label":h.$attrs["aria-label"]||f.value,"aria-checked":X(i),"aria-required":h.required,"data-state":X(i)?"checked":"unchecked","data-disabled":X(a)?"":void 0,"as-child":h.asChild,as:h.as,disabled:X(a),onClick:o,onKeydown:H2(Dx(o,["prevent"]),["enter"])}),{default:Re(()=>[at(h.$slots,"default",{modelValue:X(i)}),X(u)&&h.name?(_e(),ze(X(CM),{key:0,type:"checkbox",name:h.name,disabled:X(a),required:h.required,value:h.value,checked:!!X(i)},null,8,["name","disabled","required","value","checked"])):Gt("v-if",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),FM=RM,BM=jn({__name:"SwitchThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(t){const e=EM();return fp(),(r,n)=>(_e(),ze(X(Qf),{"data-state":X(e).modelValue?.value?"checked":"unchecked","data-disabled":X(e).disabled.value?"":void 0,"as-child":r.asChild,as:r.as},{default:Re(()=>[at(r.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}}),NM=BM;function dH(t,e=0){if(typeof t!="number"||!Number.isFinite(t))return"-";const r=10**e;return Math.round(t*r)/r}function pH(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}const zM={slots:{root:"relative flex items-start",base:["inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-accented","transition-[background] duration-200"],container:"flex items-center",thumb:"group pointer-events-none rounded-full bg-default shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center",icon:["absolute shrink-0 group-data-[state=unchecked]:text-dimmed opacity-0 size-10/12","transition-[color,opacity] duration-200"],wrapper:"ms-2",label:"block font-medium text-default",description:"text-muted"},variants:{color:{primary:{base:"data-[state=checked]:bg-primary focus-visible:outline-primary",icon:"group-data-[state=checked]:text-primary"},secondary:{base:"data-[state=checked]:bg-secondary focus-visible:outline-secondary",icon:"group-data-[state=checked]:text-secondary"},success:{base:"data-[state=checked]:bg-success focus-visible:outline-success",icon:"group-data-[state=checked]:text-success"},info:{base:"data-[state=checked]:bg-info focus-visible:outline-info",icon:"group-data-[state=checked]:text-info"},warning:{base:"data-[state=checked]:bg-warning focus-visible:outline-warning",icon:"group-data-[state=checked]:text-warning"}
1,error:{base:"data-[state=checked]:bg-error focus-visible:outline-error",icon:"group-data-[state=checked]:text-error"},neutral:{base:"data-[state=checked]:bg-inverted focus-visible:outline-inverted",icon:"group-data-[state=checked]:text-highlighted"}},size:{xs:{base:"w-7",container:"h-4",thumb:"size-3 data-[state=checked]:translate-x-3 data-[state=checked]:rtl:-translate-x-3",wrapper:"text-xs"},sm:{base:"w-8",container:"h-4",thumb:"size-3.5 data-[state=checked]:translate-x-3.5 data-[state=checked]:rtl:-translate-x-3.5",wrapper:"text-xs"},md:{base:"w-9",container:"h-5",thumb:"size-4 data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4",wrapper:"text-sm"},lg:{base:"w-10",container:"h-5",thumb:"size-4.5 data-[state=checked]:translate-x-4.5 data-[state=checked]:rtl:-translate-x-4.5",wrapper:"text-sm"},xl:{base:"w-11",container:"h-6",thumb:"size-5 data-[state=checked]:translate-x-5 data-[state=checked]:rtl:-translate-x-5",wrapper:"text-base"}},checked:{true:{icon:"group-data-[state=checked]:opacity-100"}},unchecked:{true:{icon:"group-data-[state=unchecked]:opacity-100"}},loading:{true:{icon:"animate-spin"}},required:{true:{label:"after:content-['*'] after:ms-0.5 after:text-error"}},disabled:{true:{root:"opacity-75",base:"cursor-not-allowed",label:"cursor-not-allowed",description:"cursor-not-allowed"}}},defaultVariants:{color:"primary",size:"md"}},gH=Object.assign({inheritAttrs:!1},{__name:"USwitch",props:Uu({as:{type:null,required:!1},color:{type:null,required:!1},size:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},checkedIcon:{type:null,required:!1},uncheckedIcon:{type:null,required:!1},label:{type:String,required:!1},description:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},value:{type:String,required:!1},defaultValue:{type:Boolean,required:!1}},{modelValue:{type:Boolean,default:void 0},modelModifiers:{}}),emits:Uu(["change"],["update:modelValue"]),setup(t,{emit:e}){const r=t,n=hp(),a=e,i=Ax(t,"modelValue",{type:Boolean,default:void 0}),o=cp(),s=Lx("switch",r),l=V2(kx(r,"required","value","defaultValue")),{id:u,emitFormChange:f,emitFormInput:h,size:v,color:c,name:d,disabled:p,ariaAttrs:g}=U2(r),m=u.value??W2(),y=$2(),_=Kt(()=>{const{"data-state":w,...b}=y;return b}),x=Kt(()=>Wu({extend:Wu(zM),...o.ui?.switch||{}})({size:v.value,color:c.value,required:r.required,loading:r.loading,disabled:p.value||r.loading}));function S(w){const b=new Event("change",{target:{value:w}});a("change",b),f(),h()}return(w,b)=>(_e(),ze(X(Qf),{as:t.as,"data-slot":"root",class:Xe(x.value.root({class:[X(s)?.root,r.class]}))},{default:Re(()=>[Fn("div",{"data-slot":"container",class:Xe(x.value.container({class:X(s)?.container}))},[je(X(FM),mr({id:X(m)},{...X(l),..._.value,...X(g)},{modelValue:i.value,"onUpdate:modelValue":[b[0]||(b[0]=M=>i.value=M),S],name:X(d),disabled:X(p)||t.loading,"data-slot":"base",class:x.value.base({class:X(s)?.base})}),{default:Re(()=>[je(X(NM),{"data-slot":"thumb",class:Xe(x.value.thumb({class:X(s)?.thumb}))},{default:Re(()=>[t.loading?(_e(),ze(ha,{key:0,name:t.loadingIcon||X(o).ui.icons.loading,"data-slot":"icon",class:Xe(x.value.icon({class:X(s)?.icon,checked:!0,unchecked:!0}))},null,8,["name","class"])):(_e(),Mt(ca,{key:1},[t.checkedIcon?(_e(),ze(ha,{key:0,name:t.checkedIcon,"data-slot":"icon",class:Xe(x.value.icon({class:X(s)?.icon,checked:!0}))},null,8,["name","class"])):Gt("",!0),t.uncheckedIcon?(_e(),ze(ha,{key:1,name:t.uncheckedIcon,"data-slot":"icon",class:Xe(x.value.icon({class:X(s)?.icon,unchecked:!0}))},null,8,["name","class"])):Gt("",!0)],64))]),_:1},8,["class"])]),_:1},16,["id","modelValue","name","disabled","class"])],2),t.label||n.label||t.description||n.description?(_e(),Mt("div",{key:0,"data-slot":"wrapper",class:Xe(x.value.wrapper({class:X(s)?.wrapper}))},[t.label||n.label?(_e(),ze(X(IM),{key:0,for:X(m),"data-slot":"label",class:Xe(x.value.label({class:X(s)?.label}))},{default:Re(()=>[at(w.$slots,"label",{label:t.label},()=>[ks(go(t.label),1)])]),_:3},8,["for","class"])):Gt("",!0),t.description||n.description?(_e(),Mt("p",{key:1,"data-slot":"description",class:Xe(x.value.description({class:X(s)?.description}))},[at(w.$slots,"description",{description:t.description},()=>[ks(go(t.description),1)])],2)):Gt("",!0)],2)):Gt("",!0)]),_:3},8,["as","class"]))}}),Bx={__name:"UDropdownMenuContent",props:{items:{type:null,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0},sub:{type:Boolean,required:!1},labelKey:{type:null,required:!0},descriptionKey:{type:null,required:!0},checkedIcon:{type:null,required:!1},loadingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0},class:{type:null,required:!1},ui:{type:null,required:!0},uiOverride:{type:null,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,a=hp(),{dir:i}=Y2(),o=cp(),s=X2(Mv(()=>r.portal)),l=Px(q2(r,"sub","items","portal","labelKey","descriptionKey","checkedIcon","loadingIcon","externalIcon","class","ui","uiOverride"),n),u=()=>Ex(a,["default"]),[f,h]=Z2(),v=Kt(()=>i.value==="rtl"?o.ui.icons.chevronLeft:o.ui.icons.chevronRight),c=Kt(()=>r.items?.length?rM(r.items)?r.items:[r.items]:[]);return(d,p)=>
1(_e(),Mt(ca,null,[je(X(f),null,{default:Re(({item:g,active:m,index:y})=>[at(d.$slots,g.slot||"item",{item:g,index:y,ui:t.ui},()=>[at(d.$slots,g.slot?`${g.slot}-leading`:"item-leading",{item:g,active:m,index:y,ui:t.ui},()=>[g.loading?(_e(),ze(ha,{key:0,name:t.loadingIcon||X(o).ui.icons.loading,"data-slot":"itemLeadingIcon",class:Xe(t.ui.itemLeadingIcon({class:[t.uiOverride?.itemLeadingIcon,g.ui?.itemLeadingIcon],color:g?.color,loading:!0}))},null,8,["name","class"])):g.icon?(_e(),ze(ha,{key:1,name:g.icon,"data-slot":"itemLeadingIcon",class:Xe(t.ui.itemLeadingIcon({class:[t.uiOverride?.itemLeadingIcon,g.ui?.itemLeadingIcon],color:g?.color,active:m}))},null,8,["name","class"])):g.avatar?(_e(),ze(K2,mr({key:2,size:g.ui?.itemLeadingAvatarSize||t.uiOverride?.itemLeadingAvatarSize||t.ui.itemLeadingAvatarSize()},g.avatar,{"data-slot":"itemLeadingAvatar",class:t.ui.itemLeadingAvatar({class:[t.uiOverride?.itemLeadingAvatar,g.ui?.itemLeadingAvatar],active:m})}),null,16,["size","class"])):Gt("",!0)]),X(ea)(g,r.labelKey)||a[g.slot?`${g.slot}-label`:"item-label"]||X(ea)(g,r.descriptionKey)||a[g.slot?`${g.slot}-description`:"item-description"]?(_e(),Mt("span",{key:0,"data-slot":"itemWrapper",class:Xe(t.ui.itemWrapper({class:[t.uiOverride?.itemWrapper,g.ui?.itemWrapper]}))},[Fn("span",{"data-slot":"itemLabel",class:Xe(t.ui.itemLabel({class:[t.uiOverride?.itemLabel,g.ui?.itemLabel],active:m}))},[at(d.$slots,g.slot?`${g.slot}-label`:"item-label",{item:g,active:m,index:y},()=>[ks(go(X(ea)(g,r.labelKey)),1)]),g.target==="_blank"&&t.externalIcon!==!1?(_e(),ze(ha,{key:0,name:typeof t.externalIcon=="string"?t.externalIcon:X(o).ui.icons.external,"data-slot":"itemLabelExternalIcon",class:Xe(t.ui.itemLabelExternalIcon({class:[t.uiOverride?.itemLabelExternalIcon,g.ui?.itemLabelExternalIcon],color:g?.color,active:m}))},null,8,["name","class"])):Gt("",!0)],2),X(ea)(g,r.descriptionKey)||a[g.slot?`${g.slot}-description`:"item-description"]?(_e(),Mt("span",{key:0,"data-slot":"itemDescription",class:Xe(t.ui.itemDescription({class:[t.uiOverride?.itemDescription,g.ui?.itemDescription]}))},[at(d.$slots,g.slot?`${g.slot}-description`:"item-description",{item:g,active:m,index:y},()=>[ks(go(X(ea)(g,r.descriptionKey)),1)])],2)):Gt("",!0)],2)):Gt("",!0),Fn("span",{"data-slot":"itemTrailing",class:Xe(t.ui.itemTrailing({class:[t.uiOverride?.itemTrailing,g.ui?.itemTrailing]}))},[at(d.$slots,g.slot?`${g.slot}-trailing`:"item-trailing",{item:g,active:m,index:y,ui:t.ui},()=>[g.children?.length?(_e(),ze(ha,{key:0,name:v.value,"data-slot":"itemTrailingIcon",class:Xe(t.ui.itemTrailingIcon({class:[t.uiOverride?.itemTrailingIcon,g.ui?.itemTrailingIcon],color:g?.color,active:m}))},null,8,["name","class"])):g.kbds?.length?(_e(),Mt("span",{key:1,"data-slot":"itemTrailingKbds",class:Xe(t.ui.itemTrailingKbds({class:[t.uiOverride?.itemTrailingKbds,g.ui?.itemTrailingKbds]}))},[(_e(!0),Mt(ca,null,rs(g.kbds,(_,x)=>(_e(),ze(j2,mr({key:x,size:g.ui?.itemTrailingKbdsSize||t.uiOverride?.itemTrailingKbdsSize||t.ui.itemTrailingKbdsSize()},{ref_for:!0},typeof _=="string"?{value:_}:_),null,16,["size"]))),128))],2)):Gt("",!0)]),je(X(Mr).ItemIndicator,{"as-child":""},{default:Re(()=>[je(ha,{name:t.checkedIcon||X(o).ui.icons.check,"data-slot":"itemTrailingIcon",class:Xe(t.ui.itemTrailingIcon({class:[t.uiOverride?.itemTrailingIcon,g.ui?.itemTrailingIcon],color:g?.color}))},null,8,["name","class"])]),_:2},1024)],2)])]),_:3}),je(X(Mr).Portal,$u(Yu(X(s))),{default:Re(()=>[(_e(),ze(Q2(t.sub?X(Mr).SubContent:X(Mr).Content),mr({"data-slot":"content",class:t.ui.content({class:[t.uiOverride?.content,r.class]})},X(l)),{default:Re(()=>[at(d.$slots,"content-top",{sub:t.sub??!1}),Fn("div",{role:"presentation","data-slot":"viewport",class:Xe(t.ui.viewport({class:t.uiOverride?.viewport}))},[(_e(!0),Mt(ca,null,rs(c.value,(g,m)=>(_e(),ze(X(Mr).Group,{key:`group-${m}`,"data-slot":"group",class:Xe(t.ui.group({class:t.uiOverride?.group}))},{default:Re(()=>[(_e(!0),Mt(ca,null,rs(g,(y,_)=>(_e(),Mt(ca,{key:`group-${m}-${_}`},[y.type==="label"?(_e(),ze(X(Mr).Label,{key:0,"data-slot":"label",class:Xe(t.ui.label({class:[t.uiOverride?.label,y.ui?.label,y.class]}))},{default:Re(()=>[je(X(h),{item:y,index:_},null,8,["item","index"])]),_:2},1032,["class"])):y.type==="separator"?(_e(),ze(X(Mr).Separator,{key:1,"data-slot":"separator",class:Xe(t.ui.separator({class:[t.uiOverride?.separator,y.ui?.separator,y.class]}))},null,8,["class"])):y?.children?.length?(_e(),ze(X(Mr).Sub,{key:2,open:y.open,"default-open":y.defaultOpen},{default:Re(()=>[je(X(Mr).SubTrigger,{as:"button",type:"button",disabled:y.disabled,"text-value":X(ea)(y,r.labelKey),"data-slot":"item",class:Xe(t.ui.item({class:[t.uiOverride?.item,y.ui?.item,y.class],color:y?.color}))},{default:Re(()=>[je(X(h),{item:y,index:_},null,8,["item","index"])]),_:2},1032,["disabled","text-value","class"]),je(Bx,mr({sub:"",class:y.ui?.content,ui:t.ui,"ui-override":t.uiOverride,portal:t.portal,items:y.children,al
1ign:"start","align-offset":-4,"side-offset":3,"label-key":t.labelKey,"description-key":t.descriptionKey,"checked-icon":t.checkedIcon,"loading-icon":t.loadingIcon,"external-icon":t.externalIcon},{ref_for:!0},y.content),Ix({_:2},[rs(u(),(x,S)=>({name:S,fn:Re(w=>[at(d.$slots,S,mr({ref_for:!0},w))])}))]),1040,["class","ui","ui-override","portal","items","label-key","description-key","checked-icon","loading-icon","external-icon"])]),_:2},1032,["open","default-open"])):y.type==="checkbox"?(_e(),ze(X(Mr).CheckboxItem,{key:3,"model-value":y.checked,disabled:y.disabled,"text-value":X(ea)(y,r.labelKey),"data-slot":"item",class:Xe(t.ui.item({class:[t.uiOverride?.item,y.ui?.item,y.class],color:y?.color})),"onUpdate:modelValue":y.onUpdateChecked,onSelect:y.onSelect},{default:Re(()=>[je(X(h),{item:y,index:_},null,8,["item","index"])]),_:2},1032,["model-value","disabled","text-value","class","onUpdate:modelValue","onSelect"])):(_e(),ze(J2,mr({key:4,ref_for:!0},X(eM)(y),{custom:""}),{default:Re(({active:x,...S})=>[je(X(Mr).Item,{"as-child":"",disabled:y.disabled,"text-value":X(ea)(y,r.labelKey),onSelect:y.onSelect},{default:Re(()=>[je(tM,mr({ref_for:!0},S,{"data-slot":"item",class:t.ui.item({class:[t.uiOverride?.item,y.ui?.item,y.class],color:y?.color,active:x})}),{default:Re(()=>[je(X(h),{item:y,active:x,index:_},null,8,["item","active","index"])]),_:2},1040,["class"])]),_:2},1032,["disabled","text-value","onSelect"])]),_:2},1040))],64))),128))]),_:2},1032,["class"]))),128))],2),at(d.$slots,"default"),at(d.$slots,"content-bottom",{sub:t.sub??!1})]),_:3},16,["class"]))]),_:3},16)],64))}},HM={slots:{content:"min-w-32 bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col",viewport:"relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",arrow:"fill-bg stroke-default",group:"p-1 isolate",label:"w-full flex items-center font-semibold text-highlighted",separator:"-mx-1 my-1 h-px bg-border",item:"group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75",itemLeadingIcon:"shrink-0",itemLeadingAvatar:"shrink-0",itemLeadingAvatarSize:"",itemTrailing:"ms-auto inline-flex gap-1.5 items-center",itemTrailingIcon:"shrink-0",itemTrailingKbds:"hidden lg:inline-flex items-center shrink-0",itemTrailingKbdsSize:"",itemWrapper:"flex-1 flex flex-col text-start min-w-0",itemLabel:"truncate",itemDescription:"truncate text-muted",itemLabelExternalIcon:"inline-block size-3 align-top text-dimmed"},variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},active:{true:{item:"text-highlighted before:bg-elevated",itemLeadingIcon:"text-default"},false:{item:["text-default data-highlighted:text-highlighted data-[state=open]:text-highlighted data-highlighted:before:bg-elevated/50 data-[state=open]:before:bg-elevated/50","transition-colors before:transition-colors"],itemLeadingIcon:["text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default","transition-colors"]}},loading:{true:{itemLeadingIcon:"animate-spin"}},size:{xs:{label:"p-1 text-xs gap-1",item:"p-1 text-xs gap-1",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemTrailingIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},sm:{label:"p-1.5 text-xs gap-1.5",item:"p-1.5 text-xs gap-1.5",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemTrailingIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},md:{label:"p-1.5 text-sm gap-1.5",item:"p-1.5 text-sm gap-1.5",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemTrailingIcon:"size-5",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"md"},lg:{label:"p-2 text-sm gap-2",item:"p-2 text-sm gap-2",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemTrailingIcon:"size-5",itemTrailingKbds:"gap-1",itemTrailingKbdsSize:"md"},xl:{label:"p-2 text-base gap-2",item:"p-2 text-base gap-2",itemLeadingIcon:"size-6",itemLeadingAvatarSize:"xs",itemTrailingIcon:"size-6",itemTrailingKbds:"gap-1",itemTrailingKbdsSize:"lg"}}},compoundVariants:[{color:"primary",active:!1,class:{item:"text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10",itemLeadingIcon:"text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary"}}
1,{color:"secondary",active:!1,class:{item:"text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10",itemLeadingIcon:"text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary"}},{color:"success",active:!1,class:{item:"text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10",itemLeadingIcon:"text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success"}},{color:"info",active:!1,class:{item:"text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10",itemLeadingIcon:"text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info"}},{color:"warning",active:!1,class:{item:"text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10",itemLeadingIcon:"text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning"}},{color:"error",active:!1,class:{item:"text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10",itemLeadingIcon:"text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error"}},{color:"primary",active:!0,class:{item:"text-primary before:bg-primary/10",itemLeadingIcon:"text-primary"}},{color:"secondary",active:!0,class:{item:"text-secondary before:bg-secondary/10",itemLeadingIcon:"text-secondary"}},{color:"success",active:!0,class:{item:"text-success before:bg-success/10",itemLeadingIcon:"text-success"}},{color:"info",active:!0,class:{item:"text-info before:bg-info/10",itemLeadingIcon:"text-info"}},{color:"warning",active:!0,class:{item:"text-warning before:bg-warning/10",itemLeadingIcon:"text-warning"}},{color:"error",active:!0,class:{item:"text-error before:bg-error/10",itemLeadingIcon:"text-error"}}],defaultVariants:{size:"md"}},vp={__name:"UDropdownMenu",props:{size:{type:null,required:!1},items:{type:null,required:!1},checkedIcon:{type:null,required:!1},loadingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},labelKey:{type:null,required:!1,default:"label"},descriptionKey:{type:null,required:!1,default:"description"},disabled:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(t,{emit:e}){const r=t,n=e,a=hp(),i=cp(),o=Lx("dropdownMenu",r),s=Px(kx(r,"defaultOpen","open","modal"),n),l=Mv(()=>Dv(r.content,{side:"bottom",sideOffset:8,collisionPadding:8})),u=Mv(()=>Dv(r.arrow,{rounded:!0})),f=()=>Ex(a,["default"]),h=Kt(()=>Wu({extend:Wu(HM),...i.ui?.dropdownMenu||{}})({size:r.size}));return(v,c)=>(_e(),ze(X(iM),$u(Yu(X(s))),{default:Re(({open:d})=>[a.default?(_e(),ze(X(nM),{key:0,"as-child":"",class:Xe(r.class),disabled:t.disabled},{default:Re(()=>[at(v.$slots,"default",{open:d})]),_:2},1032,["class","disabled"])):Gt("",!0),je(Bx,mr({class:h.value.content({class:[!a.default&&r.class,X(o)?.content]}),ui:h.value,"ui-override":X(o)},l.value,{items:t.items,portal:t.portal,"label-key":t.labelKey,"description-key":t.descriptionKey,"checked-icon":t.checkedIcon,"loading-icon":t.loadingIcon,"external-icon":t.externalIcon}),Ix({default:Re(()=>[t.arrow?(_e(),ze(X(aM),mr({key:0},u.value,{"data-slot":"arrow",class:h.value.arrow({class:X(o)?.arrow})}),null,16,["class"])):Gt("",!0)]),_:2},[rs(f(),(p,g)=>({name:g,fn:Re(m=>[at(v.$slots,g,$u(Yu(m)))])}))]),1040,["class","ui","ui-override","items","portal","label-key","description-key","checked-icon","loading-icon","external-icon"])]),_:3},16))}},rh=kM({key:t=>t,name:"assessments",url:()=>"/api/assessments",extend:t=>{const e=Kt(()=>De(t.data)?.length?GM(De(t.data)):[]),r=Kt(()=>(De(t.data)??[]).map(({year:i})=>String(i)).concat(De(e).map(({id:i})=>i))),n=Kt(()=>[...De(t.data)??[],...De(e).map(({id:i,year:o})=>({id:i,year:o}))]);function a(i){if(i)return De(n).find(o=>o.id==i)?.year.toString()}return{items:n,findName:a,years:r,aliases:e}}});function GM(t){return[{id:"LATEST",year:"Latest",transformEntries(e,r){const n=r.reduce((i,o)=>((i[o.country]??=[]).push(o),i),{}),a=Object.entries(n).map(([i,o])=>{const s=o?.filter(l=>kn(l.value)||kn(l.points)||l.comment).sort((l,u)=>Number(u.year)-Number(l.year))?.at(0);return{id:e.id,country:i,year:"LATEST",value:kn(s?.value)?Math.round(s.value*100)/100:void 0,points:kn(s?.points)?Math.round(s.points*100)/100:void 0,selected:s?.selected??void 0,comment:s?.comment}}).filter(i=>kn(i.value)||kn(i.points)||i.comment);r.push(...a)}}]}const Fh=new WeakMap;function s0(t,e,r={}){const{mode:n="replace",route:a=oM(),router:i=sM(),transform:o}=r;let s=c=>c,l=c=>c;typeof o=="function"?s=o:o&&(o.get&&(s=o.get),o.set&&(l=o.set)),Fh.has(i)||Fh.set(i,new Map);const u=Fh.get(i);let f=a.query[t];lM(()=>
1{f=void 0});let h;const v=uM((c,d)=>(h=d,{get(){return c(),s(f!==void 0?f:De(e))},set(p){p=l(p),f!==p&&(f=p===De(e)?void 0:p,u.set(t,p===De(e)?void 0:p),d(),fM(()=>{if(u.size===0)return;const g=Object.fromEntries(u.entries());u.clear();const{params:m,query:y,hash:_}=a;i[De(n)]({params:m,query:{...y,...g},hash:_})}))}}));return hM(()=>a.query[t],c=>{f!==s(c)&&(f=c,h())},{flush:"sync"}),v}function VM(){const{codes:t}=th(),{years:e}=rh(),r=Ox();function n(h){return Array.isArray(h)?h:[h]}const a={countries:"OECD_AVG",years:"LATEST"},i=s0("years",[],{transform:h=>{const v=n(h).map(c=>c&&De(e).includes(c)?c:null).filter(Rh).slice(0,2);return v.length?v:[a.years]}}),o=s0("countries",[],{transform:h=>{let v=n(h).map(c=>c&&De(t).includes(c.toUpperCase())?c.toUpperCase():null).filter(Rh).slice(0,2);return r.params.countryId&&(v=[String(r.params.countryId).toUpperCase(),v.at(-1)].filter(Rh)),v.length?v.slice(0,De(i).length):[a.countries]}}),s=Rx({countries:o,years:i});function l(){s.countries=s.countries.toReversed(),s.years=s.years.toReversed()}function u(h){s.countries=s.countries.filter((v,c)=>c!==h),s.years=s.years.filter((v,c)=>c!==h)}function f(h,v,c,d){const p=c??s.countries[0],g=d??s.years[0];return h?.find(m=>m.id===v&&m.country===p&&m.year==g)}return{query:s,codes:t,years:e,inverse:l,getEntry:f,reset:u}}const UM={key:0,class:"flex items-center gap-2"},WM=jn({__name:"menu",props:{index:{default:0},onlyAssessments:{type:Boolean},excludeAliases:{type:Boolean,default:!1},entries:{default:()=>[]}},setup(t){const{data:e,aliases:r,findName:n}=th(),{data:a,aliases:i,findName:o}=rh(),{query:s,reset:l}=VM(),{t:u}=Jf(),f=Ox();function h(_,x,S){Array.isArray(s[_])&&(s[_]=s[_].slice(0,x).concat(S).concat(s[_].slice(x+1)))}function v(_,x){return!t.entries.some(S=>(kn(S.points)||kn(S.value))&&(_?S.country==_:!0)&&(x?S.year==x:!0))}function c(_){return _.map(x=>({label:x.name,value:x.id,onSelect:()=>{h("countries",t.index,x.id),h("years",t.index,void 0)},children:g(x.id)}))}function d(){return De(e).length<2?[]:t.excludeAliases?c(De(e)):[...c(De(r)),{type:"separator"},...c(De(e))]}function p(_,x){return _.sort((w,b)=>Number(w.year)-Number(b.year)).map(w=>({label:String(w.year),disabled:v(x,w.id),onSelect:()=>{h("countries",t.index,x),h("years",t.index,String(w.id))}}))}function g(_){return De(a).length<2?[]:t.excludeAliases?p(De(a),_):[...p(De(i),_),{type:"separator"},...p(De(a),_)]}const m=Kt(()=>t.onlyAssessments||f.params.countryId&&t.index===0),y=Kt(()=>De(m)?g(f.params.countryId&&String(f.params.countryId).toUpperCase()):d());return(_,x)=>{const S=cM,w=eh,b=vp;return X(y).length?(_e(),Mt("div",UM,[je(b,{items:X(y),ui:{content:"max-h-64",item:"disabled:text-gray-400"}},{default:Re(()=>[je(w,{variant:"ghost","data-allow-mismatch":"",size:"sm","data-testid":"chart-filter-button",class:"cursor-pointer"},{default:Re(()=>[X(s).countries.at(t.index)&&X(s).years.at(t.index)?(_e(),Mt(ca,{key:0},[Fn("span",null,go(t.onlyAssessments?X(o)(X(s).years.at(t.index)):`${X(n)(X(s).countries.at(t.index))}, ${X(o)(X(s).years.at(t.index))}`),1),t.index>0?(_e(),ze(S,{key:0,name:"heroicons-outline:x","aria-role":"button",class:"ml-1 size-4 cursor-pointer",onClick:x[0]||(x[0]=Dx(M=>X(l)(t.index),["stop"]))})):Gt("",!0)],64)):(_e(),Mt(ca,{key:1},[ks(go(X(u)("compare-filters")),1)],64))]),_:1})]),_:1},8,["items"])])):Gt("",!0)}}}),mH=Object.assign(WM,{__name:"FiltersMenu"}),Nx=t=>{const e=t?.export?"black":"white",r=t?.export?30:15;return{textStyle:{color:e,fontFamily:t?.export?"Noto Sans, sans-serif":void 0},title:{left:r,top:r,textStyle:{fontSize:t?.export?18:void 0,fontWeight:t?.export?"bolder":void 0,lineHeight:t?.export?26:void 0,overflow:"break"},subtextStyle:{fontSize:t?.export?17:void 0,fontWeight:t?.export?"normal":void 0,lineHeight:t?.export?24:void 0,overflow:"break"}},legend:{textStyle:{fontSize:14,color:t?.export?"#586179":e}},tooltip:{appendToBody:!0,shadowBlur:void 0,alwaysShowContent:!1,padding:void 0,textStyle:{color:"var(--ui-text)"},backgroundColor:"var(--ui-bg)",borderColor:"var(--border)",borderWidth:void 0,borderRadius:void 0,confine:!0,className:"max-w-md overflow-hidden !whitespace-normal rounded shadow-lg px-6 py-4"},categoryAxis:{axisLabel:{color:e}},valueAxis:{axisLabel:{color:e}},visualMap:{textStyle:{color:e}},pie:{label:{color:e}},bar:{label:{color:e}},line:{label:{color:e}},heatmap:{},matrix:{top:"5%",left:"5%",right:"5%",bottom:"5%",body:{itemStyle:{borderWidth:0},label:{color:e}},backgroundStyle:{borderWidth:0},corner:{itemStyle:{borderWidth:0}},x:{label:{color:e},levelSize:0,itemStyle:{borderWidth:0},dividerLineStyle:{width:0}},y:{label:{color:e},levelSize:0,itemStyle:{borderWidth:0},dividerLineStyle:{width:0}}}}};var Av=function(t,e){return Av=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Av(t,e)};function re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Av(t,e);function r(){this.constructor=t}
1t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var dp=12,zx="sans-serif",Un=dp+"px "+zx,$M=20,YM=100,XM="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function qM(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-$M)/YM;e[n]=a}return e}var ZM=qM(XM),Wn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var a=Wn.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Un),t.measureText(r);r=r||"",n=n||Un;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||dp,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=ZM[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},Hx=$n(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Gx=$n(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),nl=Object.prototype.toString,nh=Array.prototype,KM=nh.forEach,jM=nh.filter,pp=nh.slice,QM=nh.map,l0=(function(){}).constructor,_l=l0?l0.prototype:null,gp="__proto__",JM=2311;function Vx(){return JM++}function mp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Pe(t){if(t==null||typeof t!="object")return t;var e=t,r=nl.call(t);if(r==="[object Array]"){if(!ds(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=Pe(t[n])}}else if(Gx[r]){if(!ds(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var n=0,a=t.length;n<a;n++)e[n]=t[n]}}}else if(!Hx[r]&&!ds(t)&&!Ps(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==gp&&(e[o]=Pe(t[o]))}return e}function Ge(t,e,r){if(!ge(e)||!ge(t))return r?Pe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==gp){var a=t[n],i=e[n];ge(i)&&ge(a)&&!J(i)&&!J(a)&&!Ps(i)&&!Ps(a)&&!u0(i)&&!u0(a)&&!ds(i)&&!ds(a)?Ge(a,i,r):(r||!(n in t))&&(t[n]=Pe(e[n]))}return t}function K(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==gp&&(t[r]=e[r]);return t}function Me(t,e,r){for(var n=Ce(e),a=0,i=n.length;a<i;a++){var o=n[a];t[o]==null&&(t[o]=e[o])}return t}function ke(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function eD(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function _n(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else Me(t,e)}function Wt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function I(t,e,r){if(t&&e)if(t.forEach&&t.forEach===KM)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function le(t,e,r){if(!t)return[];if(!e)return yp(t);if(t.map&&t.map===QM)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function $n(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function qe(t,e,r){if(!t)return[];if(!e)return yp(t);if(t.filter&&t.filter===jM)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function tD(t,e,r){if(t&&e){for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))return t[n]}}function Ce(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function rD(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(pp.call(arguments)))}}var He=_l&&we(_l.bind)?_l.call.bind(_l.bind):rD;function pt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(pp.call(arguments)))}}function J(t){return Array.isArray?Array.isArray(t):nl.call(t)==="[object Array]"}function we(t){return typeof t=="function"}function fe(t){return typeof t=="string"}function Lv(t){return nl.call(t)==="[object String]"}function $e(t){return typeof t=="number"}function ge(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function u0(t){return!!Hx[nl.call(t)]}function Qt(t){return!!Gx[nl.call(t)]}function Ps(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function ah(t){return t.colorStops!=null}function nD(t){return t.image!=null}function Sr(t){return t!==t}function Xu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function he(t,e){return t??e}function di(t,e,r){return t??e??r}function yp(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return pp.apply(t,e)}function _p(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function zr(t,e){if(!t)throw new Error(e)}function on(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ux="__ec_primitive__";function qu(t){t[Ux]=!0}function ds(t){return t[Ux]}var aD=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Ce(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),Wx=typeof Map=="function";function iD(){return Wx?new Map:new aD}var oD=(function(){function t(e){var r=J(e);this.data=iD();var n=this;e instanceof t?e.each(a):e&&I(e,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return Wx?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ye(t){return new oD(t)}function sD(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var a=t.length,n=0;n<e.length;n++)r[n+a]=e[n];return r}function ih(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&K(r,e),r}function $x(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Q(t,e){return t.hasOwnProperty(e)}function Ut(){}var bu=180/Math.PI,lD=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),uD=(function(){function t(){this.browser=new lD,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 t})(),be=new uD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(be.wxa=!0,be.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?be.worker=!0:!be.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(be.node=!0,be.svgSupported=!0):fD(navigator.userAgent,be);function fD(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var hD=".",Ra="___EC__COMPONENT__CONTAINER___",Yx="___EC__EXTENDED_CLASS___";function sn(t){var e={main:"",sub:""};if(t){var r=t.split(hD);e.main=r[0]||"",e.sub=r[1]||""}return e}function cD(t){zr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function vD(t){return!!(t&&t[Yx])}function xp(t,e){t.$constructor=t,t.extend=function(r){var n=this,a;return dD(n)?a=(function(i){re(o,i);function o(){return i.apply(this,arguments)||this}return o}
1)(n):(a=function(){(r.$constructor||n).apply(this,arguments)},eD(a,this)),K(a.prototype,r),a[Yx]=!0,a.extend=this.extend,a.superCall=mD,a.superApply=yD,a.superClass=n,a}}function dD(t){return we(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Xx(t,e){t.extend=e.extend}var pD=Math.round(Math.random()*10);function gD(t){var e=["__\0is_clz",pD++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function mD(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function yD(t,e,r){return this.superClass.prototype[e].apply(t,r)}function oh(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){cD(a),n.prototype.type=a;var i=sn(a);if(!i.sub)e[i.main]=n;else if(i.sub!==Ra){var o=r(i);o[i.sub]=n}}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[Ra]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var a=sn(n),i=[],o=e[a.main];return o&&o[Ra]?I(o,function(s,l){l!==Ra&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=sn(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return I(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=sn(n),i=e[a.main];return i&&i[Ra]};function r(n){var a=e[n.main];return(!a||!a[Ra])&&(a=e[n.main]={},a[Ra]=!0),a}}function Is(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&ke(a,l)>=0||i&&ke(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var _D=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],xD=Is(_D),wD=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return xD(this,e,r)},t})(),qx=(function(){function t(e){this.value=e}return t})(),SD=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new qx(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),mo=(function(){function t(e){this._list=new SD,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new qx(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),kv=new mo(50);function bD(t){if(typeof t=="string"){var e=kv.get(t);return e&&e.image}else return t}function wp(t,e,r,n,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=kv.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?(e=i.image,!sh(e)&&i.pending.push(o)):(e=Wn.loadImage(t,f0,f0),e.__zrImageSrc=t,kv.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function f0(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function sh(t){return t&&t.width&&t.height}function Bn(){return[1,0,0,1,0,0]}function Sp(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Zx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ps(t,e,r){var n=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function Pv(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function bp(t,e,r,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),h=Math.cos(r);return t[0]=a*h+s*f,t[1]=-a*f+s*h,t[2]=i*h+l*f,t[3]=-i*f+h*l,t[4]=h*(o-n[0])+f*(u-n[1])+n[0],t[5]=h*(u-n[1])-f*(o-n[0])+n[1],t}function TD(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Si(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*n;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*a)*l,t[5]=(i*a-r*s)*l,t):null}var de=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r}
1,t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t})(),hi=Math.min,ro=Math.max,Iv=Math.abs,h0=["x","y"],CD=["width","height"],Fa=new de,Ba=new de,Na=new de,za=new de,rr=Kx(),ns=rr.minTv,Ev=rr.maxTv,gs=[0,0],xe=(function(){function t(e,r,n,a){t.set(this,e,r,n,a)}return t.set=function(e,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),e.x=r,e.y=n,e.width=a,e.height=i,e},t.prototype.union=function(e){var r=hi(e.x,this.x),n=hi(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ro(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ro(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=Bn();return Pv(i,i,[-r.x,-r.y]),TD(i,i,[n,a]),Pv(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,a){n&&de.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(MD,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(DD,r.x,r.y,r.width,r.height));var s=!!n;rr.reset(a,s);var l=rr.touchThreshold,u=e.x+l,f=e.x+e.width-l,h=e.y+l,v=e.y+e.height-l,c=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||h>v||c>d||p>g)return!1;var m=!(f<c||d<u||v<p||g<h);return(s||i)&&(gs[0]=1/0,gs[1]=0,c0(u,f,c,d,0,s,i,o),c0(h,v,p,g,1,s,i,o),s&&de.copy(n,m?rr.useDir?rr.dirMinTv:ns:Ev)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=r.x*a+o,e.y=r.y*i+s,e.width=r.width*a,e.height=r.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}Fa.x=Na.x=r.x,Fa.y=za.y=r.y,Ba.x=za.x=r.x+r.width,Ba.y=Na.y=r.y+r.height,Fa.transform(n),za.transform(n),Ba.transform(n),Na.transform(n),e.x=hi(Fa.x,Ba.x,Na.x,za.x),e.y=hi(Fa.y,Ba.y,Na.y,za.y);var l=ro(Fa.x,Ba.x,Na.x,za.x),u=ro(Fa.y,Ba.y,Na.y,za.y);e.width=l-e.x,e.height=u-e.y},t})(),MD=new xe(0,0,0,0),DD=new xe(0,0,0,0);function c0(t,e,r,n,a,i,o,s){var l=Iv(e-r),u=Iv(n-t),f=hi(l,u),h=h0[a],v=h0[1-a],c=CD[a];e<r||n<t?l<u?(i&&(Ev[h]=-l),s&&(o[h]=e,o[c]=0)):(i&&(Ev[h]=u),s&&(o[h]=t,o[c]=0)):(o&&(o[h]=ro(t,r),o[c]=hi(e,n)-o[h]),i&&(f<gs[0]||rr.useDir)&&(gs[0]=hi(f,gs[0]),(l<u||!rr.bidirectional)&&(ns[h]=l,ns[v]=0,rr.useDir&&rr.calcDirMTV()),(l>=u||!rr.bidirectional)&&(ns[h]=-u,ns[v]=0,rr.useDir&&rr.calcDirMTV())))}function Kx(){var t=0,e=new de,r=new de,n={minTv:new de,maxTv:new de,useDir:!1,dirMinTv:ne
1w de,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=ro(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(t),u=Math.cos(t),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return Iv(i)<1e-10}return n}function hn(t){xl||(xl=new mo(100)),t=t||Un;var e=xl.get(t);return e||(e={font:t,strWidthCache:new mo(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Wn.measureText("国",t).width,asciiCharWidth:Wn.measureText("a",t).width},xl.put(t,e)),e}var xl;function AD(t){if(!(Bh>=v0)){t=t||Un;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Wn.measureText(String.fromCharCode(n),t).width;var a=+new Date-r;return a>16?Bh=v0:a>2&&Bh++,e}}var Bh=0,v0=5;function jx(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=AD(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function cn(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=Wn.measureText(e,t.font).width,r.put(e,n)),n}function d0(t,e,r,n){var a=cn(hn(e),t),i=al(e),o=yo(0,a,r),s=pi(0,i,n),l=new xe(o,s,a,i);return l}function Qx(t,e,r,n){var a=((t||"")+"").split(`
2`),i=a.length;if(i===1)return d0(a[0],e,r,n);for(var o=new xe(0,0,0,0),s=0;s<a.length;s++){var l=d0(a[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function yo(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function pi(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function al(t){return hn(t).stWideCharWidth}function Ta(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Zu(t,e,r){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,f="left",h="top";if(n instanceof Array)l+=Ta(n[0],r.width),u+=Ta(n[1],r.height),f=null,h=null;else switch(n){case"left":l-=a,u+=s,f="right",h="middle";break;case"right":l+=a+o,u+=s,h="middle";break;case"top":l+=o/2,u-=a,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=a,u+=s,h="middle";break;case"insideRight":l+=o-a,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",h="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,h="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=h,t}var Nh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function LD(t,e,r,n,a,i){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3`);i=Jx(r,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)ew(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4`),t.isTruncated=s}function Jx(t,e,r,n){n=n||{};var a=K({},n);r=he(r,"..."),a.maxIterations=he(n.maxIterations,2);var i=a.minChar=he(n.minChar,0),o=a.fontMeasureInfo=hn(e),s=o.asciiCharWidth;a.placeholder=he(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<i&&l>=s;u++)l-=s;var f=cn(o,r);return f>l&&(r="",f=0),l=t-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=t,a}function ew(t,e,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=cn(i,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?kD(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=cn(i,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function kD(t,e,r){for(var n=0,a=0,i=t.length;a<i&&n<e;a++)n+=jx(r,t.charCodeAt(a));return a}function PD(t,e,r,n){var a=Tp(t),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",h=al(u),v=he(e.lineHeight,h),c=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&r!=null&&(p=r-s);var g=e.height;g==null&&n!=null&&(g=n-l);var m;p!=null&&(i==="break"||i==="breakAll")?m=a?tw(a,e.font,p,i==="breakAll",0).lines:[]:m=a?a.split(`
5`):[];var y=m.length*v;if(g==null&&(g=y),y>g&&c){var _=Math.floor(g/v);d=d||m.length>_,m=m.slice(0,_),y=m.length*v}if(a&&f&&p!=null)for(var x=Jx(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},w=0;w<m.length;w++)ew(S,m[w],x),m[w]=S.textLine,d=d||S.isTruncated;for(var b=g,M=0,T=hn(u),w=0;w<m.length;w++)M=Math.max(cn(T,m[w]),M);p==null&&(p=M);var A=p;return b+=l,A+=s,{lines:m,height:g,outerWidth:A,outerHeight:b,lineHeight:v,calculatedLineHeight:h,contentWidth:M,contentHeight:y,width:p,isTruncated:d}}var ID=(function(){function t(){}return t})(),p0=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),ED=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function OD(t,e,r,n,a){var i=new ED,o=Tp(t);
5if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var h=e.height;h==null&&n!=null&&(h=n-u);for(var v=e.overflow,c=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=Nh.lastIndex=0,p;(p=Nh.exec(o))!=null;){var g=p.index;g>d&&zh(i,o.substring(d,g),e,c),zh(i,p[2],e,c,p[1]),d=Nh.lastIndex}d<o.length&&zh(i,o.substring(d,o.length),e,c);var m=[],y=0,_=0,x=v==="truncate",S=e.lineOverflow==="truncate",w={};function b(ht,ct,vt){ht.width=ct,ht.lineHeight=vt,y+=vt,_=Math.max(_,ct)}e:for(var M=0;M<i.lines.length;M++){for(var T=i.lines[M],A=0,k=0,F=0;F<T.tokens.length;F++){var O=T.tokens[F],B=O.styleName&&e.rich[O.styleName]||{},N=O.textPadding=B.padding,z=N?N[1]+N[3]:0,q=O.font=B.font||e.font;O.contentHeight=al(q);var Y=he(B.height,O.contentHeight);if(O.innerHeight=Y,N&&(Y+=N[0]+N[2]),O.height=Y,O.lineHeight=di(B.lineHeight,e.lineHeight,Y),O.align=B&&B.align||a,O.verticalAlign=B&&B.verticalAlign||"middle",S&&h!=null&&y+O.lineHeight>h){var ne=i.lines.length;F>0?(T.tokens=T.tokens.slice(0,F),b(T,k,A),i.lines=i.lines.slice(0,M+1)):i.lines=i.lines.slice(0,M),i.isTruncated=i.isTruncated||i.lines.length<ne;break e}var te=B.width,oe=te==null||te==="auto";if(typeof te=="string"&&te.charAt(te.length-1)==="%")O.percentWidth=te,m.push(O),O.contentWidth=cn(hn(q),O.text);else{if(oe){var se=B.backgroundColor,Se=se&&se.image;Se&&(Se=bD(Se),sh(Se)&&(O.width=Math.max(O.width,Se.width*Y/Se.height)))}var Ne=x&&f!=null?f-k:null;Ne!=null&&Ne<O.width?!oe||Ne<z?(O.text="",O.width=O.contentWidth=0):(LD(w,O.text,Ne-z,q,e.ellipsis,{minChar:e.truncateMinChar}),O.text=w.text,i.isTruncated=i.isTruncated||w.isTruncated,O.width=O.contentWidth=cn(hn(q),O.text)):O.contentWidth=cn(hn(q),O.text)}O.width+=z,k+=O.width,B&&(A=Math.max(A,O.lineHeight))}b(T,k,A)}i.outerWidth=i.width=he(f,_),i.outerHeight=i.height=he(h,y),i.contentHeight=y,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var M=0;M<m.length;M++){var O=m[M],mt=O.percentWidth;O.width=parseInt(mt,10)/100*i.width}return i}function zh(t,e,r,n,a){var i=e==="",o=a&&r.rich[a]||{},s=t.lines,l=o.font||r.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Ta(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
6`),u=!0),n.accumWidth=d}else{var p=tw(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}f||(f=e.split(`
7`));for(var g=hn(l),m=0;m<f.length;m++){var y=f[m],_=new ID;if(_.styleName=a,_.text=y,_.isLineHolder=!y&&!i,typeof o.width=="number"?_.width=o.width:_.width=h?h[m]:cn(g,y),!m&&!u){var x=(s[s.length-1]||(s[0]=new p0)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||i)&&x.push(_)}else s.push(new p0([_]))}}function RD(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var FD=$n(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function BD(t){return RD(t)?!!FD[t]:!0}function tw(t,e,r,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,h=hn(e),v=0;v<t.length;v++){var c=t.charAt(v);if(c===`
8`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=jx(h,c.charCodeAt(0)),p=n?!1:!BD(c);if(i.length?f+d>r:a+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=c,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=c,f=d)):p?(i.push(l),o.push(u),l=c,u=d):(i.push(c),o.push(d));continue}f+=d,p?(l+=c,u+=d):(l&&(s+=l,l="",u=0),s+=c)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function g0(t,e,r,n,a,i){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;xe.set(m0,yo(r,o,a),pi(n,s,i),o,s),xe.intersect(e,m0,null,y0);var l=y0.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=yo(l.x,l.width,a,!0),t.baseY=pi(l.y,l.height,i,!0)}}var m0=new xe(0,0,0,0),y0={outIntersectRect:{},clamp:!0};function Tp(t){return t!=null?t+="":t=""}function ND(t){var e=Tp(t.text),r=t.font,n=cn(hn(r),e),a=al(r);return Ov(t,n,a,null)}function Ov(t,e,r,n){var a=new xe(yo(t.x||0,e,t.textAlign),pi(t.y||0,r,t.textBaseline),e,r),i=n??(rw(t)?t.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function rw(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}function To(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function zD(t){return[t[0],t[1]]}function nw(t,e,r){return t[0]=e,t[1]=r,t}function _0(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function HD(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function GD(t){return Math.sqrt(VD(t))}function VD(t){return t[0]*t[0]+t[1]*t[1]}function Hh(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function UD(t,e){var r=GD(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Rv(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Fv=Rv;function WD(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var fo=WD;function Tu(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function xr(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function no(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function ao(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var x0=Sp,w0=5e-5;function Ha(t){return t>w0||t<-w0}var Ga=[],Ai=[],Gh=Bn(),Vh=Math.abs,il=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Ha(this.rotation)||Ha(this.x)||Ha(this.y)||Ha(this.scaleX-1)||Ha(this.scaleY-1)||Ha(this.skewX)||Ha(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(x0(n),this.invTransform=null);return}n=n||Bn(),r?this.getLocalTransform(n):x0(n),e&&(r?ps(n,e,n):Zx(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ga);var n=Ga[0]<0?-1:1,a=Ga[1]<0?-1:1,i=((Ga[0]-n)*r+n)/Ga[0]||0,o=((Ga[1]-a)*r+a)/Ga[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Bn(),Si(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);
8n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Bn(),ps(Ai,e.invTransform,r),r=Ai);var n=this.originX,a=this.originY;(n||a)&&(Gh[4]=n,Gh[5]=a,ps(Ai,r,Gh),Ai[4]-=n,Ai[5]-=a,r=Ai),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&xr(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&xr(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Vh(e[0]-1)>1e-10&&Vh(e[3]-1)>1e-10?Math.sqrt(Vh(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ku(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;r[4]=-d*i-v*p*o,r[5]=-p*o-c*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=c*i,r[2]=v*o,u&&bp(r,r,u),r[4]+=n+f,r[5]+=a+h,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),vn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ku(t,e){for(var r=0;r<vn.length;r++){var n=vn[r];t[n]=e[n]}}var ms={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ms.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?ms.bounceIn(t*2)*.5:ms.bounceOut(t*2-1)*.5+.5}},wl=Math.pow,xa=Math.sqrt,ju=1e-8,aw=1e-4,S0=xa(3),Sl=1/3,nn=To(),yr=To(),ho=To();function va(t){return t>-ju&&t<ju}function iw(t){return t>ju||t<-ju}function Dt(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function b0(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function ow(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-a,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(va(f)&&va(h))if(va(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}
8else{var p=h*h-4*f*v;if(va(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m)}else if(p>0){var y=xa(p),_=f*s+1.5*o*(-h+y),x=f*s+1.5*o*(-h-y);_<0?_=-wl(-_,Sl):_=wl(_,Sl),x<0?x=-wl(-x,Sl):x=wl(x,Sl);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var S=(2*f*s-3*o*h)/(2*xa(f*f*f)),w=Math.acos(S)/3,b=xa(f),M=Math.cos(w),d=(-s-2*b*M)/(3*o),m=(-s+b*(M+S0*Math.sin(w)))/(3*o),T=(-s+b*(M-S0*Math.sin(w)))/(3*o);d>=0&&d<=1&&(i[c++]=d),m>=0&&m<=1&&(i[c++]=m),T>=0&&T<=1&&(i[c++]=T)}}return c}function sw(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(va(o)){if(iw(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(va(f))a[0]=-i/(2*o);else if(f>0){var h=xa(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function Ca(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,l=(n-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;i[0]=t,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=n}function lw(t,e,r,n,a,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,m;nn[0]=l,nn[1]=u;for(var y=0;y<1;y+=.05)yr[0]=Dt(t,r,a,o,y),yr[1]=Dt(e,n,i,s,y),g=fo(nn,yr),g<c&&(h=y,c=g);c=1/0;for(var _=0;_<32&&!(v<aw);_++)d=h-v,p=h+v,yr[0]=Dt(t,r,a,o,d),yr[1]=Dt(e,n,i,s,d),g=fo(yr,nn),d>=0&&g<c?(h=d,c=g):(ho[0]=Dt(t,r,a,o,p),ho[1]=Dt(e,n,i,s,p),m=fo(ho,nn),p<=1&&m<c?(h=p,c=m):v*=.5);return f&&(f[0]=Dt(t,r,a,o,h),f[1]=Dt(e,n,i,s,h)),xa(c)}function $D(t,e,r,n,a,i,o,s,l){for(var u=t,f=e,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=Dt(t,r,a,o,d),g=Dt(e,n,i,s,d),m=p-u,y=g-f;h+=Math.sqrt(m*m+y*y),u=p,f=g}return h}function Et(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function T0(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function YD(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(va(i)){if(iw(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(va(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=xa(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function uw(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Qu(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function fw(t,e,r,n,a,i,o,s,l){var u,f=.005,h=1/0;nn[0]=o,nn[1]=s;for(var v=0;v<1;v+=.05){yr[0]=Et(t,r,a,v),yr[1]=Et(e,n,i,v);var c=fo(nn,yr);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<aw);d++){var p=u-f,g=u+f;yr[0]=Et(t,r,a,p),yr[1]=Et(e,n,i,p);var c=fo(yr,nn);if(p>=0&&c<h)u=p,h=c;else{ho[0]=Et(t,r,a,g),ho[1]=Et(e,n,i,g);var m=fo(ho,nn);g<=1&&m<h?(u=g,h=m):f*=.5}}return l&&(l[0]=Et(t,r,a,u),l[1]=Et(e,n,i,u)),xa(h)}function XD(t,e,r,n,a,i,o){for(var s=t,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Et(t,r,a,v),d=Et(e,n,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var qD=/cubic-bezier\(([0-9,\.e ]+)\)/;function Cp(t){var e=t&&qD.exec(t);if(e){var r=e[1].split(","),n=+on(r[0]),a=+on(r[1]),i=+on(r[2]),o=+on(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ow(0,n,i,1,l,s)&&Dt(0,a,o,1,s[0])}}}var ZD=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ut,this.ondestroy=e.ondestroy||Ut,this.onrestart=e.onrestart||Ut,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;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=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=we(e)?e:ms[e]||Cp(e)},t})(),C0={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 Fr(t){return t=Math.round(t),t<0?0:t>255?255:t}function KD(t){return t=Math.round(t),t<0?0:t>360?360:t}function Es(t){return t<0?0:t>1?1:t}function Uh(t){var e=t;
8return e.length&&e.charAt(e.length-1)==="%"?Fr(parseFloat(e)/100*255):Fr(parseInt(e,10))}function gi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Es(parseFloat(e)/100):Es(parseFloat(e))}function Wh(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function da(t,e,r){return t+(e-t)*r}function hr(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function Bv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var hw=new mo(20),bl=null;function Li(t,e){bl&&Bv(bl,e),bl=hw.put(t,bl||e.slice())}function wr(t,e){if(t){e=e||[];var r=hw.get(t);if(r)return Bv(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in C0)return Bv(e,C0[n]),Li(t,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){hr(e,0,0,0,1);return}return hr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Li(t,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){hr(e,0,0,0,1);return}return hr(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Li(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?hr(e,+u[0],+u[1],+u[2],1):hr(e,0,0,0,1);f=gi(u.pop());case"rgb":if(u.length>=3)return hr(e,Uh(u[0]),Uh(u[1]),Uh(u[2]),u.length===3?f:gi(u[3])),Li(t,e),e;hr(e,0,0,0,1);return;case"hsla":if(u.length!==4){hr(e,0,0,0,1);return}return u[3]=gi(u[3]),Nv(u,e),Li(t,e),e;case"hsl":if(u.length!==3){hr(e,0,0,0,1);return}return Nv(u,e),Li(t,e),e;default:return}}hr(e,0,0,0,1)}}function Nv(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=gi(t[1]),a=gi(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],hr(e,Fr(Wh(o,i,r+1/3)*255),Fr(Wh(o,i,r)*255),Fr(Wh(o,i,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function jD(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-e)/6+o/2)/o,h=((i-r)/6+o/2)/o,v=((i-n)/6+o/2)/o;e===i?l=v-h:r===i?l=1/3+f-v:n===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return t[3]!=null&&c.push(t[3]),c}}function M0(t,e){var r=wr(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Co(r,r.length===4?"rgba":"rgb")}}function yH(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return r[0]=Fr(da(o[0],s[0],l)),r[1]=Fr(da(o[1],s[1],l)),r[2]=Fr(da(o[2],s[2],l)),r[3]=Es(da(o[3],s[3],l)),r}}function _H(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=wr(e[a]),s=wr(e[i]),l=n-a,u=Co([Fr(da(o[0],s[0],l)),Fr(da(o[1],s[1],l)),Fr(da(o[2],s[2],l)),Es(da(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function zv(t,e,r,n){var a=wr(t);if(t)return a=jD(a),e!=null&&(a[0]=KD(we(e)?e(a[0]):e)),r!=null&&(a[1]=gi(we(r)?r(a[1]):r)),n!=null&&(a[2]=gi(we(n)?n(a[2]):n)),Co(Nv(a),"rgba")}function xH(t,e){var r=wr(t);if(r&&e!=null)return r[3]=Es(e),Co(r,"rgba")}function Co(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Ju(t,e){var r=wr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var D0=new mo(100);function Hv(t){if(fe(t)){var e=D0.get(t);return e||(e=M0(t,-.1),D0.put(t,e)),e}else if(ah(t)){var r=K({},t);return r.colorStops=le(t.colorStops,function(n){return{offset:n.offset,color:M0(n.color,-.1)}}),r}return t}var ef=Math.round;function Os(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=wr(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var A0=1e-4;function pa(t){return t<A0&&t>-A0}function Tl(t){return ef(t*1e3)/1e3}function Gv(t){return ef(t*1e4)/1e4}function QD(t){return"matrix("+Tl(t[0])+","+Tl(t[1])+","+Tl(t[2])+","+Tl(t[3])+","+Gv(t[4])+","+Gv(t[5])+")"}var JD={left:"start",right:"end",center:"middle",middle:"middle"};function eA(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function tA(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function rA(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function cw(t){return t&&!!t.image}function nA(t){return t&&!!t.svgElement}function Mp(t){return cw(t)||nA(t)}function vw(t){return t.type==="linear"}function dw(t){return t.type==="radial"}function pw(t){return t&&(t.type==="linear"||t.type==="radial")}
8function lh(t){return"url(#"+t+")"}function gw(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function mw(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*bu,a=he(t.scaleX,1),i=he(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+ef(o*bu)+"deg, "+ef(s*bu)+"deg)"),l.join(" ")}var aA=(function(){return be.hasGlobalWindow&&we(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})(),Vv=Array.prototype.slice;function Ln(t,e,r){return(e-t)*r+t}function $h(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=Ln(e[i],r[i],n);return t}function iA(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=Ln(e[o][s],r[o][s],n)}return t}function Cl(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function L0(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function oA(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function sA(t,e,r){var n=t,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:Vv.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function ys(t){if(Wt(t)){var e=t.length;if(Wt(t[0])){for(var r=[],n=0;n<e;n++)r.push(Vv.call(t[n]));return r}return Vv.call(t)}return t}function Cu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function lA(t){return Wt(t&&t[0])?2:1}var Ml=0,Mu=1,yw=2,as=3,Uv=4,Wv=5,k0=6;function P0(t){return t===Uv||t===Wv}function Dl(t){return t===Mu||t===yw}var Ro=[0,0,0,0],uA=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=k0,l=r;if(Wt(r)){var u=lA(r);s=u,(u===1&&!$e(r[0])||u===2&&!$e(r[0][0]))&&(o=!0)}else if($e(r)&&!Sr(r))s=Ml;else if(fe(r))if(!isNaN(+r))s=Ml;else{var f=wr(r);f&&(l=f,s=as)}else if(ah(r)){var h=K({},l);h.colorStops=le(r.colorStops,function(c){return{offset:c.offset,color:wr(c.color)}}),vw(r)?s=Uv:dw(r)&&(s=Wv),l=h}i===0?this.valType=s:(s!==this.valType||s===k0)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=we(n)?n:ms[n]||Cp(n)),a.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Dl(a),u=P0(a),f=0;f<i;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?sA(v,c,a):u&&oA(v.colorStops,c.colorStops))}if(!s&&a!==Wv&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<i;f++)a===Ml?n[f].additiveValue=n[f].value-d:a===as?n[f].additiveValue=Cl([],n[f].value,d,-1):Dl(a)&&(n[f].additiveValue=a===Mu?Cl([],n[f].value,d,-1):L0([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===as,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-c.percent,m=g===0?1:v((r-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ro:e[l];
8if((Dl(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?c.rawValue:d.rawValue;else if(Dl(i))i===Mu?$h(y,c[a],d[a],m):iA(y,c[a],d[a],m);else if(P0(i)){var _=c[a],x=d[a],S=i===Uv;e[l]={type:S?"linear":"radial",x:Ln(_.x,x.x,m),y:Ln(_.y,x.y,m),colorStops:le(_.colorStops,function(b,M){var T=x.colorStops[M];return{offset:Ln(b.offset,T.offset,m),color:Cu($h([],b.color,T.color,m))}}),global:x.global},S?(e[l].x2=Ln(_.x2,x.x2,m),e[l].y2=Ln(_.y2,x.y2,m)):e[l].r=Ln(_.r,x.r,m)}else if(u)$h(y,c[a],d[a],m),n||(e[l]=Cu(y));else{var w=Ln(c[a],d[a],m);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;r===Ml?e[n]=e[n]+a:r===as?(wr(e[n],Ro),Cl(Ro,Ro,a,1),e[n]=Cu(Ro)):r===Mu?Cl(e[n],e[n],a,1):r===yw&&L0(e[n],e[n],a,1)},t})(),Dp=(function(){function t(e,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){mp("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ce(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new uA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===as&&u&&(u=Cu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,ys(u),a),this._trackKeys.push(s)}l.addKeyframe(e,ys(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=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(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new ZD({life:a,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,c);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return le(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=ys(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Ce(e);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t})(),xn=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.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},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[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,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[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,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t})(),_w=1;be.hasGlobalWindow&&(_w=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var tf=_w,$v=.4,Yv="#333",Xv="#ccc",fA="#eee",ar=1,is=2,Ki=4,Yh="__zr_normal__",Xh=vn.concat(["ignore"]),hA=$n(vn,function(t,e){return t[e]=!0,t},{ignore:!1}),ki={},cA=new xe(0,0,0,0),Al=[],uh=(function(){function t(e){this.id=Vx(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,v=void 0;if((h||f)&&(v=cA,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect
8()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ki,n,v):Zu(ki,n,v),i.x=ki.x,i.y=ki.y,o=ki.align,s=ki.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,p=void 0;c==="center"?(d=v.width*.5,p=v.height*.5):(d=Ta(c[0],v.width),p=Ta(c[1],v.height)),u=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+p+(a?0:v.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=m.overflowRect=m.overflowRect||new xe(0,0,0,0);i.getLocalTransform(Al),Si(Al,Al),xe.copy(y,v),y.applyTransform(Al)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,x=void 0,S=void 0,w=void 0;_&&this.canBeInsideText()?(x=n.insideFill,S=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,S=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),w=!0)),x=x||"#000",(x!==m.fill||S!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=x,m.stroke=S,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=ar,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Xv:Yv},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&wr(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Co(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},K(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(ge(e))for(var n=e,a=Ce(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Yh)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Xh)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Yh,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===Yh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ke(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){mp("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,r,n,f),v&&v.useState(e,r,n,f),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ar),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var a=[],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&&a.push(f)}var h=a[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,r,v),g&&g.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ar)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ke(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=ke(a,e),o=ke(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,a=0;a<e.length;a++){var i=e[a];K(r,i),i.textConfig&&(n=n||{},K(n,i.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=K({},a?this.textConfig:n.textConfig),K(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Xh.length;f++){var h=Xh[f],v=i&&hA[h];r&&r[h]!=null?v?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!i)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new il,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),K(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=ar;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var a=e?this[e]:this,i=new Dp(a,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=ke(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){qh(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){qh(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=qh(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.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=ar;function r(n,a,i,o){Object.defineProperty(e,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=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&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();_n(uh,xn);_n(uh,il);function qh(t,e,r,n,a){r=r||{};var i=[];xw(t,"",t,e,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,p){r.during(p)});for(var v=0;v<i.length;v++){var c=i[v];f&&c.done(f),h&&c.aborted(h),r.force&&c.duration(r.duration),c.start(r.easing)}return i}function Zh(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function vA(t){return Wt(t[0])}function dA(t,e,r){if(Wt(e[r]))if(Wt(t[r])||(t[r]=[]),Qt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Zh(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(vA(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Zh(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Zh(i,a,o);i.length=a.length}else t[r]=e[r]}function pA(t,e){return t===e||Wt(t)&&Wt(e)&&gA(t,e)}function gA(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}
8function xw(t,e,r,n,a,i,o,s){for(var l=Ce(n),u=a.duration,f=a.delay,h=a.additive,v=a.setToFinal,c=!ge(i),d=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(c||i[m]))if(ge(y)&&!Wt(y)&&!ah(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}xw(t,m,r[m],y,a,i&&i[m],o,s)}else p.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),p.push(m))}var _=p.length;if(!h&&_)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===e){var w=S.stopTracks(p);if(w){var b=ke(d,S);d.splice(b,1)}}}if(a.force||(p=qe(p,function(k){return!pA(n[k],r[k])}),_=p.length),_>0||a.force&&!o.length){var M=void 0,T=void 0,A=void 0;if(s){T={},v&&(M={});for(var x=0;x<_;x++){var m=p[x];T[m]=r[m],v?M[m]=n[m]:r[m]=n[m]}}else if(v){A={};for(var x=0;x<_;x++){var m=p[x];A[m]=ys(r[m]),dA(r,n,m)}}var S=new Dp(r,!1,!1,h?qe(d,function(F){return F.targetName===e}):null);S.targetName=e,a.scope&&(S.scope=a.scope),v&&M&&S.whenWithKeys(0,M,p),A&&S.whenWithKeys(0,A,p),S.whenWithKeys(u??500,s?T:n,p).delay(f||0),t.addAnimator(S,e),o.push(S)}}var qv="__zr_style_"+Math.round(Math.random()*10),mi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};mi[qv]=!0;var I0=["z","z2","invisible"],mA=["invisible"],Qn=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Ce(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&yA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new xe(0,0,0,0)),n?xe.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new xe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:K(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=is,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&is)},e.prototype.styleUpdated=function(){this.__dirty&=~is},e.prototype.createStyle=function(r){return ih(mi,r)},e.prototype.useStyle=function(r){r[qv]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[qv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,I0)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=Ce(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=Ce(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?mA:I0,v=0;v<p.length;v++){var c=p[v];n&&n[c]!=null?this[c]=n[c]:l&&a[c]!=null&&(this[c]=a[c])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(r,n){return K(r,n),r},e.prototype.getAnimationStyleProps=function(){return fh},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=ar|is})(),e})(uh),Kh=new xe(0,0,0,0),jh=new xe(0,0,0,0);
8function yA(t,e,r){return Kh.copy(t.getBoundingRect()),t.transform&&Kh.applyTransform(t.transform),jh.width=e,jh.height=r,!Kh.intersect(jh)}var Xt=Math.min,qt=Math.max,Qh=Math.sin,Jh=Math.cos,Va=Math.PI*2,Ll=To(),kl=To(),Pl=To();function ww(t,e,r){if(t.length!==0){for(var n=t[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],a=Xt(a,n[0]),i=qt(i,n[0]),o=Xt(o,n[1]),s=qt(s,n[1]);e[0]=a,e[1]=o,r[0]=i,r[1]=s}}function E0(t,e,r,n,a,i){a[0]=Xt(t,r),a[1]=Xt(e,n),i[0]=qt(t,r),i[1]=qt(e,n)}var O0=[],R0=[];function _A(t,e,r,n,a,i,o,s,l,u){var f=sw,h=Dt,v=f(t,r,a,o,O0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(t,r,a,o,O0[c]);l[0]=Xt(d,l[0]),u[0]=qt(d,u[0])}v=f(e,n,i,s,R0);for(var c=0;c<v;c++){var p=h(e,n,i,s,R0[c]);l[1]=Xt(p,l[1]),u[1]=qt(p,u[1])}l[0]=Xt(t,l[0]),u[0]=qt(t,u[0]),l[0]=Xt(o,l[0]),u[0]=qt(o,u[0]),l[1]=Xt(e,l[1]),u[1]=qt(e,u[1]),l[1]=Xt(s,l[1]),u[1]=qt(s,u[1])}function xA(t,e,r,n,a,i,o,s){var l=uw,u=Et,f=qt(Xt(l(t,r,a),1),0),h=qt(Xt(l(e,n,i),1),0),v=u(t,r,a,f),c=u(e,n,i,h);o[0]=Xt(t,a,v),o[1]=Xt(e,i,c),s[0]=qt(t,a,v),s[1]=qt(e,i,c)}function wA(t,e,r,n,a,i,o,s,l){var u=no,f=ao,h=Math.abs(a-i);if(h%Va<1e-4&&h>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Ll[0]=Jh(a)*r+t,Ll[1]=Qh(a)*n+e,kl[0]=Jh(i)*r+t,kl[1]=Qh(i)*n+e,u(s,Ll,kl),f(l,Ll,kl),a=a%Va,a<0&&(a=a+Va),i=i%Va,i<0&&(i=i+Va),a>i&&!o?i+=Va:a<i&&o&&(a+=Va),o){var v=i;i=a,a=v}for(var c=0;c<i;c+=Math.PI/2)c>a&&(Pl[0]=Jh(c)*r+t,Pl[1]=Qh(c)*n+e,u(s,Pl,s),f(l,Pl,l))}var Ve={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ua=[],Wa=[],Yr=[],ta=[],Xr=[],qr=[],ec=Math.min,tc=Math.max,$a=Math.cos,Ya=Math.sin,Tn=Math.abs,Zv=Math.PI,sa=Zv*2,rc=typeof Float32Array<"u",Fo=[];function nc(t){var e=Math.round(t/Zv*1e8)/1e8;return e%2*Zv}function SA(t,e){var r=nc(t[0]);r<0&&(r+=sa);var n=r-t[0],a=t[1];a+=n,!e&&a-r>=sa?a=r+sa:e&&r-a>=sa?a=r-sa:!e&&r>a?a=r+(sa-nc(r-a)):e&&r<a&&(a=r-(sa-nc(a-r))),t[0]=r,t[1]=a}var Yn=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Tn(n/tf/e)||0,this._uy=Tn(n/tf/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ve.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Tn(e-this._xi),a=Tn(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Ve.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(Ve.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(Ve.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){this._drawPendingPt(),Fo[0]=a,Fo[1]=i,SA(Fo,o),a=Fo[0],i=Fo[1];var s=i-a;return this.addData(Ve.A,e,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=$a(i)*n+e,this._yi=Ya(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(Ve.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ve.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&rc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();var o=this.data;if(rc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<r;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},t.prototype.addData=function(e,r,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>
80&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,rc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Yr[0]=Yr[1]=Xr[0]=Xr[1]=Number.MAX_VALUE,ta[0]=ta[1]=qr[0]=qr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],a=r,i=n),s){case Ve.M:r=a=e[o++],n=i=e[o++],Xr[0]=a,Xr[1]=i,qr[0]=a,qr[1]=i;break;case Ve.L:E0(r,n,e[o],e[o+1],Xr,qr),r=e[o++],n=e[o++];break;case Ve.C:_A(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Xr,qr),r=e[o++],n=e[o++];break;case Ve.Q:xA(r,n,e[o++],e[o++],e[o],e[o+1],Xr,qr),r=e[o++],n=e[o++];break;case Ve.A:var u=e[o++],f=e[o++],h=e[o++],v=e[o++],c=e[o++],d=e[o++]+c;o+=1;var p=!e[o++];l&&(a=$a(c)*h+u,i=Ya(c)*v+f),wA(u,f,h,v,c,d,p,Xr,qr),r=$a(d)*h+u,n=Ya(d)*v+f;break;case Ve.R:a=r=e[o++],i=n=e[o++];var g=e[o++],m=e[o++];E0(a,i,a+g,i+m,Xr,qr);break;case Ve.Z:r=a,n=i;break}no(Yr,Yr,Xr),ao(ta,ta,qr)}return o===0&&(Yr[0]=Yr[1]=ta[0]=ta[1]=0),new xe(Yr[0],Yr[1],ta[0]-Yr[0],ta[1]-Yr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<r;){var c=e[v++],d=v===1;d&&(i=e[v],o=e[v+1],s=i,l=o);var p=-1;switch(c){case Ve.M:i=s=e[v++],o=l=e[v++];break;case Ve.L:{var g=e[v++],m=e[v++],y=g-i,_=m-o;(Tn(y)>n||Tn(_)>a||v===r-1)&&(p=Math.sqrt(y*y+_*_),i=g,o=m);break}case Ve.C:{var x=e[v++],S=e[v++],g=e[v++],m=e[v++],w=e[v++],b=e[v++];p=$D(i,o,x,S,g,m,w,b,10),i=w,o=b;break}case Ve.Q:{var x=e[v++],S=e[v++],g=e[v++],m=e[v++];p=XD(i,o,x,S,g,m,10),i=g,o=m;break}case Ve.A:var M=e[v++],T=e[v++],A=e[v++],k=e[v++],F=e[v++],O=e[v++],B=O+F;v+=1,d&&(s=$a(F)*A+M,l=Ya(F)*k+T),p=tc(A,k)*ec(sa,Math.abs(O)),i=$a(B)*A+M,o=Ya(B)*k+T;break;case Ve.R:{s=i=e[v++],l=o=e[v++];var N=e[v++],z=e[v++];p=N*2+z*2;break}case Ve.Z:{var y=s-i,_=l-o;p=Math.sqrt(y*y+_*_),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=r<1,d,p,g=0,m=0,y,_=0,x,S;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var b=n[w++],M=w===1;switch(M&&(u=n[w],f=n[w+1],s=u,l=f),b!==Ve.L&&_>0&&(e.lineTo(x,S),_=0),b){case Ve.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case Ve.L:{h=n[w++],v=n[w++];var T=Tn(h-u),A=Tn(v-f);if(T>a||A>i){if(c){var k=d[m++];if(g+k>y){var F=(y-g)/k;e.lineTo(u*(1-F)+h*F,f*(1-F)+v*F);break e}g+=k}e.lineTo(h,v),u=h,f=v,_=0}else{var O=T*T+A*A;O>_&&(x=h,S=v,_=O)}break}case Ve.C:{var B=n[w++],N=n[w++],z=n[w++],q=n[w++],Y=n[w++],ne=n[w++];if(c){var k=d[m++];if(g+k>y){var F=(y-g)/k;Ca(u,B,z,Y,F,Ua),Ca(f,N,q,ne,F,Wa),e.bezierCurveTo(Ua[1],Wa[1],Ua[2],Wa[2],Ua[3],Wa[3]);break e}g+=k}e.bezierCurveTo(B,N,z,q,Y,ne),u=Y,f=ne;break}case Ve.Q:{var B=n[w++],N=n[w++],z=n[w++],q=n[w++];if(c){var k=d[m++];if(g+k>y){var F=(y-g)/k;Qu(u,B,z,F,Ua),Qu(f,N,q,F,Wa),e.quadraticCurveTo(Ua[1],Wa[1],Ua[2],Wa[2]);break e}g+=k}e.quadraticCurveTo(B,N,z,q),u=z,f=q;break}case Ve.A:var te=n[w++],oe=n[w++],se=n[w++],Se=n[w++],Ne=n[w++],mt=n[w++],ht=n[w++],ct=!n[w++],vt=se>Se?se:Se,Ae=Tn(se-Se)>.001,Oe=Ne+mt,me=!1;if(c){var k=d[m++];g+k>y&&(Oe=Ne+mt*(y-g)/k,me=!0),g+=k}if(Ae&&e.ellipse?e.ellipse(te,oe,se,Se,ht,Ne,Oe,ct):e.arc(te,oe,vt,Ne,Oe,ct),me)break e;M&&(s=$a(Ne)*se+te,l=Ya(Ne)*Se+oe),u=$a(Oe)*se+te,f=Ya(Oe)*Se+oe;break;case Ve.R:s=u=n[w],l=f=n[w+1],h=n[w++],v=n[w++];var Le=n[w++],tr=n[w++];if(c){var k=d[m++];if(g+k>y){var Je=y-g;e.moveTo(h,v),e.lineTo(h+ec(Je,Le),v),Je-=Le,Je>0&&e.lineTo(h+Le,v+ec(Je,tr)),Je-=tr,Je>0&&e.lineTo(h+tc(Le-Je,0),v+tr),Je-=Le,Je>0&&e.lineTo(h,v+tc(tr-Je,0));break e}g+=k}e.rect(h,v,Le,tr);break;case Ve.Z:if(c){var k=d[m++];if(g+k>y){var F=(y-g)/k;e.lineTo(u*(1-F)+s*F,f*(1-F)+l*F);break e}g+=k}e.closePath(),u=s,f=l}}
8},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ve,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function Pi(t,e,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(i-t)<=s/2;var f=l*i-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function bA(t,e,r,n,a,i,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>n+h&&f>i+h&&f>s+h||f<e-h&&f<n-h&&f<i-h&&f<s-h||u>t+h&&u>r+h&&u>a+h&&u>o+h||u<t-h&&u<r-h&&u<a-h&&u<o-h)return!1;var v=lw(t,e,r,n,a,i,o,s,u,f,null);return v<=h/2}function TA(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>t+u&&s>r+u&&s>a+u||s<t-u&&s<r-u&&s<a-u)return!1;var f=fw(t,e,r,n,a,i,s,l,null);return f<=u/2}var F0=Math.PI*2;function En(t){return t%=F0,t<0&&(t+=F0),t}var Bo=Math.PI*2;function CA(t,e,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-a)%Bo<1e-4)return!0;if(i){var h=n;n=En(a),a=En(h)}else n=En(n),a=En(a);n>a&&(a+=Bo);var v=Math.atan2(l,s);return v<0&&(v+=Bo),v>=n&&v<=a||v+Bo>=n&&v+Bo<=a}function Xa(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===a?1/0:l>a?s:0}var ra=Yn.CMD,qa=Math.PI*2,MA=1e-4;function DA(t,e){return Math.abs(t-e)<MA}var Bt=[-1,-1,-1],pr=[-1,-1];function AA(){var t=pr[0];pr[0]=pr[1],pr[1]=t}function LA(t,e,r,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var f=ow(e,n,i,s,u,Bt);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=Bt[p],m=g===0||g===1?.5:1,y=Dt(t,r,a,o,g);y<l||(v<0&&(v=sw(e,n,i,s,pr),pr[1]<pr[0]&&v>1&&AA(),c=Dt(e,n,i,s,pr[0]),v>1&&(d=Dt(e,n,i,s,pr[1]))),v===2?g<pr[0]?h+=c<e?m:-m:g<pr[1]?h+=d<c?m:-m:h+=s<d?m:-m:g<pr[0]?h+=c<e?m:-m:h+=s<c?m:-m)}return h}function kA(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=YD(e,n,i,s,Bt);if(l===0)return 0;var u=uw(e,n,i);if(u>=0&&u<=1){for(var f=0,h=Et(e,n,i,u),v=0;v<l;v++){var c=Bt[v]===0||Bt[v]===1?.5:1,d=Et(t,r,a,Bt[v]);d<o||(Bt[v]<u?f+=h<e?c:-c:f+=i<h?c:-c)}return f}else{var c=Bt[0]===0||Bt[0]===1?.5:1,d=Et(t,r,a,Bt[0]);return d<o?0:i<e?c:-c}}function PA(t,e,r,n,a,i,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Bt[0]=-l,Bt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=qa-1e-4){n=0,a=qa;var f=i?1:-1;return o>=Bt[0]+t&&o<=Bt[1]+t?f:0}if(n>a){var h=n;n=a,a=h}n<0&&(n+=qa,a+=qa);for(var v=0,c=0;c<2;c++){var d=Bt[c];if(d+t>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=qa+p),(p>=n&&p<=a||p+qa>=n&&p+qa<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function Sw(t,e,r,n,a){for(var i=t.data,o=t.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=i[d++],g=d===1;switch(p===ra.M&&d>1&&(r||(s+=Xa(l,u,f,h,n,a))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case ra.M:f=i[d++],h=i[d++],l=f,u=h;break;case ra.L:if(r){if(Pi(l,u,i[d],i[d+1],e,n,a))return!0}else s+=Xa(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ra.C:if(r){if(bA(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=LA(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ra.Q:if(r){if(TA(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=kA(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ra.A:var m=i[d++],y=i[d++],_=i[d++],x=i[d++],S=i[d++],w=i[d++];d+=1;var b=!!(1-i[d++]);v=Math.cos(S)*_+m,c=Math.sin(S)*x+y,g?(f=v,h=c):s+=Xa(l,u,v,c,n,a);var M=(n-m)*x/_+m;if(r){if(CA(m,y,x,S,S+w,b,e,M,a))return!0}else s+=PA(m,y,x,S,S+w,b,M,a);l=Math.cos(S+w)*_+m,u=Math.sin(S+w)*x+y;break;case ra.R:f=l=i[d++],h=u=i[d++];var T=i[d++],A=i[d++];if(v=f+T,c=h+A,r){if(Pi(f,h,v,h,e,n,a)||Pi(v,h,v,c,e,n,a)||Pi(v,c,f,c,e,n,a)||Pi(f,c,f,h,e,n,a))return!0}else s+=Xa(v,h,v,c,n,a),s+=Xa(f,c,f,h,n,a);break;case ra.Z:if(r){if(Pi(l,u,f,h,e,n,a))return!0}else s+=Xa(l,u,f,h,n,a);l=f,u=h;break}}return!r&&!DA(u,h)&&(s+=Xa(l,u,f,h,n,a)||0),s!==0}function IA(t,e,r){return Sw(t,0,!1,e,r)}function EA(t,e,r,n){return Sw(t,e,!0,r,n)}var rf=Me({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},mi),OA={style:Me({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fh.style)},ac=vn.concat(["invisible","culling","z","z2","zlevel","parent"]),Ie=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<ac.length;++s)a[ac[s]]=this[ac[s]];a.__dirty|=ar}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Ce(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?K(this.style,s):this.useStyle(s):o==="shape"?K(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(fe(r)){var n=Ju(r,0);return n>.5?Yv:n>.2?fA:Xv}else if(r)return Xv}return Yv},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(fe(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Ju(r,0)<$v;if(i===o)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Ki},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Yn(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Ki)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r
8=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),EA(s,l/u,r,n)))return!0}if(this.hasFill())return IA(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ki,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:K(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ki)},e.prototype.createStyle=function(r){return ih(rf,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=K({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=K({},a.shape),K(u,n.shape)):(u=K({},i?this.shape:a.shape),K(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var f={},h=Ce(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return OA},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(i){re(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Pe(r.style)},o.prototype.getDefaultShape=function(){return Pe(r.shape)},o})(e);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=ar|is|Ki})(),e})(Qn),RA=Me({strokeFirst:!0,font:Un,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rf),Rs=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return rw(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return ih(RA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=ND(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Qn);Rs.prototype.type="tspan";var FA=Me({x:0,y:0},mi),BA={style:Me({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fh.style)};function NA(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Tr=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ih(FA,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=NA(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return BA},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new xe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Qn);Tr.prototype.type="image";
8function zA(t,e){var r=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>a&&(h=s+l,s*=a/h,l*=a/h),u+f>a&&(h=u+f,u*=a/h,f*=a/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),t.moveTo(r+s,n),t.lineTo(r+a-l,n),l!==0&&t.arc(r+a-l,n+l,l,-Math.PI/2,0),t.lineTo(r+a,n+i-u),u!==0&&t.arc(r+a-u,n+i-u,u,0,Math.PI/2),t.lineTo(r+f,n+i),f!==0&&t.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var io=Math.round;function bw(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(io(n*2)===io(a*2)&&(t.x1=t.x2=or(n,s,!0)),io(i*2)===io(o*2)&&(t.y1=t.y2=or(i,s,!0))),t}}function Tw(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=or(n,s,!0),t.y=or(a,s,!0),t.width=Math.max(or(n+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(or(a+o,s,!1)-t.y,o===0?0:1)),t}}function or(t,e,r){if(!e)return t;var n=io(t*2);return(n+io(e))%2===0?n/2:(n+(r?1:-1))/2}var HA=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),GA={},Ke=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new HA},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Tw(GA,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?zA(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ie);Ke.prototype.type="rect";var B0={fill:"#000"},N0=2,Zr={},VA={style:Me({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},fh.style)},ft=(function(t){re(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=B0,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,$A(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new xe(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||B0},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return K(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=Ce(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},K(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return VA},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Un,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||i.align||"left",u=r.verticalAlign||i.verticalAlign||"top";g0(Zr,i.overflowRect,o,s,l,u),o=Zr.baseX,s=Zr.baseY;var f=$0(r),h=PD(f,r,Zr.outerWidth,Zr.outerHeight),v=ic(r),c=!!r.backgroundColor,d=h.outerHeight,p=h.outerWidth,g=h.lines,m=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=pi(s,h.contentHeight,u);if(v||a){var x=yo(o,p,l),S=pi(s,d,u);
8v&&this._renderBackground(r,r,x,S,p,d)}_+=m/2,a&&(y=W0(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var w=0,b=!1,M=!1,T=U0("fill"in r?r.fill:(M=!0,i.fill)),A=V0("stroke"in r?r.stroke:!c&&(!i.autoStroke||M)?(w=N0,b=!0,i.stroke):null),k=r.textShadowBlur>0,F=0;F<g.length;F++){var O=this._getOrCreateChild(Rs),B=O.createStyle();O.useStyle(B),B.text=g[F],B.x=y,B.y=_,B.textAlign=l,B.textBaseline="middle",B.opacity=r.opacity,B.strokeFirst=!0,k&&(B.shadowBlur=r.textShadowBlur||0,B.shadowColor=r.textShadowColor||"transparent",B.shadowOffsetX=r.textShadowOffsetX||0,B.shadowOffsetY=r.textShadowOffsetY||0),B.stroke=A,B.fill=T,A&&(B.lineWidth=r.lineWidth||w,B.lineDash=r.lineDash,B.lineDashOffset=r.lineDashOffset||0),B.font=n,H0(B,r),_+=m,O.setBoundingRect(Ov(B,h.contentWidth,h.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;g0(Zr,n.overflowRect,o,s,a,i),o=Zr.baseX,s=Zr.baseY;var l=$0(r),u=OD(l,r,Zr.outerWidth,Zr.outerHeight,a),f=u.width,h=u.outerWidth,v=u.outerHeight,c=r.padding;this.isTruncated=!!u.isTruncated;var d=yo(o,h,a),p=pi(s,v,i),g=d,m=p;c&&(g+=c[3],m+=c[0]);var y=g+f;ic(r)&&this._renderBackground(r,r,d,p,h,v);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],w=S.tokens,b=w.length,M=S.lineHeight,T=S.width,A=0,k=g,F=y,O=b-1,B=void 0;A<b&&(B=w[A],!B.align||B.align==="left");)this._placeToken(B,r,M,m,k,"left",_),T-=B.width,k+=B.width,A++;for(;O>=0&&(B=w[O],B.align==="right");)this._placeToken(B,r,M,m,F,"right",_),T-=B.width,F-=B.width,O--;for(k+=(f-(k-g)-(y-F)-T)/2;A<=O;)B=w[A],this._placeToken(B,r,M,m,k+B.width/2,"center",_),k+=B.width,A++;m+=M}},e.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,h=i+a/2;f==="top"?h=i+r.height/2:f==="bottom"&&(h=i+a-r.height/2);var v=!r.isLineHolder&&ic(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var c=!!u.backgroundColor,d=r.textPadding;d&&(o=W0(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Rs),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,x=!1,S=U0("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=V0("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!m.autoStroke||y)?(_=N0,x=!0,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=h,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Un,g.opacity=di(u.opacity,n.opacity,1),H0(g,u),w&&(g.lineWidth=di(u.lineWidth,n.lineWidth,_),g.lineDash=he(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S),p.setBoundingRect(Ov(g,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,h=l&&l.image,v=l&&!h,c=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(Ke),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=c,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=he(r.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Tr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=he(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=di(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return Mw(r)&&(n=[r.fontStyle,r.fontWeight,Cw(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&on(n)||r.textFont||r.font},e})(Qn),UA={left:!0,right:1,center:1},WA={top:1,bottom:1,middle:1},z0=["fontStyle","fontWeight","fontSize","fontFamily"];function Cw(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?dp+"px":t+"px"}function H0(t,e){for(var r=0;r<z0.length;r++){var n=z0[r],a=e[n];a!=null&&(t[n]=a)}}function Mw(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function $A(t){return G0(t),I(t.rich,G0),t}function G0(t){if(t){t.font=ft.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||UA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||WA[r]?r:"top";var n=t.padding;n&&(t.padding=_p(t.padding))}}function V0(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function U0(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function W0(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function $0(t){var e=t.text;return e!=null&&(e+=""),e}function ic(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Y0=1e-4,Dw=20;function YA(t){return t.replace(/^\s+|\s+$/g,"")}var sr=Math.min,ot=Math.max,ln=Math.abs;function X0(t,e,r,n){var a=e[0],i=e[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*u+o}var Ze=XA;function XA(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return nf(t,e,r)}function nf(t,e,r){return fe(t)?YA(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function Lt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),Dw),t=(+t).toFixed(e),r?t:+t}function wH(t){return t.sort(function(e,r){return e-r}),t}function On(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return qA(t)}function qA(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}
8function ZA(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(ln(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function SH(t,e){var r=$n(t,function(c,d){return c+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),a=le(t,function(c){return(isNaN(c)?0:c)/r*n*100}),i=n*100,o=le(a,function(c){return Math.floor(c)}),s=$n(o,function(c,d){return c+d},0),l=le(a,function(c,d){return c-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return le(o,function(c){return c/n})}function KA(t,e){var r=Math.max(On(t),On(e)),n=t+e;return r>Dw?n:Lt(n,r)}function Aw(t){var e=Math.PI*2;return(t%e+e)%e}function af(t){return t>-Y0&&t<Y0}var jA=/^(?:(\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 Mo(t){if(t instanceof Date)return t;if(fe(t)){var e=jA.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(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(t==null)return new Date(NaN);return new Date(Math.round(t))}function QA(t){return Math.pow(10,Ap(t))}function Ap(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Lw(t,e){var r=Ap(t),n=Math.pow(10,r),a=t/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,t=i*n,r>=-20?+t.toFixed(r<0?-r:0):t}function bH(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var a=t[n].interval,i=t[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-r),e=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(n,1):n++}return t;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 of(t){var e=parseFloat(t);return e==t&&(e!==0||!fe(t)||t.indexOf("x")<=0)?e:NaN}function JA(t){return!isNaN(of(t))}function kw(){return Math.round(Math.random()*9)}function Pw(t,e){return e===0?t:Pw(e,t%e)}function q0(t,e){return t==null?e:e==null?t:t*e/Pw(t,e)}var eL="[ECharts] ",tL=typeof console<"u"&&console.warn&&console.log;function rL(t,e,r){tL&&console[t](eL+e)}function Iw(t,e){rL("error",t)}function At(t){throw new Error(t)}function Z0(t,e,r){return(e-t)*r+t}var Ew="series\0",nL="\0_ec_\0";function Qe(t){return t instanceof Array?t:t==null?[]:[t]}function K0(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var j0=["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 ol(t){return ge(t)&&!J(t)&&!(t instanceof Date)?t.value:t}function aL(t){return ge(t)&&!(t instanceof Array)}function Ow(t,e,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=ye();I(e,function(l,u){if(!ge(l)){e[u]=null;return}});var s=iL(t,o,r);return(n||a)&&oL(s,t,o,e),n&&sL(s,e),n||a?lL(s,e,a):i&&uL(s,e),fL(s),s}function iL(t,e,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:r==="replaceMerge"||Fs(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function oL(t,e,r,n){I(n,function(a,i){if(!(!a||a.id==null)){var o=_s(a.id),s=r.get(o);if(s!=null){var l=t[s];zr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function sL(t,e){I(e,function(r,n){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||r.id==null)&&!Fs(r)&&!Fs(i)&&Rw("name",i,r)){t[a].newOption=r,e[n]=null;return}}})}function lL(t,e,r){I(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||Fs(a.existing)||a.existing&&n.id!=null&&!Rw("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function uL(t,e){I(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function fL(t){var e=ye();I(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),I(t,function(r){var n=r.newOption;zr(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),I(t,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;
8if(ge(i)){if(o.name=i.name!=null?_s(i.name):a?a.name:Ew+n,a)o.id=_s(a.id);else if(i.id!=null)o.id=_s(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Rw(t,e,r){var n=Vt(e[t],null),a=Vt(r[t],null);return n!=null&&a!=null&&n===a}function _s(t){return Vt(t,"")}function Vt(t,e){return t==null?e:fe(t)?t:$e(t)||Lv(t)?t+"":e}function Lp(t){var e=t.name;return!!(e&&e.indexOf(Ew))}function Fs(t){return t&&t.id!=null&&_s(t.id).indexOf(nL)===0}function hL(t,e,r){I(t,function(n){var a=n.newOption;ge(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=cL(e,a,n.existing,r))})}function cL(t,e,r,n){var a=e.type?e.type:r?r.subType:n.determineSubType(t,e);return a}function TH(t,e){var r={},n={};return a(t||[],r),a(e||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=Vt(o[u].seriesId,null);if(h==null)return;for(var v=Qe(o[u].dataIndex),c=l&&l[h],d=0,p=v.length;d<p;d++){var g=v[d];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[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 sl(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return J(e.dataIndex)?le(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return J(e.name)?le(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Ue(){var t="__ec_inner_"+vL++;return function(e){return e[t]||(e[t]={})}}var vL=kw();function oc(t,e,r){var n=kp(e,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var h=ll(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function kp(t,e){var r;if(fe(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=ye(),i={},o=!1;return I(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&ke(e.includeMainTypes,f)<0)){o=o||!!f;var v=a.get(f)||a.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var ir={useDefault:!0,enableAll:!1,enableNone:!1};function ll(t,e,r,n){n=n||ir;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s}function Fw(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function dL(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function pL(t){return t==="auto"?be.domSupported?"html":"richText":t||"html"}function gL(t,e,r,n,a){var i=e==null||e==="auto";if(n==null)return n;if($e(n)){var o=Z0(r||0,n,a);return Lt(o,i?Math.max(On(r||0),On(n)):e)}else{if(fe(n))return a<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=t.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(a<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=Z0(c,d,a);s[h]=Lt(o,i?Math.max(On(c),On(d)):e)}}return s}}var wa=(function(){function t(){}return t.prototype.reset=function(e,r,n,a){return this._list=e,this._step=a=a||1,this._idx=r,this._end=n??(a>0?e.length:0),this.item=null,this.key=NaN,this},t.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},t})();function sc(t){t.option=t.parentModel=t.ecModel=null}var Ee=Ue(),mL=function(t,e,r,n){if(n){var a=Ee(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Ee(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Q0=1,J0={},Bw=Ue(),Pp=Ue(),Ip=0,hh=1,ch=2,dn=["emphasis","blur","select"],sf=["normal","emphasis","blur","select"],yL=10,_L=9,yi="highlight",Du="downplay",lf="select",Kv="unselect",uf="toggleSelect",Ep="selectchanged";function Ii(t){return t!=null&&t!=="none"}function vh(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Nw(t){vh(t,"emphasis",ch)}function zw(t){t.hoverState===ch&&vh(t,"normal",Ip)}function Op(t){vh(t,"blur",hh)}function Hw(t){t.hoverState===hh&&vh(t,"normal",Ip)}function xL(t){t.selected=!0}function wL(t){t.selected=!1}function em(t,e,r){e(t,r)}function Jn(t,e,r){em(t,e,r),t.isGroup&&t.traverse(function(n){em(n,e,r)})}function CH(t,e){switch(e){case"emphasis":t.hoverState=ch;break;case"normal":t.hoverState=Ip;break;case"blur":t.hoverState=hh;break;case"select":t.selected=!0}}function SL(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function bL(t,e,r,n){var a=r&&ke(r,"select")>=0,i=!1;if(t instanceof Ie){var o=Bw(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ii(s)||Ii(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=K({},n),u=K({},u),u.fill=s):!Ii(u.fill)&&Ii(s)?(i=!0,n=K({},n),u=K({},u),u.fill=Hv(s)):!Ii(u.stroke)&&Ii(l)&&(i||(n=K({},n),u=K({},u)),u.stroke=Hv(l)),n.style=u}}if(n&&n.z2==null){i||(n=K({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??yL)}return n}function TL(t,e,r){if(r&&r.z2==null){r=K({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??_L)}return r}function CL(t,e,r){var n=ke(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:SL(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=K({},r),o=K({opacity:n?a:i.opacity*.1},o),r.style=o),r}function lc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return bL(this,t,e,r);
8if(t==="blur")return CL(this,t,r);if(t==="select")return TL(this,t,r)}return r}function Gw(t){t.stateProxy=lc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=lc),r&&(r.stateProxy=lc)}function tm(t,e){!$w(t,e)&&!t.__highByOuter&&Jn(t,Nw)}function rm(t,e){!$w(t,e)&&!t.__highByOuter&&Jn(t,zw)}function ff(t,e){t.__highByOuter|=1<<(e||0),Jn(t,Nw)}function hf(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Jn(t,zw)}function ML(t){Jn(t,Op)}function Vw(t){Jn(t,Hw)}function Uw(t){Jn(t,xL)}function Ww(t){Jn(t,wL)}function $w(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Yw(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=Pp(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Hw(u)}),s&&r.push(i)),o.isBlured=!1}),I(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function jv(t,e,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&Vw(v)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Op(g)}),Wt(e))i(u.getData(),e);else if(ge(e))for(var d=Ce(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),Pp(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,a)}})}}function Qv(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Pp(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Op(i)})}}}function DL(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=sl(a,e);i=(J(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Ee(o);jv(n,u.focus,u.blurScope,r)}
8else{var f=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);f!=null&&jv(n,f,h,r)}}}function Rp(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Ee(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function AL(t,e,r){var n=Ee(t),a=Rp(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&Qv(n.componentMainType,n.componentIndex,r),I(i,function(s){return tm(s,e)})):(jv(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Qv(n.componentMainType,n.componentIndex,r),tm(t,e))}function LL(t,e,r){Yw(r);var n=Ee(t),a=Rp(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?I(a,function(i){return rm(i,e)}):rm(t,e)}function kL(t,e,r){if(td(e)){var n=e.dataType,a=t.getData(n),i=sl(a,e);J(i)||(i=[i]),t[e.type===uf?"toggleSelect":e.type===lf?"select":"unselect"](i,n)}}function nm(t){var e=t.getAllData();I(e,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Uw(i):Ww(i)})})}function PL(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();I(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Jv(t,e,r){Xw(t,!0),Jn(t,Gw),EL(t,e,r)}function IL(t){Xw(t,!1)}function Fp(t,e,r,n){n?IL(t):Jv(t,e,r)}function EL(t,e,r){var n=Ee(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var am=["emphasis","blur","select"],OL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function RL(t,e,r,n){r=r||"itemStyle";for(var a=0;a<am.length;a++){var i=am[a],o=e.getModel([i,r]),s=t.ensureState(i);s.style=o[OL[r]]()}}function Xw(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function ed(t){return!!(t&&t.__highDownDispatcher)}function FL(t){var e=J0[t];return e==null&&Q0<=32&&(e=J0[t]=Q0++),e}function td(t){var e=t.type;return e===lf||e===Kv||e===uf}function im(t){var e=t.type;return e===yi||e===Du}function BL(t){var e=Bw(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Ei=Yn.CMD,NL=[[],[],[]],om=Math.sqrt,zL=Math.atan2;function qw(t,e){if(e){var r=t.data,n=t.len(),a,i,o,s,l,u,f=Ei.M,h=Ei.C,v=Ei.L,c=Ei.R,d=Ei.A,p=Ei.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:i=1;break;case v:i=1;break;case h:i=3;break;case p:i=2;break;case d:var g=e[4],m=e[5],y=om(e[0]*e[0]+e[1]*e[1]),_=om(e[2]*e[2]+e[3]*e[3]),x=zL(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case c:u[0]=r[o++],u[1]=r[o++],xr(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],xr(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var S=NL[l];S[0]=r[o++],S[1]=r[o++],xr(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var uc=Math.sqrt,Il=Math.sin,El=Math.cos,No=Math.PI;function sm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function rd(t,e){return(t[0]*e[0]+t[1]*e[1])/(sm(t)*sm(e))}function lm(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(rd(t,e))}function um(t,e,r,n,a,i,o,s,l,u,f){var h=l*(No/180),v=El(h)*(t-r)/2+Il(h)*(e-n)/2,c=-1*Il(h)*(t-r)/2+El(h)*(e-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=uc(d),s*=uc(d));var p=(a===i?-1:1)*uc((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,m=p*-s*v/o,y=(t+r)/2+El(h)*g-Il(h)*m,_=(e+n)/2+Il(h)*g+El(h)*m,x=lm([1,0],[(v-g)/o,(c-m)/s]),S=[(v-g)/o,(c-m)/s],w=[(-1*v-g)/o,(-1*c-m)/s],b=lm(S,w);if(rd(S,w)<=-1&&(b=No),rd(S,w)>=1&&(b=0),b<0){var M=Math.round(b/No*1e6)/1e6;b=No*2+M%2*No}f.addData(u,y,_,o,s,x,b,h,i)}var HL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,GL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VL(t){var e=new Yn;if(!t)return e;var r=0,n=0,a=r,i=n,o,s=Yn.CMD,l=t.match(HL);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(GL)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,w=void 0,b=void 0,M=r,T=n,A=void 0,k=void 0;switch(h){case"l":r+=c[g++],n+=c[g++],v=s.L,e.addData(v,r,n);break;case"L":r=c[g++],n=c[g++],v=s.L,e.addData(v,r,n);break;
8case"m":r+=c[g++],n+=c[g++],v=s.M,e.addData(v,r,n),a=r,i=n,h="l";break;case"M":r=c[g++],n=c[g++],v=s.M,e.addData(v,r,n),a=r,i=n,h="L";break;case"h":r+=c[g++],v=s.L,e.addData(v,r,n);break;case"H":r=c[g++],v=s.L,e.addData(v,r,n);break;case"v":n+=c[g++],v=s.L,e.addData(v,r,n);break;case"V":n=c[g++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),r=c[g-2],n=c[g-1];break;case"c":v=s.C,e.addData(v,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n),r+=c[g-2],n+=c[g-1];break;case"S":m=r,y=n,A=e.len(),k=e.data,o===s.C&&(m+=r-k[A-4],y+=n-k[A-3]),v=s.C,M=c[g++],T=c[g++],r=c[g++],n=c[g++],e.addData(v,m,y,M,T,r,n);break;case"s":m=r,y=n,A=e.len(),k=e.data,o===s.C&&(m+=r-k[A-4],y+=n-k[A-3]),v=s.C,M=r+c[g++],T=n+c[g++],r+=c[g++],n+=c[g++],e.addData(v,m,y,M,T,r,n);break;case"Q":M=c[g++],T=c[g++],r=c[g++],n=c[g++],v=s.Q,e.addData(v,M,T,r,n);break;case"q":M=c[g++]+r,T=c[g++]+n,r+=c[g++],n+=c[g++],v=s.Q,e.addData(v,M,T,r,n);break;case"T":m=r,y=n,A=e.len(),k=e.data,o===s.Q&&(m+=r-k[A-4],y+=n-k[A-3]),r=c[g++],n=c[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"t":m=r,y=n,A=e.len(),k=e.data,o===s.Q&&(m+=r-k[A-4],y+=n-k[A-3]),r+=c[g++],n+=c[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"A":_=c[g++],x=c[g++],S=c[g++],w=c[g++],b=c[g++],M=r,T=n,r=c[g++],n=c[g++],v=s.A,um(M,T,r,n,w,b,_,x,S,v,e);break;case"a":_=c[g++],x=c[g++],S=c[g++],w=c[g++],b=c[g++],M=r,T=n,r+=c[g++],n+=c[g++],v=s.A,um(M,T,r,n,w,b,_,x,S,v,e);break}}(h==="z"||h==="Z")&&(v=s.Z,e.addData(v),r=a,n=i),o=v}return e.toStatic(),e}var Zw=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Ie);function Kw(t){return t.setData!=null}function jw(t,e){var r=VL(t),n=K({},e);return n.buildPath=function(a){var i=Kw(a);if(i&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&r.rebuildPath(o,1)}},n.applyTransform=function(a){qw(r,a),this.dirtyShape()},n}function UL(t,e){return new Zw(jw(t,e))}function WL(t,e){var r=jw(t,e),n=(function(a){re(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i})(Zw);return n}function $L(t,e){for(var r=[],n=t.length,a=0;a<n;a++){var i=t[a];r.push(i.getUpdatedPathProxy(!0))}var o=new Ie(e);return o.createPathProxy(),o.buildPath=function(s){if(Kw(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Bp(t,e){e=e||{};var r=new Ie;return t.shape&&r.setShape(t.shape),r.setStyle(t.style),e.bakeTransform?qw(r.path,t.getComputedTransform()):e.toLocal?r.setLocalTransform(t.getComputedTransform()):r.copyTransform(t),r.buildPath=t.buildPath,r.applyTransform=r.applyTransform,r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel,r}var bt=(function(t){re(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=ke(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=ke(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},e.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new xe(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];
8if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(xe.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(uh);bt.prototype.type="group";var YL=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),dh=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new YL},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ie);dh.prototype.type="circle";var XL=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Np=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XL},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),r.closePath()},e})(Ie);Np.prototype.type="ellipse";var Qw=Math.PI,fc=Qw*2,Za=Math.sin,Oi=Math.cos,qL=Math.acos,Pt=Math.atan2,fm=Math.abs,xs=Math.sqrt,os=Math.max,Kr=Math.min,Ar=1e-4;function ZL(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,f=o-a,h=s-i,v=h*l-f*u;if(!(v*v<Ar))return v=(f*(e-i)-h*(t-a))/v,[t+v*l,e+v*u]}function Ol(t,e,r,n,a,i,o){var s=t-r,l=e-n,u=(o?i:-i)/xs(s*s+l*l),f=u*l,h=-u*s,v=t+f,c=e+h,d=r+f,p=n+h,g=(v+d)/2,m=(c+p)/2,y=d-v,_=p-c,x=y*y+_*_,S=a-i,w=v*p-d*c,b=(_<0?-1:1)*xs(os(0,S*S*x-w*w)),M=(w*_-y*b)/x,T=(-w*y-_*b)/x,A=(w*_+y*b)/x,k=(-w*y+_*b)/x,F=M-g,O=T-m,B=A-g,N=k-m;return F*F+O*O>B*B+N*N&&(M=A,T=k),{cx:M,cy:T,x0:-f,y0:-h,x1:M*(a/S-1),y1:T*(a/S-1)}}function KL(t){var e;if(J(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function jL(t,e){var r,n=os(e.r,0),a=os(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=fm(u-l),d=c>fc&&c%fc;if(d>Ar&&(c=d),!(n>Ar))t.moveTo(f,h);else if(c>fc-Ar)t.moveTo(f+n*Oi(l),h+n*Za(l)),t.arc(f,h,n,l,u,!v),a>Ar&&(t.moveTo(f+a*Oi(u),h+a*Za(u)),t.arc(f,h,a,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,w=void 0,b=void 0,M=void 0,T=void 0,A=void 0,k=void 0,F=void 0,O=void 0,B=void 0,N=n*Oi(l),z=n*Za(l),q=a*Oi(u),Y=a*Za(u),ne=c>Ar;if(ne){var te=e.cornerRadius;te&&(r=KL(te),p=r[0],g=r[1],m=r[2],y=r[3]);var oe=fm(n-a)/2;if(_=Kr(oe,m),x=Kr(oe,y),S=Kr(oe,p),w=Kr(oe,g),T=b=os(_,x),A=M=os(S,w),(b>Ar||M>Ar)&&(k=n*Oi(u),F=n*Za(u),O=a*Oi(l),B=a*Za(l),c<Qw)){var se=ZL(N,z,O,B,k,F,q,Y);if(se){var Se=N-se[0],Ne=z-se[1],mt=k-se[0],ht=F-se[1],ct=1/Za(qL((Se*mt+Ne*ht)/(xs(Se*Se+Ne*Ne)*xs(mt*mt+ht*ht)))/2),vt=xs(se[0]*se[0]+se[1]*se[1]);T=Kr(b,(n-vt)/(ct+1)),A=Kr(M,(a-vt)/(ct-1))}}}if(!ne)t.moveTo(f+N,h+z);else if(T>Ar){var Ae=Kr(m,T),Oe=Kr(y,T),me=Ol(O,B,N,z,n,Ae,v),Le=Ol(k,F,q,Y,n,Oe,v);t.moveTo(f+me.cx+me.x0,h+me.cy+me.y0),T<b&&Ae===Oe?t.arc(f+me.cx,h+me.cy,T,Pt(me.y0,me.x0),Pt(Le.y0,Le.x0),!v):(Ae>0&&t.arc(f+me.cx,h+me.cy,Ae,Pt(me.y0,me.x0),Pt(me.y1,me.x1),!v),t.arc(f,h,n,Pt(me.cy+me.y1,me.cx+me.x1),Pt(Le.cy+Le.y1,Le.cx+Le.x1),!v),Oe>0&&t.arc(f+Le.cx,h+Le.cy,Oe,Pt(Le.y1,Le.x1),Pt(Le.y0,Le.x0),!v))}else t.moveTo(f+N,h+z),t.arc(f,h,n,l,u,!v);if(!(a>Ar)||!ne)t.lineTo(f+q,h+Y);else if(A>Ar){var Ae=Kr(p,A),Oe=Kr(g,A),me=Ol(q,Y,k,F,a,-Oe,v),Le=Ol(N,z,O,B,a,-Ae,v);t.lineTo(f+me.cx+me.x0,h+me.cy+me.y0),A<M&&Ae===Oe?t.arc(f+me.cx,h+me.cy,A,Pt(me.y0,me.x0),Pt(Le.y0,Le.x0),!v):(Oe>0&&t.arc(f+me.cx,h+me.cy,Oe,Pt(me.y0,me.x0),Pt(me.y1,me.x1),!v),t.arc(f,h,a,Pt(me.cy+me.y1,me.cx+me.x1),Pt(Le.cy+Le.y1,Le.cx+Le.x1),v),Ae>0&&t.arc(f+Le.cx,h+Le.cy,Ae,Pt(Le.y1,Le.x1),Pt(Le.y0,Le.x0),!v))}else t.lineTo(f+q,h+Y),t.arc(f,h,a,u,l,v)}t.closePath()}}}var QL=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),Ma=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new QL},e.prototype.buildPath=function(r,n){jL(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ie);Ma.prototype.type="sector";var JL=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),zp=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new JL},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},e})(Ie);zp.prototype.type="ring";function ek(t,e,r,n){var a=[],i=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=t.length;v<c;v++)no(f,f,t[v]),ao(h,h,t[v]);no(f,f,n[0]),ao(h,h,n[1])}for(var v=0,c=t.length;v<c;v++){var d=t[v];if(r)l=t[v?v-1:c-1],u=t[(v+1)%c];else if(v===0||v===c-1){a.push(zD(t[v]));continue}else l=t[v-1],u=t[v+1];HD(i,u,l),Hh(i,i,e);var p=Rv(d,l),g=Rv(d,u),m=p+g;m!==0&&(p/=m,g/=m),Hh(o,i,-p),Hh(s,i,g);var y=_0([],d,o),_=_0([],d,s);n&&(ao(y,y,f),no(y,y,h),ao(_,_,f),no(_,_,h)),a.push(y),a.push(_)}return r&&a.push(a.shift()),a}function Jw(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=ek(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var tk=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),ph=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new tk},e.prototype.buildPath=function(r,n){Jw(r,n,!0)},e})(Ie);ph.prototype.type="polygon";var rk=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),gh=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rk},e.prototype.buildPath=function(r,n){Jw(r,n,!1)},e})(Ie);gh.prototype.type="polyline";var nk={},ak=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Xn=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ak},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=bw(nk,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Ie);Xn.prototype.type="line";var Yt=[],ik=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function hm(t,e,r){var n=t.cpx2,a=t.cpy2;return n!=null||a!=null?[(r?b0:Dt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?b0:Dt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?T0:Et)(t.x1,t.cpx1,t.x2,e),(r?T0:Et)(t.y1,t.cpy1,t.y2,e)]}var Hp=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ik},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(r.moveTo(a,i),f==null||h==null?(v<1&&(Qu(a,l,o,v,Yt),l=Yt[1],o=Yt[2],Qu(i,u,s,v,Yt),u=Yt[1],s=Yt[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Ca(a,l,f,o,v,Yt),l=Yt[1],f=Yt[2],o=Yt[3],Ca(i,u,h,s,v,Yt),u=Yt[1],h=Yt[2],s=Yt[3]),r.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(r){return hm(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=hm(this.shape,r,!0);return UD(n,n)},e})(Ie);Hp.prototype.type="bezier-curve";var ok=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),mh=(function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ok},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+a,h*o+i),r.arc(a,i,o,s,l,!u)},e})(Ie);mh.prototype.type="arc";var Gp=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ie.prototype.getBoundingRect.call(this)},e})(Ie),eS=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),sk=(function(t){re(e,t);function e(r,n,a,i,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(eS),lk=(function(t){re(e,t);function e(r,n,a,i,o){var s=t.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(eS),hc=Math.min,uk=Math.max,Rl=Math.abs,Ka=[0,0],ja=[0,0],xt=Kx(),Fl=xt.minTv,Bl=xt.maxTv,tS=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new de;for(var n=0;n<2;n++)this._axes[n]=new de;
8e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);de.sub(a[0],n[1],n[0]),de.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var a=!0,i=!r;return r&&de.set(r,0,0),xt.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!xt.negativeSize&&de.copy(r,a?xt.useDir?xt.dirMinTv:Fl:Bl),a},t.prototype._intersectCheckOneSide=function(e,r,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Ka),e._getProjMinMaxOnAxis(o,r._corners,ja),xt.negativeSize||Ka[1]<ja[0]||Ka[0]>ja[1]){if(i=!1,xt.negativeSize||n)return i;var l=Rl(ja[0]-Ka[1]),u=Rl(Ka[0]-ja[1]);hc(l,u)>Bl.len()&&(l<u?de.scale(Bl,s,-l*a):de.scale(Bl,s,u*a))}else if(!n){var l=Rl(ja[0]-Ka[1]),u=Rl(Ka[0]-ja[1]);(xt.useDir||hc(l,u)<Fl.len())&&((l<u||!xt.bidirectional)&&(de.scale(Fl,s,l*a),xt.useDir&&xt.calcDirMTV()),(l>=u||!xt.bidirectional)&&(de.scale(Fl,s,-u*a),xt.useDir&&xt.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+i[e];s=hc(f,s),l=uk(f,l)}n[0]=s+xt.touchThreshold,n[1]=l-xt.touchThreshold,xt.negativeSize=n[1]<n[0]},t})(),fk=[],hk=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new xe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(fk)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(Qn),rS=Ue();function Do(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=he(n.duration,200),f=he(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(h=i.delay)),we(h)&&(h=h(r,a)),we(u)&&(u=u(r));
8var v={duration:u||0,delay:h,easing:f};return v}else return null}function Vp(t,e,r,n,a,i,o){var s=!1,l;we(a)?(o=i,i=a,a=null):ge(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=Do(t,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function $t(t,e,r,n,a,i){Vp("update",t,e,r,n,a,i)}function br(t,e,r,n,a,i){Vp("enter",t,e,r,n,a,i)}function co(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function cf(t,e,r,n,a,i){co(t)||Vp("leave",t,e,r,n,a,i)}function cm(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),cf(t,{style:{opacity:0}},e,r,n)}function Au(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||cm(a,e,r,n)}):cm(t,e,r,n)}function nS(t){rS(t).oldStyle=t.style}function ck(t){return rS(t).oldStyle}var nd={},pe=["x","y"],St=["width","height"];function vk(t){return Ie.extend(t)}var dk=WL;function pk(t,e){return dk(t,e)}function Vr(t,e){nd[t]=e}function vf(t){if(nd.hasOwnProperty(t))return nd[t]}function Bs(t,e,r,n){var a=UL(t,e);return r&&(n==="center"&&(r=iS(r,a.getBoundingRect())),oS(a,r)),a}function aS(t,e,r){var n=new Tr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(iS(e,i))}}});return n}function iS(t,e){var r=e.width/e.height,n=t.height*r,a;n<=t.width?a=t.height:(n=t.width,a=n/r);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var gk=$L;function oS(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Ns(t,e){return bw(t,t,{lineWidth:e}),t}function mk(t,e){return Tw(t,t,e),t}var yk=or;function _k(t,e){for(var r=Sp([]);t&&t!==e;)ps(r,t.getLocalTransform(),r),t=t.parent;return r}function Up(t,e,r){return e&&!Wt(e)&&(e=il.getLocalTransform(e)),r&&(e=Si([],e)),xr([],t,e)}function xk(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:ln(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:ln(2*e[4]/e[2]),i=[t==="left"?-n:t==="right"?n:0,t==="top"?-a:t==="bottom"?a:0];return i=Up(i,e,r),ln(i[0])>ln(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function vm(t){return!t.isGroup}function wk(t){return t.shape!=null}function sS(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){vm(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wk(o)&&(s.shape=Pe(o.shape)),s}var i=n(t);e.traverse(function(o){if(vm(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),$t(o,l,r,Ee(o).dataIndex)}}})}function Sk(t,e){return le(t,function(r){var n=r[0];n=ot(n,e.x),n=sr(n,e.x+e.width);var a=r[1];return a=ot(a,e.y),a=sr(a,e.y+e.height),[n,a]})}function bk(t,e){var r=ot(t.x,e.x),n=sr(t.x+t.width,e.x+e.width),a=ot(t.y,e.y),i=sr(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Wp(t,e,r){var n=K({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Me(a,r),new Tr(n)):Bs(t.replace("path://",""),n,r,"center")}function Tk(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(lS(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function lS(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,f=o-a,h=s-i,v=cc(f,h,l,u);if(Ck(v))return!1;var c=t-a,d=e-i,p=cc(c,d,l,u)/v;if(p<0||p>1)return!1;var g=cc(c,d,f,h)/v;return!(g<0||g>1)}function cc(t,e,r,n){return t*n-r*e}function Ck(t){return t<=1e-6&&t>=-1e-6}function zs(t,e,r,n,a){return e==null||($e(e)?Ye[0]=Ye[1]=Ye[2]=Ye[3]=e:(Ye[0]=e[0],Ye[1]=e[1],Ye[2]=e[2],Ye[3]=e[3]),n&&(Ye[0]=ot(0,Ye[0]),Ye[1]=ot(0,Ye[1]),Ye[2]=ot(0,Ye[2]),Ye[3]=ot(0,Ye[3])),r&&(Ye[0]=-Ye[0],Ye[1]=-Ye[1],Ye[2]=-Ye[2],Ye[3]=-Ye[3]),dm(t,Ye,"x","width",3,1,a&&a[0]||0),dm(t,Ye,"y","height",0,2,a&&a[1]||0)),t}var Ye=[0,0,0,0];function dm(t,e,r,n,a,i,o){var s=e[i]+e[a],l=t[n];t[n]+=s,o=ot(0,sr(o,l)),t[n]<o?(t[n]=o,t[r]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:ln(s)>1e-8?(l-o)*e[a]/s:0):t[r]-=e[a]}function Ao(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=fe(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&I(Ce(l),function(f){Q(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Ee(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Me({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function ad(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function ul(t,e){if(t)if(J(t))for(var r=0;r<t.length;r++)ad(t[r],e);else ad(t,e)}function $p(t){return!t||ln(t[1])<Nl&&ln(t[2])<Nl||ln(t[0])<Nl&&ln(t[3])<Nl}var Nl=1e-5;function Hs(t,e){return t?xe.copy(t,e):e.clone()}function Yp(t,e){return e?Zx(t||Bn(),e):void 0}
8function uS(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function Mk(t){var e=-1/0,r=1/0;ad(t,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function fS(t,e,r){hS(t,e,r,-1/0)}function hS(t,e,r,n){if(t.ignoreModelZ)return n;var a=t.getTextContent(),i=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=ot(hS(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=ot(t.z2||0,n);if(a&&(a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var u=t.textGuideLineConfig;i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}Vr("circle",dh);Vr("ellipse",Np);Vr("sector",Ma);Vr("ring",zp);Vr("polygon",ph);Vr("polyline",gh);Vr("rect",Ke);Vr("line",Xn);Vr("bezierCurve",Hp);Vr("arc",mh);const Dk=Object.freeze(Object.defineProperty({__proto__:null,Arc:mh,BezierCurve:Hp,BoundingRect:xe,Circle:dh,CompoundPath:Gp,Ellipse:Np,Group:bt,Image:Tr,IncrementalDisplayable:hk,Line:Xn,LinearGradient:sk,OrientedBoundingRect:tS,Path:Ie,Point:de,Polygon:ph,Polyline:gh,RadialGradient:lk,Rect:Ke,Ring:zp,Sector:Ma,Text:ft,WH:St,XY:pe,applyTransform:Up,calcZ2Range:Mk,clipPointsByRect:Sk,clipRectByRect:bk,createIcon:Wp,ensureCopyRect:Hs,ensureCopyTransform:Yp,expandOrShrinkRect:zs,extendPath:pk,extendShape:vk,getShapeClass:vf,getTransform:_k,groupTransition:sS,initProps:br,isBoundingRectAxisAligned:$p,isElementRemoved:co,lineLineIntersect:lS,linePolygonIntersect:Tk,makeImage:aS,makePath:Bs,mergePath:gk,registerShape:Vr,removeElement:cf,removeElementWithFadeOut:Au,resizePath:oS,retrieveZInfo:uS,setTooltipConfig:Ao,subPixelOptimize:yk,subPixelOptimizeLine:Ns,subPixelOptimizeRect:mk,transformDirection:xk,traverseElements:ul,traverseUpdateZ:fS,updateProps:$t},Symbol.toStringTag,{value:"Module"}));var yh={};function cS(t,e){for(var r=0;r<dn.length;r++){var n=dn[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function id(t,e,r){var n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=we(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var l={normal:s},u=0;u<dn.length;u++){var f=dn[u],h=e[f];l[f]=he(n?n.getFormattedLabel(a,f,null,i,h&&h.get("formatter")):null,s)}return l}function _h(t,e,r,n){r=r||yh;for(var a=t instanceof ft,i=!1,o=0;o<sf.length;o++){var s=e[sf[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new ft,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=id(r,e),f=e.normal,h=!!f.getShallow("show"),v=pn(f,n&&n.normal,r,!1,!a);v.text=u.normal,a||t.setTextConfig(df(f,r,!1));for(var o=0;o<dn.length;o++){var c=dn[o],s=e[c];if(s){var d=l.ensureState(c),p=!!he(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=pn(s,n&&n[c],r,!0,!a),d.style.text=u[c],!a){var g=t.ensureState(c);g.textConfig=df(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),r.enableTextSetter&&(fl(l).setLabelText=function(m){var y=id(r,e,m);cS(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Xp(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<dn.length;n++){var a=dn[n];r[a]=t.getModel([a,e])}return r}function pn(t,e,r,n,a){var i={};return Ak(i,t,r,n,a),e&&K(i,e),i}function df(t,e,r){e=e||{};var n={},a,i=t.getShallow("rotate"),o=he(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function Ak(t,e,r,n,a){r=r||yh;var i=e.ecModel,o=i&&i.option.textStyle,s=Lk(e),l;if(s){l={};var u="richInheritPlainLabel",f=he(e.get(u),i?i.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var v=e.getModel(["rich",h]);ym(l[h]={},v,o,e,f,r,n,a,!1,!0)}}l&&(t.rich=l);var c=e.get("overflow");c&&(t.overflow=c);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var p=t,g=e.get("minMargin");if(g!=null)g=$e(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=oo.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=_p(m),p.__marginType=oo.textMargin)}ym(t,e,o,null,null,r,n,a,!0,!1)}function Lk(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||yh).rich;if(r){e=e||{};for(var n=Ce(r),a=0;a<n.length;a++){var i=n[a];e[i]=1}}t=t.parentModel}return e}var pm=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],gm=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],mm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ym(t,e,r,n,a,i,o,s,l,u){r=!o&&r||yh;var f=i&&i.inheritColor,h=e.getShallow("color"),v=e.getShallow("textBorderColor"),c=he(e.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(h=h||r.color,v=v||r.textBorderColor),h!=null&&(t.fill=h),v!=null&&(t.stroke=v);var d=he(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var p=he(e.getShallow("textBorderType"),r.textBorderType);p!=null&&(t.lineDash=p);var g=he(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&c==null&&!u&&(c=i&&i.defaultOpacity),c!=null&&(t.opacity=c),!o&&!s&&t.fill==null&&i.inheritColor&&(t.fill=i.inheritColor);for(var m=0;m<pm.length;m++){var y=pm[m],_=a!==!1&&n?di(e.getShallow(y),n.getShallow(y),r[y]):he(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<gm.length;m++){var y=gm[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!i.disableBox){for(var m=0;m<mm.length;m++){var y=mm[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function vS(t,e){var r=e&&e.getModel("textStyle");return on([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var fl=Ue();function kk(t,e,r,n){if(t){var a=fl(t);a.prevValue=a.value,a.value=r;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function Pk(t,e,r,n,a){var i=fl(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=he(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var h=gL(r,i.precision,s,l,f);i.interpolatedValue=f===1?null:h;var v=id({labelDataIndex:e,labelFetcher:a,defaultText:o?o(h):h+""},i.statesModels,h);cS(t,v)}t.percent=0,(i.prevValue==null?br:$t)(t,{percent:1},n,e,null,u)}var oo={minMargin:1,textMargin:2},Ik=["textStyle","color"],vc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],dc=new ft,Ek=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;
8return this.getShallow("color")||(!e&&r?r.get(Ik):null)},t.prototype.getFont=function(){return vS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<vc.length;n++)r[vc[n]]=this.getShallow(vc[n]);return dc.useStyle(r),dc.update(),dc.getBoundingRect()},t})(),dS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ok=Is(dS),Rk=(function(){function t(){}return t.prototype.getLineStyle=function(e){return Ok(this,e)},t})(),pS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Fk=Is(pS),Bk=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return Fk(this,e,r)},t})(),Be=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){Ge(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=n==null?n:n[e];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Pe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!be.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();xp(Be);gD(Be);_n(Be,Rk);_n(Be,Bk);_n(Be,wD);_n(Be,Ek);function zo(t){return t==null?0:t.length||1}function _m(t){return t}var pf=(function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||_m,this._newKeyGetter=a||_m,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=zo(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],h=zo(u),v=zo(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),a[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=zo(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=zo(l);
8u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),gS=ye(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),lr="original",Rt="arrayRows",Cr="objectRows",Ur="keyedColumns",Sa="typedArray",mS="unknown",Br="column",bi="row",Tt={Must:1,Might:2,Not:3},yS=Ue();function Nk(t){yS(t).datasetMap=ye()}function zk(t,e,r){var n={},a=qp(e);if(!a||!t)return n;var i=[],o=[],s=e.ecModel,l=yS(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,h;t=t.slice(),I(t,function(p,g){var m=ge(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,h=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});I(t,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;c(n[m],_,y),c(o,_,y),v.valueWayDim+=y}else if(f===g)c(n[m],0,y),c(i,0,y);else{var _=v.categoryWayDim;c(n[m],_,y),c(o,_,y),v.categoryWayDim+=y}});function c(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function MH(t,e,r){var n={},a=qp(t);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Cr||i===Ur)&&I(o,function(f,h){(ge(f)?f.name:f)==="name"&&(s=h)});var l=(function(){for(var f={},h={},v=[],c=0,d=Math.min(5,r);c<d;c++){var p=xS(e.data,i,e.seriesLayoutBy,o,e.startIndex,c);v.push(p);var g=p===Tt.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Tt.Not)&&(f.n=c),m(f)&&v[f.n]!==Tt.Not)return f;g||(p===Tt.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(h)?h:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function qp(t){var e=t.get("data",!0);if(!e)return ll(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ir).models[0]}function Hk(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ll(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ir).models}function _S(t,e){return xS(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function xS(t,e,r,n,a,i){var o,s=5;if(Qt(t))return Tt.Not;var l,u;if(n){var f=n[i];ge(f)?(l=f.name,u=f.type):fe(f)&&(l=f)}if(u!=null)return u==="ordinal"?Tt.Must:Tt.Not;if(e===Rt){var h=t;if(r===bi){for(var v=h[i],c=0;c<(v||[]).length&&c<s;c++)if((o=x(v[a+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[a+c];if(d&&(o=x(d[i]))!=null)return o}}else if(e===Cr){var p=t;if(!l)return Tt.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=x(g[l]))!=null)return o}}else if(e===Ur){var m=t;if(!l)return Tt.Not;var v=m[l];if(!v||Qt(v))return Tt.Not;for(var c=0;c<v.length&&c<s;c++)if((o=x(v[c]))!=null)return o}else if(e===lr)for(var y=t,c=0;c<y.length&&c<s;c++){var g=y[c],_=ol(g);if(!J(_))return Tt.Not;if((o=x(_[i]))!=null)return o}function x(S){var w=fe(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return w?Tt.Might:Tt.Not;if(w&&S!=="-")return Tt.Must}return Tt.Not}var xh=(function(){function t(e){this.data=e.data||(e.sourceFormat===Ur?{}:[]),this.sourceFormat=e.sourceFormat||mS,this.seriesLayoutBy=e.seriesLayoutBy||Br,this.startIndex=e.startIndex||
80,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&_S(this,n)===Tt.Must&&(a.type="ordinal")}}return t})();function Zp(t){return t instanceof xh}function od(t,e,r){r=r||SS(t);var n=e.seriesLayoutBy,a=Vk(t,r,n,e.sourceHeader,e.dimensions),i=new xh({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Pe(e)});return i}function wS(t){return new xh({data:t,sourceFormat:Qt(t)?Sa:lr})}function Gk(t){return new xh({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Pe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function SS(t){var e=mS;if(Qt(t))e=Sa;else if(J(t)){t.length===0&&(e=Rt);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(a!=null){if(J(a)||Qt(a)){e=Rt;break}else if(ge(a)){e=Cr;break}}}}else if(ge(t)){for(var i in t)if(Q(t,i)&&Wt(t[i])){e=Ur;break}}return e}function Vk(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:xm(a),startIndex:o,dimensionsDetectedCount:i};if(e===Rt){var s=t;n==="auto"||n==null?wm(function(u){u!=null&&u!=="-"&&(fe(u)?o==null&&(o=1):o=0)},r,s,10):o=$e(n)?n:n?1:0,!a&&o===1&&(a=[],wm(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===bi?s.length:s[0]?s[0].length:null}else if(e===Cr)a||(a=Uk(t));else if(e===Ur)a||(a=[],I(t,function(u,f){a.push(f)}));else if(e===lr){var l=ol(t[0]);i=J(l)&&l.length||1}return{startIndex:o,dimensionsDefine:xm(a),dimensionsDetectedCount:i}}function Uk(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Ce(r)}function xm(t){if(t){var e=ye();return le(t,function(r,n){r=ge(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function wm(t,e,r,n){if(e===bi)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)t(i[a],a)}function bS(t){var e=t.sourceFormat;return e===Cr||e===Ur}var Qa,Ja,ei,ti,Sm,bm,TS=(function(){function t(e,r){var n=Zp(e)?e:wS(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Sa&&(this._offset=0,this._dimSize=r,this._data=a),bm(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;bm=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=Sm[Kp(u,f)];if(K(o,c),u===Sa)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=CS(u,f);o.getItem=He(d,null,s,h,v);var p=MS(u,f);o.count=He(p,null,s,h,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,m=l[v],y=0;y<g;y++){var _=f[y*h+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Sm=(e={},e[Rt+"_"+Br]={pure:!0,appendData:i},e[Rt+"_"+bi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Cr]={pure:!0,appendData:i},e[Ur]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[lr]={appendData:i},e[Sa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),zl=function(t){J(t)||Iw("series.data or dataset.source must be an array.")};Qa={},Qa[Rt+"_"+Br]=zl,Qa[Rt+"_"+bi]=zl,Qa[Cr]=zl,Qa[Ur]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&Iw("dimension name must not be null/undefined.")}},Qa[lr]=zl;var Tm=function(t,e,r,n){return t[n]},Wk=(Ja={},Ja[Rt+"_"+Br]=function(t,e,r,n){return t[n+e]},Ja[Rt+"_"+bi]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Ja[Cr]=Tm,Ja[Ur]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;i[o]=l?l[n]:null}return i},Ja[lr]=Tm,Ja);function CS(t,e){var r=Wk[Kp(t,e)];return r}var Cm=function(t,e,r){return t.length},$k=(ei={},ei[Rt+"_"+Br]=function(t,e,r){return Math.max(0,t.length-e)},ei[Rt+"_"+bi]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ei[Cr]=Cm,ei[Ur]=function(t,e,r){var n=r[0].name,a=n!=null?t[n]:null;return a?a.length:0},ei[lr]=Cm,ei);function MS(t,e){var r=$k[Kp(t,e)];return r}var pc=function(t,e,r){return t[e]},Yk=(ti={},ti[Rt]=pc,ti[Cr]=function(t,e,r){return t[r]},ti[Ur]=pc,ti[lr]=function(t,e,r){var n=ol(t);return n instanceof Array?n[e]:n},ti[Sa]=pc,ti);function DS(t){var e=Yk[t];return e}function Kp(t,e){return t===Rt?t+"_"+e:t}function _o(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return DS(i)(n,o,s)}else{var l=n;return i===lr&&(l=ol(n)),l}}}}var Xk=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function qk(t,e){var r={},n=r.encode={},a=ye(),i=[],o=[],s={};I(t.dimensions,function(v){var c=t.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;gc(n,d)[p]=v,c.isExtraCoord||(a.set(d,1),Kk(c.type)&&(i[0]=v),gc(s,d)[p]=t.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}gS.each(function(g,m){var y=gc(n,m),_=c.otherDims[m];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};a.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=le(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new Xk(s,e),r}function gc(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Zk(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Kk(t){return!(t==="ordinal"||t==="time")}var Lu=(function(){function t(e){this.otherDims={},e!=null&&K(this,e)}return t})();function ku(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!$e(t)&&t!=null&&t!=="-"&&(t=+Mo(t)),t==null||t===""?NaN:Number(t))}ye({number:function(t){return parseFloat(t)},time:function(t){return+Mo(t)},trim:function(t){return fe(t)?on(t):t}});var jk=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=$e(e)?e:of(e),a=$e(r)?r:of(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=fe(e),l=fe(r);
8s&&(n=l?e:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t})(),wh="undefined",Qk=typeof Uint32Array===wh?Array:Uint32Array,Jk=typeof Uint16Array===wh?Array:Uint16Array,AS=typeof Int32Array===wh?Array:Int32Array,Mm=typeof Float64Array===wh?Array:Float64Array,LS={float:Mm,int:AS,ordinal:Array,number:Array,time:Mm},mc;function Ri(t){return t>65535?Qk:Jk}function Fi(){return[1/0,-1/0]}function eP(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Dm(t,e,r,n,a){var i=LS[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(n)}var sd=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ye()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=mc[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],bS(a),this._dimensions=le(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new LS[r||"float"](this._rawCount),this._rawExtent[i]=Fi(),i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Fi());for(var l=i[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<i;u++){var f=a[u];Dm(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<i;d++){var f=a[d],p=mc.arrayRows.call(this,e[c]||h,f.property,c,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=le(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Fi()),Dm(i,f,h.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,l);else for(var v=[],c=e;c<r;c++){v=a.getItem(c,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],c,d);p[c]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(r==null){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)i=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,a=this._count;
8if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n=Ri(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Ri(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],h=n._chunks,v=0;v<a;v++){var c=void 0,d=n.getRawIndex(v);if(l===0)c=r(v);else if(l===1){var p=h[f][d];c=r(p,v)}else{for(var g=0;g<l;g++)s[g]=h[e[g]][d];s[g]=v,c=r.apply(null,s)}c&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=Ce(e),i=a.length;if(!i)return this;var o=r.count(),s=Ri(r._rawCount),l=new s(o),u=0,f=a[0],h=e[f][0],v=e[f][1],c=r._chunks,d=!1;if(!r._indices){var p=0;if(i===1){for(var g=c[a[0]],m=0;m<n;m++){var y=g[m];(y>=h&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[a[0]],_=c[a[1]],x=e[a[1]][0],S=e[a[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=h&&y<=v||isNaN(y))&&(w>=x&&w<=S||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var b=r.getRawIndex(m),y=c[a[0]][b];(y>=h&&y<=v||isNaN(y))&&(l[u++]=b)}else for(var m=0;m<o;m++){for(var M=!0,b=r.getRawIndex(m),T=0;T<i;T++){var A=a[T],y=c[A][b];(y<e[A][0]||y>e[A][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Fi();for(var h=0;h<s;h++){for(var v=e.getRawIndex(h),c=0;c<o;c++)l[c]=a[r[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=u[p],y=a[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,h,v,c=new(Ri(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var x=this.getRawIndex(_),S=i[x];isNaN(S)||(y+=S)}y/=g-p;var w=d,b=Math.min(d+l,o),M=d-1,T=i[u];f=-1,v=w;for(var A=-1,k=0,_=w;_<b;_++){var x=this.getRawIndex(_),S=i[x];if(isNaN(S)){k++,A<0&&(A=x);continue}h=Math.abs((M-m)*(S-T)-(M-_)*(y-T)),h>f&&(f=h,v=x)}k>0&&k<b-w&&(c[s++]=Math.min(A,v),v=Math.max(A,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/r),o=a[e],s=this.count(),l=new(Ri(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<v&&(v=y,h=f+g),y>d&&(d=y,c=f+g)}var _=this.getRawIndex(h),x=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),h=i._rawExtent[e]=Fi(),v=new(Ri(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+a(s,m)||0,f-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),v[c++]=y}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Fi();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),h=r[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&$n(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?eP(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Pe(this._extent),e._rawExtent=Pe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,a,i){return ku(r[i],this._dimensions[i])}mc={arrayRows:e,objectRows:function(r,n,a,i){return ku(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return ku(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}})(),t})(),tP=Ue(),rP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},kS=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=ES(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return he(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=bS(this.source),n=!OS(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=rP[u]||"f",f&&(a+=f.uid),a+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,a].join("$$");return{dimensions:i,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function PS(t){return t instanceof kS}function IS(t){for(var e=ye(),r=0;r<(t||[]).length;r++){var n=t[r],a=ge(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function ES(t){var e=tP(t);return e.dimNameMap||(e.dimNameMap=IS(t.dimensionsDefine))}function OS(t){return t>30}var Ho=ge,na=le,nP=typeof Int32Array>"u"?Array:Int32Array,aP="e\0\0",Am=-1,iP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],oP=["_approximateExtent"],Lm,Hl,Go,Vo,yc,Uo,_c,sP=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual
8={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;PS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=fe(h)?new Lu({name:h}):h instanceof Lu?h:new Lu(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),i[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]);var p=f;$e(v.storeDimIndex)&&(p=v.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),a&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=ye();I(o,function(m){g.set(i[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if($e(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var a=this,i;if(e instanceof sd&&(i=e),!i){var o=this.dimensions,s=Zp(e)||Wt(e)?new TS(e,o.length):e;i=new sd;var l=na(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=qk(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&_c(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Sa&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===lr;if(l&&!a.pure)for(var u=[],f=e;f<r;f++){var h=a.getItem(f,u);if(!this.hasItemOption&&aL(h)&&(this.hasItemOption=!0),h){var v=h.name;i[f]==null&&v!=null&&(i[f]=Vt(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Vt(c,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)_c(this,f);Lm(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Ho(e)?K(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Go(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return Hl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return J(e)?a.getValues(na(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],a=n&&n[r];return a==null||isNaN(a)?Am:a},t.prototype.each=function(e,r,n){we(e)&&(n=r,r=e,e=[]);var a=n||this,i=na(Vo(e),this._getStoreDimIndex,this);this._store.each(i,a?He(r,a):r)},t.prototype.filterSelf=function(e,r,n){we(e)&&(n=r,r=e,e=[]);var a=n||this,i=na(Vo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?He(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=Ce(e);return I(a,function(i){var o=r._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){we(e)&&(n=r,r=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=na(Vo(e),this._getStoreDimIndex,this),s=Uo(this);return s._store=this._store.map(o,i?He(r,i):r),s},t.prototype.modify=function(e,r,n,a){var i=n||a||this,o=na(Vo(e),this._getStoreDimIndex,this);this._store.modify(o,i?He(r,i):r)},t.prototype.downSample=function(e,r,n,a){var i=Uo(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.minmaxDownSample=function(e,r){var n=Uo(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Uo(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Be(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;
8return new pf(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Hl(e,n)},function(n){return Hl(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Ho(e)?K(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],a=n&&n[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return i==null&&(i=this.getVisual(r),J(i)?i=i.slice():Ho(i)&&(i=K({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Ho(r)?K(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Ho(e)?K(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?K(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;mL(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){I(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:na(this.dimensions,this._getDimInfo,this),this.hostModel)),yc(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];we(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(yp(arguments)))})},t.internalField=(function(){Lm=function(e){var r=e._invertedIndicesMap;I(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new nP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Am;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Go=function(e,r,n){return Vt(e._getCategory(r,n),null)},Hl=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Go(e,e._idDimIdx,r)),n==null&&(n=aP+r),n},Vo=function(e){return J(e)||(e=e!=null?[e]:[]),e},Uo=function(e){var r=new t(e._schema?e._schema:na(e.dimensions,e._getDimInfo,e),e.hostModel);return yc(r,e),r},yc=function(e,r){I(iP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,I(oP,function(n){e[n]=Pe(r[n])}),e._calculationInfo=K({},r._calculationInfo)},_c=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Go(e,i,r)),l==null&&o!=null&&(a[r]=l=Go(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[r]=l}}})(),t})();function lP(t,e){Zp(t)||(t=wS(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=ye(),i=[],o=fP(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&OS(o),l=n===t.dimensionsDefine,u=l?ES(t):IS(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var h=ye(f),v=new AS(o),c=0;c<v.length;c++)v[c]=-1;function d(T){var A=v[T];if(A<0){var k=n[T],F=ge(k)?k:{name:k},O=new Lu,B=F.name;B!=null&&u.get(B)!=null&&(O.name=O.displayName=B),F.type!=null&&(O.type=F.type),F.displayName!=null&&(O.displayName=F.displayName);var N=i.length;return v[T]=N,O.storeDimIndex=T,i.push(O),O}return i[A]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(T,A){var k=Qe(T).slice();if(k.length===1&&!fe(k[0])&&k[0]<0){h.set(A,!1);return}var F=h.set(A,[]);I(k,function(O,B){var N=fe(O)?u.get(O):O;N!=null&&N<o&&(F[B]=N,g(d(N),A,B))})});var p=0;I(r,function(T){var A,k,F,O;if(fe(T))A=T,O={};else{O=T,A=O.name;var B=O.ordinalMeta;O.ordinalMeta=null,O=K({},O),O.ordinalMeta=B,k=O.dimsDef,F=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var N=h.get(A);if(N!==!1){if(N=Qe(N),!N.length)for(var z=0;z<(k&&k.length||1);z++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&N.push(p++)}I(N,function(q,Y){var ne=d(q);
8if(l&&O.type!=null&&(ne.type=O.type),g(Me(ne,O),A,Y),ne.name==null&&k){var te=k[Y];!ge(te)&&(te={name:te}),ne.name=ne.displayName=te.name,ne.defaultTooltip=te.defaultTooltip}F&&Me(ne.otherDims,F)})}});function g(T,A,k){gS.get(A)!=null?T.otherDims[A]=k:(T.coordDim=A,T.coordDimIndex=k,a.set(A,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||"value";function S(T){T.name==null&&(T.name=T.coordDim)}if(s)I(i,function(T){S(T)}),i.sort(function(T,A){return T.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var b=d(w),M=b.coordDim;M==null&&(b.coordDim=hP(x,a,_),b.coordDimIndex=0,(!m||y<=0)&&(b.isExtraCoord=!0),y--),S(b),b.type==null&&(_S(t,w)===Tt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return uP(i),new kS({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function uP(t){for(var e=ye(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function fP(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return I(e,function(i){var o;ge(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function hP(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Pu={},xc={},jp=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Pu),this._normalMasterList=n(xc);function n(a,i){var o=[];return I(a,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){I(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Pu[e]=r;return}xc[e]=r},t.get=function(e){return xc[e]||Pu[e]},t})();function cP(t){return!!Pu[t]}var ld={coord:1,coord2:2};function DH(t){RS.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var RS=ye();function vP(t){var e=t.getShallow("coord",!0),r=ld.coord;if(e==null){var n=RS.get(t.type);n&&n.getCoord2&&(r=ld.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var Pn={none:0,dataCoordSys:1,boxCoordSys:2};function dP(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),a=Pn.none;if(r){var i=t.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=Pn.dataCoordSys,i||(a=Pn.none)):n==="box"&&(a=Pn.boxCoordSys,!i&&!cP(r)&&(a=Pn.none))}return{coordSysType:r,kind:a}}function FS(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,a=t.isDefaultDataCoordSys;t.allowNotFound;var i=dP(e),o=i.kind,s=i.coordSysType;if(a&&o!==Pn.dataCoordSys&&(o=Pn.dataCoordSys,s=r),o===Pn.none||s!==r)return!1;var l=n(r,e);return l?(o===Pn.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var pP=function(t,e){var r=e.getReferringComponents(t,ir).models[0];return r&&r.coordinateSystem},gP=(function(){function t(e){this.coordSysDims=[],this.axisMap=ye(),this.categoryAxisMap=ye(),this.coordSysName=e}return t})();function mP(t){var e=t.get("coordinateSystem"),r=new gP(e),n=yP[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var yP={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",ir).models[0],i=t.getReferringComponents("yAxis",ir).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Bi(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Bi(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",ir).models[0];e.coordSysDims=["single"],r.set("single",a),Bi(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",ir).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Bi(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Bi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();I(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Bi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var a=t.getReferringComponents("matrix",ir).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function Bi(t){return t.get("type")==="category"}function _P(t,e,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;xP(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,h,v;if(I(i,function(y,_){fe(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;I(i,function(y){y.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function xP(t){return!PS(t.schema)}function BS(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function wP(t,e){return BS(t,e)?t.getCalculationInfo("stackResultDimension"):e}function SP(t,e){var r=t.get("coordinateSystem"),n=jp.get(r),a;return e&&e.coordSysDims&&(a=le(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Zk(l)}return o}
8)),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function bP(t,e,r){var n,a;return r&&I(t,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(t[n].otherDims.itemName=0),n}function Qp(t,e,r){r=r||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===lr;var o=mP(e),s=SP(e,o),l=r.useEncodeDefaulter,u=we(l)?l:l?pt(zk,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=lP(a,f),v=bP(h.dimensions,r.createInvertedIndices,o),c=i?null:n.getSharedDataStore(h),d=_P(e,{schema:h,store:c}),p=new sP(h,e);p.setCalculationInfo(d);var g=v!=null&&TP(a)?function(m,y,_,x){return x===v?_:this.defaultDimValueGetter(m,y,_,x)}:null;return p.hasItemOption=!1,p.initData(i?a:c,null,g),p}function TP(t){if(t.sourceFormat===lr){var e=CP(t.data||[]);return!J(ol(e))}}function CP(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var MP=Math.round(Math.random()*10);function Sh(t){return[t||"",MP++].join("_")}function DP(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=sn(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=sn(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}function AP(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),f=u.graph,h=u.noEntryList,v={};for(I(i,function(y){v[y]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),I(d.successor,p?m:g)}I(v,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){v[y]=!0,g(y)}};function r(i){var o={},s=[];return I(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),h=a(f,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),I(h,function(v){ke(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);ke(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return I(i,function(l){ke(o,l)>=0&&s.push(l)}),s}}function NS(t,e){return Ge(Ge({},t,!0),e,!0)}var LP=Math.log(2);function ud(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/LP);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&a||(h+=(c%2?-1:1)*t[r][v]*ud(t,e-1,f,u,a|d,i),c++)}return i[o]=h,h}function km(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=ud(r,8,0,0,0,n);if(a!==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)*ud(r,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var gf="___zrEVENTSAVED",wc=[];function kP(t,e,r,n,a){return fd(wc,e,n,a,!0)&&fd(t,r,wc[0],wc[1])}function PP(t,e){t&&r(t),e&&r(e);function r(n){var a=n[gf];a&&(a.clearMarkers&&a.clearMarkers(),delete n[gf])}}function fd(t,e,r,n,a){if(e.getBoundingClientRect&&be.domSupported&&!zS(e)){var i=e[gf]||(e[gf]={}),o=IP(e,i),s=EP(o,i,a);if(s)return s(t,r,n),!0}return!1}function IP(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],a=["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",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){I(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function EP(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=r?km(s,o):km(o,s))}function zS(t){return t.nodeName.toUpperCase()==="CANVAS"}var OP=/([&<>"'])/g,RP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ht(t){return t==null?"":(t+"").replace(OP,function(e,r){return RP[r]})}const FP={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
8ay","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},BP={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}
8,",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var mf="ZH",Jp="EN",vo=Jp,Iu={},eg={},HS=be.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||vo).toUpperCase();return t.indexOf(mf)>-1?mf:vo})():vo;function GS(t,e){t=t.toUpperCase(),eg[t]=new Be(e),Iu[t]=e}function NP(t){if(fe(t)){var e=Iu[t.toUpperCase()]||{};return t===mf||t===Jp?Pe(e):Ge(Pe(e),Pe(Iu[vo]),!1)}else return Ge(Pe(t),Pe(Iu[vo]),!1)}function zP(t){return eg[t]}function HP(){return eg[vo]}GS(Jp,FP);GS(mf,BP);var GP=null;function yf(){return GP}var tg=1e3,rg=tg*60,ws=rg*60,_r=ws*24,Pm=_r*365,VP={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Eu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},UP="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Gl="{yyyy}-{MM}-{dd}",Im={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gl,hour:Gl+" "+Eu.hour,minute:Gl+" "+Eu.minute,second:Gl+" "+Eu.second,millisecond:UP},_i=["year","month","day","hour","minute","second","millisecond"],WP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $P(t){return!fe(t)&&!we(t)?YP(t):t}function YP(t){t=t||{};var e={},r=!0;return I(_i,function(n){r&&(r=t[n]==null)}),I(_i,function(n,a){var i=t[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=_i[s],u=ge(i)&&!J(i)?i[l]:i,f=void 0;J(u)?(f=u.slice(),o=f[0]||""):fe(u)?(o=u,f=[o]):(o==null?o=Eu[n]:VP[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function aa(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ss(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function XP(t){return t===Ss(t)}function qP(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function bh(t,e,r,n){var a=Mo(t),i=a[VS(r)](),o=a[ng(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[ag(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[ig(r)](),h=(f-1)%12+1,v=a[og(r)](),c=a[sg(r)](),d=a[lg(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Be?n:zP(n||HS)||HP(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,aa(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,aa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,aa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,aa(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,aa(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,aa(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,aa(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,aa(d,3)).replace(/{S}/g,d+"")}function ZP(t,e,r,n,a){var i=null;if(fe(r))i=r;else if(we(r)){var o={time:t.time,level:t.time.level},s=yf();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),i=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=_f(t.value,a);i=r[f][f][0]}}return bh(new Date(t.value),i,a,n)}function _f(t,e){var r=Mo(t),n=r[ng(e)]()+1,a=r[ag(e)](),i=r[ig(e)](),o=r[og(e)](),s=r[sg(e)](),l=r[lg(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&a===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function hd(t,e,r){switch(e){case"year":t[US(r)](0);case"month":t[WS(r)](1);case"day":t[$S(r)](0);case"hour":t[YS(r)](0);case"minute":t[XS(r)](0);case"second":t[qS(r)](0)}return t}function VS(t){return t?"getUTCFullYear":"getFullYear"}function ng(t){return t?"getUTCMonth":"getMonth"}function ag(t){return t?"getUTCDate":"getDate"}function ig(t){return t?"getUTCHours":"getHours"}function og(t){return t?"getUTCMinutes":"getMinutes"}function sg(t){return t?"getUTCSeconds":"getSeconds"}function lg(t){return t?"getUTCMilliseconds":"getMilliseconds"}function KP(t){return t?"setUTCFullYear":"setFullYear"}function US(t){return t?"setUTCMonth":"setMonth"}function WS(t){return t?"setUTCDate":"setDate"}function $S(t){return t?"setUTCHours":"setHours"}function YS(t){return t?"setUTCMinutes":"setMinutes"}function XS(t){return t?"setUTCSeconds":"setSeconds"}function qS(t){return t?"setUTCMilliseconds":"setMilliseconds"}function ZS(t){if(!JA(t))return fe(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function KS(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Th=_p;function cd(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&on(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Mo(t):t;if(isNaN(+l)){if(s)return"-"}else return bh(l,n,r)}if(e==="ordinal")return Lv(t)?a(t):$e(t)&&i(t)?t+"":"-";var u=of(t);return i(u)?ZS(u):Lv(t)?a(t):typeof t=="boolean"?t+"":"-"}var Em=["a","b","c","d","e","f","g"],Sc=function(t,e){return"{"+t+(e??"")+"}"};function jS(t,e,r){J(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=Em[i];t=t.replace(Sc(o),Sc(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(Sc(Em[l],s),r?Ht(u):u)}return t}function jP(t,e){var r=fe(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ht(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ht(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|}  ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Gs(t,e){return e=e||"transparent",fe(t)?t:ge(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}
8function Om(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Ou=I,QS=["left","right","top","bottom","width","height"],Vl=[["width","left","right"],["height","top","bottom"]];function ug(t,e,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(t==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=i+p,c>n||l.newline?(i=0,c=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=c+r:o=d+r)})}var bs=ug;pt(ug,"vertical");pt(ug,"horizontal");function QP(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function JP(t,e){var r=Ch(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),a,i;if(r.type===ss.point)i=r.refPoint,a=gn(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=J(o)?o:[o,o];a=gn(n,r.refContainer),i=r.boxCoordFrom===ld.coord2?r.refPoint:[Ze(s[0],a.width)+a.x,Ze(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function AH(t,e){var r=JP(t,e),n=r.viewRect,a=r.center,i=t.get("radius");J(i)||(i=[0,i]);var o=Ze(n.width,e.getWidth()),s=Ze(n.height,e.getHeight()),l=Math.min(o,s),u=Ze(i[0],l/2),f=Ze(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function gn(t,e,r){r=Th(r||0);var n=e.width,a=e.height,i=Ze(t.left,n),o=Ze(t.top,a),s=Ze(t.right,n),l=Ze(t.bottom,a),u=Ze(t.width,n),f=Ze(t.height,a),h=r[2]+r[0],v=r[1]+r[3],c=t.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-h),t.left||t.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-h-o-(l||0));var d=new xe((e.x||0)+i+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var ss={rect:1,point:2};function Ch(t,e,r){var n,a,i,o=t.boxCoordinateSystem,s;if(o){var l=vP(t),u=l.coord,f=l.from;if(o.dataToLayout){i=ss.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=ss.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=ss.rect),i===ss.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function eI(t,e,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||t,i.x=t.x,i.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new xe(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=gn(Me({width:u.width,height:u.height},e),r,n),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===t&&t.markRedraw(),!0}function Vs(t){var e=t.layoutMode||t.constructor.layoutMode;return ge(e)?e:e?{type:e}:null}function qn(t,e,r){var n=r&&r.ignoreSize;!J(n)&&(n=[n,n]);var a=o(Vl[0],0),i=o(Vl[1],1);l(Vl[0],t,a),l(Vl[1],t,i);function o(u,f){var h={},v=0,c={},d=0,p=2;if(Ou(u,function(y){c[y]=t[y]}),Ou(u,function(y){Q(e,y)&&(h[y]=c[y]=e[y]),s(h,y)&&v++,s(c,y)&&d++}),n[f])return s(e,u[1])?c[u[2]]=null:s(e,u[2])&&(c[u[1]]=null),c;if(d===p||!v)return c;if(v>=p)return h;for(var g=0;g<u.length;g++){var m=u[g];if(!Q(h,m)&&Q(t,m)){h[m]=t[m];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){Ou(u,function(v){f[v]=h[v]})}}function hl(t){return JS({},t)}function JS(t,e){return e&&t&&Ou(QS,function(r){Q(e,r)&&(t[r]=e[r])}),t}var tI=Ue(),Fe=(function(t){re(e,t);function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=Sh("ec_cpt_model"),i}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Vs(this),i=a?hl(r):{},o=n.getTheme();Ge(r,o.get(this.mainType)),Ge(r,this.getDefaultOption()),a&&qn(r,i,a)},e.prototype.mergeOption=function(r,n){Ge(this.option,r,!0);var a=Vs(this);a&&qn(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!vD(r))return r.defaultOption;var n=tI(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Ge(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return ll(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return QP(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Be);Xx(Fe,Be);oh(Fe);DP(Fe);AP(Fe,rI);function rI(t){var e=[];return I(Fe.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.depen
8dencies||[])}),e=le(e,function(r){return sn(r).main}),t!=="dataset"&&ke(e,"dataset")<=0&&e.unshift("dataset"),e}var Rm=Ue();Ue();var fg=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=Qe(this.get("color",!0)),i=this.get("colorLayer",!0);return aI(this,Rm,a,i,e,r,n)},t.prototype.clearColorPalette=function(){iI(this,Rm)},t})();function nI(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function aI(t,e,r,n,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?r:nI(n,o);if(f=f||r,!(!f||!f.length)){var h=f[l];return a&&(u[a]=h),s.paletteIdx=(l+1)%f.length,h}}function iI(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var oI=/\{@(.+?)\}/g,sI=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&J(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(we(i))return l.status=r,l.dimensionIndex=a,i(l);if(fe(i)){var f=jS(i,l);return f.replace(oI,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=_o(s,e,d);if(o&&J(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return _o(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Fm(t){var e,r;return ge(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ts(t){return new lI(t)}var lI=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<d)){var p=this._progress;if(J(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,l,u);else this._doProgress(p,c,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){Bm.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Bm.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),J(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),Bm=(function(){var t,e,r,n,a,i={reset:function(l,u,f,h){e=l,t=u,r=f,n=h,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*r+Math.ceil(e/a),u=e>=t?null:l<n?l:e;return e++,u}}
8)(),uI=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ku(e,r)},t})();function fI(t,e){var r=new uI,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==Br&&At(o);var s=[],l={},u=t.dimensionsDefine;if(u)I(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Q(l,m)&&At(_),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var h=CS(a,Br);e.__isBuiltIn&&(r.getRawDataItem=function(p){return h(n,i,s,p)},r.getRawData=He(hI,null,t)),r.cloneRawData=He(cI,null,t);var v=MS(a,Br);r.count=He(v,null,n,i,s);var c=DS(a);r.retrieveValue=function(p,g){var m=h(n,i,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return c(p,g,m.name)}};return r.getDimensionInfo=He(vI,null,s,l),r.cloneAllDimensionInfo=He(dI,null,s),r}function hI(t){var e=t.sourceFormat;if(!hg(e)){var r="";At(r)}return t.data}function cI(t){var e=t.sourceFormat,r=t.data;if(!hg(e)){var n="";At(n)}if(e===Rt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(e===Cr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(K({},r[i]));return a}}function vI(t,e,r){if(r!=null){if($e(r)||!isNaN(r)&&!Q(e,r))return t[r];if(Q(e,r))return e[r]}}function dI(t){return Pe(t)}var eb=ye();function pI(t){t=Pe(t);var e=t.type,r="";e||At(r);var n=e.split(":");n.length!==2&&At(r);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),t.__isBuiltIn=a,eb.set(e,t)}function gI(t,e,r){var n=Qe(t),a=n.length,i="";a||At(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=mI(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function mI(t,e,r,n){var a="";e.length||At(a),ge(t)||At(a);var i=t.type,o=eb.get(i);o||At(a);var s=le(e,function(u){return fI(u,o)}),l=Qe(o.transform({upstream:s[0],upstreamList:s,config:Pe(t.config)}));return le(l,function(u,f){var h="";ge(u)||At(h),u.data||At(h);var v=SS(u.data);hg(v)||At(h);var c,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),c={seriesLayoutBy:Br,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Br,sourceHeader:0,dimensions:u.dimensions};return od(u.data,c,null)})}function hg(t){return t===Rt||t===Cr}var tb=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(Ul(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Qt(s)?Sa:lr,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=he(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=he(h.sourceHeader,v.sourceHeader),p=he(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;a=g?[od(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[od(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&zm(i)}var o,s=[],l=[];return I(e,function(u){u.prepareSource();var f=u.getSource(a||0),h="";a!=null&&!f&&zm(h),s.push(f),l.push(u._getVersionSign())}),n?o=gI(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Gk(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Ul(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new sd,s.initData(new TS(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ul(e)){var r=qp(e);return r?[r.getSourceManager()]:[]}else return le(Hk(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,a;if(Ul(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t})();function Nm(t){var e=t.option.transform;e&&qu(t.option.transform)}function Ul(t){return t.mainType==="series"}function zm(t){throw new Error(t)}var ve={color:{},darkColor:{},size:{}},nt=ve.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};K(nt,{primary:nt.neutral80,secondary:nt.neutral70,tertiary:nt.neutral60,quaternary:nt.neutral50,disabled:nt.neutral20,border:nt.neutral30,borderTint:nt.neutral20,borderShade:nt.neutral40,background:nt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:nt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine
8:nt.neutral70,axisLineTint:nt.neutral40,axisTick:nt.neutral70,axisTickMinor:nt.neutral60,axisLabel:nt.neutral70,axisSplitLine:nt.neutral15,axisMinorSplitLine:nt.neutral05});for(var ri in nt)if(nt.hasOwnProperty(ri)){var Hm=nt[ri];ri==="theme"?ve.darkColor.theme=nt.theme.slice():ri==="highlight"?ve.darkColor.highlight="rgba(255,231,130,0.4)":ri.indexOf("accent")===0?ve.darkColor[ri]=zv(Hm,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ve.darkColor[ri]=zv(Hm,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}ve.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var yI="line-height:1";function rb(t){var e=t.lineHeight;return e==null?yI:"line-height:"+Ht(e+"")+"px"}function nb(t,e){var r=t.color||ve.color.tertiary,n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||ve.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ht(n+"")+"px;color:"+Ht(r)+";font-weight:"+Ht(a+""),valueStyle:"font-size:"+Ht(o+"")+"px;color:"+Ht(i)+";font-weight:"+Ht(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var _I=[0,10,20,30],xI=["",`
9`,`
10
11`,`
12
13
14`];function Us(t,e){return e.type=t,e}function vd(t){return t.type==="section"}function ab(t){return vd(t)?wI:SI}function ib(t){if(vd(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return I(t.blocks,function(a){var i=ib(a);i>=e&&(e=i+ +(n&&(!i||vd(a)&&!a.noHeader)))}),e}return 0}function wI(t,e,r,n){var a=e.noHeader,i=bI(ib(e)),o=[],s=e.blocks||[];zr(!s||J(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var f=new jk(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(p,g){var m=e.valueFormatter,y=ab(p)(m?K(K({},t),{valueFormatter:m}):t,p,g>0?i.html:0,n);y!=null&&o.push(y)});var h=t.renderMode==="richText"?o.join(i.richText):dd(n,o.join(""),a?r:i.html);if(a)return h;var v=cd(e.header,"ordinal",t.useUTC),c=nb(n,t.renderMode).nameStyle,d=rb(n);return t.renderMode==="richText"?ob(t,v,c)+i.richText+h:dd(n,'<div style="'+c+";"+d+';">'+Ht(v)+"</div>"+h,r)}function SI(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=J(x)?x:[x],le(x,function(S,w){return cd(S,J(c)?c[w]:c,u)})};if(!(i&&o)){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ve.color.secondary,a),v=i?"":cd(l,"ordinal",u),c=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,g=!s&&i,m=nb(n,a),y=m.nameStyle,_=m.valueStyle;
14return a==="richText"?(s?"":h)+(i?"":ob(t,v,y))+(o?"":MI(t,d,p,g,_)):dd(n,(s?"":h)+(i?"":TI(v,!s,y))+(o?"":CI(d,p,g,_)),r)}}function Gm(t,e,r,n,a,i){if(t){var o=ab(t),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function bI(t){return{html:_I[t],richText:xI[t]}}function dd(t,e,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=rb(t);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function TI(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Ht(t)+"</span>"}function CI(t,e,r,n){var a=r?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=J(t)?t:[t],'<span style="'+i+";"+n+'">'+le(t,function(o){return Ht(o)}).join("&nbsp;&nbsp;")+"</span>"}function ob(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function MI(t,e,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(J(e)?e.join("  "):e,i)}function DI(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Gs(n)}function sb(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var bc=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=kw()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a=n==="richText"?this._generateStyleName():null,i=jP({color:r,type:e,renderMode:n,markerId:a});return fe(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};J(r)?I(r,function(i){return K(n,i)}):K(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t})();function AI(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=J(s),u=DI(e,r),f,h,v,c;if(o>1||l&&!o){var d=LI(s,e,r,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);c=f=_o(a,r,i[0]),h=p.type}else c=f=l?s[0]:s;var g=Lp(e),m=g&&e.name||"",y=a.getName(r),_=n?m:y;return Us("section",{header:m,noHeader:n||!g,sortParam:c,blocks:[Us("nameValue",{markerType:"item",markerColor:u,name:_,noName:!on(_),value:f,valueType:h,dataIndex:r})].concat(v||[])})}function LI(t,e,r,n,a){var i=e.getData(),o=$n(t,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?I(n,function(h){f(_o(i,r,h),h)}):I(t,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Us("nameValue",{markerType:"subItem",markerColor:a,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ia=Ue();function Wl(t,e){return t.getName(e)||t.getId(e)}var Ru="__universalTransitionEnabled",mn=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ts({count:PI,reset:II}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=ia(this).sourceManager=new tb(this);i.prepareSource();var o=this.getInitialData(r,a);Um(o,this),this.dataTask.context.data=o,ia(this).dataBeforeProcessed=o,Vm(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Vs(this),i=a?hl(r):{},o=this.subType;Fe.hasClass(o)&&(o+="Series"),Ge(r,n.getTheme().get(this.subType)),Ge(r,this.getDefaultOption()),K0(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&qn(r,i,a)},e.prototype.mergeOption=function(r,n){r=Ge(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Vs(this);a&&qn(this.option,r,a);var i=ia(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Um(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ia(this).dataBeforeProcessed=o,Vm(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Qt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&K0(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=pd(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}
14else return ia(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=pd(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}ia(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ye(r)},e.prototype.getSourceManager=function(){return ia(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ia(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);var f=[],h=1/0,v=-1,c=0;return o.each(n,function(d,p){var g=l.dataToCoord(d),m=u-g,y=Math.abs(m);y<=i&&((y<h||y===h&&m>=0&&v<0)&&(h=y,v=m,c=0),m===v&&(f[c++]=p))}),f.length=c,f},e.prototype.formatTooltip=function(r,n,a){return AI({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(be.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=fg.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Wl(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Ce(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Wl(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Ru])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ge(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=Wl(r,h);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=Wl(r,c);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=r.getRawIndex(c),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Fe.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(Fe);_n(mn,sI);_n(mn,fg);Xx(mn,Fe);function Vm(t){var e=t.name;Lp(t)||(t.name=kI(t)||e)}function kI(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return I(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function PI(t){return t.model.getRawData().count()}function II(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),EI}function EI(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Um(t,e){I(sD(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,pt(OI,e))})}function OI(t,e){var r=pd(t);return r&&r.setOutputEnd((e||this).count()),e}function pd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}var RI=Ie.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),FI=Ie.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),BI=Ie.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-h*c,l+s+v*c,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+h*c,l+s+v*c,r-f,l+s),t.closePath()}}),NI=Ie.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}
14),zI={line:Xn,rect:Ke,roundRect:Ke,square:Ke,circle:dh,diamond:FI,pin:BI,arrow:NI,triangle:RI},HI={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},gd={};I(zI,function(t,e){gd[e]=new t});var GI=Ie.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Zu(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var a=gd[n];a||(n="rect",a=gd[n]),HI[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function VI(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ve.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Mh(t,e,r,n,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=aS(t.slice(8),new xe(e,r,n,a),o?"center":"cover"):t.indexOf("path://")===0?l=Bs(t.slice(7),{},new xe(e,r,n,a),o?"center":"cover"):l=new GI({shape:{symbolType:t,x:e,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=VI,i&&l.setColor(i),l}function UI(t){return J(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function lb(t,e){if(t!=null)return J(t)||(t=[t,t]),[Ze(t[0],e[0])||0,Ze(he(t[1],t[0]),e[1])||0]}function xf(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=_o(t,e,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(_o(t,e,r[o]));return i.join(" ")}}function WI(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!J(e))return e+"";for(var n=[],a=0;a<r.length;a++){var i=t.getDimensionIndex(r[a]);i>=0&&n.push(e[i])}return n.join(" ")}var $I=(function(t){re(e,t);function e(r,n,a,i){var o=t.call(this)||this;return o.updateData(r,n,a,i),o}return e.prototype._createSymbol=function(r,n,a,i,o,s){this.removeAll();var l=Mh(r,-1,-1,2,2,null,s);l.attr({z2:he(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=YI,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ff(this.childAt(0))},e.prototype.downplay=function(){hf(this.childAt(0))},e.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},e.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},e.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,h=i&&i.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var c=this.childAt(0);c.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?c.attr(d):$t(c,d,s,n),nS(c)}if(this._updateCommon(r,n,l,a,i),f){var c=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,br(c,d,s,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,f,h,v,c,d,p,g,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var y=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Xp(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=lb(r.getItemVisual(n,"symbolOffset"),a);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(n,"style"),b=w.fill;if(s instanceof Tr){var M=s.style;s.useStyle(K({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),A=this._z2;T!=null?A==null&&(this._z2=s.z2,s.z2+=T):A!=null&&(s.z2=A,this._z2=null);var k=o&&o.useNameLabel;_h(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:F,inheritColor:b,defaultOpacity:w.opacity});function F(N){return k?r.getName(N):xf(r,N)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var O=s.ensureState("emphasis");O.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var B=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;O.scaleX=this._sizeX*B,O.scaleY=this._sizeY*B,this.setSymbolScale(1),Fp(this,v,c,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=Ee(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&cf(l,{style:{opacity:0}
14},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();cf(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return UI(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(bt);function YI(t,e){this.parent.drift(t,e)}function Tc(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Wm(t){return t!=null&&!ge(t)&&(t={isIgnore:t}),t||{}}function $m(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Xp(e),cursorStyle:e.get("cursor")}}var LH=(function(){function t(e){this.group=new bt,this._SymbolCtor=e||$I}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Wm(r);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=$m(e),u={disableAnimation:s},f=r.getSymbolPoint||function(h){return e.getItemLayout(h)};i||n.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Tc(e,v,h,r)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),d=f(h);if(!Tc(e,d,h,r)){n.remove(c);return}var p=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)n.remove(c),c=new o(e,h,l,u),c.setPosition(d);else{c.updateData(e,h,l,u);var m={x:d[0],y:d[1]};s?c.attr(m):$t(c,m,a)}n.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=$m(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Wm(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=r.getItemLayout(i);if(Tc(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){ul(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},t})(),ub=typeof Float32Array<"u",XI=ub?Float32Array:Array;function Cc(t){return J(t)?ub?new Float32Array(t):t:new XI(t)}function fb(){var t=Ue();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var hb=Ue(),qI=fb(),Nn=(function(){function t(){this.group=new bt,this.uid=Sh("viewChart"),this.renderTask=Ts({plan:ZI,reset:KI}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Xm(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Xm(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){ul(this.group,e)},t.markUpdateMethod=function(e,r){hb(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Ym(t,e,r){t&&ed(t)&&(e==="emphasis"?ff:hf)(t,r)}function Xm(t,e,r){var n=sl(t,e),a=e&&e.highlightKey!=null?FL(e.highlightKey):null;n!=null?I(Qe(n),function(i){Ym(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){Ym(i,r,a)})}xp(Nn);oh(Nn);function ZI(t){return qI(t.model)}function KI(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRen
14der,o=t.view,s=a&&hb(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,a),jI[l]}var jI={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function QI(t,e,r,n,a){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Ke({shape:{x:o,y:s,width:l,height:u}});if(e){var v=t.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=we(a)?function(g){a(g,h)}:null;br(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return h}function JI(t,e,r){var n=t.getArea(),a=Lt(n.r0,1),i=Lt(n.r,1),o=new Ma({shape:{cx:Lt(t.cx,1),cy:Lt(t.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,br(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function cb(t,e,r,n,a){if(t){if(t.type==="polar")return JI(t,e,r);if(t.type==="cartesian2d")return QI(t,e,r,n,a)}else return null;return null}function vb(t,e){return t.type===e}var eE={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},tE=function(t){return Math.round(t.length/2)};function rE(t){return{seriesType:t,reset:function(e,r,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/c)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/c));var d=void 0;fe(i)?d=eE[i]:we(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/c,d,tE))}}}}}var md="__ec_stack_";function db(t){return t.get("stack")||md+t.seriesIndex}function cg(t){return t.dim+t.index}function nE(t){var e=[],r=t.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<t.count;i++)e.push(Me({bandWidth:a,axisKey:n,stackId:md+i},t));for(var o=mb(e),s=[],i=0;i<t.count;i++){var l=o[n][md+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function pb(t,e){var r=[];return e.eachSeriesByType(t,function(n){yb(n)&&r.push(n)}),r}function aE(t){var e={};I(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(c,p);e[v]?e[v].push(m):e[v]=[m]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function gb(t){var e=aE(t),r=[];return I(t,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Ze(n.get("barWidth"),s),p=Ze(n.get("barMaxWidth"),s),g=Ze(n.get("barMinWidth")||(_b(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,defaultBarGap:_,axisKey:cg(i),stackId:db(n)})}),mb(r)}function mb(t){var e={};I(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return I(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ce(i).length;s=Math.max(35-l*4,15)+"%"}var u=Ze(s,o),f=Ze(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),I(i,function(m){var y=m.maxWidth,_=m.minWidth;
14if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,h-=x+f*x,v--}else{var x=c;y&&y<x&&(x=Math.min(y,h)),_&&_>x&&(x=_),x!==c&&(m.width=x,h-=x+f*x,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;I(i,function(m,y){m.width||(m.width=c),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;I(i,function(m,y){r[a][y]=r[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function iE(t,e,r){if(t&&e){var n=t[cg(e)];return n}}function oE(t,e){var r=pb(t,e),n=gb(r);I(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=db(a),u=n[cg(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function sE(t){return{seriesType:t,plan:fb(),reset:function(e){if(yb(e)){var r=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=e.get("showBackground",!0),u=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),h=BS(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=lE(a,i),d=_b(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,w=d&&Cc(S*3),b=d&&l&&Cc(S*3),M=d&&Cc(S),T=n.master.getRect(),A=v?T.width:T.height,k,F=x.getStore(),O=0;(k=_.next())!=null;){var B=F.get(h?g:o,k),N=F.get(s,k),z=c,q=void 0;h&&(q=+B-F.get(o,k));var Y=void 0,ne=void 0,te=void 0,oe=void 0;if(v){var se=n.dataToPoint([B,N]);if(h){var Se=n.dataToPoint([q,N]);z=Se[0]}Y=z,ne=se[1]+y,te=se[0]-z,oe=m,Math.abs(te)<p&&(te=(te<0?-1:1)*p)}else{var se=n.dataToPoint([N,B]);if(h){var Se=n.dataToPoint([N,q]);z=Se[1]}Y=se[0]+y,ne=z,te=m,oe=se[1]-z,Math.abs(oe)<p&&(oe=(oe<=0?-1:1)*p)}d?(w[O]=Y,w[O+1]=ne,w[O+2]=v?te:oe,b&&(b[O]=v?T.x:Y,b[O+1]=v?ne:T.y,b[O+2]=A),M[k]=k):x.setItemLayout(k,{x:Y,y:ne,width:te,height:oe}),O+=3}d&&x.setLayout({largePoints:w,largeDataIndices:M,largeBackgroundPoints:b,valueAxisHorizontal:v})}}}}}}function yb(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function _b(t){return t.pipelineContext&&t.pipelineContext.large}function lE(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var yd=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Qp(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)I(i.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[c],m=n[c]==="x1"||n[c]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<d.length;S++){var w=d[S].coord,b=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(b===g){_=w;break}else if(b<g)y=w;else if(y!=null&&b>g){_=(w+y)/2;break}S===1&&(x=b-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(mn);mn.registerClass(yd);var uE=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Qp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=NS(yd.defaultOption,{clip:!0,roundCap:!1,showBackgroun
14d:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:ve.color.primary,borderWidth:2}},realtimeSort:!1}),e})(yd),wf="\0__throttleOriginMethod",qm="\0__throttleRate",Zm="\0__throttleType";function vg(t,e,r){var n,a=0,i=0,o=null,s,l,u,f;e=e||0;function h(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),l=this,u=c;var p=f||e,g=f||r;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function xb(t,e,r,n){var a=t[e];if(a){var i=a[wf]||a,o=a[Zm],s=a[qm];if(s!==r||o!==n){if(r==null||!n)return t[e]=i;a=t[e]=vg(i,r,n==="debounce"),a[wf]=i,a[Zm]=n,a[qm]=r}return a}}function _d(t,e){var r=t[e];r&&r[wf]&&(r.clear&&r.clear(),t[e]=r[wf])}var fE=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Km=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new fE},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(h),y=Math.sin(h);d?(r.moveTo(p*o+a,g*o+i),r.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!v)):r.moveTo(p*s+a,g*s+i),r.arc(a,i,s,f,h,!v),r.arc(m*u+a,y*u+i,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&r.arc(a,i,o,h,f,v)},e})(Ie);function hE(t,e){e=e||{};var r=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Zu(n,a,i);var s=t(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,d=(v+c)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(v-c)/2:0,_=Math.cos,x=Math.sin,S=f+v*_(p),w=h+v*x(p),b="left",M="top";switch(s){case"startArc":S=f+(c-l)*_(m),w=h+(c-l)*x(m),b="center",M="top";break;case"insideStartArc":S=f+(c+l)*_(m),w=h+(c+l)*x(m),b="center",M="bottom";break;case"startAngle":S=f+d*_(p)+$l(p,l+y,!1),w=h+d*x(p)+Yl(p,l+y,!1),b="right",M="middle";break;case"insideStartAngle":S=f+d*_(p)+$l(p,-l+y,!1),w=h+d*x(p)+Yl(p,-l+y,!1),b="left",M="middle";break;case"middle":S=f+d*_(m),w=h+d*x(m),b="center",M="middle";break;case"endArc":S=f+(v+l)*_(m),w=h+(v+l)*x(m),b="center",M="bottom";break;case"insideEndArc":S=f+(v-l)*_(m),w=h+(v-l)*x(m),b="center",M="top";break;case"endAngle":S=f+d*_(g)+$l(g,l+y,!0),w=h+d*x(g)+Yl(g,l+y,!0),b="left",M="middle";break;case"insideEndAngle":S=f+d*_(g)+$l(g,-l+y,!0),w=h+d*x(g)+Yl(g,-l+y,!0),b="right",M="middle";break;default:return Zu(n,a,i)}return n=n||{},n.x=S,n.y=w,n.align=b,n.verticalAlign=M,n}}function cE(t,e,r,n){if($e(n)){t.setTextConfig({rotation:n});return}else if(J(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function $l(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Yl(t,e,r){return e*Math.cos(t)*(r?1:-1)}function vE(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;J(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:le(n,function(i){return Ta(i,a)})}}var Mc=Math.max,Dc=Math.min;function dE(t,e){var r=t.getArea&&t.getArea();if(vb(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var pE=(function(t){re(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){ul(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,c=gE(r,u);c&&this._enableRealtimeSort(c,s,a);var d=r.get("clip",!0)||c,p=dE(u,s);o.removeClipPath();
14var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,w=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function M(k){var F=Xl[u.type](s,k);if(!F)return null;var O=bE(u,h,F);return O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),x[k]=O,O}s.diff(l).add(function(k){var F=s.getItemModel(k),O=Xl[u.type](s,k,F);if(O&&(m&&M(k),!(!s.hasValue(k)||!ty[u.type](O)))){var B=!1;d&&(B=jm[u.type](p,O));var N=Qm[u.type](r,s,k,O,h,v,f.model,!1,g);c&&(N.forceLabelAnimation=!0),ry(N,s,k,F,O,r,h,u.type==="polar"),w?N.attr({shape:O}):c?Jm(c,v,N,O,k,h,!1,!1):br(N,{shape:O},r,k),s.setItemGraphicEl(k,N),o.add(N),N.ignore=B}}).update(function(k,F){var O=s.getItemModel(k),B=Xl[u.type](s,k,O);if(B){if(m){var N=void 0;S.length===0?N=M(F):(N=S[F],N.useStyle(y.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",_):N.setShape("cornerRadius",_),x[k]=N);var z=Xl[u.type](s,k),q=Sb(h,z,u);$t(N,{shape:q},v,k)}var Y=l.getItemGraphicEl(F);if(!s.hasValue(k)||!ty[u.type](B)){o.remove(Y);return}var ne=!1;d&&(ne=jm[u.type](p,B),ne&&o.remove(Y));var te=Y&&(Y.type==="sector"&&g||Y.type==="sausage"&&!g);if(te&&(Y&&Au(Y,r,F),Y=null),Y?nS(Y):Y=Qm[u.type](r,s,k,B,h,v,f.model,!0,g),c&&(Y.forceLabelAnimation=!0),b){var oe=Y.getTextContent();if(oe){var se=fl(oe);se.prevValue!=null&&(se.prevValue=se.value)}}else ry(Y,s,k,O,B,r,h,u.type==="polar");w?Y.attr({shape:B}):c?Jm(c,v,Y,B,k,h,!0,b):$t(Y,{shape:B},r,k,null),s.setItemGraphicEl(k,Y),Y.ignore=ne,o.add(Y)}}).remove(function(k){var F=l.getItemGraphicEl(k);F&&Au(F,r,k)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new bt);T.removeAll();for(var A=0;A<x.length;++A)T.add(x[A]);o.add(T),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,n,a){this._clear(),ay(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),ay(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&cb(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:le(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackgroun
14d(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Au(i,r,Ee(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(Nn),jm={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=Mc(e.x,t.x),s=Dc(e.x+e.width,a),l=Mc(e.y,t.y),u=Dc(e.y+e.height,i),f=s<o,h=u<l;return e.x=f&&o>a?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Dc(e.r,t.r),i=Mc(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Qm={cartesian2d:function(t,e,r,n,a,i,o,s,l){var u=new Ke({shape:K({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var f=u.shape,h=a?"height":"width";f[h]=0}return u},polar:function(t,e,r,n,a,i,o,s,l){var u=!a&&l?Km:Ma,f=new u({shape:n,z2:1});f.name="item";var h=wb(a);if(f.calculateTextPosition=hE(h,{isRoundCap:u===Km}),i){var v=f.shape,c=a?"r":"endAngle",d={};v[c]=a?n.r0:n.startAngle,d[c]=n[c],(s?$t:br)(f,{shape:d},i)}return f}};function gE(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Jm(t,e,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?$t:br)(r,{shape:l},e,a,null);var f=e?t.baseAxis.model:null;(o?$t:br)(r,{shape:u},f,a)}function ey(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var mE=["x","y","width","height"],yE=["cx","cy","r","startAngle","endAngle"],ty={cartesian2d:function(t){return!ey(t,mE)},polar:function(t){return!ey(t,yE)}},Xl={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var a=r?xE(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function _E(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function wb(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function ry(t,e,r,n,a,i,o,s){var l=e.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var f=t.shape,h=vE(n.getModel("itemStyle"),f,!0);K(f,h),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var v=n.getShallow("cursor");v&&t.attr("cursor",v);var c=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Xp(n);_h(t,d,{labelFetcher:i,labelDataIndex:r,defaultText:xf(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,cE(t,g==="outside"?c:g,wb(o),n.get(["label","rotate"]))}kk(p,d,i.getRawValue(r),function(y){return WI(e,y)});var m=n.getModel(["emphasis"]);Fp(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),RL(t,n),_E(a)&&(t.style.fill="none",t.style.stroke="none",I(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function xE(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var wE=(function(){function t(){}return t})(),ny=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new wE},e.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(Ie);function ay(t,e,r,n){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroun
14dPoints");if(u){var f=new ny({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),r&&r.push(f)}var h=new ny({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(a.getVisual("style")),h.style.stroke=null,Ee(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",iy),h.on("mousemove",iy)),r&&r.push(h)}var iy=vg(function(t){var e=this,r=SE(e,t.offsetX,t.offsetY);Ee(e).dataIndex=r>=0?r:null},30,!1);function SE(t,e,r){for(var n=t.baseDimIdx,a=1-n,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,h=i.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[a]=i[v+2],s[n]=i[v+n],s[a]=i[v+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Sb(t,e,r){if(vb(r,"cartesian2d")){var n=e,a=r.getArea();return{x:t?n.x:a.x,y:t?a.y:n.y,width:t?n.width:a.width,height:t?a.height:n.height}}else{var a=r.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function bE(t,e,r){var n=t.type==="polar"?Ma:Ke;return new n({shape:Sb(e,r,t),silent:!0,z2:0})}function kH(t){t.registerChartView(pE),t.registerSeriesModel(uE),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,pt(oE,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,sE("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,rE("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}function PH(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}I([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=K({},a),o.dispatchAction(K(a,{type:n[1],seriesIndex:r(i,a)}))})})}function Ni(t,e,r,n,a){var i=t+e;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=sl(h,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:J(v)?h.getName(v[0]):h.getName(v),selected:fe(l)?l:K({},l)})}})}function TE(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Ni("map","selectchanged",e,a,n),Ni("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Ni("map","selected",e,a,n),Ni("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Ni("map","unselected",e,a,n),Ni("pie","unselected",e,a,n))})}var Wo=Math.PI*2,ni=Yn.CMD,CE=["top","right","bottom","left"];function ME(t,e,r,n,a){var i=r.width,o=r.height;switch(t){case"top":n.set(r.x+i/2,r.y-e),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+e),a.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+e,r.y+o/2),a.set(1,0);break}}function DE(t,e,r,n,a,i,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+t,h=s*r+e;if(Math.abs(n-a)%Wo<1e-4)return l[0]=f,l[1]=h,u-r;if(i){var v=n;n=En(a),a=En(v)}else n=En(n),a=En(a);n>a&&(a+=Wo);var c=Math.atan2(s,o);if(c<0&&(c+=Wo),c>=n&&c<=a||c+Wo>=n&&c+Wo<=a)return l[0]=f,l[1]=h,u-r;var d=r*Math.cos(n)+t,p=r*Math.sin(n)+e,g=r*Math.cos(a)+t,m=r*Math.sin(a)+e,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Sf(t,e,r,n,a,i,o,s){var l=a-t,u=i-e,f=r-t,h=n-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=t+d*f,g=o[1]=e+d*h;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function bb(t,e,r,n,a,i,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(a,t),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Pr=[];function AE(t,e,r){var n=bb(e.x,e.y,e.width,e.height,t.x,t.y,Pr);return r.set(Pr[0],Pr[1]),n}function LE(t,e,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=e.data,h=t.x,v=t.y,c=0;c<f.length;){var d=f[c++];c===1&&(n=f[c],a=f[c+1],i=n,o=a);var p=u;switch(d){case ni.M:i=f[c++],o=f[c++],n=i,a=o;break;case ni.L:p=Sf(n,a,f[c],f[c+1],h,v,Pr,!0),n=f[c++],a=f[c++];break;case ni.C:p=lw(n,a,f[c++],f[c++],f[c++],f[c++],f[c],f[c+1],h,v,Pr),n=f[c++],a=f[c++];break;case ni.Q:p=fw(n,a,f[c++],f[c++],f[c],f[c+1],h,v,Pr),n=f[c++],a=f[c++];break;case ni.A:var g=f[c++],m=f[c++],y=f[c++],_=f[c++],x=f[c++],S=f[c++];c+=1;var w=!!(1-f[c++]);s=Math.cos(x)*y+g,l=Math.sin(x)*_+m,c<=1&&(i=s,o=l);var b=(h-g)*_/y+g;p=DE(g,m,_,x,x+S,w,b,v,Pr),n=Math.cos(x+S)*y+g,a=Math.sin(x+S)*_+m;break;case ni.R:i=n=f[c++],o=a=f[c++];var M=f[c++],T=f[c++];p=bb(i,o,M,T,h,v,Pr);break;case ni.Z:p=Sf(n,a,i,o,h,v,Pr,!0),n=i,a=o;break}p<u&&(u=p,r.set(Pr[0],Pr[1]))}return u}var Er=new de,We=new de,it=new de,un=new de,an=new de;function oy(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var a=t.textGuideLineConfig||{}
14,i=[[0,0],[0,0],[0,0]],o=a.candidates||CE,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=t.getComputedTransform(),h=f&&Si([],f),v=e.get("length2")||0;u&&it.copy(u);for(var c=0;c<o.length;c++){var d=o[c];ME(d,0,s,Er,un),de.scaleAndAdd(We,Er,un,v),We.transform(h);var p=t.getBoundingRect(),g=u?u.distance(We):t instanceof Ie?LE(We,t.path,it):AE(We,p,it);g<l&&(l=g,We.transform(f),it.transform(f),it.toArray(i[0]),We.toArray(i[1]),Er.toArray(i[2]))}kE(i,e.get("minTurnAngle")),r.setShape({points:i})}}}var bf=[],Nt=new de;function kE(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Er.fromArray(t[0]),We.fromArray(t[1]),it.fromArray(t[2]),de.sub(un,Er,We),de.sub(an,it,We);var r=un.len(),n=an.len();if(!(r<.001||n<.001)){un.scale(1/r),an.scale(1/n);var a=un.dot(an),i=Math.cos(e);if(i<a){var o=Sf(We.x,We.y,it.x,it.y,Er.x,Er.y,bf,!1);Nt.fromArray(bf),Nt.scaleAndAdd(an,o/Math.tan(Math.PI-e));var s=it.x!==We.x?(Nt.x-We.x)/(it.x-We.x):(Nt.y-We.y)/(it.y-We.y);if(isNaN(s))return;s<0?de.copy(Nt,We):s>1&&de.copy(Nt,it),Nt.toArray(t[1])}}}}function IH(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Er.fromArray(t[0]),We.fromArray(t[1]),it.fromArray(t[2]),de.sub(un,We,Er),de.sub(an,it,We);var n=un.len(),a=an.len();if(!(n<.001||a<.001)){un.scale(1/n),an.scale(1/a);var i=un.dot(e),o=Math.cos(r);if(i<o){var s=Sf(We.x,We.y,it.x,it.y,Er.x,Er.y,bf,!1);Nt.fromArray(bf);var l=Math.PI/2,u=Math.acos(an.dot(e)),f=l+u-r;if(f>=l)de.copy(Nt,it);else{Nt.scaleAndAdd(an,s/Math.tan(Math.PI/2-f));var h=it.x!==We.x?(Nt.x-We.x)/(it.x-We.x):(Nt.y-We.y)/(it.y-We.y);if(isNaN(h))return;h<0?de.copy(Nt,We):h>1&&de.copy(Nt,it)}Nt.toArray(t[1])}}}}function Ac(t,e,r,n){var a=r==="normal",i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function PE(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Fv(n[0],n[1]),i=Fv(n[1],n[2]);if(!a||!i){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Tu([],n[1],n[0],o/a),l=Tu([],n[1],n[2],o/i),u=Tu([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function IE(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(!a){n&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<sf.length;l++){var u=sf[l],f=e[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:he(a.states[u]&&a.states[u].ignore,s);if(c||!he(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&Ac(n,!0,u,f);continue}n||(n=new gh,t.setTextGuideLine(n),!h&&(s||!o)&&Ac(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Ac(n,!1,u,f)}}if(n){Me(n.style,r),n.style.fill=null;var p=i.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=PE}}function EE(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<dn.length;n++){var a=dn[n];r[a]=t.getModel([a,e])}return r}var sy=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],OE=1,Tf=2,Tb=OE|Tf;function Cf(t,e,r){r=r||Tb,e?t.dirty|=r:t.dirty&=~r}function Cb(t,e){return e=e||Tb,t.dirty==null||!!(t.dirty&e)}function Da(t){if(t)return Cb(t)&&RE(t,t.label,t),t}function RE(t,e,r){var n=e.getComputedTransform();t.transform=Yp(t.transform,n);var a=t.localRect=Hs(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=oo.textMargin);for(var h=0;h<4;h++)Lc[h]=f===oo.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===oo.textMargin&&zs(a,Lc,!1,!1);var v=t.rect=Hs(t.rect,a);return n&&v.applyTransform(n),f===oo.minMargin&&zs(v,Lc,!1,!1),t.axisAligned=$p(n),(t.label=t.label||{}).ignore=e.ignore,Cf(t,!1),Cf(t,!0,Tf),t}var Lc=[0,0,0,0];function FE(t,e,r){return t.transform=Yp(t.transform,r),t.localRect=Hs(t.localRect,e),t.rect=Hs(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=$p(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function BE(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var a=t.obb;
14a&&a.fromBoundingRect(t.localRect,r)}}function xd(t,e){for(var r=0;r<sy.length;r++){var n=sy[r];t[n]==null&&(t[n]=e[n])}return Da(t)}function ly(t){var e=t.obb;return(!e||Cb(t,Tf))&&(t.obb=e=e||new tS,e.fromBoundingRect(t.localRect,t.transform),Cf(t,!1,Tf)),e}function uy(t,e,r,n,a){var i=t.length,o=pe[e],s=St[e];if(i<2)return!1;t.sort(function(b,M){return b.rect[o]-M.rect[o]});for(var l=0,u,f=!1,h=0;h<i;h++){var v=t[h],c=v.rect;u=c[o]-l,u<0&&(c[o]-=u,v.label[o]-=u,f=!0),l=c[o]+c[s]}var d=t[0],p=t[i-1],g,m;y(),g<0&&S(-g,.8),m<0&&S(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=d.rect[o]-r,m=n-p.rect[o]-p.rect[s]}function _(b,M,T){if(b<0){var A=Math.min(M,-b);if(A>0){x(A*T,0,i);var k=A+b;k<0&&S(-k*T,1)}else S(-b*T,1)}}function x(b,M,T){b!==0&&(f=!0);for(var A=M;A<T;A++){var k=t[A],F=k.rect;F[o]+=b,k.label[o]+=b}}function S(b,M){for(var T=[],A=0,k=1;k<i;k++){var F=t[k-1].rect,O=Math.max(t[k].rect[o]-F[o]-F[s],0);T.push(O),A+=O}if(A){var B=Math.min(Math.abs(b)/A,M);if(b>0)for(var k=0;k<i-1;k++){var N=T[k]*B;x(N,0,k+1)}else for(var k=i-1;k>0;k--){var N=T[k-1]*B;x(-N,k,i)}}}function w(b){var M=b<0?-1:1;b=Math.abs(b);for(var T=Math.ceil(b/(i-1)),A=0;A<i-1;A++)if(M>0?x(T,0,A+1):x(-T,i-A-1,i),b-=T,b<=0)return}return f}function NE(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function Mb(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var a=Da(t[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(dg(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):e.push(a)}}}function dg(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:ly(t).intersect(ly(e),r,n)}var zi=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),zE=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new zi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new zi(r,e),"drag",e.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new zi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new zi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new zi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new zi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),HE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,kc=[],GE=be.browser.firefox&&+be.browser.version.split(".")[0]<39;function wd(t,e,r,n){return r=r||{},n?fy(t,e,r):GE&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):fy(t,e,r),r}function fy(t,e,r){if(be.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(zS(t)){var i=t.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(fd(kc,t,n,a)){r.zrX=kc[0],r.zrY=kc[1];return}}r.zrX=r.zrY=0}function pg(t){return t||window.event}function vr(t,e,r){if(e=pg(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&wd(t,o,e,r)}else{wd(t,e,e,r);var i=VE(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&HE.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function VE(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function UE(t,e,r,n){t.addEventListener(e,r,n)}function WE(t,e,r,n){t.removeEventListener(e,r,n)}var Db=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},$E=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=wd(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in Pc)if(Pc.hasOwnProperty(r)){var n=Pc[r](this._track,e);if(n)return n}},t})();function hy(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function YE(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Pc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=hy(n)/hy(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=YE(n);
14return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},Ab="silent";function XE(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:qE}}function qE(){Db(this.event)}var ZE=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(xn),$o=(function(){function t(e,r){this.x=e,this.y=r}return t})(),KE=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ic=new xe(0,0,0,0),Lb=(function(t){re(e,t);function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new $o(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new ZE,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new zE(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(I(KE,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=kb(this,n,a),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 $o(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new $o(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=XE(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new $o(r,n);if(cy(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new xe(r-u,n-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ic.copy(v.getBoundingRect()),v.transform&&Ic.applyTransform(v.transform),Ic.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var m=0;m<p;m+=d){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(cy(s,o,y,_,a),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new $E);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);
14if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new $o;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(xn);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Lb.prototype[t]=function(e){var r=e.zrX,n=e.zrY,a=kb(this,r,n),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Fv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function jE(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?Ab:!0}return!1}function cy(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=jE(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==Ab)){e.target=o;break}}}function kb(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var Pb=32,Yo=7;function QE(t){for(var e=0;t>=Pb;)e|=t&1,t>>=1;return t+e}function vy(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;JE(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function JE(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function dy(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var i=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function Ec(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])>0){for(s=n-a;l<s&&i(t,e[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(t,e[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(t,e[r+f])>0?o=f+1:l=f}return l}function Oc(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])<0){for(s=a+1;l<s&&i(t,e[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(t,e[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(t,e[r+f])<0?l=f:o=f+1}return l}function eO(t,e){var r=Yo,n,a,i=0,o=[];n=[],a=[];function s(c,d){n[i]=c,a[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&a[c-1]<=a[c]+a[c+1]||c>=2&&a[c-2]<=a[c]+a[c-1])a[c-1]<a[c+1]&&c--;else if(a[c]>a[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&a[c-1]<a[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=a[c],g=n[c+1],m=a[c+1];a[c]=p+m,c===i-3&&(n[c+1]=n[c+2],a[c+1]=a[c+2]),i--;var y=Oc(t[g],t,d,p,0,e);d+=y,p-=y,p!==0&&(m=Ec(t[d+p-1],t,g,m,m-1,e),m!==0&&(p<=m?h(d,p,g,m):v(d,p,g,m)))}function h(c,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=t[c+m];var y=0,_=p,x=c;if(t[x++]=t[_++],--g===0){for(m=0;m<d;m++)t[x+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)t[x+m]=t[_+m];t[x+g]=o[y];return}for(var S=r,w,b,M;;){w=0,b=0,M=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],b++,w=0,--g===0){M=!0;break}}else if(t[x++]=o[y++],w++,b=0,--d===1){M=!0;break}while((w|b)<S);if(M)break;do{if(w=Oc(t[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)t[x+m]=o[y+m];if(x+=w,y+=w,d-=w,d<=1){M=!0;break}}if(t[x++]=t[_++],--g===0){M=!0;break}if(b=Ec(o[y],t,_,g,0,e),b!==0){for(m=0;m<b;m++)t[x+m]=t[_+m];if(x+=b,_+=b,g-=b,g===0){M=!0;break}}if(t[x++]=o[y++],--d===1){M=!0;break}S--}while(w>=Yo||b>=Yo);if(M)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(m=0;m<g;m++)t[x+m]=t[_+m];t[x+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[x+m]=o[y+m]}}function v(c,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var y=c+d-1,_=g-1,x=p+g-1,S=0,w=0;if(t[x--]=t[y--],--d===0){for(S=x-(g-1),m=0;m<g;m++)t[S+m]=o[m];return}if(g===1){for(x-=d,y-=d,w=x+1,S=y+1,m=d-1;m>=0;m--)t[w+m]=t[S+m];t[x]=o[_];return}for(var b=r;;){var M=0,T=0,A=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],M++,T=0,--d===0){A=!0;break}}else if(t[x--]=o[_--],T++,M=0,--g===1){A=!0;break}while((M|T)<b);if(A)break;
14do{if(M=d-Oc(o[_],t,c,d,d-1,e),M!==0){for(x-=M,y-=M,d-=M,w=x+1,S=y+1,m=M-1;m>=0;m--)t[w+m]=t[S+m];if(d===0){A=!0;break}}if(t[x--]=o[_--],--g===1){A=!0;break}if(T=g-Ec(t[y],o,0,g,g-1,e),T!==0){for(x-=T,_-=T,g-=T,w=x+1,S=_+1,m=0;m<T;m++)t[w+m]=o[S+m];if(g<=1){A=!0;break}}if(t[x--]=t[y--],--d===0){A=!0;break}b--}while(M>=Yo||T>=Yo);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),g===1){for(x-=d,y-=d,w=x+1,S=y+1,m=d-1;m>=0;m--)t[w+m]=t[S+m];t[x]=o[_]}else{if(g===0)throw new Error;for(S=x-(g-1),m=0;m<g;m++)t[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Fu(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<Pb){i=vy(t,r,n,e),dy(t,r,n,r+i,e);return}var o=eO(t,e),s=QE(a);do{if(i=vy(t,r,n,e),i<s){var l=a;l>s&&(l=s),dy(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var py=!1;function Rc(){py||(py=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gy(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var tO=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gy}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,Fu(n,gy)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,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 h=e.childrenRef(),v=0;v<h.length;v++){var c=h[v];e.__dirty&&(c.__dirty|=ar),this._updateAndAddDisplayable(c,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Rc(),d.z=0),isNaN(d.z2)&&(Rc(),d.z2=0),isNaN(d.zlevel)&&(Rc(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var a=ke(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Mf;Mf=be.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function so(){return new Date().getTime()}var rO=(function(t){re(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=so()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update(
14))},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Mf(n),!r._paused&&r.update())}Mf(n)},e.prototype.start=function(){this._running||(this._time=so(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=so(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=so()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new Dp(r,n.loop);return this.addAnimator(a),a},e})(xn),nO=300,Fc=be.domSupported,Bc=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=le(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:n}})(),my={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},yy=!1;function Sd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function aO(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Nc(t){t&&(t.zrByTouch=!0)}function iO(t,e){return vr(t.dom,new oO(t,e),!0)}function Ib(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var oO=(function(){function t(e,r){this.stopPropagation=Ut,this.stopImmediatePropagation=Ut,this.preventDefault=Ut,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Lr={mousedown:function(t){t=vr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=vr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=vr(this.dom,t);var e=t.toElement||t.relatedTarget;Ib(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){yy=!0,t=vr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){yy||(t=vr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=vr(this.dom,t),Nc(t),this.__lastTouchMoment=ne
14w Date,this.handler.processGesture(t,"start"),Lr.mousemove.call(this,t),Lr.mousedown.call(this,t)},touchmove:function(t){t=vr(this.dom,t),Nc(t),this.handler.processGesture(t,"change"),Lr.mousemove.call(this,t)},touchend:function(t){t=vr(this.dom,t),Nc(t),this.handler.processGesture(t,"end"),Lr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<nO&&Lr.click.call(this,t)},pointerdown:function(t){Lr.mousedown.call(this,t)},pointermove:function(t){Sd(t)||Lr.mousemove.call(this,t)},pointerup:function(t){Lr.mouseup.call(this,t)},pointerout:function(t){Sd(t)||Lr.mouseout.call(this,t)}};I(["click","dblclick","contextmenu"],function(t){Lr[t]=function(e){e=vr(this.dom,e),this.trigger(t,e)}});var bd={pointermove:function(t){Sd(t)||bd.mousemove.call(this,t)},pointerup:function(t){bd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function sO(t,e){var r=e.domHandlers;be.pointerEventsSupported?I(Bc.pointer,function(n){Bu(e,n,function(a){r[n].call(t,a)})}):(be.touchEventsSupported&&I(Bc.touch,function(n){Bu(e,n,function(a){r[n].call(t,a),aO(e)})}),I(Bc.mouse,function(n){Bu(e,n,function(a){a=pg(a),e.touching||r[n].call(t,a)})}))}function lO(t,e){be.pointerEventsSupported?I(my.pointer,r):be.touchEventsSupported||I(my.mouse,r);function r(n){function a(i){i=pg(i),Ib(t,i.target)||(i=iO(t,i),e.domHandlers[n].call(t,i))}Bu(e,n,a,{capture:!0})}}function Bu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,UE(t.domTarget,e,r,n)}function zc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&WE(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var _y=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),uO=(function(t){re(e,t);function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new _y(r,Lr),Fc&&(a._globalHandlerScope=new _y(document,bd)),sO(a,a._localHandlerScope),a}return e.prototype.dispose=function(){zc(this._localHandlerScope),Fc&&zc(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Fc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?lO(this,n):zc(n)}},e})(xn);var Nu={},Eb={};function fO(t){delete Eb[t]}function hO(t){if(!t)return!1;if(typeof t=="string")return Ju(t,1)<$v;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=Ju(e[a].color,1);return r/=n,r<$v}return!1}var cO=(function(){function t(e,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var i=new tO,o=n.renderer||"canvas";Nu[o]||(o=Ce(Nu)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Nu[o](r,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!be.node&&!be.worker&&!l?new uO(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?be.touchEventsSupported:!!f,v=44,c;h&&(c=he(n.pointerSize,v)),this.handler=new Lb(i,s,u,s.root,c),this.animation=new rO({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=hO(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=so();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=so();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof bt&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,fO(this.id
14))},t})();function xy(t,e){var r=new cO(Vx(),t,e);return Eb[r.id]=r,r}function vO(t,e){Nu[t]=e}var Td;function dO(t){if(typeof Td=="function")return Td(t)}function pO(t){Td=t}var Ob="";typeof navigator<"u"&&(Ob=navigator.platform||"");var Hi="rgba(0, 0, 0, 0.2)",Rb=ve.color.theme[0],gO=zv(Rb,null,null,.9);const mO={darkMode:"auto",colorBy:"series",color:ve.color.theme,gradientColor:[gO,Rb],aria:{decal:{decals:[{color:Hi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Hi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Hi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Hi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Hi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Hi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ob.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var yO=ye();function _O(t,e,r){var n=yO.get(e);if(!n)return r;var a=n(t);return a?r.concat(a):r}var ql,Xo,wy,Sy="\0_ec_inner",xO=1,gg=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Be(i),this._locale=new Be(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=Cy(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Cy(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?wy(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&I(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ye(),u=n&&n.replaceMergeMainTypeMap;Nk(this),I(r,function(h,v){h!=null&&(Fe.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?Pe(h):Ge(a[v],h,!0))}),u&&u.each(function(h,v){Fe.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Fe.topologicalTravel(s,Fe.getAllClassMainTypes(),f,this);function f(h){var v=_O(this,h,Qe(r[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=Ow(c,v,d);hL(p,h,Fe),a[h]=null,i.set(h,null),o.set(h,0);var g=[],m=[],y=0,_;I(p,function(x,S){var w=x.existing,b=x.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var M=h==="series",T=Fe.getClass(h,x.keyInfo.subType,!M);if(!T)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=x.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var A=K({componentIndex:S},x.keyInfo);w=new T(b,this,this,A),K(w,A),x.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),a[h]=g,i.set(h,m),o.set(h,y),h==="series"&&ql(this)}this._seriesIndices||ql(this)},e.prototype.getOption=function(){var r=Pe(this.option);return I(r,function(n,a){if(Fe.hasClass(a)){for(var i=Qe(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Fs(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Sy],r},e.prototype.setTheme=function(r){this._theme=new Be(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],I(Qe(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=by("id",i,s):o!=null?l=by("name",o,s):l=qe(s,function(u){return!!u}),Ty(l,r)},e.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):qe(this._componentsMap.get(a),function(u){return!!u});return l(Ty(o,r));function s(u){var f=a+"Index",h=a+"Id",v=a+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:a,index:u[f],id:u[h],name:u[v]}:null}function l(u){return r.filter?qe(u,r.filter):u}},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(we(r)){var o=n,s=r;i.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=fe(r)?i.get(r):ge(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Vt(r,null);return qe(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return qe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return qe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Xo(this),I(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){I(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){Xo(this),I(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return I(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return Xo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Xo(this);var a=[];I(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ye(a)},e.prototype.restoreData=function(r){ql(this);var n=this._componentsMap,a=[];
14n.each(function(i,o){Fe.hasClass(o)&&a.push(o)}),Fe.topologicalTravel(a,Fe.getAllClassMainTypes(),function(i){I(n.get(i),function(o){o&&(i!=="series"||!wO(o,r))&&o.restoreData()})})},e.internalField=(function(){ql=function(r){var n=r._seriesIndices=[];I(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ye(n)},Xo=function(r){},wy=function(r,n){r.option={},r.option[Sy]=xO,r._componentsMap=ye({series:[]}),r._componentsCount=ye();var a=n.aria;ge(a)&&a.enabled==null&&(a.enabled=!0),SO(n,r._theme.option),Ge(n,mO,!1),r._mergeOption(n,null)}})(),e})(Be);function wO(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||a!=null&&t.name!==a}}function SO(t,e){var r=t.color&&!t.colorLayer;I(e,function(n,a){a==="colorLayer"&&r||a==="color"&&t.color||Fe.hasClass(a)||(typeof n=="object"?t[a]=t[a]?Ge(t[a],n,!1):Pe(n):t[a]==null&&(t[a]=n))})}function by(t,e,r){if(J(e)){var n=ye();return I(e,function(i){if(i!=null){var o=Vt(i,null);o!=null&&n.set(i,!0)}}),qe(r,function(i){return i&&n.get(i[t])})}else{var a=Vt(e,null);return qe(r,function(i){return i&&a!=null&&i[t]===a})}}function Ty(t,e){return e.hasOwnProperty("subType")?qe(t,function(r){return r&&r.subType===e.subType}):t}function Cy(t){var e=ye();return t&&I(Qe(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}_n(gg,fg);var bO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fb=(function(){function t(e){I(bO,function(r){this[r]=He(e[r],e)},this)}return t})(),TO=/^(min|max)?(.+)$/,CO=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(I(Qe(e.series),function(o){o&&o.data&&Qt(o.data)&&qu(o.data)}),I(Qe(e.dataset),function(o){o&&o.source&&Qt(o.source)&&qu(o.source)})),e=Pe(e);var a=this._optionBackup,i=MO(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Pe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=Pe(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)DO(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!LO(o,this._currentMediaIndices)&&(s=le(o,function(f){return Pe(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},t})();function MO(t,e,r){var n=[],a,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,h=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||f)&&(t.options=t.media=null),i=t),f&&J(u)&&I(u,function(c){c&&c.option&&(c.query?n.push(c):a||(a=c))}),v(i),I(l,function(c){return v(c)}),I(n,function(c){return v(c.option)});function v(c){I(e,function(d){d(c,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function DO(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return I(t,function(i,o){var s=o.match(TO);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();AO(n[u],i,l)||(a=!1)}}),a}function AO(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function LO(t,e){return t.join(",")===e.join(",")}var Dr=I,Ws=ge,My=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hc(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=My.length;r<n;r++){var a=My[r],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?Ge(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?Ge(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function Ot(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Me(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function ls(t){Ot(t,"itemStyle"),Ot(t,"lineStyle"),Ot(t,"areaStyle"),Ot(t,"label"),Ot(t,"labelLine"),Ot(t,"upperLabel"),Ot(t,"edgeLabel")}function st(t,e){var r=Ws(t)&&t[e],n=Ws(r)&&r.textStyle;if(n)for(var a=0,i=j0.length;a<i;a++){var o=j0[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function dr(t){t&&(ls(t),st(t,"label"),t.emphasis&&st(t.emphasis,"label"))}function kO(t){if(Ws(t)){Hc(t),ls(t),st(t,"label"),st(t,"upperLabel"),st(t,"edgeLabel"),t.emphasis&&(st(t.emphasis,"label"),st(t.emphasis,"upperLabel"),st(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Hc(e),dr(e));var r=t.markLine;r&&(Hc(r),dr(r));var n=t.markArea;n&&dr(n);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!Qt(i))for(var o=0;o<i.length;o++)dr(i[o]);I(t.categories,function(u){ls(u)})}if(a&&!Qt(a))for(var o=0;o<a.length;o++)dr(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)dr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)J(l[o])?(dr(l[o][0]),dr(l[o][1])):dr(l[o]);t.type==="gauge"?(st(t,"axisLabel"),st(t,"title"),st(t,"detail")):t.type==="treemap"?(Ot(t.breadcrumb,"itemStyle"),I(t.levels,function(u){ls(u)})):t.type==="tree"&&ls(t.leaves)}}function Cn(t){return J(t)?t:t?[t]:[]}function Dy(t){return(J(t)?t[0]:t)||{}}function PO(t,e){Dr(Cn(t.series),function(n){Ws(n)&&kO(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Dr(r,function(n){Dr(Cn(t[n]),function(a){a&&(st(a,"axisLabel"),st(a.axisPointer,"label"))})}),Dr(Cn(t.parallel),function(n){var a=n&&n.parallelAxisDefault;st(a,"axisLabel"),st(a&&a.axisPointer,"label")}),Dr(Cn(t.calendar),function(n){Ot(n,"itemStyle"),st(n,"dayLabel"),st(n,"monthLabel"),st(n,"yearLabel")}),Dr(Cn(t.radar),function(n){st(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Dr(Cn(t.geo),function(n){Ws(n)&&(dr(n),Dr(Cn(n.regions),function(a){dr(a)}
14))}),Dr(Cn(t.timeline),function(n){dr(n),Ot(n,"label"),Ot(n,"itemStyle"),Ot(n,"controlStyle",!0);var a=n.data;J(a)&&I(a,function(i){ge(i)&&(Ot(i,"label"),Ot(i,"itemStyle"))})}),Dr(Cn(t.toolbox),function(n){Ot(n,"iconStyle"),Dr(n.feature,function(a){Ot(a,"iconStyle")})}),st(Dy(t.axisPointer),"label"),st(Dy(t.tooltip).axisPointer,"label")}function IO(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function EO(t,e,r,n){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function Ay(t){t&&I(OO,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var OO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],RO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Gc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function qo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Gc.length;r++){var n=Gc[r][1],a=Gc[r][0];e[n]!=null&&(e[a]=e[n])}}function Ly(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function ky(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function FO(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Bb(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Bb(t[r].children,e)}function Nb(t,e){PO(t,e),t.series=Qe(t.series),I(t.series,function(r){if(ge(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Ly(r.label);var a=r.data;if(a&&!Qt(a))for(var i=0;i<a.length;i++)Ly(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=IO(r,"pointer.color");o!=null&&EO(r,"itemStyle.color",o)}else if(n==="bar"){qo(r),qo(r.backgroundStyle),qo(r.emphasis);var a=r.data;if(a&&!Qt(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(qo(a[i]),qo(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),ky(r),Bb(r.data,ky)}else n==="graph"||n==="sankey"?FO(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Me(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Ay(r)}}),t.dataRange&&(t.visualMap=t.dataRange),I(RO,function(r){var n=t[r];n&&(J(n)||(n=[n]),I(n,function(a){Ay(a)}))})}function BO(t){var e=ye();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),I(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),NO(r)}})}function NO(t){I(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,h){var v=o.get(e.stackedDimension,h);if(isNaN(v))return a;var c,d;s?d=o.getRawIndex(h):c=o.get(e.stackedByDimension,h);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=KA(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var Jt=(function(){function t(){this.group=new bt,this.uid=Sh("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();xp(Jt);oh(Jt);var Py=Ue(),Iy={itemStyle:Is(pS,!0),lineStyle:Is(dS,!0)},zO={lineStyle:"stroke",itemStyle:"fill"};function zb(t,e){var r=t.visualStyleMapper||Iy[e];return r||(console.warn("Unknown style type '"+e+"'."),Iy.itemStyle)}function Hb(t,e){var r=t.visualDrawType||zO[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var HO={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),i=zb(t,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Hb(t,n),u=o[l],f=we(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||we(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||we(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=t.getDataParams(d),g=K({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},Zo=new Be,GO={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=zb(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Zo.option=l[n];var u=a(Zo),f=o.ensureUniqueItemVisual(s,"style");K(f,u),Zo.option.decal&&(o.setItemVisual(s,"decal",Zo.option.decal),Zo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},VO={performRawSeries:!0,overallReset:function(t){var e=ye();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),Py(r).scope=i}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=Py(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Hb(r,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],h=i.getItemVisual(f,"colorFromPalette");
14if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(c,o,d)}})}})}},Zl=Math.PI;function UO(t,e){e=e||{},Me(e,{text:"loading",textColor:ve.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ve.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new bt,n=new Ke({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var a=new ft({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Ke({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new mh({shape:{startAngle:-Zl/2,endAngle:-Zl/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Zl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Zl*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Gb=(function(){function t(e,r,n,a){this._stageTaskMap=ye(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ye();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;I(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";zr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;I(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});
14function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ye(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Ts({plan:qO,reset:ZO,count:jO}));c.context={model:h,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||Ts({reset:WO});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ye(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";zr(!e.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(h=!1,I(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,Ts({reset:$O,onDirty:XO})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,i._pipe(p,m)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return we(e)&&(e={overallReset:e,seriesType:QO(e)}),e.uid=Sh("stageHandler"),r&&(e.visualType=r),e},t})();function WO(t){t.overallReset(t.ecModel,t.api,t.payload)}function $O(t){return t.overallProgress&&YO}function YO(){this.agent.dirty(),this.getDownstream().dirty()}function XO(){this.agent&&this.agent.dirty()}function qO(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ZO(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Qe(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?le(e,function(r,n){return Vb(n)}):KO}var KO=Vb(0);function Vb(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function jO(t){return t.data.count()}function QO(t){Df=null;try{t($s,Ub)}catch{}return Df}var $s={},Ub={},Df;Wb($s,gg);Wb(Ub,Fb);$s.eachSeriesByType=$s.eachRawSeriesByType=function(t){Df=t};$s.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Df=t.subType)};function Wb(t,e){for(var r in e.prototype)t[r]=Ut}var ae=ve.darkColor,JO=ae.background,Ko=function(){return{axisLine
14:{lineStyle:{color:ae.axisLine}},splitLine:{lineStyle:{color:ae.axisSplitLine}},splitArea:{areaStyle:{color:[ae.backgroundTint,ae.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ae.axisMinorSplitLine}},axisLabel:{color:ae.axisLabel},axisName:{}}},Ey={label:{color:ae.secondary},itemStyle:{borderColor:ae.borderTint},dividerLineStyle:{color:ae.border}},$b={darkMode:!0,color:ae.theme,backgroundColor:JO,axisPointer:{lineStyle:{color:ae.border},crossStyle:{color:ae.borderShade},label:{color:ae.tertiary}},legend:{textStyle:{color:ae.secondary},pageTextStyle:{color:ae.tertiary}},textStyle:{color:ae.secondary},title:{textStyle:{color:ae.primary},subtextStyle:{color:ae.quaternary}},toolbox:{iconStyle:{borderColor:ae.accent50}},tooltip:{backgroundColor:ae.neutral20,defaultBorderColor:ae.border,textStyle:{color:ae.tertiary}},dataZoom:{borderColor:ae.accent10,textStyle:{color:ae.tertiary},brushStyle:{color:ae.backgroundTint},handleStyle:{color:ae.neutral00,borderColor:ae.accent20},moveHandleStyle:{color:ae.accent40},emphasis:{handleStyle:{borderColor:ae.accent50}},dataBackground:{lineStyle:{color:ae.accent30},areaStyle:{color:ae.accent20}},selectedDataBackground:{lineStyle:{color:ae.accent50},areaStyle:{color:ae.accent30}}},visualMap:{textStyle:{color:ae.secondary},handleStyle:{borderColor:ae.neutral30}},timeline:{lineStyle:{color:ae.accent10},label:{color:ae.tertiary},controlStyle:{color:ae.accent30,borderColor:ae.accent30}},calendar:{itemStyle:{color:ae.neutral00,borderColor:ae.neutral20},dayLabel:{color:ae.tertiary},monthLabel:{color:ae.secondary},yearLabel:{color:ae.secondary}},matrix:{x:Ey,y:Ey,backgroundColor:{borderColor:ae.axisLine},body:{itemStyle:{borderColor:ae.borderTint}}},timeAxis:Ko(),logAxis:Ko(),valueAxis:Ko(),categoryAxis:Ko(),line:{symbol:"circle"},graph:{color:ae.theme},gauge:{title:{color:ae.secondary},axisLine:{lineStyle:{color:[[1,ae.neutral05]]}},axisLabel:{color:ae.axisLabel},detail:{color:ae.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ae.background}},radar:(function(){var t=Ko();return t.axisName={color:ae.axisLabel},t.axisLine.lineStyle.color=ae.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:ae.neutral20,textStyle:{color:ae.secondary}},emphasis:{itemStyle:{color:ae.neutral30}}}},sunburst:{itemStyle:{borderColor:ae.background}},map:{itemStyle:{borderColor:ae.border,areaColor:ae.neutral10},label:{color:ae.tertiary},emphasis:{label:{color:ae.primary},itemStyle:{areaColor:ae.highlight}},select:{label:{color:ae.primary},itemStyle:{areaColor:ae.highlight}}},geo:{itemStyle:{borderColor:ae.border,areaColor:ae.neutral10},emphasis:{label:{color:ae.primary},itemStyle:{areaColor:ae.highlight}},select:{label:{color:ae.primary},itemStyle:{color:ae.highlight}}}};$b.categoryAxis.splitLine.show=!1;var eR=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(fe(e)){var i=sn(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};I(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Cd=["symbol","symbolSize","symbolRotate","symbolOffset"],Oy=Cd.concat(["symbolKeepAspect"]),tR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<Cd.length;o++){var s=Cd[o],l=t.get(s);we(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(K({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Ce(a);function f(h,v){for(var c=t.getRawValue(v),d=t.getDataParams(v),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(v,g,a[g](c,d))}}return{dataEach:i?f:null}}},rR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Oy.length;s++){var l=Oy[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function nR(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function aR(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function EH(t,e,r,n){switch(r){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=n,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,n);break}}function us(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var iR=Math.round(Math.random()*9),oR=typeof Object.defineProperty=="function",sR=(function(){function t(){this._id="__ec_inner_"+iR++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return oR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,
14configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function ci(t){return isFinite(t)}function lR(t,e,r){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=ci(n)?n:0,a=ci(a)?a:1,i=ci(i)?i:0,o=ci(o)?o:0;var s=t.createLinearGradient(n,i,a,o);return s}function uR(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=ci(o)?o:.5,s=ci(s)?s:.5,l=l>=0&&ci(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Md(t,e,r){for(var n=e.type==="radial"?uR(t,e,r):lR(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function fR(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Kl(t){return parseInt(t,10)}function lo(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||Kl(s[n])||Kl(t.style[n]))-(Kl(s[i])||0)-(Kl(s[o])||0)|0}function hR(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:$e(t)?[t]:J(t)?t:null}function mg(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&hR(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=le(r,function(i){return i/a}),n/=a)}return[r,n]}var cR=new Yn(!0);function Af(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Ry(t){return typeof t=="string"&&t!=="none"}function Lf(t){var e=t.fill;return e!=null&&e!=="none"}function Fy(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function By(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Dd(t,e,r){var n=wp(e.image,e.__image,r);if(sh(n)){var a=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*bu),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function vR(t,e,r,n){var a,i=Af(r),o=Lf(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||cR,h=e.__dirty;if(!n){var v=r.fill,c=r.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,m=i&&!!c.image,y=void 0,_=void 0,x=void 0,S=void 0,w=void 0;(d||p)&&(w=e.getBoundingRect()),d&&(y=h?Md(t,v,w):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(_=h?Md(t,c,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(x=h||!e.__canvasFillPattern?Dd(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(S=h||!e.__canvasStrokePattern?Dd(t,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?t.fillStyle=y:g&&(x?t.fillStyle=x:o=!1),p?t.strokeStyle=_:m&&(S?t.strokeStyle=S:i=!1)}var b=e.getGlobalScale();f.setScale(b[0],b[1],e.segmentIgnoreThreshold);var M,T;t.setLineDash&&r.lineDash&&(a=mg(e),M=a[0],T=a[1]);var A=!0;(u||h&Ki)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),A=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),A&&f.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=T),n||(r.strokeFirst?(i&&By(t,r),o&&Fy(t,r)):(o&&Fy(t,r),i&&By(t,r))),M&&t.setLineDash([])}function dR(t,e,r){var n=e.__image=wp(r.image,e.__image,e,e.onload);if(!(!n||!sh(n))){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,h=o-u,v=s-f;t.drawImage(n,u,f,h,v,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}function pR(t,e,r){var n,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||Un,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=mg(e),i=n[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(Af(r)&&t.strokeText(a,r.x,r.y),Lf(r)&&t.fillText(a,r.x,r.y)):(Lf(r)&&t.fillText(a,r.x,r.y),Af(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}var Ny=["shadowBlur","shadowOffsetX","shadowOffsetY"],zy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Yb(t,e,r,n,a){var i=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Zt(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?mi.opacity:o}(n||e.blend!==r.blend)&&(i||(Zt(t,a),i=!0),t.globalCompositeOperation=e.blend||mi.blend);for(var s=0;s<Ny.length;s++){var l=Ny[s];(n||e[l]!==r[l])&&(i||(Zt(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(Zt(t,a),i=!0),t.shadowColor=e.shadowColor||mi.shadowColor),i}function Hy(t,e,r,n,a){var i=Ys(e,a.inHover),o=n?null:r&&Ys(r,a.inHover)||{};if(i===o)return!1;var s=Yb(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Zt(t,a),s=!0),Ry(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Zt(t,a),s=!0),Ry(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Zt(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Zt(t,a),s=!0),t.lineWidth=u)}for(var f=0;f<zy.length;f++){var h=zy[f],v=h[0];(n||i[v]!==o[v])&&(s||(Zt(t,a),s=!0),t[v]=i[v]||h[1])}return s}function gR(t,e,r,n,a){return Yb(t,Ys(e,a.inHover),r&&Ys(r,a.inHover),n,a)}function Xb(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function mR(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),Xb(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}function yR(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Gy=1,Vy=2,Uy=3,Wy=4;function _R(t){var e=Lf(t),r=Af(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Zt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Ys(t,e){return e&&t.__hoverStyle||t.style}function qb(t,e){vi(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function vi(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~ar,e.__isRendered=!1;return}var i=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;
14if((!o||fR(i,o))&&(o&&o.length&&(Zt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Zt(t,r),t.save(),mR(i,t,r),s=!0),r.prevElClipPaths=i),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Ie&&e.autoBatch&&_R(e.style);s||yR(a,u.transform)?(Zt(t,r),Xb(t,e)):f||Zt(t,r);var h=Ys(e,r.inHover);e instanceof Ie?(r.lastDrawType!==Gy&&(l=!0,r.lastDrawType=Gy),Hy(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),vR(t,e,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):e instanceof Rs?(r.lastDrawType!==Uy&&(l=!0,r.lastDrawType=Uy),Hy(t,e,u,l,r),pR(t,e,h)):e instanceof Tr?(r.lastDrawType!==Vy&&(l=!0,r.lastDrawType=Vy),gR(t,e,u,l,r),dR(t,e,h)):e.getTemporalDisplayables&&(r.lastDrawType!==Wy&&(l=!0,r.lastDrawType=Wy),xR(t,e,r)),f&&n&&Zt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function xR(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vi(t,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vi(t,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Vc=new sR,$y=new mo(100),Yy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function kf(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";t.dirty&&Vc.delete(t);var i=Vc.get(t);if(i)return i;var o=Me(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,Vc.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],h=!0,v=0;v<Yy.length;++v){var c=o[Yy[v]];if(c!=null&&!J(c)&&!fe(c)&&!$e(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(a?"-svg":"");var p=$y.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=Kb(o.dashArrayX),m=wR(o.dashArrayY),y=Zb(o.symbol),_=SR(g),x=jb(m),S=!a&&Wn.createCanvas(),w=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=T(),M;S&&(S.width=b.width*r,S.height=b.height*r,M=S.getContext("2d")),A(),h&&$y.put(d,S||w),u.image=S,u.svgElement=w,u.svgWidth=b.width,u.svgHeight=b.height;function T(){for(var k=1,F=0,O=_.length;F<O;++F)k=q0(k,_[F]);for(var B=1,F=0,O=y.length;F<O;++F)B=q0(B,y[F].length);k*=B;var N=x*_.length*y.length;return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function A(){M&&(M.clearRect(0,0,S.width,S.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,S.width,S.height)));for(var k=0,F=0;F<m.length;++F)k+=m[F];if(k<=0)return;for(var O=-x,B=0,N=0,z=0;O<b.height;){if(B%2===0){for(var q=N/2%y.length,Y=0,ne=0,te=0;Y<b.width*2;){for(var oe=0,F=0;F<g[z].length;++F)oe+=g[z][F];if(oe<=0)break;if(ne%2===0){var se=(1-o.symbolSize)*.5,Se=Y+g[z][ne]*se,Ne=O+m[B]*se,mt=g[z][ne]*o.symbolSize,ht=m[B]*o.symbolSize,ct=te/2%y[q].length;vt(Se,Ne,mt,ht,y[q][ct])}Y+=g[z][ne],++te,++ne,ne===g[z].length&&(ne=0)}++z,z===g.length&&(z=0)}O+=m[B],++N,++B,B===m.length&&(B=0)}function vt(Ae,Oe,me,Le,tr){var Je=a?1:r,Pa=Mh(tr,Ae*Je,Oe*Je,me*Je,Le*Je,o.color,o.symbolKeepAspect);if(a){var Wr=n.painter.renderOneToVNode(Pa);Wr&&w.children.push(Wr)}else qb(M,Pa)}}}}function Zb(t){if(!t||t.length===0)return[["rect"]];if(fe(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!fe(t[r])){e=!1;break}if(e)return Zb([t]);for(var n=[],r=0;r<t.length;++r)fe(t[r])?n.push([t[r]]):n.push(t[r]);return n}function Kb(t){if(!t||t.length===0)return[[0,0]];if($e(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!$e(t[n])){r=!1;break}if(r)return Kb([t]);for(var a=[],n=0;n<t.length;++n)if($e(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else{var e=le(t[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function wR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if($e(t)){var e=Math.ceil(t);return[e,e]}var r=le(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function SR(t){return le(t,function(e){return jb(e)})}function jb(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function bR(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=kf(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=kf(a,e)}}})}var kr=new xn,Qb={};function TR(t,e){Qb[t]=e}function CR(t){return Qb[t]}var Jb={};function MR(t,e){Jb[t]=e}function DR(t){return Jb[t]}
14var AR=1,LR=800,kR=900,PR=1e3,IR=2e3,ER=5e3,eT=1e3,OR=1100,yg=2e3,tT=3e3,RR=4e3,Dh=4500,FR=4600,BR=5e3,NR=6e3,rT=7e3,zR={PROCESSOR:{FILTER:PR,SERIES_FILTER:LR,STATISTIC:ER},VISUAL:{LAYOUT:eT,PROGRESSIVE_LAYOUT:OR,GLOBAL:yg,CHART:tT,POST_CHART_LAYOUT:FR,COMPONENT:RR,BRUSH:BR,CHART_ITEM:Dh,ARIA:NR,DECAL:rT}},lt="__flagInMainProcess",jl="__mainProcessVersion",yt="__pendingUpdate",Uc="__needsUpdateStatus",Xy=/^[a-zA-Z0-9_]+$/,Wc="__connectUpdateStatus",qy=0,HR=1,GR=2;function nT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return iT(this,t,e)}}function aT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return iT(this,t,e)}}function iT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),xn.prototype[e].apply(t,r)}var oT=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(xn),sT=oT.prototype;sT.on=aT("on");sT.off=aT("off");var ai,$c,Ql,Mn,Jl,Yc,Xc,Gi,Vi,Zy,Ky,qc,jy,eu,Qy,lT,ur,Jy,Ui,uT=(function(t){re(e,t);function e(r,n,a){var i=t.call(this,new eR)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=r;var o="canvas",s="auto",l=!1;i[jl]=1,a.ssr&&pO(function(v){var c=Ee(v),d=c.dataIndex;if(d!=null){var p=ye();return p.set("series_index",c.seriesIndex),p.set("data_index",d),c.ssrType&&p.set("ssr_type",c.ssrType),p}});var u=i._zr=xy(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:he(a.useDirtyRect,l),useCoarsePointer:he(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=vg(He(u.flush,u),17),i._updateTheme(n),i._locale=NP(a.locale||HS),i._coordSysMgr=new jp;var f=i._api=Qy(i);function h(v,c){return v.__prio-c.__prio}
14return Fu(If,h),Fu(kd,h),i._scheduler=new Gb(i,f,kd,If),i._messageCenter=new oT,i._initEvents(),i.resize=He(i.resize,i),u.animation.on("frame",i._onframe,i),Zy(u,i),Ky(u,i),qu(i),i}return e.prototype._onframe=function(){if(!this._disposed){Jy(this);var r=this._scheduler;if(this[yt]){var n=this[yt].silent;this[lt]=!0,Ui(this);try{ai(this),Mn.update.call(this,null,this[yt].updateParams)}catch(l){throw this[lt]=!1,this[yt]=null,l}this._zr.flush(),this[lt]=!1,this[yt]=null,Gi.call(this,n),Vi.call(this,n)}else if(r.unfinished){var a=AR,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Yc(this,i),r.performVisualTasks(i),eu(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,a){if(!this[lt]){if(this._disposed){this.id;return}var i,o,s;if(ge(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[lt]=!0,Ui(this),!this._model||n){var l=new CO(this._api),u=this._theme,f=this._model=new gg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Pd);var h={seriesTransition:s,optionChanged:!0};if(a)this[yt]={silent:i,updateParams:h},this[lt]=!1,this.getZr().wakeUp();else{try{ai(this),Mn.update.call(this,null,h)}catch(v){throw this[yt]=null,this[lt]=!1,v}this._ssr||this._zr.flush(),this[yt]=null,this[lt]=!1,Gi.call(this,i),Vi.call(this,i)}}},e.prototype.setTheme=function(r,n){if(!this[lt]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[yt]&&(i==null&&(i=this[yt].silent),o=this[yt].updateParams,this[yt]=null),this[lt]=!0,Ui(this);try{this._updateTheme(r),a.setTheme(this._theme),ai(this),Mn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[lt]=!1,s}this[lt]=!1,Gi.call(this,i),Vi.call(this,i)}}},e.prototype._updateTheme=function(r){fe(r)&&(r=fT[r]),r&&(r=Pe(r),r&&Nb(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||be.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return I(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;I(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return I(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(e_[a]){var l=s,u=s,f=-s,h=-s,v=[],c=r&&r.pixelRatio||this.getDevicePixelRatio();I(Cs,function(_,x){if(_.group===a){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Pe(r)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),f=o(w.right,f),h=o(w.bottom,h),v.push({dom:S,left:w.left,top:w.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=Wn.createCanvas(),m=xy(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return I(v,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}
14),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Ke({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),I(v,function(_){var x=new Tr({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,a){return Jl(this,"convertToPixel",r,n,a)},e.prototype.convertToLayout=function(r,n,a){return Jl(this,"convertToLayout",r,n,a)},e.prototype.convertFromPixel=function(r,n,a){return Jl(this,"convertFromPixel",r,n,a)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=oc(a,r);return I(o,function(s,l){l.indexOf("Models")>=0&&I(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var a=this._model,i=oc(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?nR(s,l,n):aR(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;I(VR,function(a){var i=function(o){var s=r.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&us(l,function(p){var g=Ee(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=K({},g.eventData),!0},!0),u){var h=u.componentType,v=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",v=u.seriesIndex);var c=h&&v!=null&&s.getComponent(h,v),d=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:c,view:d},r.trigger(a,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;I(Ld,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),TE(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Fw(this.getDom(),xg,"");var n=this,a=n._api,i=n._model;I(n._componentsViews,function(o){o.dispose(i,a)}),I(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Cs[n.id]},e.prototype.resize=function(r){if(!this[lt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[yt]&&(i==null&&(i=this[yt].silent),a=!0,this[yt]=null),this[lt]=!0,Ui(this);try{a&&ai(this),Mn.update.call(this,{type:"resize",animation:K({duration:0},r&&r.animation)})}catch(o){throw this[lt]=!1,o}this[lt]=!1,Gi.call(this,i),Vi.call(this,i)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ge(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Id[r]){var a=Id[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=K({},r);return n.type=Ad[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ge(n)||(n={silent:!!n}
14),!!Pf[r.type]&&this._model){if(this[lt]){this._pendingActions.push(r);return}var a=n.silent;Xc.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&be.browser.weChat&&this._throttledZrFlush(),Gi.call(this,a),Vi.call(this,a)}},e.prototype.updateLabelLayout=function(){kr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ai=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),$c(h,!0),$c(h,!1),v.plan()},$c=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(w,b){w!=="series"&&x(b)}):c.eachSeries(x);function x(w){var b=w.__requireNewView;w.__requireNewView=!1;var M="_ec_"+w.id+"_"+w.type,T=!b&&g[M];if(!T){var A=sn(w.type),k=v?Jt.getClass(A.main,A.sub):Nn.getClass(A.sub);T=new k,T.init(c,y),g[M]=T,p.push(T),m.add(T.group)}w.__viewId=T.__id=M,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(T,w,c,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!v&&S.renderTask.dispose(),m.remove(S.group),S.dispose(c,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Ql=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){I([].concat(h._componentsViews).concat(h._chartsViews),S);return}var m={};m[d+"Id"]=c[d+"Id"],m[d+"Index"]=c[d+"Index"],m[d+"Name"]=c[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=c.excludeSeriesId,x;_!=null&&(x=ye(),I(Qe(_),function(w){var b=Vt(w,null);b!=null&&x.set(b,!0)})),g&&g.eachComponent(y,function(w){var b=x&&x.get(w.id)!=null;if(!b)if(im(c))if(w instanceof mn)c.type===yi&&!c.notBlur&&!w.get(["emphasis","disabled"])&&DL(w,c,h._api);else{var M=Rp(w.mainType,w.componentIndex,c.name,h._api),T=M.focusSelf,A=M.dispatchers;c.type===yi&&T&&!c.notBlur&&Qv(w.mainType,w.componentIndex,h._api),A&&I(A,function(k){c.type===yi?ff(k):hf(k)})}else td(c)&&w instanceof mn&&(kL(w,c,h._api),nm(w),ur(h))},h),g&&g.eachComponent(y,function(w){var b=x&&x.get(w.id)!=null;b||S(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function S(w){w&&w.__alive&&w[v]&&w[v](w.__model,g,h._api,c)}},Mn={prepareAndUpdate:function(h){ai(this),Mn.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(c){c.setUpdatePayload(h),m.restoreData(c,h),m.performSeriesTasks(c),g.create(c,d),m.performDataProcessorTasks(c,h),Yc(this,c),g.update(c,d),n(c),m.performVisualTasks(c,h);var y=c.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=c.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),qc(this,c,d,h,v),kr.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(m,y){if(m!=="series"){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,c,d,h);x&&x.update&&p.push(_)}else p.push(_)}});var g=ye();c.eachSeries(function(m){var y=v._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,c,d,h);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),eu(this,c,d,h,{},g),kr.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),Nn.markUpdateMethod(h,"updateView"),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),qc(this,v,this._api,h,{}),kr.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),Nn.markUpdateMethod(h,"updateVisual"),n(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}
14),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),kr.trigger("afterupdate",c,this._api))},updateLayout:function(h){Mn.update.call(this,h)}};function r(h,v,c,d,p){if(h._disposed){h.id;return}for(var g=h._model,m=h._coordSysMgr.getCoordinateSystems(),y,_=oc(g,c),x=0;x<m.length;x++){var S=m[x];if(S[v]&&(y=S[v](g,_,d,p))!=null)return y}}Jl=r,Yc=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},Xc=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,m=Pf[p],y=(m.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&sn(y[0]);this[lt]=!0,Ui(this);var S=[h],w=!1;h.batch&&(w=!0,S=le(h.batch,function(z){return z=Me(K({},z),h),z.batch=null,z}));var b=[],M,T=[],A=m.nonRefinedEventType,k=td(h),F=im(h);if(F&&Yw(this._api),I(S,function(z){var q=m.action(z,d,c._api);if(m.refineEvent?T.push(q):M=q,M=M||K({},z),M.type=A,b.push(M),F){var Y=kp(h),ne=Y.queryOptionMap,te=Y.mainTypeSpecified,oe=te?ne.keys()[0]:"series";Ql(c,_,z,oe),ur(c)}else k?(Ql(c,_,z,"series"),ur(c)):x&&Ql(c,_,z,x.main,x.sub)}),_!=="none"&&!F&&!k&&!x)try{this[yt]?(ai(this),Mn.update.call(this,h),this[yt]=null):Mn[_].call(this,h)}catch(z){throw this[lt]=!1,z}if(w?M={type:A,escapeConnect:g,batch:b}:M=b[0],this[lt]=!1,!v){var O=void 0;if(m.refineEvent){var B=m.refineEvent(T,h,d,this._api).eventContent;zr(ge(B)),O=Me({type:m.refinedEventType},B),O.fromAction=h.type,O.fromActionPayload=h,O.escapeConnect=!0}var N=this._messageCenter;N.trigger(M.type,M),O&&N.trigger(O.type,O)}}
14,Gi=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();Xc.call(this,c,h)}},Vi=function(h){!h&&this.trigger("updated")},Zy=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[yt]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Ky=function(h,v){h.on("mouseover",function(c){var d=c.target,p=us(d,ed);p&&(AL(p,c,v._api),ur(v))}).on("mouseout",function(c){var d=c.target,p=us(d,ed);p&&(LL(p,c,v._api),ur(v))}).on("click",function(c){var d=c.target,p=us(d,function(y){return Ee(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Ee(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function a(h){var v=[],c=[],d=!1;if(h.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?c:v).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:w})}),d){var p=v.concat(c),g,m;Fu(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),I(p,function(y){var _=h.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;g!=null&&(x=Math.max(g,x)),S?(x===g&&S!==m&&x++,m=S):m&&(x===g&&x++,m=""),g=x,_.setZLevel(x)})}}qc=function(h,v,c,d,p){a(v),jy(h,v,c,d,p),I(h._chartsViews,function(g){g.__alive=!1}),eu(h,v,c,d,p),I(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},jy=function(h,v,c,d,p,g){I(g||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,c,d),l(y,m),f(y,m)})},eu=function(h,v,c,d,p,g){var m=h._scheduler;p=K(p||{},{updatedSeries:v.getSeries()}),kr.trigger("series:beforeupdate",v,c,p);var y=!1;v.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;m.updatePayload(S,d),u(_,x),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),nm(_)}),m.unfinished=y||m.unfinished,kr.trigger("series:layoutlabels",v,c,p),kr.trigger("series:transition",v,c,p),v.eachSeries(function(_){var x=h._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(h,v),kr.trigger("series:afterupdate",v,c,p)},ur=function(h){h[Uc]=!0,h.getZr().wakeUp()},Ui=function(h){h[jl]=(h[jl]+1)%1e3},Jy=function(h){h[Uc]&&(h.getZr().storage.traverse(function(v){co(v)||i(v)}),h[Uc]=!1)};function i(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===ch&&h.states.emphasis?v.push("emphasis"):h.hoverState===hh&&h.states.blur&&v.push("blur"),h.useStates(v)}function o(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!be.node&&!be.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=h._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function l(h,v){if(!h.preventAutoZ){var c=uS(h);v.eachRendered(function(d){return fS(d,c.z,c.zlevel),!0})}}function u(h,v){v.eachRendered(function(c){if(!co(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(co(m))return;if(m instanceof Ie&&BL(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&i(m)}})}Qy=function(h){return new((function(v){re(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){ff(d,p),ur(h)},c.prototype.leaveEmphasis=function(d,p){hf(d,p),ur(h)},c.prototype.enterBlur=function(d){ML(d),ur(h)},c.prototype.leaveBlur=function(d){Vw(d),ur(h)},c.prototype.enterSelect=function(d){Uw(d),ur(h)},c.prototype.leaveSelect=function(d){Ww(d),ur(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(
14d)},c.prototype.getMainProcessVersion=function(){return h[jl]},c})(Fb))(h)},lT=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[Wc]=d}}I(Ad,function(c,d){h._messageCenter.on(d,function(p){if(e_[h.group]&&h[Wc]!==qy){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),m=[];I(Cs,function(y){y!==h&&y.group===h.group&&m.push(y)}),v(m,qy),I(m,function(y){y[Wc]!==HR&&y.dispatchAction(g)}),v(m,GR)}})})}})(),e})(xn),_g=uT.prototype;_g.on=nT("on");_g.off=nT("off");_g.one=function(t,e,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)}this.on.call(this,t,a,r)};var VR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Pf={},Ad={},Ld={},kd=[],Pd=[],If=[],fT={},Id={},Cs={},e_={},UR=+new Date-0,xg="_echarts_instance_";function Ed(t,e,r){var n=!(r&&r.ssr);if(n){var a=WR(t);if(a)return a}var i=new uT(t,e,r);return i.id="ec_"+UR++,Cs[i.id]=i,n&&Fw(t,xg,i.id),lT(i),kr.trigger("afterinit",i),i}function WR(t){return Cs[dL(t,xg)]}function hT(t,e){fT[t]=e}function cT(t){ke(Pd,t)<0&&Pd.push(t)}function vT(t,e){Sg(kd,t,e,IR)}function $R(t){wg("afterinit",t)}function YR(t){wg("afterupdate",t)}function wg(t,e){kr.on(t,e)}function Lo(t,e,r){var n,a,i,o,s;we(e)&&(r=e,e=""),ge(t)?(n=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(n=t,a=e);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Pf[n]||(zr(Xy.test(n)&&Xy.test(a)),i&&zr(a!==n),Pf[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:i},Ld[a]=1,i&&s&&(Ld[u]=1),Ad[u]=n)}function XR(t,e){jp.register(t,e)}function qR(t,e){Sg(If,t,e,eT,"layout")}function Ti(t,e){Sg(If,t,e,tT,"visual")}var t_=[];function Sg(t,e,r,n,a){if((we(e)||ge(e))&&(r=e,e=n),!(ke(t_,r)>=0)){t_.push(r);var i=Gb.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function dT(t,e){Id[t]=e}function ZR(t,e,r){var n=CR("registerMap");n&&n(t,e,r)}var KR=pI;Ti(yg,HO);Ti(Dh,GO);Ti(Dh,VO);Ti(yg,tR);Ti(Dh,rR);Ti(rT,bR);cT(Nb);vT(kR,BO);dT("default",UO);Lo({type:yi,event:yi,update:yi},Ut);Lo({type:Du,event:Du,update:Du},Ut);Lo({type:lf,event:Ep,update:lf,action:Ut,refineEvent:bg,publishNonRefinedEvent:!0});Lo({type:Kv,event:Ep,update:Kv,action:Ut,refineEvent:bg,publishNonRefinedEvent:!0});Lo({type:uf,event:Ep,update:uf,action:Ut,refineEvent:bg,publishNonRefinedEvent:!0});function bg(t,e,r,n){return{eventContent:{selected:PL(r),isFromClick:e.isFromClick||!1}}}hT("default",{});hT("dark",$b);var r_=[],jR={registerPreprocessor:cT,registerProcessor:vT,registerPostInit:$R,registerPostUpdate:YR,registerUpdateLifecycle:wg,registerAction:Lo,registerCoordinateSystem:XR,registerLayout:qR,registerVisual:Ti,registerTransform:KR,registerLoading:dT,registerMap:ZR,registerImpl:TR,PRIORITY:zR,ComponentModel:Fe,ComponentView:Jt,SeriesModel:mn,ChartView:Nn,registerComponentModel:function(t){Fe.registerClass(t)},registerComponentView:function(t){Jt.registerClass(t)},registerSeriesModel:function(t){mn.registerClass(t)},registerChartView:function(t){Nn.registerClass(t)},registerCustomSeries:function(t,e){MR(t,e)},registerSubTypeDefaulter:function(t,e){Fe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){vO(t,e)}};function Zn(t){if(J(t)){I(t,function(e){Zn(e)});return}ke(r_,t)>=0||(r_.push(t),we(t)&&(t={install:t}),t.install(jR))}var pT={left:0,right:0,top:0,bottom:0},Ef=["25%","25%"],QR=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var a=hl(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&r.outerBounds&&qn(r.outerBounds,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&qn(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:pT,outerBoundsContain:"all",outerBoundsClampWidth:Ef[0],outerBoundsClampHeight:Ef[1],backgroundColor:ve.color.transparent,borderWidth:1,borderColor:ve.color.neutral30},e})(Fe),JR=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),Od=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ir).models[0]},e.type="cartesian2dAxis",e})(Fe);_n(Od,JR);var gT={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{}
14,axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:ve.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:ve.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ve.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ve.color.backgroundTint,ve.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ve.color.neutral00,borderColor:ve.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},eF=Ge({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},gT),Tg=Ge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ve.color.axisMinorSplitLine,width:1}}},gT),tF=Ge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Tg),rF=Me({logBase:10},Tg);const nF={category:eF,value:Tg,time:tF,log:rF};var aF=0,Xs=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++aF,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&le(n,iF);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!fe(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,a.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ye(this.categories))},t})();function iF(t){return ge(t)&&t.value!=null?t.value:t+""}var oF={value:1,category:1,time:1,log:1},sF=null;function lF(){return sF}function n_(t,e,r,n){I(oF,function(a,i){var o=Ge(Ge({},nF[i],!0),n,!0),s=(function(l){re(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Vs(this),c=v?hl(f):{},d=h.getTheme();Ge(f,d.get(i+"Axis")),Ge(f,this.getDefaultOption()),f.type=a_(f),v&&qn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Xs.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",a_)}function a_(t){return t.type||(t.data?"category":"value")}function Rd(t){return t.type==="interval"||t.type==="log"}function uF(t,e,r,n,a){var i={},o=i.interval=Lw(e/r);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=qs(o),l=i.niceTickExtent=[Lt(Math.ceil(t[0]/o)*o,s),Lt(Math.floor(t[1]/o)*o,s)];return fF(l,t),i}function Zc(t){var e=Math.pow(10,Ap(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Lt(r*e)}function qs(t){return On(t)+2}function i_(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function fF(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),i_(t,0,e),i_(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Cg(t,e){return t>=e[0]&&t<=e[1]}var hF=(function(){function t(){this.normalize=o_,this.scale=s_}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=He(e.normalize,e),this.scale=He(e.scale,e)):(this.normalize=o_,this.scale=s_)},t})();function o_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function s_(t,e){return t*(e[1]-e[0])+e[0]}function Fd(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var La=(function(){function t(e){this._calculator=new hF,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();oh(La);var Of=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";
14var a=n.getSetting("ordinalMeta");return a||(a=new Xs({})),J(a)&&(a=new Xs({categories:le(a,function(i){return ge(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:fe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return Cg(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(La);La.registerClass(Of);var oa=Lt,xo=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return Cg(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=qs(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=yf(),l=[];if(!n)return l;r.breakTicks;var u=1e4;a[0]<i[0]&&(r.expandToNicedExtent?l.push({value:oa(i[0]-n,o)}):l.push({value:a[0]}));for(var f=function(d,p){return Math.round((p-d)/n)},h=i[0];h<=i[1];){if(l.push({value:h}),h=oa(h+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(h,f);v>=0&&(h=oa(h+v*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var c=l.length?l[l.length-1].value:i[1];return a[1]>c&&(r.expandToNicedExtent?l.push({value:oa(c+n,o)}):l.push({value:a[1]})),r.breakTicks,l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],h=s.value-l.value,v=h/r,c=qs(v);u<r-1;){var d=oa(l.value+(u+1)*v,c);d>i[0]&&d<i[1]&&f.push(d),u++}var p=yf();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,i),a.push(f)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=On(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=oa(r.value,a,!0);return ZS(i)},e.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=uF(i,o,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=oa(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=oa(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e})(La);La.registerClass(xo);var cF=function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r},mT=(function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return bh(r.value,Im[qP(Ss(this._minLevelUnit))]||Im.second,n,this.get
14Setting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return ZP(r,n,a,o,i)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=[];if(!n)return i;var o=this.getSetting("useUTC"),s=_f(a[1],o);i.push({value:a[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=xF(this._minLevelUnit,this._approxInterval,o,a,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=_f(a[1],o);i.push({value:a[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=_i.length-1,h=0;return I(i,function(v){f=Math.min(f,ke(_i,v.time.upperTimeUnit)),h=Math.max(h,v.time.level)}),i},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=_r,n[1]+=_r),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-_r}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=tu.length,s=Math.min(cF(tu,this._approxInterval,0,o),o-1);this._interval=tu[s][1],this._intervalPrecision=qs(this._interval),this._minLevelUnit=tu[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return $e(r)?r:+Mo(r)},e.prototype.contain=function(r){return Cg(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e})(xo),tu=[["second",tg],["minute",rg],["hour",ws],["quarter-day",ws*6],["half-day",ws*12],["day",_r*1.2],["half-week",_r*3.5],["week",_r*7],["month",_r*31],["quarter",_r*95],["half-year",Pm/2],["year",Pm]];function vF(t,e,r,n){return hd(new Date(e),t,n).getTime()===hd(new Date(r),t,n).getTime()}function dF(t,e){return t/=_r,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function pF(t){var e=30*_r;return t/=e,t>6?6:t>3?3:t>2?2:1}function gF(t){return t/=ws,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function l_(t,e){return t/=e?rg:tg,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function mF(t){return Lw(t)}function yF(t,e,r){var n=Math.max(0,ke(_i,e)-1);return hd(new Date(t),_i[n],r).getTime()}function _F(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function xF(t,e,r,n,a,i){var o=1e4,s=WP,l=0;function u(O,B,N,z,q,Y,ne){for(var te=_F(q,O),oe=B,se=new Date(oe);oe<N&&oe<=n[1]&&(ne.push({value:oe}),!(l++>o));)if(se[q](se[z]()+O),oe=se.getTime(),i){var Se=i.calcNiceTickMultiple(oe,te);Se>0&&(se[q](se[z]()+Se*O),oe=se.getTime())}ne.push({value:oe,notAdd:!0})}function f(O,B,N){var z=[],q=!B.length;if(!vF(Ss(O),n[0],n[1],r)){q&&(B=[{value:yF(n[0],O,r)},{value:n[1]}]);for(var Y=0;Y<B.length-1;Y++){var ne=B[Y].value,te=B[Y+1].value;if(ne!==te){var oe=void 0,se=void 0,Se=void 0,Ne=!1;switch(O){case"year":oe=Math.max(1,Math.round(e/_r/365)),se=VS(r),Se=KP(r);break;case"half-year":case"quarter":case"month":oe=pF(e),se=ng(r),Se=US(r);break;case"week":case"half-week":case"day":oe=dF(e),se=ag(r),Se=WS(r),Ne=!0;break;case"half-day":case"quarter-day":case"hour":oe=gF(e),se=ig(r),Se=$S(r);break;case"minute":oe=l_(e,!0),se=og(r),Se=YS(r);break;case"second":oe=l_(e,!1),se=sg(r),Se=XS(r);break;case"millisecond":oe=mF(e),se=lg(r),Se=qS(r);break}te>=n[0]&&ne<=n[1]&&u(oe,ne,te,se,Se,Ne,z),O==="year"&&N.length>1&&Y===0&&N.unshift({value:N[0].value-oe})}}for(var Y=0;Y<z.length;Y++)N.push(z[Y])}}for(var h=[],v=[],c=0,d=0,p=0;p<s.length;++p){var g=Ss(s[p]);if(XP(s[p])){f(s[p],h[h.length-1]||[],v);var m=s[p+1]?Ss(s[p+1]):null;if(g!==m){if(v.length){d=c,v.sort(function(O,B){return O.value-B.value});for(var y=[],_=0;_<v.length;++_){var x=v[_].value;(_===0||v[_-1].value!==x)&&(y.push(v[_]),x>=n[0]&&x<=n[1]&&c++)}var S=a/e;if(c>S*1.5&&d>S/1.5||(h.push(y),c>S||t===s[p]))break}v=[]}}}for(var w=qe(le(h,function(O){return qe(O,function(B){return B.value>=n[0]&&B.value<=n[1]&&!B.notAdd})}),function(O){return O.length>0}),b=[],M=w.length-1,p=0;p<w.length;++p)for(var T=w[p],A=0;A<T.length;++A){var k=_f(T[A].value,r);b.push({value:T[A].value,time:{level:M-p,upperTimeUnit:k,lowerTimeUnit:k}})}b.sort(function(O,B){return O.value-B.value});for(var F=[],p=0;p<b.length;
14++p)(p===0||b[p].value!==b[p-1].value)&&F.push(b[p]);return F}La.registerClass(mT);var Bd=Lt,wF=Math.floor,SF=Math.ceil,ru=Math.pow,nu=Math.log,yT=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new xo,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=t.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),le(i,function(s){var l=s.value,u=null,f=ru(o,l);l===n[0]&&this._fixMin?u=a[0]:l===n[1]&&this._fixMax&&(u=a[1]);var h;return u!=null&&(f=Kc(f,u)),{value:f,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var a=Fd(this.base,[r,n]);t.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=ru(r,n[0]),n[1]=ru(r,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=Kc(n[0],a[0])),this._fixMax&&(n[1]=Kc(n[1],a[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var a=Fd(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=QA(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Bd(SF(n[0]/i)*i),Bd(wF(n[1]/i)*i)];this._interval=i,this._intervalPrecision=qs(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=nu(r)/nu(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=nu(r)/nu(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),ru(this.base,r)},e.prototype.setBreaksFromOption=function(r){},e.type="log",e})(xo);function Kc(t,e){return Bd(t,On(e))}La.registerClass(yT);var bF=(function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;we(o)?this._modelMinNum=au(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=au(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(we(s)?this._modelMaxNum=au(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=au(e,s)),a)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=J(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ta(u[0],1),Ta(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?a?0:NaN:r-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Sr(s)||Sr(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},t.prototype.modifyDataMinMax=function(e,r){this[CF[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=TF[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t})(),TF={min:"_determinedMin",max:"_determinedMax"},CF={min:"_dataMin",max:"_dataMax"};function MF(t,e,r){var n=t.rawExtentInfo;return n||(n=new bF(t,e,r),t.rawExtentInfo=n,n)}function au(t,e){return e==null?null:Sr(e)?NaN:t.parse(e)}function _T(t,e){var r=t.type,n=MF(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&r==="time"){var s=pb("bar",o),l=!1;if(I(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=gb(s),f=DF(a,i,e,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function DF(t,e,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=iE(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;I(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;I(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,h=1-(s+l)/i,v=f/h-f;return e+=v*(l/u),t-=v*(s/u),{min:t,max:e}}function u_(t,e){var r=e,n=_T(t,r),a=n.extent,i=r.get("splitNumber");t instanceof yT&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(wT(r)),t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function AF(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Of({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new mT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(La.getClass(e)||xo)}}function LF(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function cl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=$P(e);return function(a,i){return t.scale.getFormattedLabel(a,i,r)}}else{if(fe(e))return function(a){var i=t.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(we(e)){if(t.type==="category")return function(a,i){return e(Rf(t,a),a.value-t.scale.getExtent()[0],null)};var n=yf();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Rf(t,a),i,o)}}else return function(a){return t.scale.getLabel(a)}}}function Rf(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Mg(t){var e=t.get("interval");return e??"auto"}function xT(t){return t.type==="category"&&Mg(t.getLabelModel())===0}function kF(t,e){var r={};return I(t.mapDimensionsAll(e),function(n){r[wP(t,n)]=!0}),Ce(r)}function wo(t){return t==="middle"||t==="center"}function Zs(t){return t.getShallow("show")}function wT(t){var e=t.get("breaks",!0);e==null}var PF=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return le(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),qe(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),Nd=["x","y"];function f_(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var IF=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Nd,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!f_(r)||!f_(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-a[0]*f,c=o[1]-i[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=Si([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");
14return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new xe(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return xr(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,a){if(a=a||[],this._invTransform)return xr(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new xe(i,o,s,l)},e})(PF),EF=Ue(),Ms=Ue(),Hr={estimate:1,determine:2};function Ff(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function ST(t,e){var r=le(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function OF(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=cl(t),a=t.scale.getExtent(),i=ST(t,r),o=qe(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:le(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?FF(t,e):NF(t)}function RF(t,e,r){var n=t.getTickModel().get("customValues");if(n){var a=t.scale.getExtent(),i=ST(t,n);return{ticks:qe(i,function(o){return o>=a[0]&&o<=a[1]})}}return t.type==="category"?BF(t,e):{ticks:le(t.scale.getTicks(r),function(o){return o.value})}}function FF(t,e){var r=t.getLabelModel(),n=bT(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function bT(t,e,r){var n=HF(t),a=Mg(e),i=r.kind===Hr.estimate;if(!i){var o=CT(n,a);if(o)return o}var s,l;we(a)?s=AT(t,a):(l=a==="auto"?GF(t,r):a,s=DT(t,l));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return zd(n,a,u),!0}):zd(n,a,u),u}function BF(t,e){var r=zF(t),n=Mg(e),a=CT(r,n);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),we(n))i=AT(t,n,!0);else if(n==="auto"){var s=bT(t,t.getLabelModel(),Ff(Hr.determine));o=s.labelCategoryInterval,i=le(s.labels,function(l){return l.tickValue})}else o=n,i=DT(t,o,!0);return zd(r,n,{ticks:i,tickCategoryInterval:o})}function NF(t){var e=t.scale.getTicks(),r=cl(t);return{labels:le(e,function(n,a){return{formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var zF=TT("axisTick"),HF=TT("axisLabel");function TT(t){return function(r){return Ms(r)[t]||(Ms(r)[t]={list:[]})}}function CT(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function zd(t,e,r){return t.list.push({key:e,value:r}),r}function GF(t,e){if(e.kind===Hr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ms(t).autoInterval=r,!0}),r}var n=Ms(t).autoInterval;return n??(Ms(t).autoInterval=t.calculateCategoryInterval(e))}function VF(t,e){var r=e.kind,n=WF(t),a=cl(t),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var h=s[0],v=t.dataToCoord(h+1)-t.dataToCoord(h),c=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;h<=s[1];h+=u){var m=0,y=0,_=Qx(a({value:h}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var x=p/c,S=g/d;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(x,S)));if(r===Hr.estimate)return e.out.noPxChangeTryDetermine.push(He(UF,null,t,w,l)),w;var b=MT(t,w,l);return b??w}function UF(t,e,r){return MT(t,e,r)==null}function MT(t,e,r){var n=EF(t.model),a=t.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-r)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function WF(t){var e=t.getLabelModel();
14return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function DT(t,e,r){var n=cl(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=xT(t),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g,time:void 0,break:void 0})}return s}function AT(t,e,r){var n=t.scale,a=cl(t),i=[];return I(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var h_=[0,1],$F=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return ZA(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),c_(n,a.count())),X0(e,h_,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),c_(n,a.count()));var i=X0(e,n,h_,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=RF(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=n.ticks,i=le(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return YF(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=le(n,function(i){return le(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(e){return e=e||Ff(Hr.determine),OF(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||Ff(Hr.determine),VF(this,e)},t})();function c_(t,e){var r=t[1]-t[0],n=e,a=r/n/2;t[0]+=a,t[1]-=a}function YF(t,e,r,n){var a=e.length;if(!t.onBand||r||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;I(e,function(c){c.coord-=u/2,c.onBand=!0});var f=t.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&v(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),v(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&v(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function v(c,d){return c=Lt(c),d=Lt(d),h?c>d:c<d}}var XF=(function(t){re(e,t);function e(r,n,a,i,o){var s=t.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)}
14,e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})($F),qF="expandAxisBreak",ga=Math.PI,ZF=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],KF=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ks=Ue(),LT=Ue(),kT=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},t})();function jF(t,e,r,n){var a=r.axis,i=e.ensureRecord(r),o=[],s,l=Dg(t.axisName)&&wo(t.nameLocation);I(n,function(d){var p=Da(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Si(jo,g.transform):Sp(jo),p.transform&&ps(jo,jo,p.transform),xe.copy(iu,p.localRect),iu.applyTransform(jo),s?s.union(iu):xe.copy(s=new xe(0,0,0,0),iu))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var h=a.getExtent(),v=Math.min(h[0],h[1]),c=Math.max(h[0],h[1])-v;s.union(new xe(v,0,c,1))}i.stOccupiedRect=s,i.labelInfoList=o}var jo=Bn(),iu=new xe(0,0,0,0),PT=function(t,e,r,n,a,i){if(wo(t.nameLocation)){var o=i.stOccupiedRect;o&&IT(FE({},o,i.transGroup.transform),n,a)}else ET(i.labelInfoList,i.dirVec,n,a)};function IT(t,e,r){var n=new de;dg(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&BE(e,n)}function ET(t,e,r,n){for(var a=de.dot(n,e)>=0,i=0,o=t.length;i<o;i++){var s=t[a?i:o-1-i];s.label.ignore||IT(s,r,n)}}var ba=(function(){function t(e,r,n,a){this.group=new bt,this._axisModel=e,this._api=r,this._local={},this._shared=a||new kT(PT),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=he(e.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=he(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:he(e.nameDirection,1),tickDirection:he(e.tickDirection,1),labelDirection:he(e.labelDirection,1),labelOffset:he(e.labelOffset,0),silent:he(e.silent,!0),axisName:a,nameLocation:di(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Dg(a)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new bt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new de(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),I(QF,function(a){e[a]&&JF[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var a=Aw(r-e),i,o;return af(a)?(o=n>0?"top":"bottom",i="center"):af(a-ga)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<ga?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),QF=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],JF={axisLine:function(t,e,r,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],h=[l[1],0],v=f[0]>h[0];u&&(xr(f,f,u),xr(h,h,u));var c=K({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())lF().buildAxisBreakLine(n,a,i,d);else{var p=new Xn(K({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));
14Ns(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);fe(g)&&(g=[g,g]),(fe(m)||$e(m))&&(m=[m,m]);var y=lb(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],x=m[1];I([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(S,w){if(g[w]!=="none"&&g[w]!=null){var b=Mh(g[w],-_/2,-x/2,_,x,c.stroke,!0),M=S.r+S.offset,T=v?h:f;b.attr({rotation:S.rotate,x:T[0]+M*Math.cos(t.rotation),y:T[1]-M*Math.sin(t.rotation),silent:!0,z2:11}),a.add(b)}})}}},axisTickLabelEstimate:function(t,e,r,n,a,i,o,s){var l=d_(e,a,s);l&&v_(t,e,r,n,a,i,o,Hr.estimate)},axisTickLabelDetermine:function(t,e,r,n,a,i,o,s){var l=d_(e,a,s);l&&v_(t,e,r,n,a,i,o,Hr.determine);var u=nB(t,a,i,n);rB(t,e.labelLayoutList,u),aB(t,a,i,n,t.tickDirection)},axisName:function(t,e,r,n,a,i,o,s){var l=r.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Dg(u)){var f=t.nameLocation,h=t.nameDirection,v=n.getModel("nameTextStyle"),c=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new de(0,0),m=new de(0,0);f==="start"?(g.x=d[0]-p*c,m.x=-p):f==="end"?(g.x=d[1]+p*c,m.x=p):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+h*c,m.y=h);var y=Bn();m.transform(bp(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*ga/180);var x,S;wo(f)?x=ba.innerTextLayout(t.rotation,_??t.rotation,h):(x=eB(t.rotation,f,_||0,d),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var w=v.getFont(),b=n.get("nameTruncate",!0)||{},M=b.ellipsis,T=Xu(t.raw.nameTruncateMaxWidth,b.maxWidth,S),A=s.nameMarginLevel||0,k=new ft({x:g.x,y:g.y,rotation:x.rotation,silent:ba.isLabelSilent(n),style:pn(v,{text:u,font:w,overflow:"truncate",width:T,ellipsis:M,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||x.textAlign,verticalAlign:v.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Ao({el:k,componentModel:n,itemName:u}),k.__fullText=u,k.anid="name",n.get("triggerEvent")){var F=ba.makeAxisEventDataBase(n);F.targetType="axisName",F.name=u,Ee(k).eventData=F}i.add(k),k.updateTransform(),e.nameEl=k;var O=l.nameLayout=Da({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:wo(f)?ZF[A]:KF[A]});if(l.nameLocation=f,a.add(k),k.decomposeTransform(),t.shouldNameMoveOverlap&&O){var B=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,O,m,B)}}}};function v_(t,e,r,n,a,i,o,s){RT(e)||iB(t,e,a,s,n,o);var l=e.labelLayoutList;oB(t,n,l,i),t.rotation;var u=t.optionHideOverlap;tB(n,l,u),u&&Mb(qe(l,function(f){return f&&!f.label.ignore})),jF(t,r,n,l)}function eB(t,e,r,n){var a=Aw(r-t),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return af(a-ga/2)?(o=l?"bottom":"top",i="center"):af(a-ga*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<ga*1.5&&a>ga/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function tB(t,e,r){if(xT(t.axis))return;function n(s,l,u){var f=Da(e[l]),h=Da(e[u]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){fs(f.label);return}if(h.suggestIgnore){fs(h.label);return}var v=.1;if(!r){var c=[0,0,0,0];f=xd({marginForce:c},f),h=xd({marginForce:c},h)}dg(f,h,null,{touchThreshold:v})&&fs(s?h.label:f.label)}}var a=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function rB(t,e,r){t.showMinorTicks||I(e,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=LT(i),s=Ks(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){fs(i);return}}})}function fs(t){t&&(t.ignore=!0)}function OT(t,e,r,n,a){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;
14o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(xr(o,o,e),xr(s,s,e));var f=new Xn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ns(f.shape,f.style.lineWidth),f.anid=a+"_"+t[l].tickValue,i.push(f);var h=LT(f);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return i}function nB(t,e,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=t.tickDirection*i.get("length"),u=a.getTicksCoords(),f=OT(u,r.transform,l,Me(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)e.add(f[h]);return f}function aB(t,e,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=Me(l.getLineStyle(),Me(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var v=OT(s[h],r.transform,u,f,"minorticks_"+h),c=0;c<v.length;c++)e.add(v[c])}}function d_(t,e,r){if(RT(t)){var n=t.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(t.labelGroup),Hd(t,null,null,null))}return!0}function iB(t,e,r,n,a,i){var o=a.axis,s=Xu(t.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new bt;r.add(l);var u=Ff(n);if(!s||o.scale.isBlank()){Hd(e,[],l,u);return}var f=a.getModel("axisLabel"),h=o.getViewLabels(u),v=(Xu(t.raw.labelRotate,f.get("rotate"))||0)*ga/180,c=ba.innerTextLayout(t.rotation,v,t.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),m=1/0,y=-1/0;I(h,function(x,S){var w,b=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(x.tickValue):x.tickValue,M=x.formattedLabel,T=x.rawLabel,A=f;if(d&&d[b]){var k=d[b];ge(k)&&k.textStyle&&(A=new Be(k.textStyle,f,a.ecModel))}var F=A.getTextColor()||a.get(["axisLine","lineStyle","color"]),O=A.getShallow("align",!0)||c.textAlign,B=he(A.getShallow("alignMinLabel",!0),O),N=he(A.getShallow("alignMaxLabel",!0),O),z=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||c.textVerticalAlign,q=he(A.getShallow("verticalAlignMinLabel",!0),z),Y=he(A.getShallow("verticalAlignMaxLabel",!0),z),ne=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,ne),y=Math.max(y,ne);var te=new ft({x:0,y:0,rotation:0,silent:ba.isLabelSilent(a),z2:ne,style:pn(A,{text:M,align:S===0?B:S===h.length-1?N:O,verticalAlign:S===0?q:S===h.length-1?Y:z,fill:we(F)?F(o.type==="category"?T:o.type==="value"?b+"":b,S):F})});te.anid="label_"+b;var oe=Ks(te);if(oe.break=x.break,oe.tickValue=b,oe.layoutRotation=c.rotation,Ao({el:te,componentModel:a,itemName:M,formatterParamsExtra:{isTruncated:function(){return te.isTruncated},value:T,tickIndex:S}}),g){var se=ba.makeAxisEventDataBase(a);se.targetType="axisLabel",se.value=T,se.tickIndex=S,x.break&&(se.break={start:x.break.parsedBreak.vmin,end:x.break.parsedBreak.vmax}),o.type==="category"&&(se.dataIndex=b),Ee(te).eventData=se,x.break&&lB(a,i,te,x.break)}p.push(te),l.add(te)});var _=le(p,function(x){return{label:x,priority:Ks(x).break?x.z2+(y-m+1):x.z2,defaultAttr:{ignore:x.ignore}}});Hd(e,_,l,u)}function RT(t){return!!t.labelLayoutList}function Hd(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function oB(t,e,r,n){var a=e.get(["axisLabel","margin"]);I(r,function(i,o){var s=Da(i);if(s){var l=s.label,u=Ks(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ku(Dn,sB),Dn.x=e.axis.dataToCoord(u.tickValue),Dn.y=t.labelOffset+t.labelDirection*a,Dn.rotation=u.layoutRotation,n.add(Dn),Dn.updateTransform(),n.remove(Dn),Dn.decomposeTransform(),Ku(l,Dn),l.markRedraw(),Cf(s,!0),Da(s)}})}var Dn=new Ke,sB=new Ke;function Dg(t){return!!t}function lB(t,e,r,n){r.on("click",function(a){var i={type:qF,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}function Bf(t,e,r){r=r||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(i){var c=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(c,v[1]),v[0])}a.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Xu(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function uB(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function p_(t){var e={xAxisModel:null,yAxisModel:null};return I(e,function(r,n){var a=n.replace(/Model$/,""),i=t.getReferringComponents(a,ir).models[0];e[n]=i}),e}function fB(t,e,r,n,a,i){for(var o=Bf(t,r),s=!1,l=!1,u=0;u<e.length;u++)Rd(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new ba(r,n,o,a)}function hB(t,e,r){var n=Bf(e,r);t.updateCfg(n)}function cB(t,e,r){var n=xo.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,{expandToNicedExtent:!0}),o=a.length-1,s=n.getInterval.call(r),l=_T(t,e),u=l.extent,f=l.fixMin,h=l.fixMax;t.type==="log"&&(u=Fd(t.base,u,!0)),t.setBreaksFromOption(wT(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(t);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var c=n.getInterval.call(t),d=u[0],p=u[1];if(f&&h)c=(p-d)/o;else if(f)for(p=u[0]+c*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)c=Zc(c),p=u[0]+c*o;else if(h)for(d=u[1]-c*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)c=Zc(c),d=u[1]-c*o;else{var g=t.getTicks().length-1;g>o&&(c=Zc(c));var m=c*o;p=Math.ceil(u[1]/c)*c,d=Lt(p-m),d<0&&u[0]>=0?(d=0,p=Lt(m)):p>0&&u[1]<=0&&(p=0,d=-Lt(m))}var y=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;n.setExtent.call(t,d+c*y,p+c*_),n.setInterval.call(t,c),(y||_)&&n.setNiceExtent.call(t,d+c,p-c)}var g_=[[3,1],[0,2]],vB=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Nd,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ce(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;Rd(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(u_(p,d),Rd(p)&&(s=c))}f.length&&(s||(s=f.pop(),u_(s.scale,s.model)),I(f,function(g){cB(g.scale,g.model,s.scale)}
14))}}a(n.x),a(n.y);var i={};I(n.x,function(o){m_(n,"y",o,i)}),I(n.y,function(o){m_(n,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var a=Ch(e,r),i=this._rect=gn(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(FT(o,i),!n){var u=pB(i,s,o,l,r),f=void 0;if(l)f=x_(i.clone(),"axisLabel",null,i,o,u,a);else{var h=gB(e,i,a),v=h.outerBoundsRect,c=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;v&&(f=x_(v,c,d,i,o,u,a))}BT(i,o,Hr.determine,null,f,a)}I(this._coordsList,function(p){p.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}ge(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===r)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",ir).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",ir).models[0],i=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ke(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,I(s.x,function(f,h){I(s.y,function(v,c){var d="x"+h+"y"+c,p=new IF(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function u(f){return function(h,v){if(jc(h,e)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new XF(f,AF(h),[0,0],h.get("type"),c),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=i,d.index=v,i._axesList.push(d),s[f][v]=d,l[f]++}}}},t.prototype._updateScale=function(e,r){I(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(uB(a)){var i=p_(a),o=i.xAxisModel,s=i.yAxisModel;if(!jc(o,r)||!jc(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(a,i){I(kF(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return I(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);ke(r,i)<0&&r.push(i),ke(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){FS({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=p_(a),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=Nd,t})();function jc(t,e){return t.getCoordSysModel()===e}function m_(t,e,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)y_(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&y_(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(h){return h.dim+"_"+h.index}}function y_(t){return t&&t.type!=="category"&&t.type!=="time"&&LF(t)}function dB(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return n-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function FT(t,e){I(t.x,function(r){return __(r,e.x,e.width)}),I(t.y,function(r){return __(r,e.y,e.height)})}function __(t,e,r){var n=[0,r],a=t.inverse?1:0;t.setExtent(n[a],n[1-a]),dB(t,e)}function x_(t,e,r,n,a,i,o){BT(n,a,Hr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=tD(s,function(v){return v>0})==null;return zs(n,s,!0,!0,r),FT(a,n),l;function u(v){I(a[pe[v]],function(c){if(Zs(c.model)){var d=i.ensureRecord(c.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=c.scale.normalize(Ks(m.label).tickValue);y=v===1?1-y:y,f(m.rect,v,y),f(m.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=wo(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,c,d){var p=t[pe[c]]-v[pe[c]],g=v[St[c]]+v[pe[c]]-(t[St[c]]+t[pe[c]]);p=h(p,1-d),g=h(g,d);var m=g_[c][0],y=g_[c][1];s[m]=ot(s[m],p),s[y]=ot(s[y],g)}function h(v,c){return v>0&&!Sr(c)&&c>1e-4&&(v/=c),v}}function pB(t,e,r,n,a){var i=new kT(mB);return I(r,function(o){return I(o,function(s){if(Zs(s.model)){var l=!n;s.axisBuilder=fB(t,e,s.model,a,i,l)}})}),i}function BT(t,e,r,n,a,i){var o=r===Hr.determine;I(e,function(u){return I(u,function(f){Zs(f.model)&&(hB(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[pe[1-u]]=t[St[u]]<=i.refContainer[St[u]]*.5?0:1-u===1?2:1}I(e,function(u,f){return I(u,function(h){Zs(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}
14),o&&h.axisBuilder.build({axisLine:!0}))})})}function gB(t,e,r){var n,a=t.get("outerBoundsMode",!0);a==="same"?n=e.clone():(a==null||a==="auto")&&(n=gn(t.get("outerBounds",!0)||pT,r.refContainer));var i=t.get("outerBoundsContain",!0),o;i==null||i==="auto"||ke(["all","axisLabel"],i)<0?o="all":o=i;var s=[nf(he(t.get("outerBoundsClampWidth",!0),Ef[0]),e.width),nf(he(t.get("outerBoundsClampHeight",!0),Ef[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var mB=function(t,e,r,n,a,i){var o=r.axis.dim==="x"?"y":"x";PT(t,e,r,n,a,i),wo(t.nameLocation)||I(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&ET(s.labelInfoList,s.dirVec,n,a)})};function yB(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _B(r,t,e),r.seriesInvolved&&wB(r,t),r}function _B(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];I(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=js(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(I(s.getAxes(),pt(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&I(d.baseAxes,pt(p,c?"cross":!0,v)),c&&I(d.otherAxes,pt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",a),x=_.get("show");if(!(!x||x==="auto"&&!g&&!Gd(_))){m==null&&(m=_.get("triggerTooltip")),_=g?xB(y,h,a,e,g,m):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),b=js(y.model),M=m||S||y.type==="category",T=t.axesInfo[b]={key:b,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:M,snap:S,useHandle:Gd(_),seriesModels:[],linkGroup:null};u[b]=T,t.seriesInvolved=t.seriesInvolved||M;var A=SB(i,y);if(A!=null){var k=o[A]||(o[A]={axesInfo:{}});k.axesInfo[b]=T,k.mapper=i[A].mapper,T.linkGroup=k}}}})}function xB(t,e,r,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};I(s,function(v){l[v]=Pe(o.get(v))}),l.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var h=l.lineStyle=o.get("crossStyle");h&&Me(u,h.textStyle)}}return t.model.getModel("axisPointer",new Be(l,r,n))}function wB(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||I(t.coordSysAxesInfo[js(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function SB(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(Qc(i[n+"AxisId"],r.id)||Qc(i[n+"AxisIndex"],r.componentIndex)||Qc(i[n+"AxisName"],r.name))return a}}function Qc(t,e){return t==="all"||J(t)&&ke(t,e)>=0||t===e}function bB(t){var e=Ag(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Gd(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Ag(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[js(t)]}function TB(t){var e=Ag(t);return e&&e.axisPointerModel}function Gd(t){return!!t.get(["handle","show"])}function js(t){return t.type+"||"+t.id}var w_={},NT=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this.axisPointerClass&&bB(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=TB(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){w_[r]=n},e.getAxisPointerClass=function(r){return r&&w_[r]},e.type="axis",e})(Jt),Vd=Ue();function CB(t,e,r,n){var a=r.axis;
14if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,h=Vd(t).splitAreaColors,v=ye(),c=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=J(s)?s:[s];for(var d=1;d<u.length;d++){var y=a.toGlobalCoord(u[d].coord),_=void 0,x=void 0,S=void 0,w=void 0;a.isHorizontal()?(_=g,x=l.y,S=y-_,w=l.height,g=_+S):(_=l.x,x=g,S=l.width,w=y-x,g=x+w);var b=u[d-1].tickValue;b!=null&&v.set(b,c),e.add(new Ke({anid:b!=null?"area_"+b:null,shape:{x:_,y:x,width:S,height:w},style:Me({fill:s[c]},m),autoBatch:!0,silent:!0})),c=(c+1)%f}Vd(t).splitAreaColors=v}}}function MB(t){Vd(t).splitAreaColors=null}var DB=["splitArea","splitLine","minorSplitLine","breakArea"],zT=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bt,this.group.add(this._axisGroup),!!Zs(r)){this._axisGroup.add(r.axis.axisBuilder.group),I(DB,function(l){r.get([l,"show"])&&AB[l](this,this._axisGroup,r,r.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||sS(o,this._axisGroup,r),t.prototype.render.call(this,r,n,a,i)}},e.prototype.remove=function(){MB(this)},e.type="cartesianAxis",e})(NT),AB={splitLine:function(t,e,r,n,a){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=J(l)?l:[l];for(var h=n.coordinateSystem.getRect(),v=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=i.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var x=d[y].tickValue;v?(p[0]=_,p[1]=h.y,g[0]=_,g[1]=h.y+h.height):(p[0]=h.x,p[1]=_,g[0]=h.x+h.width,g[1]=_);var S=c++%l.length,w=new Xn({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:Me({stroke:l[S]},m),silent:!0});Ns(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,a){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var h=[],v=[],c=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);
14var m=new Xn({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:c,silent:!0});Ns(m.shape,c.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,a){CB(t,e,r,n)},breakArea:function(t,e,r,n,a){r.axis.scale}},HT=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(zT),LB=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=HT.type,r}return e.type="yAxis",e})(zT),kB=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ke({shape:r.coordinateSystem.getRect(),style:Me({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Jt),S_={offset:0};function PB(t){t.registerComponentView(kB),t.registerComponentModel(QR),t.registerCoordinateSystem("cartesian2d",vB),n_(t,"x",Od,S_),n_(t,"y",Od,S_),t.registerComponentView(HT),t.registerComponentView(LB),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var b_={color:"fill",borderColor:"stroke"},IB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},zn=Ue(),EB=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(r,n){return Qp(null,this)},e.prototype.getDataParams=function(r,n,a){var i=t.prototype.getDataParams.call(this,r,n);return a&&(i.info=zn(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(mn);function OB(t,e){return e=e||[0,0],le(["x","y"],function(r,n){var a=this.getAxis(r),i=e[n],o=t[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function RB(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:He(OB,t)}}}function FB(t,e){return e=e||[0,0],le([0,1],function(r){var n=e[r],a=t[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=e[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function BB(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(r){return t.dataToPoint(r)},size:He(FB,t)}}}function NB(t,e){var r=this.getAxis(),n=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function zB(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:He(NB,t)}}}function HB(t,e){return e=e||[0,0],le(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=e[n],s=t[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function GB(t){var e=t.getRadiusAxis(),r=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=t.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:He(HB,t)}}}function VB(t){var e=t.getRect(),r=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return t.dataToPoint(n,a)},layout:function(n,a){return t.dataToLayout(n,a)}}}}function UB(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r,n){return t.dataToPoint(r,n)},layout:function(r,n){return t.dataToLayout(r,n)}}}}function GT(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||Q(t,"text")))}function VT(t,e,r){var n=t,a,i,o;if(e==="text")o=n;else{o={},Q(n,"text")&&(o.text=n.text),Q(n,"rich")&&(o.rich=n.rich),Q(n,"textFill")&&(o.fill=n.textFill),Q(n,"textStroke")&&(o.stroke=n.textStroke),Q(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Q(n,"fontSize")&&(o.fontSize=n.fontSize),Q(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Q(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Q(n,"textPosition");
14r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Q(n,"textPosition")&&(a.position=n.textPosition),Q(n,"textOffset")&&(a.offset=n.textOffset),Q(n,"textRotation")&&(a.rotation=n.textRotation),Q(n,"textDistance")&&(a.distance=n.textDistance)}return T_(o,t),I(o.rich,function(l){T_(l,l)}),{textConfig:a,textContent:i}}function T_(t,e){e&&(e.font=e.textFont||e.font,Q(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Q(e,"textAlign")&&(t.align=e.textAlign),Q(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Q(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Q(e,"textWidth")&&(t.width=e.textWidth),Q(e,"textHeight")&&(t.height=e.textHeight),Q(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Q(e,"textPadding")&&(t.padding=e.textPadding),Q(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Q(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Q(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Q(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Q(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Q(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Q(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function C_(t,e,r){var n=t;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=t.fill||ve.color.neutral99;M_(n,e);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||ve.color.neutral00,!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=t.fill||r.outsideFill||ve.color.neutral00),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,I(e.rich,function(s){M_(s,s)}),n}function M_(t,e){e&&(Q(e,"fill")&&(t.textFill=e.fill),Q(e,"stroke")&&(t.textStroke=e.fill),Q(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Q(e,"font")&&(t.font=e.font),Q(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Q(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Q(e,"fontSize")&&(t.fontSize=e.fontSize),Q(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Q(e,"align")&&(t.textAlign=e.align),Q(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Q(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Q(e,"width")&&(t.textWidth=e.width),Q(e,"height")&&(t.textHeight=e.height),Q(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Q(e,"padding")&&(t.textPadding=e.padding),Q(e,"borderColor")&&(t.textBorderColor=e.borderColor),Q(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Q(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Q(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Q(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Q(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Q(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Q(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Q(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Q(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Q(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var UT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},D_=Ce(UT);$n(vn,function(t,e){return t[e]=1,t},{});vn.join(", ");var Nf=["","style","shape","extra"],So=Ue();function Lg(t,e,r,n,a){var i=t+"Animation",o=Do(t,n,a)||{},s=So(e).userDuring;return o.duration>0&&(o.during=s?He(qB,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),K(o,r[i]),o}function zu(t,e,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=So(t),u=e.style;l.userDuring=e.during;var f={},h={};if(KB(t,e,h),t.type==="compound")for(var v=t.shape.paths,c=e.shape.paths,d=0;d<c.length;d++){var p=c[d];Jc("shape",p,v[d])}else Jc("shape",e,h),Jc("extra",e,h);if(!i&&s&&(ZB(t,e,f),A_("shape",t,e,f),A_("extra",t,e,f),jB(t,e,u,f)),h.style=u,WB(t,h,o),YB(t,e),s)if(i){var g={};I(Nf,function(y){var _=y?e[y]:e;_&&_.enterFrom&&(y&&(g[y]=g[y]||{}),K(y?g[y]:g,_.enterFrom))});var m=Lg("enter",t,e,r,a);m.duration>0&&t.animateFrom(g,m)}else $B(t,e,a||0,r,f);WT(t,e),u?t.dirty():t.markRedraw()}function WT(t,e){for(var r=So(t).leaveToProps,n=0;n<Nf.length;n++){var a=Nf[n],i=a?e[a]:e;i&&i.leaveTo&&(r||(r=So(t).leaveToProps={}),a&&(r[a]=r[a]||{}),K(a?r[a]:r,i.leaveTo))}}function Ah(t,e,r,n){if(t){var a=t.parent,i=So(t).leaveToProps;if(i){var o=Lg("update",t,e,r,0);o.done=function(){a&&a.remove(t)},t.animateTo(i,o)}else a&&a.remove(t)}}function xi(t){return t==="all"}function WB(t,e,r){var n=e.style;
14if(!t.isGroup&&n){if(r){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}function $B(t,e,r,n,a){if(a){var i=Lg("update",t,e,n,r);i.duration>0&&t.animateFrom(a,i)}}function YB(t,e){Q(e,"silent")&&(t.silent=e.silent),Q(e,"ignore")&&(t.ignore=e.ignore),t instanceof Qn&&Q(e,"invisible")&&(t.invisible=e.invisible),t instanceof Ie&&Q(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var en={},XB={setTransform:function(t,e){return en.el[t]=e,this},getTransform:function(t){return en.el[t]},setShape:function(t,e){var r=en.el,n=r.shape||(r.shape={});return n[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=en.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=en.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=en.el.style;if(e)return e[t]},setExtra:function(t,e){var r=en.el.extra||(en.el.extra={});return r[t]=e,this},getExtra:function(t){var e=en.el.extra;if(e)return e[t]}};function qB(){var t=this,e=t.el;if(e){var r=So(e).userDuring,n=t.userDuring;if(r!==n){t.el=t.userDuring=null;return}en.el=e,n(XB)}}function A_(t,e,r,n){var a=r[t];if(a){var i=e[t],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[t]={}),xi(l))K(o,i);else for(var u=Qe(l),f=0;f<u.length;f++){var h=u[f],v=i[h];o[h]=v}else if(xi(s)||ke(s,t)>=0){!o&&(o=n[t]={});for(var c=Ce(i),f=0;f<c.length;f++){var h=c[f],v=i[h];QB(a[h],v)&&(o[h]=v)}}}}}function Jc(t,e,r){var n=e[t];if(n)for(var a=r[t]={},i=Ce(n),o=0;o<i.length;o++){var s=i[o];a[s]=ys(n[s])}}function ZB(t,e,r){for(var n=e.transition,a=xi(n)?vn:Qe(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];r[o]=s}}}function KB(t,e,r){for(var n=0;n<D_.length;n++){var a=D_[n],i=UT[a],o=e[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<vn.length;n++){var s=vn[n];e[s]!=null&&(r[s]=e[s])}}function jB(t,e,r,n){if(r){var a=t.style,i;if(a){var o=r.transition,s=e.transition;if(o&&!xi(o)){var l=Qe(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],h=a[f];i[f]=h}}else if(t.getAnimationStyleProps&&(xi(s)||xi(o)||ke(s,"style")>=0)){var v=t.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=n.style={});for(var d=Ce(r),u=0;u<d.length;u++){var f=d[u];if(c[f]){var h=a[f];i[f]=h}}}}}}}function QB(t,e){return Wt(t)?t!==e:t!=null&&isFinite(t)}var $T=Ue(),JB=["percent","easing","shape","style","extra"];function YT(t){t.stopAnimation("keyframe"),t.attr($T(t))}function zf(t,e,r){if(!(!r.isAnimationEnabled()||!e)){if(J(e)){I(e,function(s){zf(t,s,r)});return}var n=e.keyframes,a=e.duration;if(r&&a==null){var i=Do("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=$T(t);I(Nf,function(s){if(!(s&&!t[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),I(n,function(u){var f=t.animators,h=s?u[s]:u;if(h){var v=Ce(h);if(s||(v=qe(v,function(p){return ke(JB,p)<0})),!!v.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==l&&f[c].targetName===l.targetName&&f[c].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;I(v,function(p){d[p]=((s?t[s]:t)||{})[p]}),l.whenWithKeys(a*u.percent,h,v,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Hn="emphasis",ma="normal",kg="blur",Pg="select",Aa=[ma,Hn,kg,Pg],ev={normal:["itemStyle"],emphasis:[Hn,"itemStyle"],blur:[kg,"itemStyle"],select:[Pg,"itemStyle"]},tv={normal:["label"],emphasis:[Hn,"label"],blur:[kg,"label"],select:[Pg,"label"]},eN=["x","y"],tN="e\0\0",fr={normal:{},emphasis:{},blur:{},select:{}},rN={cartesian2d:RB,geo:BB,single:zB,polar:GB,calendar:VB,matrix:UB};function Ud(t){return t instanceof Ie}function Wd(t){return t instanceof Qn}function nN(t,e){e.copyTransform(t),Wd(e)&&Wd(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,Ud(e)&&Ud(t)&&e.setShape(t.shape))}var aN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=L_(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(h){rv(a,null,h,u(h,i),r,l,s)}).remove(function(h){var v=o.getItemGraphicEl(h);v&&Ah(v,zn(v).option,r)}).update(function(h,v){var c=o.getItemGraphicEl(v);rv(a,c,h,u(h,i),r,l,s)}).execute();var f=r.get("clip",!0)?cb(r.coordinateSystem,!1,r):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=L_(n,s,a,i),u=this._progressiveEls=[];function f(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var h=r.start;h<r.end;h++){var v=rv(null,null,h,l(h,o),n,this.group,s);v&&(v.traverse(f),u.push(v))}},e.prototype.eachRendered=function(r){ul(this._progressiveEls||this.group,r)},e.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e})(Nn);function Ig(t){var e=t.type,r;if(e==="path"){var n=t.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=ZT(n);r=Bs(i,null,a,n.layout||"center"),zn(r).customPathData=i}else if(e==="image")r=new Tr({}),zn(r).customImagePath=t.style.image;else if(e==="text")r=new ft({});else if(e==="group")r=new bt;else if(e==="compoundPath"){var n=t.shape;if(!n||!n.paths){var o="";At(o)}var s=le(n.paths,function(f){if(f.type==="path")return Bs(f.shape.pathData,f,null);var h=vf(f.type);if(!h){var v="";At(v)}return new h});r=new Gp({shape:{paths:s}})}else{var l=vf(e);if(!l){var o="";At(o)}r=new l}return zn(r).customGraphicType=e,r.name=t.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function Eg(t,e,r,n,a,i,o){YT(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=eN);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;Q(u,"textFill")&&(u.fill=u.textFill),Q(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,h=Ud(e)?l.decal:null;t&&h&&(h.dirty=!0,f=kf(h,t)),l.__decalPattern=f}if(Wd(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}zu(e,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),zf(e,n.keyframeAnimation,i)}function XT(t,e,r,n,a){var i=e.isGroup?null:e,o=a&&a[t].cfg;if(i){var s=i.ensureState(t);if(n===!1){var l=i.getState(t);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Gw(i)}}function iN(t,e,r){if(!t.isGroup){var n=t,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Aa.length;s++)oN(n,e,Aa[s])}}function oN(t,e,r){var n=r===ma,a=n?e:Hf(e,r),i=a?a.z2:null,o;i!=null&&(o=n?t:t.ensureState(r),o.z2=i||0)}function L_(t,e,r,n){var a=t.get("renderItem");
14if(typeof a=="string"){var i=DR(a);i&&(a=i)}var o=t.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):rN[o.type](o));for(var l=Me({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:b,ordinalRawValue:w,styleEmphasis:M,visual:k,barLayout:F,currentSeriesIndices:O,font:B},s.api||{}),u={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:sN(t.getData()),itemPayload:t.get("itemPayload")||{}},f,h,v={},c={},d={},p={},g=0;g<Aa.length;g++){var m=Aa[g];d[m]=t.getModel(ev[m]),p[m]=t.getModel(tv[m])}function y(N){return N===f?h||(h=e.getItemModel(N)):e.getItemModel(N)}function _(N,z){return e.hasItemOption?N===f?v[z]||(v[z]=y(N).getModel(ev[z])):y(N).getModel(ev[z]):d[z]}function x(N,z){return e.hasItemOption?N===f?c[z]||(c[z]=y(N).getModel(tv[z])):y(N).getModel(tv[z]):p[z]}return function(N,z){return f=N,h=null,v={},c={},a&&a(Me({dataIndexInside:N,dataIndex:e.getRawIndex(N),actionType:z?z.type:null},u),l)};function S(N,z){return z==null&&(z=f),e.getStore().get(e.getDimensionIndex(N||0),z)}function w(N,z){z==null&&(z=f),N=N||0;var q=e.getDimensionInfo(N);if(!q){var Y=e.getDimensionIndex(N);return Y>=0?e.getStore().get(Y,z):void 0}var ne=e.get(q.name,z),te=q&&q.ordinalMeta;return te?te.categories[ne]:ne}function b(N,z){z==null&&(z=f);var q=e.getItemVisual(z,"style"),Y=q&&q.fill,ne=q&&q.opacity,te=_(z,ma).getItemStyle();Y!=null&&(te.fill=Y),ne!=null&&(te.opacity=ne);var oe={inheritColor:fe(Y)?Y:ve.color.neutral99},se=x(z,ma),Se=pn(se,null,oe,!1,!0);Se.text=se.getShallow("show")?he(t.getFormattedLabel(z,ma),xf(e,z)):null;var Ne=df(se,oe,!1);return A(N,te),te=C_(te,Se,Ne),N&&T(te,N),te.legacy=!0,te}function M(N,z){z==null&&(z=f);var q=_(z,Hn).getItemStyle(),Y=x(z,Hn),ne=pn(Y,null,null,!0,!0);ne.text=Y.getShallow("show")?di(t.getFormattedLabel(z,Hn),t.getFormattedLabel(z,ma),xf(e,z)):null;var te=df(Y,null,!0);return A(N,q),q=C_(q,ne,te),N&&T(q,N),q.legacy=!0,q}function T(N,z){for(var q in z)Q(z,q)&&(N[q]=z[q])}function A(N,z){N&&(N.textFill&&(z.textFill=N.textFill),N.textPosition&&(z.textPosition=N.textPosition))}function k(N,z){if(z==null&&(z=f),Q(b_,N)){var q=e.getItemVisual(z,"style");return q?q[b_[N]]:null}if(Q(IB,N))return e.getItemVisual(z,N)}function F(N){if(o.type==="cartesian2d"){var z=o.getBaseAxis();return nE(Me({axis:z},N))}}function O(){return r.getCurrentSeriesIndices()}function B(N){return vS(N,r)}}function sN(t){var e={};return I(t.dimensions,function(r){var n=t.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=t.getDimensionIndex(r)}}),e}function rv(t,e,r,n,a,i,o){if(!n){i.remove(e);return}var s=Og(t,e,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Fp(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Og(t,e,r,n,a,i){var o=-1,s=e;e&&qT(e,n,a)&&(o=ke(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Ig(n),s&&nN(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),fr.normal.cfg=fr.normal.conOpt=fr.emphasis.cfg=fr.emphasis.conOpt=fr.blur.cfg=fr.blur.conOpt=fr.select.cfg=fr.select.conOpt=null,fr.isLegacy=!1,uN(u,r,n,a,l,fr),lN(u,r,n,a,l),Eg(t,u,r,n,fr,a,l),Q(n,"info")&&(zn(u).info=n.info);for(var f=0;f<Aa.length;f++){var h=Aa[f];if(h!==ma){var v=Hf(n,h),c=Rg(n,v,h);XT(h,u,v,c,fr)}}return iN(u,n,a),n.type==="group"&&fN(t,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function qT(t,e,r){var n=zn(t),a=e.type,i=e.shape,o=e.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&dN(i)&&ZT(i)!==n.customPathData||a==="image"&&Q(o,"image")&&o.image!==n.customImagePath}function lN(t,e,r,n,a){var i=r.clipPath;if(i===!1)t&&t.getClipPath()&&t.removeClipPath();else if(i){var o=t.getClipPath();o&&qT(o,i,n)&&(o=null),o||(o=Ig(i),t.setClipPath(o)),Eg(null,o,e,i,null,n,a)}}function uN(t,e,r,n,a,i){if(!(t.isGroup||t.type==="compoundPath")){k_(r,null,i),k_(r,Hn,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=t.getTextContent();if(o===!1)f&&t.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"}
14,f?f.clearStates():(f=Ig(o),t.setTextContent(f)),Eg(null,f,e,o,null,n,a);for(var h=o&&o.style,v=0;v<Aa.length;v++){var c=Aa[v];if(c!==ma){var d=i[c].conOpt;XT(c,f,d,Rg(o,d,c),null)}}h?f.dirty():f.markRedraw()}}}}function k_(t,e,r){var n=e?Hf(t,e):t,a=e?Rg(t,n,Hn):t.style,i=t.type,o=n?n.textConfig:null,s=t.textContent,l=s?e?Hf(s,e):s:null;if(a&&(r.isLegacy||GT(a,i,!!o,!!l))){r.isLegacy=!0;var u=VT(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var h=e?r[e]:r.normal;h.cfg=o,h.conOpt=l}function Hf(t,e){return e?t?t[e]:null:t}function Rg(t,e,r){var n=e&&e.style;return n==null&&r===Hn&&t&&(n=t.styleEmphasis),n}function fN(t,e,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){cN({api:t,oldChildren:e.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var h=i[f],v=e.childAt(f);h?(h.ignore==null&&(h.ignore=!1),Og(t,v,r,h,a,e)):v.ignore=!0}for(var c=e.childCount()-1;c>=f;c--){var d=e.childAt(c);hN(e,d,a)}}}function hN(t,e,r){e&&Ah(e,zn(t).option,r)}function cN(t){new pf(t.oldChildren,t.newChildren,P_,P_,t).add(I_).update(I_).remove(vN).execute()}function P_(t,e){var r=t&&t.name;return r??tN+e}function I_(t,e){var r=this.context,n=t!=null?r.newChildren[t]:null,a=e!=null?r.oldChildren[e]:null;Og(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function vN(t){var e=this.context,r=e.oldChildren[t];r&&Ah(r,zn(r).option,e.seriesModel)}function ZT(t){return t&&(t.pathData||t.d)}function dN(t){return t&&(Q(t,"pathData")||Q(t,"d"))}function pN(t){t.registerChartView(aN),t.registerSeriesModel(EB)}var ui=Ue(),E_=Pe,nv=He,gN=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new bt,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=pt(O_,r,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}F_(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),a=e.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Ag(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=ui(e).pointerEl=new Dk[i.type](E_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=ui(e).labelEl=new ft(E_(r.label));e.add(i),R_(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=ui(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=ui(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),R_(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Wp(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Db(u.event)},onmousedown:nv(this._onHandleDragMove,this,0,0),drift:nv(this._onHandleDragMove,this),ondragend:nv(this._onHandleDragEnd,this)}),n.add(a)),F_(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");J(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,xb(this,"_doDispat
14chAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){O_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,av(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(av(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(av(a)),ui(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),_d(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function O_(t,e,r,n){KT(ui(r).lastProp,n)||(ui(r).lastProp=n,e?$t(r,n,t):(r.stopAnimation(),r.attr(n)))}function KT(t,e){if(ge(t)&&ge(e)){var r=!0;return I(e,function(n,a){r=r&&KT(t[a],n)}),!!r}else return t===e}function R_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function av(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function F_(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function mN(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function yN(t,e,r,n,a){var i=r.get("value"),o=jT(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Th(s.get("padding")||0),u=s.getFont(),f=Qx(o,u),h=a.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=a.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=a.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),_N(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:pn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function _N(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function jT(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:Rf(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};I(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),fe(o)?i=o.replace("{value}",i):we(o)&&(i=o(s))}return i}function QT(t,e,r){var n=Bn();return bp(n,n,r.rotation),Pv(n,n,r.position),Up([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function xN(t,e,r,n,a,i){var o=ba.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),yN(e,n,a,i,{position:QT(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function wN(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function SN(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function OH(t,e,r,n,a,i){return{cx:t,cy:e,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var bN=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=B_(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=mN(i),c=TN[u](s,h,f);c.style=v,r.graphicKey=c.type,r.pointer=c}var d=Bf(l.getRect(),a);xN(n,r,d,a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=Bf(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=QT(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=B_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:c,tooltipOption:d[f]}},e})(gN);function B_(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var TN={line:function(t,e,r){var n=wN([e,r[0]],[e,r[1]],N_(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:SN([e-n/2,r[0]],[n,a],N_(t))}}};function N_(t){return t.dim==="x"?0:1}var CN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:ve.color.border,width:1,type:"dashed"},shadowStyle:{color:ve.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ve.color.neutral00,padding:[5,7,5,7],backgroundColor:ve.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:ve.color.accent40,throttle:40}},e})(Fe),Rn=Ue(),MN=I;function JT(t,e,r){if(!be.node){var n=e.getZr();Rn(n).records||(Rn(n).records={}),DN(n,e);
14var a=Rn(n).records[t]||(Rn(n).records[t]={});a.handler=r}}function DN(t,e){if(Rn(t).initialized)return;Rn(t).initialized=!0,r("click",pt(z_,"click")),r("mousemove",pt(z_,"mousemove")),r("globalout",LN);function r(n,a){t.on(n,function(i){var o=kN(e);MN(Rn(t).records,function(s){s&&a(s,i,o.dispatchAction)}),AN(o.pendings,e)})}}function AN(t,e){var r=t.showTip.length,n=t.hideTip.length,a;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function LN(t,e,r){t.handler("leave",null,r)}function z_(t,e,r,n){e.handler(t,r,n)}function kN(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function $d(t,e){if(!be.node){var r=e.getZr(),n=(Rn(r).records||{})[t];n&&(Rn(r).records[t]=null)}}var PN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";JT("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){$d("axisPointer",n)},e.prototype.dispose=function(r,n){$d("axisPointer",n)},e.type="axisPointer",e})(Jt);function eC(t,e){var r=[],n=t.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=sl(i,t);if(o==null||o<0||J(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=i.mapDimension(v),p=[];p[c]=i.get(d,o),p[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(le(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var H_=Ue();function IN(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||He(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Hu(a)&&(a=eC({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Hu(a),u=i.axesInfo,f=s.axesInfo,h=n==="leave"||Hu(a),v={},c={},d={list:[],map:{}},p={showPointer:pt(ON,c),showTooltip:pt(RN,d)};I(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);I(s.coordSysAxesInfo[y],function(x,S){var w=x.axis,b=zN(u,x);if(!h&&_&&(!u||b)){var M=b&&b.value;M==null&&!l&&(M=w.pointToData(a)),M!=null&&G_(x,M,p,!1,v)}})});var g={};return I(f,function(m,y){var _=m.linkGroup;_&&!c[y]&&I(_.axesInfo,function(x,S){var w=c[S];if(x!==m&&w){var b=w.value;_.mapper&&(b=m.axis.scale.parse(_.mapper(b,V_(x),V_(m)))),g[m.key]=b}})}),I(g,function(m,y){G_(f[y],m,p,!0,v)}),FN(c,f,v),BN(d,a,t,o),NN(f,o,r),v}}function G_(t,e,r,n,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=EN(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!n&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function EN(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return I(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,t,r);v=c.dataIndices,h=c.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=t-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=h,i.length=0),I(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}
14))}}),{payloadBatch:i,snapToValue:a}}function ON(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function RN(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=js(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function FN(t,e,r){var n=r.axesInfo=[];I(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function BN(t,e,r,n){if(Hu(e)||!t.list.length){n({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function NN(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=H_(n)[a]||{},o=H_(n)[a]={};I(t,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&I(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];I(i,function(u,f){!o[f]&&l.push(u)}),I(o,function(u,f){!i[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function zN(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function V_(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Hu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function tC(t){NT.registerAxisPointerClass("CartesianAxisPointer",bN),t.registerComponentModel(CN),t.registerComponentView(PN),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!J(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=yB(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},IN)}function HN(t){Zn(PB),Zn(tC)}var In={level:1,leaf:2,nonLeaf:3},Gn={none:0,all:1,body:2,corner:3};function Yd(t,e,r){var n=e[pe[r]].getCell(t);return!n&&$e(t)&&t<0&&(n=e[pe[1-r]].getUnitLayoutInfo(r,Math.round(t))),n}function rC(t){var e=t||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function nC(t,e,r,n,a){U_(t[0],e,a,r,n,0),U_(t[1],e,a,r,n,1)}function U_(t,e,r,n,a,i){t[0]=1/0,t[1]=-1/0;var o=n[i],s=J(o)?o:[o],l=s.length,u=!!r;if(l>=1?(W_(t,e,s,u,a,i,0),l>1&&W_(t,e,s,u,a,i,l-1)):t[0]=t[1]=NaN,u){var f=-a[pe[1-i]].getLocatorCount(i),h=a[pe[i]].getLocatorCount(i)-1;r===Gn.body?f=ot(0,f):r===Gn.corner&&(h=sr(-1,h)),h<f&&(f=h=NaN),Sr(t[0])&&(t[0]=f),Sr(t[1])&&(t[1]=h),t[0]=ot(sr(t[0],h),f),t[1]=ot(sr(t[1],h),f)}}function W_(t,e,r,n,a,i,o){var s=Yd(r[o],a,i);if(!s){t[0]=t[1]=NaN;return}var l=s.id[pe[i]],u=l,f=WN(s);f&&(u+=f.span[pe[i]]-1),t[0]=sr(t[0],l,u),t[1]=ot(t[1],l,u)}function ou(t,e){return Sr(t[e][0])||Sr(t[e][1])}function $_(t,e,r,n){e=e||GN;for(var a=0;a<n;a++)e[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=r[a];!e[a]&&o.cellMergeOwner&&VN(t,o.locatorRange)&&(e[a]=!0,i=!0)}if(!i)break}}var GN=[];function VN(t,e){return!Y_(t[0],e[0])||!Y_(t[1],e[1])?!1:(t[0][0]=sr(t[0][0],e[0][0]),t[0][1]=ot(t[0][1],e[0][1]),t[1][0]=sr(t[1][0],e[1][0]),t[1][1]=ot(t[1][1],e[1][1]),!0)}function Y_(t,e){return t[1]>=e[0]&&t[0]<=e[1]}function X_(t,e){t.id.set(e[0][0],e[1][0]),t.span.set(e[0][1]-t.
14id.x+1,e[1][1]-t.id.y+1)}function UN(t,e){t[0][0]=e[0][0],t[0][1]=e[0][1],t[1][0]=e[1][0],t[1][1]=e[1][1]}function q_(t,e,r,n){var a=Yd(e[n][0],r,n),i=Yd(e[n][1],r,n);t[pe[n]]=t[St[n]]=NaN,a&&i&&(t[pe[n]]=a.xy,t[St[n]]=i.xy+i.wh-a.xy)}function Qo(t,e,r,n){return t[pe[e]]=r,t[pe[1-e]]=n,t}function WN(t){return t&&(t.type===In.leaf||t.type===In.nonLeaf)?t:null}function Gf(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var Z_=(function(){function t(e,r){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=r,this._uniqueValueGen=$N(e);var n=r.get("data",!0);n!=null&&!J(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return t.prototype._initByDimModelData=function(e){var r=this,n=r._cells,a=r._levels,i=[],o=0;r._leavesCount=s(e,0,0),l();return;function s(u,f,h){var v=0;return u&&I(u,function(c,d){var p;fe(c)?p={value:c}:ge(c)?(p=c,c.value!=null&&!fe(c.value)&&(p={value:null})):p={value:null};var g={type:In.nonLeaf,ordinal:NaN,level:h,firstLeafLocator:f,id:new de,span:Qo(new de,r.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:r,rect:Gf()};o++,(i[f]||(i[f]=[])).push(g),a[h]||(a[h]={type:In.level,xy:NaN,wh:NaN,option:null,id:new de,dim:r});var m=s(p.children,f,h+1),y=Math.max(1,m);g.span[pe[r.dimIdx]]=y,v+=y,f+=y}),v}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var h=i[f].pop();if(h){h.ordinal=u.length;var v=h.option.value;u.push(v),n.push(h),r._uniqueValueGen.calcDupBase(v)}}r._uniqueValueGen.ensureValueUnique(u,n);var c=r._ordinalMeta=new Xs({categories:u,needCollect:!1,deduplication:!1});r._scale=new Of({ordinalMeta:c});for(var d=0;d<r._leavesCount;d++){var p=r._cells[d];p.type=In.leaf,p.span[pe[1-r.dimIdx]]=r._levels.length-p.level}r._initCellsId(),r._initLevelIdOptions()}},t.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:In.level,xy:NaN,wh:NaN,option:null,id:new de,dim:e}],e._initLevelIdOptions();var r=e._ordinalMeta=new Xs({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=e._cells[a]={type:In.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new de,span:Qo(new de,e.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:e,rect:Gf()};e._leavesCount++,e._setCellId(i)}});e._scale=new Of({ordinalMeta:r})},t.prototype._setCellId=function(e){var r=this._levels.length,n=this.dimIdx;Qo(e.id,n,e.firstLeafLocator,e.level-r)},t.prototype._initCellsId=function(){var e=this._levels.length,r=this.dimIdx;I(this._cells,function(n){Qo(n.id,r,n.firstLeafLocator,n.level-e)})},t.prototype._initLevelIdOptions=function(){var e=this._levels.length,r=this.dimIdx,n=this._model.get("levels",!0);n=J(n)?n:[],I(this._levels,function(a,i){Qo(a.id,r,0,i-e),a.option=n[i]})},t.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},t.prototype.resetLayoutIterator=function(e,r,n,a){if(e=e||new wa,r===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,e.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,e.reset(this._levels,o,o+a)}return e},t.prototype.resetCellIterator=function(e){return(e||new wa).reset(this._cells,0)},t.prototype.resetLevelIterator=function(e){return(e||new wa).reset(this._levels,0)},t.prototype.getLayout=function(e,r,n){var a=this.getUnitLayoutInfo(r,n);e[pe[r]]=a?a.xy:NaN,e[St[r]]=a?a.wh:NaN},t.prototype.getUnitLayoutInfo=function(e,r){return e===this.dimIdx?r<this._leavesCount?this._cells[r]:void 0:this._levels[r+this._levels.length]},t.prototype.getCell=function(e){var r=this._scale.parse(e);return Sr(r)?void 0:this._cells[r]},t.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t})();function $N(t){var e=t.toUpperCase(),r=new RegExp("^"+e+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(r))&&(n=ot(n,+l[1]+1))}function i(){return""+e+n++}function o(s,l){for(var u=ye(),f=0;f<s.length;f++){var h=s[f];(h==null||u.get(h)!=null)&&(s[f]=h=i(),l[f].option=Me({value:h},l[f].option)),u.set(h,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var K_=(function(){function t(e,r,n){this._model=r,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return t.prototype._ensureCellMap=function(){var e=this,r=e._cellMap;return r||(r=e._cellMap=ye(),n()),r;function n(){var i=[],o=e._model.getShallow("data");
14o&&!J(o)&&(o=null),I(o,function(d,p){if(!(!ge(d)||!J(d.coord))){var g=rC([]),m=null;if(nC(g,m,d.coord,e._dims,d.coordClamp?Gn[e._kind]:Gn.none),!(ou(g,0)||ou(g,1))){var y=d&&d.mergeCells,_={id:new de,span:new de,locatorRange:g,option:d,cellMergeOwner:y};X_(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;$_(f,s,i,l);for(var h=0;h<l;h++)s[h]&&(i[h].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var v=K({},u.option);v.coord=null;var c={id:new de,span:new de,locatorRange:f,option:v,cellMergeOwner:!0};X_(c,f),i.push(c)}}}I(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=Gf(),e._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var m=0;m<d.span.x;m++){var y=a(d.id.x+m,d.id.y+g);y.option=d.option,d.cellMergeOwner&&(y.inSpanOf=p)}})}function a(i,o){var s=j_(i,o),l=r.get(s);return l||(l=r.set(s,{id:new de(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},t.prototype.getCell=function(e){return this._ensureCellMap().get(j_(e[0],e[1]))},t.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},t.prototype.expandRangeByCellMerge=function(e){if(!ou(e,0)&&!ou(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){iv[0]=e[0][0],iv[1]=e[1][0];var r=this.getCell(iv),n=r&&r.inSpanOf;if(n){UN(e,n.locatorRange);return}}var a=this._cellMergeOwnerList;$_(e,null,a,a.length)},t})(),iv=[];function j_(t,e){return t+"|"+e}var Fg={show:!0,color:ve.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function Bg(t){return{color:"none",borderWidth:1,borderColor:t?"none":ve.color.borderTint}}var Q_={show:!0,label:Fg,itemStyle:Bg(!1),silent:void 0,dividerLineStyle:{width:1,color:ve.color.border}},YN={label:Fg,itemStyle:Bg(!1),silent:void 0},XN={label:Fg,itemStyle:Bg(!0),silent:void 0},qN={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:Q_,y:Q_,body:YN,corner:XN,backgroundStyle:{color:"none",borderColor:ve.color.axisLine,borderWidth:1}},ZN=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this._dimModels={x:new J_(this.get("x",!0)||{}),y:new J_(this.get("y",!0)||{})};r.x.option.type=r.y.option.type="category";var n=r.x.dim=new Z_("x",r.x),a=r.y.dim=new Z_("y",r.y),i={x:n,y:a};this._body=new K_("body",new Be(this.getShallow("body")),i),this._corner=new K_("corner",new Be(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(r){return this._dimModels[r]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=qN,e})(Fe),J_=(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(Be),su=Math.round,KN=0,jN=99,QN={normal:25,special:100},JN={normal:50,special:125},e5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n){this.group.removeAll();var a=this.group,i=r.coordinateSystem,o=i.getRect(),s=r.getDimensionModel("x"),l=r.getDimensionModel("y"),u=s.dim,f=l.dim;t5(a,r,n),r5(a,r,u,f,n);var h=r.getShallow("borderZ2",!0),v=he(h,jN),c=v-1,d=r.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=r.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=Xd(o.clone(),d,KN),m=Xd(o.clone(),p,v);g.silent=!0,m.silent=!0,a.add(g),a.add(m);var y=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);y&&_&&(u.shouldShow()&&a.add(e1({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),c)),f.shouldShow()&&a.add(e1({x1:y.xy,y1:o.y,x2:y.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),c)))},e.type="matrix",e})(Jt);function t5(t,e,r){n(0),n(1);function n(a){var i=e.getDimensionModel(pe[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),f=[],h=o.resetCellIterator();h.next();){var v=h.item,c={};xe.copy(c,v.rect),nw(f,v.id.x,v.id.y),aC(f,e,t,r,v.option,s,l,i,c,v.option.value,JN,u)}}}function r5(t,e,r,n,a){i("body",e.getBody(),r,n),r.shouldShow()&&n.shouldShow()&&i("corner",e.getCorner(),n,r);function i(o,s,l,u){var f=new Be(e.getShallow(o,!0)),h=f.getModel("itemStyle"),v=f.getModel("label"),c=new wa,d=new wa,p=[],g=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(c,0);c.next();){var m=c.item,y=d.item;nw(p,m.id.x,y.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var x={};_&&_.span?xe.copy(x,_.spanRect):(m.dim.getLayout(x,0,p[0]),y.dim.getLayout(x,1,p[1]));var S=_?_.option:null;aC(p,e,t,a,S,h,v,f,x,S?S.value:null,QN,g)}}}}function aC(t,e,r,n,a,i,o,s,l,u,f,h){var v;lu.option=a?a.itemStyle:null,lu.parentModel=i,Wi.option=a,Wi.parentModel=s;var c=he(Wi.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),d=h&&h.show,p=Xd(l,lu.getItemStyle(),c);r.add(p);var g=Wi.get("cursor");g!=null&&p.attr("cursor",g);var m;if(u!=null){var y=u+"";
14if($i.option=a?a.label:null,$i.parentModel=o,$i.ecModel=n,_h(p,{normal:$i},{defaultText:y,autoOverflowArea:!0,layoutRect:Pe(p.shape)}),m=p.getTextContent(),m){m.z2=c+1;var _=m.style;if(_&&_.overflow&&_.overflow!=="none"&&_.lineOverflow){var x={};xe.copy(x,l),zs(x,(((v=p.style)===null||v===void 0?void 0:v.lineWidth)||0)/2,!0,!0),p.updateInnerText(),m.getLocalTransform(uu),Si(uu,uu),xe.applyTransform(x,x,uu),m.setClipPath(new Ke({shape:x}))}}Ao({el:p,componentModel:e,itemName:y,itemTooltipOption:h,formatterParamsExtra:{xyLocator:t.slice()}})}if(m){var S=$i.get("silent");S==null&&(S=!d),m.silent=S,m.ignoreHostSilent=!0}var w=Wi.get("silent");w==null&&(w=!p.style||p.style.fill==="none"||!p.style.fill),p.silent=w,sc(Wi),sc(lu),sc($i)}var Wi=new Be,lu=new Be,$i=new Be,uu=[];function Xd(t,e,r){var n=e.lineWidth;if(n){var a=t.x+t.width,i=t.y+t.height;t.x=or(t.x,n,!0),t.y=or(t.y,n,!0),t.width=or(a,n,!0)-t.x,t.height=or(i,n,!0)-t.y}return new Ke({shape:t,style:e,z2:r})}function e1(t,e,r){var n=e.lineWidth;return n&&(su(t.x1*2)===su(t.x2*2)&&(t.x1=t.x2=or(t.x1,n,!0)),su(t.y1*2)===su(t.y2*2)&&(t.y1=t.y2=or(t.y1,n,!0))),new Xn({shape:t,style:e,silent:!0,z2:r})}var n5=(function(){function t(e,r,n){this.dimensions=t.dimensions,this.type="matrix",this._model=e;var a=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(e,n)}return t.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},t.create=function(e,r){var n=[];return e.eachComponent("matrix",function(a){var i=new t(a,e,r);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){FS({targetModel:i,coordSysType:"matrix",coordSysProvider:pP})}),n},t.prototype.getRect=function(){return this._rect},t.prototype._resize=function(e,r){var n=this._dims,a=this._dimModels,i=this._rect=gn(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()});t1(a,n,i,0),t1(a,n,i,1),r1(0,n),r1(1,n),n1(this._model.getBody(),n),n1(this._model.getCorner(),n)},t.prototype.dataToPoint=function(e,r,n){return n=n||[],this.dataToLayout(e,r,Jo),n[0]=Jo.rect.x+Jo.rect.width/2,n[1]=Jo.rect.y+Jo.rect.height/2,n},t.prototype.dataToLayout=function(e,r,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=rC(n.matrixXYLocatorRange);return J(e)&&(nC(o,null,e,a,he(r&&r.clamp,Gn.none)),(!r||!r.ignoreMergeCells)&&((!r||r.clamp!==Gn.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!r||r.clamp!==Gn.body)&&this._model.getCorner().expandRangeByCellMerge(o)),q_(i,o,a,0),q_(i,o,a,1)),n},t.prototype.pointToData=function(e,r,n){var a=this._dims;return a1(jr,0,a,e,r&&r.clamp),a1(jr,1,a,e,r&&r.clamp),n=n||[],n[0]=n[1]=NaN,jr.y===Ct.inCorner&&jr.x===Ct.inBody?i1(jr,n,0,a):jr.x===Ct.inCorner&&jr.y===Ct.inBody?i1(jr,n,1,a):(o1(jr,n,0,a),o1(jr,n,1,a)),n},t.prototype.convertToPixel=function(e,r,n,a){var i=sv(r);return i===this?i.dataToPoint(n,a):void 0},t.prototype.convertToLayout=function(e,r,n,a){var i=sv(r);return i===this?i.dataToLayout(n,a):void 0},t.prototype.convertFromPixel=function(e,r,n,a){var i=sv(r);return i===this?i.pointToData(n,a):void 0},t.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},t.dimensions=["x","y","value"],t})(),Jo={rect:Gf()},fu=new wa,ov=new wa;function t1(t,e,r,n){for(var a=1-n,i=e[pe[n]],o=e[pe[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=r[St[n]],h=i.getLocatorCount(n)+o.getLocatorCount(n),v=new Be,c=o.resetLevelIterator();c.next();)v.option=c.item.option,v.parentModel=t[pe[a]],g(c.item,s?v.get("levelSize"):0);for(var d=new Be,p=i.resetCellIterator();p.next();)p.item.type===In.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(b,M){var T=a5(M,n,r);Sr(T)||(b.wh=qd(T,f),f=qd(f-b.wh),h--)}var m=h?f/h:0,y=!h&&f>=1,_=r[pe[n]],x=i.getLocatorCount(n)-1,S=new wa;for(o.resetLayoutIterator(S,n);S.next();)w(S.item);for(i.resetLayoutIterator(S,n);S.next();)w(S.item);function w(b){Sr(b.wh)&&(b.wh=m),b.xy=_,b.id[pe[n]]===x&&!y&&(b.wh=r[pe[n]]+r[St[n]]-b.xy),_+=b.wh}}function r1(t,e){for(var r=e[pe[t]].resetCellIterator();r.next();){var n=r.item;Vf(n.rect,t,n.id,n.span,e),Vf(n.rect,1-t,n.id,n.span,e),n.type===In.nonLeaf&&(n.xy=n.rect[pe[t]],n.wh=n.rect[St[t]])}}function n1(t,e){t.travelExistingCells(function(r){var n=r.span;if(n){var a=r.spanRect,i=r.id;Vf(a,0,i,n,e),Vf(a,1,i,n,e)}})}function Vf(t,e,r,n,a){t[St[e]]=0;var i=r[pe[e]],o=i<0?a[pe[1-e]]:a[pe[e]],s=o.getUnitLayoutInfo(e,r[pe[e]
14]);if(t[pe[e]]=s.xy,t[St[e]]=s.wh,n[pe[e]]>1){var l=o.getUnitLayoutInfo(e,r[pe[e]]+n[pe[e]]-1);t[St[e]]=l.xy+l.wh-s.xy}}function a5(t,e,r){var n=nf(t,r[St[e]]);return qd(n,r[St[e]])}function qd(t,e){return Math.max(Math.min(t,he(e,1/0)),0)}function sv(t){var e=t.matrixModel,r=t.seriesModel,n=e?e.coordinateSystem:r?r.coordinateSystem:null;return n}var Ct={inBody:1,inCorner:2,outside:3},jr={x:null,y:null,point:[]};function a1(t,e,r,n,a){var i=r[pe[e]],o=r[pe[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,h=t.point[e]=n[e];if(!l&&!f){t[pe[e]]=Ct.outside;return}if(a===Gn.body){l?(t[pe[e]]=Ct.inBody,h=sr(s.xy+s.wh,ot(l.xy,h)),t.point[e]=h):t[pe[e]]=Ct.outside;return}else if(a===Gn.corner){f?(t[pe[e]]=Ct.inCorner,h=sr(f.xy+f.wh,ot(u.xy,h)),t.point[e]=h):t[pe[e]]=Ct.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,c=u?u.xy:v,d=s?s.xy+s.wh:v;if(h<c){if(!a){t[pe[e]]=Ct.outside;return}h=c}else if(h>d){if(!a){t[pe[e]]=Ct.outside;return}h=d}t.point[e]=h,t[pe[e]]=v<=h&&h<=d?Ct.inBody:c<=h&&h<=v?Ct.inCorner:Ct.outside}function i1(t,e,r,n){var a=1-r;if(t[pe[r]]!==Ct.outside)for(n[pe[r]].resetCellIterator(ov);ov.next();){var i=ov.item;if(s1(t.point[r],i.rect,r)&&s1(t.point[a],i.rect,a)){e[r]=i.ordinal,e[a]=i.id[pe[a]];return}}}function o1(t,e,r,n){if(t[pe[r]]!==Ct.outside){var a=t[pe[r]]===Ct.inCorner?n[pe[1-r]]:n[pe[r]];for(a.resetLayoutIterator(fu,r);fu.next();)if(i5(t.point[r],fu.item)){e[r]=fu.item.id[pe[r]];return}}}function i5(t,e){return e.xy<=t&&t<=e.xy+e.wh}function s1(t,e,r){return e[pe[r]]<=t&&t<=e[pe[r]]+e[St[r]]}function RH(t){t.registerComponentModel(ZN),t.registerComponentView(e5),t.registerCoordinateSystem("matrix",n5)}function o5(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function l1(t,e){var r;return I(e,function(n){t[n]!=null&&t[n]!=="auto"&&(r=!0)}),r}function s5(t,e,r){var n=K({},r),a=t[e],i=r.$action||"merge";i==="merge"?a?(Ge(a,n,!0),qn(a,n,{ignoreSize:!0}),JS(r,a),hu(r,a),hu(r,a,"shape"),hu(r,a,"style"),hu(r,a,"extra"),r.clipPath=a.clipPath):t[e]=n:i==="replace"?t[e]=n:i==="remove"&&a&&(t[e]=null)}var iC=["transition","enterFrom","leaveTo"],l5=iC.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function hu(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var n=r?iC:l5,a=0;a<n.length;a++){var i=n[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function u5(t,e){if(t&&(t.hv=e.hv=[l1(e,["left","right"]),l1(e,["top","bottom"])],t.type==="group")){var r=t,n=e;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var f5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return e.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=a},e.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=Ow(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];I(l,function(f,h){var v=f.newOption;v&&(u.push(v),o5(f,v),s5(o,h,v),u5(o[h],v))},this),a.elements=qe(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(r,n,a){I(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e})(Fe),u1={path:null,compoundPath:null,group:bt,image:Tr,text:ft},gr=Ue(),h5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._elMap=ye()},e.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");I(n,function(l){var u=Vt(l.id,null),f=u!=null?a.get(u):null,h=Vt(l.parentId,null),v=h!=null?a.get(h):i,c=l.type,d=l.style;c==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&GT(d,c,!!g,!!p)){var m=VT(d,c,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=c5(l),_=l.$action||"merge",x=_==="merge",S=_==="replace";if(x){var w=!f,b=f;w?b=f1(u,v,l.type,a):(b&&(gr(b).isNew=!1),YT(b)),b&&(zu(b,y,r,{isInit:w}),h1(b,l,o,s))}else if(S){Gu(f,l,a,r);var M=f1(u,v,l.type,a);M&&(zu(M,y,r,{isInit:!0}),h1(M,l,o,s))}else _==="remove"&&(WT(f,l),Gu(f,l,a,r));var T=a.get(u);if(T&&p)if(x){var A=T.getTextContent();
14A?A.attr(p):T.setTextContent(new ft(p))}else S&&T.setTextContent(new ft(p));if(T){var k=l.clipPath;if(k){var F=k.type,O=void 0,w=!1;if(x){var B=T.getClipPath();w=!B||gr(B).type!==F,O=w?Zd(F):B}else S&&(w=!0,O=Zd(F));T.setClipPath(O),zu(O,k,r,{isInit:w}),zf(O,k.keyframeAnimation,r)}var N=gr(T);T.setTextConfig(g),N.option=l,v5(T,r,l),Ao({el:T,componentModel:r,itemName:T.name,itemTooltipOption:l.tooltip}),zf(T,l.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var h=a[f],v=Vt(h.id,null),c=v!=null?o.get(v):null;if(!(!c||!c.isGroup)){var d=c.parent,p=d===i,g=gr(c),m=gr(d);g.width=Ze(g.option.width,p?s:m.width)||0,g.height=Ze(g.option.height,p?l:m.height)||0}}for(var f=a.length-1;f>=0;f--){var h=a[f],v=Vt(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,m=gr(d),y=d===i?{width:s,height:l}:{width:m.width,height:m.height},_={},x=eI(c,h,y,null,{hv:h.hv,boundingMode:h.bounding},_);if(!gr(c).isNew&&x){for(var S=h.transition,w={},b=0;b<u.length;b++){var M=u[b],T=_[M];S&&(xi(S)||ke(S,M)>=0)?w[M]=T:c[M]=T}$t(c,w,r,0)}else c.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){Gu(a,gr(a).option,n,r._lastGraphicModel)}),this._elMap=ye()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Jt);function Zd(t){var e=Q(u1,t)?u1[t]:vf(t),r=new e({});return gr(r).type=t,r}function f1(t,e,r,n){var a=Zd(r);return e.add(a),n.set(t,a),gr(a).id=t,gr(a).isNew=!0,a}function Gu(t,e,r,n){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){Gu(i,e,r,n)}),Ah(t,e,n),r.removeKey(gr(t).id))}function h1(t,e,r,n){t.isGroup||I([["cursor",Qn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];Q(e,i)?t[i]=he(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),I(Ce(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=we(i)?i:null}}),Q(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function c5(t){return t=K({},t),I(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QS),function(e){delete t[e]}),t}function v5(t,e,r){var n=Ee(t).eventData;!t.silent&&!t.ignore&&!n&&(n=Ee(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}function d5(t){t.registerComponentModel(f5),t.registerComponentView(h5),t.registerPreprocessor(function(e){var r=e.graphic;J(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}function p5(t,e){var r=Th(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new Ke({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var g5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ve.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ve.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ve.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ve.color.tertiary,fontSize:14}},e})(Fe);function oC(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function sC(t){if(be.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var lC=sC(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),m5=sC(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function uC(t,e){if(!t)return e;e=KS(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function y5(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var _5=uC(m5,"transition"),Ng=uC(lC,"transform"),x5="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(be.transform3dSupported?"will-change:transform;":"");
14function w5(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function S5(t,e,r){if(!fe(r)||r==="inside")return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=Gs(e);var i=w5(r),o=Math.max(Math.round(a)*1.5,6),s="",l=Ng+":",u;ke(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+a,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function b5(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(a=" "+t/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+t+"s "+n,i+=(i.length?",":"")+(be.transformSupported?""+Ng+a:",left"+a+",top"+a)),_5+":"+i}function c1(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!be.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=be.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+Ng+":"+o+";":[["top",0],["left",0],[lC,o]]}function T5(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=he(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),I(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function C5(t,e,r,n){var a=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),h=t.getModel("textStyle"),v=sb(t,"html"),c=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+c),e&&i>0&&a.push(b5(i,r,n)),o&&a.push("background-color:"+o),I(["width","color","radius"],function(d){var p="border-"+d,g=KS(p),m=t.get(g);m!=null&&a.push(p+":"+m+(d==="color"?"":"px"))}),a.push(T5(h)),v!=null&&a.push("padding:"+Th(v).join("px ")+"px"),a.join(";")+";"}function v1(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&kP(t,o,r,n,a)}else{t[0]=n,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var M5=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,be.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=r.appendTo,o=i&&(fe(i)?document.querySelector(i):Ps(i)?i:we(i)&&i(e.getDom()));v1(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();vr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=y5(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=x5+C5(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+c1(i[0],i[1],!0)+("border-color:"+Gs(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(fe(i)&&n.get("trigger")==="item"&&!oC(n)&&(s=S5(n,a,i)),fe(e))o.innerHTML=e+s;else if(e){o.innerHTML="",J(e)||(e=[e]);for(var l=0;l<e.length;l++)Ps(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(v1(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=c1(n[0],n[1]);I(i,function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",be.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(He(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;PP(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),D5=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),p1(this._styleCoord,this._zr,e.getW
14idth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,a,i){var o=this;ge(e)&&At(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new ft({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:sb(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=d1(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;p1(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=la(i.borderWidth||0),s=d1(i);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(He(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function la(t){return Math.max(0,t)}function d1(t){var e=la(t.shadowBlur||0),r=la(t.shadowOffsetX||0),n=la(t.shadowOffsetY||0);return{left:la(e-r),right:la(e+r),top:la(e-n),bottom:la(e+n)}}function p1(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var A5=new Ke({shape:{x:-1,y:-1,width:2,height:2}}),L5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(be.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=pL(a.get("renderMode"));this._tooltipContent=i==="richText"?new D5(n):new M5(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,n,a){if(!(be.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?xb(this,"_updatePosition",50,"fixRate"):_d(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");JT("itemTooltip",this._api,He(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||be.node||!a.getDom())){var o=g1(i,a);this._ticket="";var s=i.dataByCoordSys,l=E5(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=A5;
14f.x=i.x,f.y=i.y,f.update(),Ee(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var h=eC(i,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(g1(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=es([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=Ee(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;us(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(Ee(f).dataIndex!=null?l=f:Ee(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=He(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=es([n.tooltipOption],i),l=this._renderMode,u=[],f=Us("section",{blocks:[],noHeader:!0}),h=[],v=new bc;I(r,function(y){I(y.dataByAxis,function(_){var x=a.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!x||S==null)){var w=jT(S,x.axis,a,_.seriesDataIndices,_.valueLabelOpt),b=Us("section",{header:w,noHeader:!on(w),sortBlocks:!0,blocks:[]});f.blocks.push(b),I(_.seriesDataIndices,function(M){var T=a.getSeriesByIndex(M.seriesIndex),A=M.dataIndexInside,k=T.getDataParams(A);if(!(k.dataIndex<0)){k.axisDim=_.axisDim,k.axisIndex=_.axisIndex,k.axisType=_.axisType,k.axisId=_.axisId,k.axisValue=Rf(x.axis,{value:S}),k.axisValueLabel=w,k.marker=v.makeTooltipMarker("item",Gs(k.color),l);var F=Fm(T.formatTooltip(A,!0,null)),O=F.frag;if(O){var B=es([T],i).get("valueFormatter");b.blocks.push(B?K({valueFormatter:B},O):O)}F.text&&h.push(F.text),u.push(k)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=Gm(f,v,l,d,a.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`
15
16`:"<br/>",m=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Ee(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=r.positionDefault,p=es([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,h),y=new bc;m.marker=y.makeTooltipMarker("item",Gs(m.color),c);var _=Fm(u.formatTooltip(f,!1,h)),x=p.get("order"),S=p.get("valueFormatter"),w=_.frag,b=w?Gm(S?K({valueFormatter:S},w):w,y,c,x,i.get("useUTC"),p.get("textStyle")):_.text,M="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,m,M,r.offsetX,r.offsetY,r.position,r.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=Ee(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(fe(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=Pe(l),l.content=Ht(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=r.positionDefault,d=es(h,this._tooltipModel,c?{position:c}
16:null),p=d.get("content"),g=Math.random()+"",m=new bc;this._showOrMove(d,function(){var y=Pe(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var c=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(fe(v)){var g=r.ecModel.get("useUTC"),m=J(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=v,y&&(c=bh(m.axisValue,c,g)),c=jS(c,a,!0)}else if(we(v)){var _=He(function(x,S){x===this._ticket&&(h.setContent(S,f,r,p,l),this._updatePosition(r,l,o,s,h,a,u))},this);this._ticket=i,c=v(a,i,_)}else c=v;h.setContent(c,f,r,p,l),h.show(r,p),this._updatePosition(r,l,o,s,h,a,u)}},e.prototype._getNearestPoint=function(r,n,a,i,o){if(a==="axis"||J(n))return{color:i||o};if(!J(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),v=r.get("align"),c=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),we(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),J(n))a=Ze(n[0],u),i=Ze(n[1],f);else if(ge(n)){var p=n;p.width=h[0],p.height=h[1];var g=gn(p,{width:u,height:f});a=g.x,i=g.y,v=null,c=null}else if(fe(n)&&l){var m=I5(n,d,h,r.get("borderWidth"));a=m[0],i=m[1]}else{var m=k5(a,i,o,u,f,v?null:20,c?null:20);a=m[0],i=m[1]}if(v&&(a-=m1(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=m1(c)?h[1]/2:c==="bottom"?h[1]:0),oC(r)){var m=P5(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&I(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&I(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&I(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&I(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],x=i[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){be.node||!n.getDom()||(_d(this,"_updatePosition"),this._tooltipContent.dispose(),$d("itemTooltip",n))},e.type="tooltip",e})(Jt);function es(t,e,r){var n=e.ecModel,a;r?(a=new Be(r,n,n),a=new Be(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Be&&(o=o.get("tooltip",!0)),fe(o)&&(o={formatter:o}),o&&(a=new Be(o,a,n)))}return a}function g1(t,e){return t.dispatchAction||He(e.dispatchAction,e)}function k5(t,e,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>n?t-=l+i:t+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function P5(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function I5(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-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 m1(t){return t==="center"||t==="middle"}function E5(t,e,r){var n=kp(t).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=ll(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Ee(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function O5(t){Zn(tC),t.registerComponentModel(g5),t.registerComponentView(L5),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ut),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ut)}var R5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ve.size.m,backgroundColor:ve.color.transparent,borderColor:ve.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ve.color.primary},subtextStyle:{fontSize:12,color:ve.color.quaternary}},e})(Fe),F5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=he(r.get("textBaseline"),r.get("textVerticalAlign")),f=new ft({style:pn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}
16),h=f.getBoundingRect(),v=r.get("subtext"),c=new ft({style:pn(s,{text:v,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){Om(d,"_"+r.get("target"))}),p&&c.on("click",function(){Om(p,"_"+r.get("subtarget"))}),Ee(f).eventData=Ee(c).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),v&&i.add(c);var m=i.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ch(r,a),x=gn(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),i.x=x.x,i.y=x.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),m=i.getBoundingRect();var w=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var M=new Ke({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(M)}},e.type="title",e})(Jt);function B5(t){t.registerComponentModel(R5),t.registerComponentView(F5)}var N5=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Kd=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),J(n)&&I(n,function(i,o){fe(i)&&(i={type:i}),n[o]=Ge(i,N5(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Lp(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=ye(),s=le(i,function(l){return(fe(l)||$e(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Be(l,this,this.ecModel))},this);this._data=qe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;I(i,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;I(r,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;I(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ke(this._availableNames,r)>=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:ve.size.m,align:"auto",backgroundColor:ve.color.transparent,borderColor:ve.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ve.color.disabled,inactiveBorderColor:ve.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:ve.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
16Limit:"inherit"},textStyle:{color:ve.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ve.color.tertiary,borderWidth:1,borderColor:ve.color.border},emphasis:{selectorLabel:{show:!0,color:ve.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Fe),Yi=pt,jd=I,cu=bt,fC=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new cu),this.group.add(this._selectorGroup=new cu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var f=Ch(r,a).refContainer,h=r.getBoxLayoutParams(),v=r.get("padding"),c=gn(h,f,v),d=this.layoutInner(r,o,c,i,l,u),p=gn(Me({width:d.width,height:d.height},h),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=p5(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),f=ye(),h=n.get("selectedMode"),v=n.get("triggerEvent"),c=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&c.push(d.id)}),jd(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
17`)){var y=new cu;y.newline=!0,u.add(y);return}var _=a.getSeriesByName(m)[0];if(!f.get(m))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},w=x.getVisual("legendIcon"),b=x.getVisual("style"),M=this._createItem(_,m,p,d,n,r,S,b,w,h,i);M.on("click",Yi(y1,m,null,i,c)).on("mouseover",Yi(Qd,_.name,null,i,c)).on("mouseout",Yi(Jd,_.name,null,i,c)),a.ssr&&M.eachChild(function(T){var A=Ee(T);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&M.eachChild(function(T){g.packEventData(T,n,_,p,m)}),f.set(m,!0)}else a.eachRawSeries(function(T){var A=this;if(!f.get(m)&&T.legendVisualProvider){var k=T.legendVisualProvider;if(!k.containName(m))return;var F=k.indexOfName(m),O=k.getItemVisual(F,"style"),B=k.getItemVisual(F,"legendIcon"),N=wr(O.fill);N&&N[3]===0&&(N[3]=.2,O=K(K({},O),{fill:Co(N,"rgba")}));var z=this._createItem(T,m,p,d,n,r,{},O,B,h,i);z.on("click",Yi(y1,null,m,i,c)).on("mouseover",Yi(Qd,null,m,i,c)).on("mouseout",Yi(Jd,null,m,i,c)),a.ssr&&z.eachChild(function(q){var Y=Ee(q);Y.seriesIndex=T.seriesIndex,Y.dataIndex=p,Y.ssrType="legend"}),v&&z.eachChild(function(q){A.packEventData(q,n,T,p,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Ee(r).eventData=s},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();jd(r,function(u){var f=u.type,h=new ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);_h(h,{normal:v,emphasis:c},{defaultText:u.title}),Jv(h)})},e.prototype._createItem=function(r,n,a,i,o,s,l,u,f,h,v){var c=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var x=z5(f,i,l,u,c,g,v),S=new cu,w=i.getModel("textStyle");if(we(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var b=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(H5({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:x.itemStyle,symbolKeepAspect:y}))}var M=s==="left"?d+5:-5,T=s,A=o.get("formatter"),k=n;fe(A)&&A?k=A.replace("{name}",n??""):we(A)&&(k=A(n));var F=g?w.getTextColor():i.get("inactiveColor");S.add(new ft({style:pn(w,{text:k,x:M,y:p/2,fill:F,align:T,verticalAlign:"middle"},{inheritColor:F})}));
17var O=new Ke({shape:S.getBoundingRect(),style:{fill:"transparent"}}),B=i.getModel("tooltip");return B.get("show")&&Ao({el:O,componentModel:o,itemName:n,itemTooltipOption:B.option}),S.add(O),S.eachChild(function(N){N.silent=!0}),O.silent=!h,this.getContentGroup().add(S),Jv(S),S.__legendDataIndex=a,S},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();bs(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){bs("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[m]/2-v[m]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[y]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Jt);function z5(t,e,r,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),jd(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:kf(h,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function H5(t){var e=t.icon||"roundRect",r=Mh(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=ve.color.neutral00,r.style.lineWidth=2),r}function y1(t,e,r,n){Jd(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Qd(t,e,r,n)}function hC(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,a=e.length;n<a&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function Qd(t,e,r,n){hC(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Jd(t,e,r,n){hC(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function G5(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function ts(t,e,r){var n=t==="allSelect"||t==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),_1(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){I(a,function(l,u){s[l?"select":"unSelect"](u)}),_1(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function _1(t,e){var r=e||{};return I(t.getData(),function(n){var a=n.get("name");if(!(a===`
18`||a==="")){var i=t.isSelected(a);Q(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function V5(t){t.registerAction("legendToggleSelect","legendselectchanged",pt(ts,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",pt(ts,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",pt(ts,"inverseSelect")),t.registerAction("legendSelect","legendselected",pt(ts,"select")),t.registerAction("legendUnSelect","legendunselected",pt(ts,"unSelect"))}function cC(t){t.registerComponentModel(Kd),t.registerComponentView(fC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,G5),t.registerSubTypeDefaulter("legend",function(){return"plain"}),V5(t)}var U5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=hl(r);t.prototype.init.call(this,r,n,a),x1(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),x1(this,this.option,r)},e.type="legend.scroll",e.defaultOption=NS(Kd.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:ve.color.accent50,pageIconInactiveColor:ve.color.accent10,pageIconSize:15,pageTextStyle:{color:ve.color.tert
18iary},animationDurationUpdate:800}),e})(Kd);function x1(t,e,r){var n=t.getOrient(),a=[1,1];a[n.index]=0,qn(e,r,{type:"box",ignoreSize:!!a})}var w1=bt,lv=["width","height"],uv=["x","y"],W5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new w1),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new w1)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,a,i,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=J(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new ft({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=Wp(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:He(u._pageGo,u,m,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=lv[u],h=uv[u],v=lv[1-u],c=uv[1-u];o&&bs("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Pe(a);o&&(m[f]=a[f]-p[f]-d);var y=this._layoutContentAndController(r,i,m,u,f,v,c,h);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[h]-=_}y[f]+=p[f]+d,g[1-u]+=y[c]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[c]=Math.min(y[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;bs(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),bs("horizontal",v,r.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>a[o],g=[-c.x,-c.y];n||(g[i]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=he(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var x=r.get("pageButtonPosition",!0);x==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(m),v.setPosition(y);var S={x:0,y:0};if(S[o]=p?a[o]:c[o],S[s]=Math.max(c[s],d[s]),S[l]=Math.min(0,d[l]+y[1-i]),h.__rectSize=a[o],p){var w={x:0,y:0};w[o]=Math.max(a[o]-d[o]-_,0),w[s]=S[s],h.setClipPath(new Ke({shape:w})),h.__rectSize=w[o]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(r);return b.pageIndex!=null&&$t(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?r:null),this._updatePageInfoView(r,b),S},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=a.childOfName(f);c&&(c.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",fe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=lv[o],l=uv[o],u=this._findTargetItemIndex(n),f=a.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[a.x,a.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=x(h);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=x(f[g]),(!_&&y.e>m.s+i||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=x(f[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;
18function x(w){if(w){var b=w.getBoundingRect(),M=b[l]+w[l];return{s:M,e:M+b[s],i:w.__legendDataIndex}}}function S(w,b){return w.e>=b&&w.s<=b+i}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},e.type="legend.scroll",e})(fC);function $5(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function Y5(t){Zn(cC),t.registerComponentModel(U5),t.registerComponentView(W5),$5(t)}function FH(t){Zn(cC),Zn(Y5)}var X5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,a){t.prototype.init.call(this,r,n,a),this._sourceManager=new tb(this),Nm(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Nm(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Br},e})(Fe),q5=(function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(Jt);function Z5(t){t.registerComponentModel(X5),t.registerComponentView(q5)}function K5(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function j5(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:K5(n&&n.shape.points)}}var S1=["align","verticalAlign","width","height","fontSize"],Ft=new il,fv=Ue(),Q5=Ue();function vu(t,e,r){for(var n=0;n<r.length;n++){var a=r[n];e[a]!=null&&(t[a]=e[a])}}var du=["x","y","rotation"],J5=(function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();xe.applyTransform(f,f,u),u?Ft.setLocalTransform(u):(Ft.x=Ft.y=Ft.rotation=Ft.originX=Ft.originY=0,Ft.scaleX=Ft.scaleY=1),Ft.rotation=En(Ft.rotation);var h=a.__hostTarget,v;if(h){v=h.getBoundingRect().plain();var c=h.getComputedTransform();xe.applyTransform(v,v,c)}var d=v&&h.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Ft.x,y:Ft.y,scaleX:Ft.scaleX,scaleY:Ft.scaleY,rotation:Ft.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(we(a)||Ce(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Ee(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function a(_,x){return function(){oy(_,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;we(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(j5(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=Ze(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Ze(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var c=l.getTextGuideLine();c&&(c.setShape({points:f.labelLinePoints}),v=!1)}var d=fv(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<S1.length;p++){var g=S1[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",a(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),a=[];I(this._labelList,function(l){l.defaultAttr.ignore||a.push(xd({},l))});var i=qe(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=qe(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});uy(i,0,0,r),uy(o,1,0,n);var s=qe(a,function(l){return l.layoutOption.hideOverlap});NE(s),Mb(s)},t.prototype.processLabelsOverall=function(){var e=this;I(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();
18r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=fv(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),a=Ee(e),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var h=s.getModel("labelLine");IE(e,EE(s),l),oy(e,h)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!co(e))){var i=fv(n),o=i.oldLayout,s=Ee(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=e.prevStates;v&&(ke(v,"select")>=0&&n.attr(i.oldLayoutSelect),ke(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),$t(n,u,r,l)}else if(n.attr(u),!fl(n).valueAnimation){var h=he(n.style.opacity,1);n.style.opacity=0,br(n,{style:{opacity:h}},r,l)}if(i.oldLayout=u,n.states.select){var c=i.oldLayoutSelect={};vu(c,u,du),vu(c,n.states.select,du)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};vu(d,u,du),vu(d,n.states.emphasis,du)}Pk(n,l,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=Q5(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),$t(a,{shape:p},r)):(a.setShape(p),a.style.strokePercent=0,br(a,{style:{strokePercent:1}},r)),i.oldLayout=p}},t})(),hv=Ue();function BH(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=hv(r).labelManager;a||(a=hv(r).labelManager=new J5),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=hv(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var cv=Math.sin,vv=Math.cos,vC=Math.PI,ii=Math.PI*2,e3=180/vC,dC=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){this._add("C",e,r,n,a,i,o)},t.prototype.quadraticCurveTo=function(e,r,n,a){this._add("Q",e,r,n,a)},t.prototype.arc=function(e,r,n,a,i,o){this.ellipse(e,r,n,n,0,a,i,o)},t.prototype.ellipse=function(e,r,n,a,i,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=pa(h-ii)||(f?u>=ii:-u>=ii),c=u>0?u%ii:u%ii+ii,d=!1;v?d=!0:pa(h)?d=!1:d=c>=vC==!!f;var p=e+n*vv(o),g=r+a*cv(o);this._start&&this._add("M",p,g);var m=Math.round(i*e3);if(v){var y=1/this._p,_=(f?1:-1)*(ii-y);this._add("A",n,a,m,1,+f,e+n*vv(o+_),r+a*cv(o+_)),y>.01&&this._add("A",n,a,m,0,+f,p,g)}else{var x=e+n*vv(s),S=r+a*cv(s);this._add("A",n,a,m,+d,+f,x,S)}},t.prototype.rect=function(e,r,n,a){this._add("M",e,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,a,i,o,s,l,u){for(var f=[],h=this._p,v=1;v<arguments.length;v++){var c=arguments[v];if(isNaN(c)){this._invalid=!0;return}f.push(Math.round(c*h)/h)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),zg="none",t3=Math.round;function r3(t){var e=t.fill;return e!=null&&e!==zg}function n3(t){var e=t.stroke;return e!=null&&e!==zg}var ep=["lineCap","miterLimit","lineJoin"],a3=le(ep,function(t){return"stroke-"+t.toLowerCase()});function i3(t,e,r,n){var a=e.opacity==null?1:e.opacity;if(r instanceof Tr){t("opacity",a);return}if(r3(e)){var i=Os(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&t("fill-opacity",o)}else t("fill",zg);if(n3(e)){var s=Os(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,h=e.strokeFirst;if(u!==1&&t("stroke-width",u),h&&t("paint-order",h?"stroke":"fill"),f<1&&t("stroke-opacity",f),e.lineDash){var v=mg(r),c=v[0],d=v[1];c&&(d=t3(d||0),t("stroke-dasharray",c.join(",")),(d||n)&&t("stroke-dashoffset",d))}for(var p=0;p<ep.length;p++){var g=ep[p];if(e[g]!==rf[g]){var m=e[g]||rf[g];m&&t(a3[p],m)}}}}var pC="http://www.w3.org/2000/svg",gC="http://www.w3.org/1999/xlink",o3="http://www.w3.org/2000/xmlns/",s3="http://www.w3.org/XML/1998/namespace",b1="ecmeta_";function mC(t){return document.createElementNS(pC,t)}function gt(t,e,r,n,a){return{tag:t,attrs:r||{},children:n,text:a,key:e}}function l3(t,e){var r=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+t+" "+r.join(" ")+">"}function u3(t){return"</"+t+">"}function Hg(t,e){e=e||{};var r=e.newline?`
19`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return l3(o,s)+(o!=="style"?Ht(l):l||"")+(i?""+r+le(i,function(u){return n(u)}).join(r)+r:"")+u3(o)}return n(t)}function f3(t,e,r){r=r||{};var n=r.newline?`
20`:"",a=" {"+n,i=n+"}",o=le(Ce(t),function(l){return l+a+le(Ce(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+i}).join(n),s=le(Ce(e),function(l){return"@keyframes "+l+a+le(Ce(e[l]),function(u){return u+a+le(Ce(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function tp(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{}
20,clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function T1(t,e,r,n){return gt("svg","root",{width:t,height:e,xmlns:pC,"xmlns:xlink":gC,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var h3=0;function yC(){return h3++}var C1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},si="transform-origin";function c3(t,e,r){var n=K({},t.shape);K(n,e),t.buildPath(r,n);var a=new dC;return a.reset(gw(t)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function v3(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[si]=r+"px "+n+"px")}var d3={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function _C(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function p3(t,e,r){var n=t.shape.paths,a={},i,o;if(I(n,function(l){var u=tp(r.zrId);u.animation=!0,Lh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=Ce(f),c=v.length;if(c){o=v[c-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in h){var y=h[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=_C(a,r);return i.replace(o,s)}}function M1(t){return fe(t)?C1[t]?"cubic-bezier("+C1[t]+")":Cp(t)?t:"":""}function Lh(t,e,r,n){var a=t.animators,i=a.length,o=[];if(t instanceof Gp){var s=p3(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],h=[f.getMaxTime()/1e3+"s"],v=M1(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(y){var _=y[1],x=_.length,S={},w={},b={},M="animation-timing-function";function T(vt,Ae,Oe){for(var me=vt.getTracks(),Le=vt.getMaxTime(),tr=0;tr<me.length;tr++){var Je=me[tr];if(Je.needsAnimate()){var Pa=Je.keyframes,Wr=Je.propName;if(Oe&&(Wr=Oe(Wr)),Wr)for(var Di=0;Di<Pa.length;Di++){var wn=Pa[Di],Ia=Math.round(wn.time/Le*100)+"%",gl=M1(wn.easing),Sn=wn.rawValue;(fe(Sn)||$e(Sn))&&(Ae[Ia]=Ae[Ia]||{},Ae[Ia][Wr]=wn.rawValue,gl&&(Ae[Ia][M]=gl))}}}}for(var A=0;A<x;A++){var k=_[A],F=k.targetName;F?F==="shape"&&T(k,w):!n&&T(k,S)}for(var O in S){var B={};Ku(B,t),K(B,S[O]);var N=mw(B),z=S[O][M];b[O]=N?{transform:N}:{},v3(b[O],B),z&&(b[O][M]=z)}var q,Y=!0;for(var O in w){b[O]=b[O]||{};var ne=!q,z=w[O][M];ne&&(q=new Yn);var te=q.len();q.reset(),b[O].d=c3(t,w[O],q);var oe=q.len();if(!ne&&te!==oe){Y=!1;break}z&&(b[O][M]=z)}if(!Y)for(var O in b)delete b[O].d;if(!n)for(var A=0;A<x;A++){var k=_[A],F=k.targetName;F==="style"&&T(k,b,function(me){return d3[me]})}for(var se=Ce(b),Se=!0,Ne,A=1;A<se.length;A++){var mt=se[A-1],ht=se[A];if(b[mt][si]!==b[ht][si]){Se=!1;break}Ne=b[mt][si]}if(Se&&Ne){for(var O in b)b[O][si]&&delete b[O][si];e[si]=Ne}if(qe(se,function(vt){return Ce(b[vt]).length>0}).length){var ct=_C(b,r);return ct+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+yC();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function g3(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};D1(n,e,r)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=a.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Hv(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),D1(n,e,r)}}function D1(t,e,r,n){var a=JSON.stringify(t),i=r.cssStyleCache[a];
20i||(i=r.zrId+"-cls-"+yC(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var Qs=Math.round;function xC(t){return t&&fe(t.src)}function wC(t){return t&&we(t.toDataURL)}function Gg(t,e,r,n){i3(function(a,i){var o=a==="fill"||a==="stroke";o&&pw(i)?bC(e,t,a,n):o&&Mp(i)?TC(r,t,a,n):t[a]=i,o&&n.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),b3(r,t,n)}function Vg(t,e){var r=dO(e);r&&(r.each(function(n,a){n!=null&&(t[(b1+a).toLowerCase()]=n+"")}),e.isSilent()&&(t[b1+"silent"]="true"))}function A1(t){return pa(t[0]-1)&&pa(t[1])&&pa(t[2])&&pa(t[3]-1)}function m3(t){return pa(t[4])&&pa(t[5])}function Ug(t,e,r){if(e&&!(m3(e)&&A1(e))){var n=1e4;t.transform=A1(e)?"translate("+Qs(e[4]*n)/n+" "+Qs(e[5]*n)/n+")":QD(e)}}function L1(t,e,r){for(var n=t.points,a=[],i=0;i<n.length;i++)a.push(Qs(n[i][0]*r)/r),a.push(Qs(n[i][1]*r)/r);e.points=a.join(" ")}function k1(t){return!t.smooth}function y3(t){var e=le(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(n[o[1]]=Qs(s*a)/a)}}}var _3={circle:[y3(["cx","cy","r"])],polyline:[L1,k1],polygon:[L1,k1]};function x3(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function SC(t,e){var r=t.style,n=t.shape,a=_3[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&gw(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&x3(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var v=t.path;h&&(v.beginPath(),t.buildPath(v,t.shape),t.pathUpdated());var c=v.getVersion(),d=t,p=d.__svgPathBuilder;(d.__svgPathVersion!==c||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new dC),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=c,d.__svgPathStrokePercent=l),i.d=p.getStr()}return Ug(i,t.transform),Gg(i,r,t,e),Vg(i,t),e.animation&&Lh(t,i,e),e.emphasis&&g3(t,i,e),gt(s,t.id+"",i)}function w3(t,e){var r=t.style,n=r.image;if(n&&!fe(n)&&(xC(n)?n=n.src:wC(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),Ug(l,t.transform),Gg(l,r,t,e),Vg(l,t),e.animation&&Lh(t,l,e),gt("image",t.id+"",l)}}function S3(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Un,i=r.x||0,o=eA(r.y||0,al(a),r.textBaseline),s=JD[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Mw(r)){var u="",f=r.fontStyle,h=Cw(r.fontSize);if(!parseFloat(h))return;var v=r.fontFamily||zx,c=r.fontWeight;u+="font-size:"+h+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),c&&c!=="normal"&&(u+="font-weight:"+c+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Ug(l,t.transform),Gg(l,r,t,e),Vg(l,t),e.animation&&Lh(t,l,e),gt("text",t.id+"",l,void 0,n)}}function P1(t,e){if(t instanceof Ie)return SC(t,e);if(t instanceof Tr)return w3(t,e);if(t instanceof Rs)return S3(t,e)}function b3(t,e,r){var n=t.style;if(tA(n)){var a=rA(t),i=r.shadowCache,o=i[a];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,h=n.shadowOffsetY||0,v=n.shadowBlur,c=Os(n.shadowColor),d=c.opacity,p=c.color,g=v/2/l,m=v/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=gt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[gt("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),i[a]=o}e.filter=lh(o)}}function bC(t,e,r,n){var a=t[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(vw(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(dw(a))i="radialGradient",o.cx=he(a.x,.5),o.cy=he(a.y,.5),o.r=he(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=Gv(s[u].offset)*100+"%",v=s[u].color,c=Os(v),d=c.color,p=c.opacity,g={offset:h};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(gt("stop",u+"",g))}var m=gt(i,"",o,l),y=Hg(m),_=n.gradientCache,x=_[y];x||(x=n.zrId+"-g"+n.gradientIdx++,_[y]=x,o.id=x,n.defs[x]=gt(i,x,o,l)),e[r]=lh(x)}
20function TC(t,e,r,n){var a=t.style[r],i=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",h;if(cw(a)){var v=a.imageWidth,c=a.imageHeight,d=void 0,p=a.image;if(fe(p)?d=p:xC(p)?d=p.src:wC(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";zr(v,g),zr(c,g)}else if(v==null||c==null){var m=function(A,k){if(A){var F=A.elm,O=v||k.width,B=c||k.height;A.tag==="pattern"&&(u?(B=1,O/=i.width):f&&(O=1,B/=i.height)),A.attrs.width=O,A.attrs.height=B,F&&(F.setAttribute("width",O),F.setAttribute("height",B))}},y=wp(d,null,t,function(A){l||m(w,A),m(h,A)});y&&y.width&&y.height&&(v=v||y.width,c=c||y.height)}h=gt("image","img",{href:d,width:v,height:c}),o.width=v,o.height=c}else a.svgElement&&(h=Pe(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(h){var _,x;l?_=x=1:u?(x=1,_=o.width/i.width):f?(_=1,x=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=mw(a);S&&(o.patternTransform=S);var w=gt("pattern","",o,[h]),b=Hg(w),M=n.patternCache,T=M[b];T||(T=n.zrId+"-p"+n.patternIdx++,M[b]=T,o.id=T,w=n.defs[T]=gt("pattern",T,o,[h])),e[r]=lh(T)}}function T3(t,e,r){var n=r.clipPathCache,a=r.defs,i=n[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[t.id]=i,a[i]=gt("clipPath",i,o,[SC(t,r)])}e["clip-path"]=lh(i)}function I1(t){return document.createTextNode(t)}function fi(t,e,r){t.insertBefore(e,r)}function E1(t,e){t.removeChild(e)}function O1(t,e){t.appendChild(e)}function CC(t){return t.parentNode}function MC(t){return t.nextSibling}function dv(t,e){t.textContent=e}var R1=58,C3=120,M3=gt("","");function rp(t){return t===void 0}function rn(t){return t!==void 0}function D3(t,e,r){for(var n={},a=e;a<=r;++a){var i=t[a].key;i!==void 0&&(n[i]=a)}return n}function hs(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Js(t){var e,r=t.children,n=t.tag;if(rn(n)){var a=t.elm=mC(n);if(Wg(M3,t),J(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&O1(a,Js(i))}else rn(t.text)&&!ge(t.text)&&O1(a,I1(t.text))}else t.elm=I1(t.text);return t.elm}function DC(t,e,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&fi(t,Js(i),e)}}function Uf(t,e,r,n){for(;r<=n;++r){var a=e[r];if(a!=null)if(rn(a.tag)){var i=CC(a.elm);E1(i,a.elm)}else E1(t,a.elm)}}function Wg(t,e){var r,n=e.elm,a=t&&t.attrs||{},i=e.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==C3?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(o3,r,o):r.charCodeAt(3)===R1?n.setAttributeNS(s3,r,o):r.charCodeAt(5)===R1?n.setAttributeNS(gC,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function A3(t,e,r){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],f=r[l],h,v,c,d;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=r[++a]:f==null?f=r[--l]:hs(o,u)?(ji(o,u),o=e[++n],u=r[++a]):hs(s,f)?(ji(s,f),s=e[--i],f=r[--l]):hs(o,f)?(ji(o,f),fi(t,o.elm,MC(s.elm)),o=e[++n],f=r[--l]):hs(s,u)?(ji(s,u),fi(t,s.elm,o.elm),s=e[--i],u=r[++a]):(rp(h)&&(h=D3(e,n,i)),v=h[u.key],rp(v)?fi(t,Js(u),o.elm):(c=e[v],c.tag!==u.tag?fi(t,Js(u),o.elm):(ji(c,u),e[v]=void 0,fi(t,c.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(d=r[l+1]==null?null:r[l+1].elm,DC(t,d,r,a,l)):Uf(t,e,n,i))}function ji(t,e){var r=e.elm=t.elm,n=t.children,a=e.children;t!==e&&(Wg(t,e),rp(e.text)?rn(n)&&rn(a)?n!==a&&A3(r,n,a):rn(a)?(rn(t.text)&&dv(r,""),DC(r,null,a,0,a.length-1)):rn(n)?Uf(r,n,0,n.length-1):rn(t.text)&&dv(r,""):t.text!==e.text&&(rn(n)&&Uf(r,n,0,n.length-1),dv(r,e.text)))}function L3(t,e){if(hs(t,e))ji(t,e);else{var r=t.elm,n=CC(r);Js(e),n!==null&&(fi(n,e.elm,MC(r)),Uf(n,[t],0,0))}return e}var k3=0,P3=(function(){function t(e,r,n){if(this.type="svg",this.refreshHover=F1(),this.configLayer=F1(),this.storage=r,this._opts=n=K({},n),this.root=e,this._id="zr"+k3++,this._oldVNode=T1(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=mC("svg");Wg(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;
20left:0;top:0;user-select:none",L3(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return P1(e,tp(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=tp(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=I3(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=gt("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=le(Ce(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(gt("defs","defs",{},u)),e.animation){var f=f3(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=gt("style","stl",{},[],f);o.push(h)}}return T1(n,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Hg(this.renderToVNode({animation:he(e.cssAnimation,!0),emphasis:he(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:he(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var a=e.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var h=e[f];if(!h.invisible){var v=h.__clipPaths,c=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(c-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<c;m++){var y={};T3(v[m],y,r);var _=gt("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=v;var x=P1(h,r);x&&(s?s.children:n).push(x)}}},t.prototype.resize=function(e,r){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),a&&i&&(i.style.display="none",e=lo(a,0,n),r=lo(a,1,n),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(Mp(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=aA(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function F1(t){return function(){}}function I3(t,e,r,n){var a;if(r&&r!=="none")if(a=gt("rect","bg",{width:t,height:e,x:"0",y:"0"}),pw(r))bC({fill:r},a.attrs,"fill",n);else if(Mp(r))TC({style:{fill:r},dirty:Ut,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",n);else{var i=Os(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function E3(t){t.registerPainter("svg",P3)}function B1(t,e,r){var n=Wn.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*r,n.height=i*r,n}var pv=(function(t){re(e,t);function e(r,n,a){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||tf,typeof r=="string"?o=B1(r,n,a):ge(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&($x(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=B1("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new xe(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new xe(0,0,0,0);_.copy(y),o.push(_)}else{for(var x=!1,S=1/0,w=0,b=0;b<o.length;++b){var M=o[b];if(M.intersect(y)){var T=new xe(0,0,0,0);T.copy(M),T.union(y),o[b]=T,x=!0;break}else if(l){u.copy(y),u.union(M);var A=y.width*y.height,k=M.width*M.height,F=u.width*u.height,O=F-A-k;O<S&&(S=O,w=b)}}if(l&&(o[w].union(y),x=!0),!x){var _=new xe(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=r[h];if(v){var c=v.shouldBePainted(a,i,!0,!0),d=v.__isRendered&&(v.__dirty&ar||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&ar||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],c=v&&v.shouldBePainted(a,i,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var m=h+1;m<o.length;)o[h].intersect(o[m])?(g=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h));var c=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(ah(n)){var x=n.global||n.__width===m&&n.__height===y;_=x&&n.__canvasGradient||Md(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else nD(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Dd(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));
20o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,m,y),o.restore())}!a||u?d(0,0,s,l):a.length&&I(a,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},e})(xn),N1=1e5,oi=314159,pu=.01,O3=.001;function R3(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function F3(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var B3=(function(){function t(e,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=K({},n||{}),this.dpr=n.devicePixelRatio||tf,this._singleCanvas=i,this.root=e;var o=e.style;o&&($x(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,h=f.width,v=f.height;n.width!=null&&(h=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new pv(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[oi]=c,c.zlevel=oi,s.push(oi),this._domRoot=e}else{this._width=lo(e,0,n),this._height=lo(e,1,n);var u=this._domRoot=F3(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(N1)),i||(i=n.ctx,i.save()),vi(i,s,a,o===r-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(N1)},t.prototype.paintOne=function(e,r){qb(e,r)},t.prototype._paintList=function(e,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Mf(function(){l._paintList(e,r,n,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(oi).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var f=!0,h=!1,v=function(p){var g=i[p],m=g.ctx,y=o&&g.createRepaintRects(e,r,c._width,c._height),_=n?g.__startIndex:g.__drawIndex,x=!n&&g.incremental&&Date.now,S=x&&Date.now(),w=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var b=e[_];(!b.incremental||!b.notClear||n)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var M,T=function(O){var B={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(M=_;M<g.__endIndex;M++){var N=e[M];if(N.__inHover&&(h=!0),a._doPaintEl(N,g,o,O,B,M===g.__endIndex-1),x){var z=Date.now()-S;if(z>
2015)break}}B.prevElClipPaths&&m.restore()};if(y)if(y.length===0)M=g.__endIndex;else for(var A=c.dpr,k=0;k<y.length;++k){var F=y[k];m.save(),m.beginPath(),m.rect(F.x*A,F.y*A,F.width*A,F.height*A),m.clip(),T(F),m.restore()}else m.save(),T(),m.restore();g.__drawIndex=M,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<i.length;d++)v(d);return be.wxa&&I(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},t.prototype._doPaintEl=function(e,r,n,a,i,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(vi(s,e,i,o),e.setPrevPaintRect(l))}else vi(s,e,i,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=oi);var n=this._layers[e];return n||(n=new pv("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ge(n,this._layerConfig[e],!0):this._layerConfig[e-pu]&&Ge(n,this._layerConfig[e-pu],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&R3(r)){if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(r,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(r,o,i)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(r,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function r(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+O3,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?pu:0),this._needsManuallyCompositing),f.__builtin__||mp("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),i=f),a.__dirty&ar&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,I(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Ge(n[e],r,!0):n[e]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+pu){var o=this._layers[i];Ge(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,a=r[e];a&&(a.dom.parentNode.removeChild(a.dom),delete r[e],n.splice(ke(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),r!=null&&(a.height=r),e=lo(i,0,a),r=lo(i,1,a),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(oi).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[oi].dom;var r=new pv("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,a,i):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore(
20))})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];vi(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function AC(t){t.registerPainter("canvas",B3)}const N3=jn({__name:"index",props:Uu({options:{}},{instance:{},instanceModifiers:{}}),emits:Uu(["echarts:click","echarts:dblclick","echarts:mousedown","echarts:mouseup","echarts:mouseover","echarts:mouseout","echarts:globalout","echarts:contextmenu","echarts:datarangeselected"],["update:instance"]),setup(t,{emit:e}){const r=e,n=["click","dblclick","mousedown","mouseup","mouseover","mouseout","globalout","contextmenu","datarangeselected"],a=Ax(t,"instance"),i=vM("container"),o=Rx(dM(i));Zn([AC,pN,Z5,O5,B5]);async function s(){const l=De(i);if(!l||!o.width||!o.height||!t.options)return;a.value?.dispose();const u=Ed(l,Nx());n.forEach(f=>{u.on(f,h=>{r(`echarts:${f}`,h)})}),a.value=u}return o0(()=>{a.value?.resize(o)}),o0(()=>{t.options&&a.value?.setOption(t.options,!0)}),pM(s),gM(()=>{a.value?.dispose()}),(l,u)=>(_e(),Mt("div",{ref_key:"container",ref:i,class:"size-full"},null,512))}}),NH=Object.assign(N3,{__name:"Chart"}),z3=jn({__name:"share",setup(t){const e=mM(),{isSupported:r,share:n}=yM();function a(u,f){switch(u){case"facebook":return`https://www.facebook.com/sharer/sharer.php?u=${f}`;case"twitter":return`https://x.com/intent/tweet?url=${f}`;case"linkedin":return`https://www.linkedin.com/sharing/share-offsite/?url=${f}`;case"email":return`mailto:?body=${f}`}}function i(u,f){const h=encodeURI(window.location.href),v=a(f,h);if(f==="email"){const y=document.createElement("a");return y.href=v,y.click(),u.preventDefault()}const c=560,d=770,p=window.innerWidth/2-d/2,g=window.innerHeight/2-c/2,m=window.open(v,"_blank",`height=${c},width=${d},top=${g},left=${p}`);return DM(m?.closed)||u.preventDefault(),!1}function o(){const u=encodeURI(window.location.href);n({title:De(e)||"",text:s("share-text",{title:De(e)}),url:u})}const{t:s}=Jf(),l=Kt(()=>[{label:s("share-via",{type:"Email"}),onSelect:u=>i(u,"email")},{label:s("share-via",{format:"Facebook"}),onSelect:u=>i(u,"facebook")},{label:s("share-via",{format:"Twitter"}),onSelect:u=>i(u,"twitter")},{label:s("share-via",{format:"LinkedIn"}),onSelect:u=>i(u,"linkedin")}]);return(u,f)=>{const h=eh,v=vp;return X(r)?(_e(),ze(h,{key:1,"aria-label":X(s)("share"),label:X(s)("share"),size:"sm","leading-icon":"heroicons-outline:share",variant:"ghost",ui:{label:"max-md:hidden cursor-pointer"},onClick:o},null,8,["aria-label","label"])):(_e(),ze(v,{key:0,items:X(l)},{default:Re(()=>[je(h,{"aria-label":X(s)("share"),label:X(s)("share"),size:"sm","leading-icon":"heroicons-outline:share",variant:"ghost",ui:{label:"max-md:hidden"}},null,8,["aria-label","label"])]),_:1},8,["items"]))}}}),H3=Object.assign(z3,{__name:"ChartToolsShare"});var gu=function(e){return String.fromCharCode(e)},ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function z1(t){for(var e="",r=0,n=0,a=0,i=0,o=0,s=0,l=0,u=0;u<t.length;)r=t.charCodeAt(u++),i=r>>2,n=t.charCodeAt(u++),o=(r&3)<<4|n>>4,a=t.charCodeAt(u++),s=(n&15)<<2|a>>6,l=a&63,isNaN(n)?s=l=64:isNaN(a)&&(l=64),e+=ya.charAt(i)+ya.charAt(o)+ya.charAt(s)+ya.charAt(l);return e}function H1(t){var e="",r=0,n=0,a=0,i=0,o=0,s=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<t.length;)i=ya.indexOf(t.charAt(u++)),o=ya.indexOf(t.charAt(u++)),r=i<<2|o>>4,e+=String.fromCharCode(r),s=ya.indexOf(t.charAt(u++)),n=(o&15)<<4|s>>2,s!==64&&(e+=String.fromCharCode(n)),l=ya.indexOf(t.charAt(u++)),a=(s&3)<<6|l,l!==64&&(e+=String.fromCharCode(a));return e}var rt=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Ci=(function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}})();function bo(t){return rt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function G1(t){return rt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Qi=function(e){return rt?Ci(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)&255})};function $g(t){if(typeof ArrayBuffer>"u")return Qi(t);
20for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n!=t.length;++n)r[n]=t.charCodeAt(n)&255;return e}function G3(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var e=[],r=0;r<t.length;++r)e[r]=String.fromCharCode(t[r]);return e.join("")}function V3(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}var Ji=rt?function(t){return Buffer.concat(t.map(function(e){return Buffer.isBuffer(e)?e:Ci(e)}))}:function(t){if(typeof Uint8Array<"u"){var e=0,r=0;for(e=0;e<t.length;++e)r+=t[e].length;var n=new Uint8Array(r),a=0;for(e=0,r=0;e<t.length;r+=a,++e)if(a=t[e].length,t[e]instanceof Uint8Array)n.set(t[e],r);else{if(typeof t[e]=="string")throw"wtf";n.set(new Uint8Array(t[e]),r)}return n}return[].concat.apply([],t.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function U3(t){for(var e=[],r=0,n=t.length+250,a=bo(t.length+255),i=0;i<t.length;++i){var o=t.charCodeAt(i);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=t.charCodeAt(++i)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(o&3)<<4,a[r++]=128|s&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(e.push(a.slice(0,r)),r=0,a=bo(65535),n=65530)}return e.push(a.slice(0,r)),Ji(e)}var Ds=/\u0000/g,mu=/[\u0001-\u0006]/g;function po(t){for(var e="",r=t.length-1;r>=0;)e+=t.charAt(r--);return e}function Or(t,e){var r=""+t;return r.length>=e?r:jt("0",e-r.length)+r}function Yg(t,e){var r=""+t;return r.length>=e?r:jt(" ",e-r.length)+r}function Wf(t,e){var r=""+t;return r.length>=e?r:r+jt(" ",e-r.length)}function W3(t,e){var r=""+Math.round(t);return r.length>=e?r:jt("0",e-r.length)+r}function $3(t,e){var r=""+t;return r.length>=e?r:jt("0",e-r.length)+r}var V1=Math.pow(2,32);function Xi(t,e){if(t>V1||t<-V1)return W3(t,e);var r=Math.round(t);return $3(r,e)}function $f(t,e){return e=e||0,t.length>=7+e&&(t.charCodeAt(e)|32)===103&&(t.charCodeAt(e+1)|32)===101&&(t.charCodeAt(e+2)|32)===110&&(t.charCodeAt(e+3)|32)===101&&(t.charCodeAt(e+4)|32)===114&&(t.charCodeAt(e+5)|32)===97&&(t.charCodeAt(e+6)|32)===108}var U1=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],gv=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Y3(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}var Nr={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},W1={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},X3={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);
20_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Yf(t,e,r){for(var n=t<0?-1:1,a=t*n,i=0,o=1,s=0,l=1,u=0,f=0,h=Math.floor(a);u<e&&(h=Math.floor(a),s=h*o+i,f=h*u+l,!(a-h<5e-8));)a=1/(a-h),i=o,o=s,l=u,u=f;if(f>e&&(u>e?(f=l,s=i):(f=u,s=o)),!r)return[0,n*s,f];var v=Math.floor(n*s/f);return[v,n*s-v*f,f]}function yu(t,e,r){if(t>2958465||t<0)return null;var n=t|0,a=Math.floor(86400*(t-n)),i=0,o=[],s={D:n,T:a,u:86400*(t-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++a==86400&&(s.T=a=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=e4(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=i,s}var LC=new Date(1899,11,31,0,0,0),q3=LC.getTime(),Z3=new Date(1900,2,1,0,0,0);function kC(t,e){var r=t.getTime();return e?r-=1461*24*60*60*1e3:t>=Z3&&(r+=1440*60*1e3),(r-(q3+(t.getTimezoneOffset()-LC.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Xg(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function K3(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function j3(t){var e=t<0?12:11,r=Xg(t.toFixed(12));return r.length<=e||(r=t.toPrecision(10),r.length<=e)?r:t.toExponential(5)}function Q3(t){var e=Xg(t.toFixed(11));return e.length>(t<0?12:11)||e==="0"||e==="-0"?t.toPrecision(6):e}function J3(t){var e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),r;return e>=-4&&e<=-1?r=t.toPrecision(10+e):Math.abs(e)<=9?r=j3(t):e===10?r=t.toFixed(10).substr(0,12):r=Q3(t),Xg(K3(r.toUpperCase()))}function np(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):J3(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return el(14,kC(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function e4(t,e){e[0]-=581;var r=t.getDay();return t<60&&(r=(r+6)%7),r}function t4(t,e,r,n){var a="",i=0,o=0,s=r.y,l,u=0;switch(t){case 98:s=r.y+543;case 121:switch(e.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(e.length){case 1:case 2:l=r.m,u=e.length;break;case 3:return gv[r.m-1][1];case 5:return gv[r.m-1][0];default:return gv[r.m-1][2]}break;case 100:switch(e.length){case 1:case 2:l=r.d,u=e.length;break;case 3:return U1[r.q][0];default:return U1[r.q][1]}break;case 104:switch(e.length){case 1:case 2:l=1+(r.H+11)%12,u=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:l=r.H,u=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:l=r.M,u=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return r.u===0&&(e=="s"||e=="ss")?Or(r.S,e.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),e==="s"?i===0?"0":""+i/o:(a=Or(i,2+n),e==="ss"?a.substr(0,2):"."+a.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+e}u=e.length===3?1:2;break;case 101:l=s,u=1;break}var f=u>0?Or(l,u):"";return f}function _a(t){var e=3;if(t.length<=e)return t;for(var r=t.length%e,n=t.substr(0,r);r!=t.length;r+=e)n+=(n.length>0?",":"")+t.substr(r,e);return n}var PC=/%/g;function r4(t,e,r){var n=e.replace(PC,""),a=e.length-n.length;return Vn(t,n,r*Math.pow(10,2*a))+jt("%",a)}function n4(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return Vn(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function IC(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+IC(t,-e);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(e/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(e)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);r.substr(0,2)==="0.";
vendor: 11,203 bytes, line 20
20)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,f){return l+u+f.substr(0,(a+i)%a)+"."+f.substr(i)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var EC=/# (\?+)( ?)\/( ?)(\d+)/;function a4(t,e,r){var n=parseInt(t[4],10),a=Math.round(e*n),i=Math.floor(a/n),o=a-i*n,s=n;return r+(i===0?"":""+i)+" "+(o===0?jt(" ",t[1].length+1+t[4].length):Yg(o,t[1].length)+t[2]+"/"+t[3]+Or(s,t[4].length))}function i4(t,e,r){return r+(e===0?"":""+e)+jt(" ",t[1].length+2+t[4].length)}var OC=/^#*0*\.([0#]+)/,RC=/\).*[0#]/,FC=/\(###\) ###\\?-####/;function zt(t){for(var e="",r,n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function $1(t,e){var r=Math.pow(10,e);return""+Math.round(t*r)/r}function Y1(t,e){var r=t-Math.floor(t),n=Math.pow(10,e);return e<(""+Math.round(r*n)).length?0:Math.round(r*n)}function o4(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function s4(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function cr(t,e,r){if(t.charCodeAt(0)===40&&!e.match(RC)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?cr("n",n,r):"("+cr("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return n4(t,e,r);if(e.indexOf("%")!==-1)return r4(t,e,r);if(e.indexOf("E")!==-1)return IC(e,r);if(e.charCodeAt(0)===36)return"$"+cr(t,e.substr(e.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),u=r<0?"-":"";if(e.match(/^00+$/))return u+Xi(l,e.length);if(e.match(/^[#?]+$/))return a=Xi(r,0),a==="0"&&(a=""),a.length>e.length?a:zt(e.substr(0,e.length-a.length))+a;if(i=e.match(EC))return a4(i,l,u);if(e.match(/^#+0+$/))return u+Xi(l,e.length-e.indexOf("0"));if(i=e.match(OC))return a=$1(r,i[1].length).replace(/^([^\.]+)$/,"$1."+zt(i[1])).replace(/\.$/,"."+zt(i[1])).replace(/\.(\d*)$/,function(d,p){return"."+p+jt("0",zt(i[1]).length-p.length)}),e.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return u+$1(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return u+_a(Xi(l,0));if(i=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+cr(t,e,-r):_a(""+(Math.floor(r)+o4(r,i[1].length)))+"."+Or(Y1(r,i[1].length),i[1].length);if(i=e.match(/^#,#*,#0/))return cr(t,e.replace(/^#,#*,/,""),r);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return a=po(cr(t,e.replace(/[\\-]/g,""),r)),o=0,po(po(e.replace(/\\/g,"")).replace(/[0#]/g,function(d){return o<a.length?a.charAt(o++):d==="0"?"0":""}));if(e.match(FC))return a=cr(t,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=Yf(l,Math.pow(10,o)-1,!1),a=""+u,f=Vn("n",i[1],s[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],f=Wf(s[2],o),f.length<i[4].length&&(f=zt(i[4].substr(i[4].length-f.length))+f),a+=f,a;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=Yf(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Yg(s[1],o)+i[2]+"/"+i[3]+Wf(s[2],o):jt(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return a=Xi(r,0),e.length<=a.length?a:zt(e.substr(0,e.length-a.length))+a;if(i=e.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var h=e.indexOf(".")-o,v=e.length-a.length-h;return zt(e.substr(0,h)+a+e.substr(e.length-v))}if(i=e.match(/^00,000\.([#0]*0)$/))return o=Y1(r,i[1].length),r<0?"-"+cr(t,e,-r):_a(s4(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(d){return"00,"+(d.length<3?Or(0,3-d.length):"")+d})+"."+Or(o,i[1].length);switch(e){case"###,##0.00":return cr(t,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var c=_a(Xi(l,0));return c!=="0"?u+c:"";case"###,###.00":return cr(t,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return cr(t,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function l4(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return Vn(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function u4(t,e,r){var n=e.replace(PC,""),a=e.length-n.length;return Vn(t,n,r*Math.pow(10,2*a))+jt("%",a)}function BC(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+BC(t,-e);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(e/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var o=Math.floor(Math.log(e)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,f){return l+u+f.substr(0,(a+i)%a)+"."+f.substr(i)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function tn(t,e,r){if(t.charCodeAt(0)===40&&!e.match(RC)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?tn("n",n,r):"("+tn("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return l4(t,e,r);if(e.indexOf("%")!==-1)return u4(t,e,r);if(e.indexOf("E")!==-1)return BC(e,r);if(e.charCodeAt(0)===36)return"$"+tn(t,e.substr(e.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),u=r<0?"-":"";if(e.match(/^00+$/))return u+Or(l,e.length);if(e.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>e.length?a:zt(e.substr(0,e.length-a.length))+a;if(i=e.match(EC))return i4(i,l,u);if(e.match(/^#+0+$/))return u+Or(l,e.length-e.indexOf("0"));if(i=e.match(OC))return a=(""+r).replace(/^([^\.]+)$/,"$1."+zt(i[1])).replace(/\.$/,"."+zt(i[1])),a=a.replace(/\.(\d*)$/,function(d,p){return"."+p+jt("0",zt(i[1]).length-p.length)}),e.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return u+_a(""+l);if(i=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+tn(t,e,-r):_a(""+r)+"."+jt("0",i[1].length);if(i=e.match(/^#,#*,#0/))return tn(t,e.replace(/^#,#*,/,""),r);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return a=po(tn(t,e.replace(/[\\-]/g,""),r)),o=0,po(po(e.replace(/\\/g,"")).replace(/[0#]/g,function(d){return o<a.length?a.charAt(o++):d==="0"?"0":""}));if(e.match(FC))return a=tn(t,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=Yf(l,Math.pow(10,o)-1,!1),a=""+u,f=Vn("n",i[1],s[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+i[2]+"/"+i[3],f=Wf(s[2],o),f.length<i[4].length&&(f=zt(i[4].substr(i[4].length-f.length))+f),a+=f,a;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=Yf(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Yg(s[1],o)+i[2]+"/"+i[3]+Wf(s[2],o):jt(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return a=""+r,e.length<=a.length?a:zt(e.substr(0,e.length-a.length))+a;if(i=e.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var h=e.indexOf(".")-o,v=e.length-a.length-h;return zt(e.substr(0,h)+a+e.substr(e.length-v))}if(i=e.match(/^00,000\.([#0]*0)$/))return r<0?"-"+tn(t,e,-r):_a(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(d){return"00,"+(d.length<3?Or(0,3-d.length):"")+d})+"."+Or(0,i[1].length);switch(e){case"###,###":case"##,###":case"#,###":var c=_a(""+l);return c!=="0"?u+c:"";default:if(e.match(/\.[0#?]*$/))return tn(t,e.slice(0,e.lastIndexOf(".")),r)+zt(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function Vn(t,e,r){return(r|0)===r?tn(t,e,r):cr(t,e,r)}function f4(t){for(var e=[],r=!1,n=0,a=0;n<t.length;++n)switch(t.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:e[e.length]=t.substr(a,n-a),a=n+1}if(e[e.length]=t.substr(a),r===!0)throw new Error("Format |"+t+"| unterminated string ");return e}var NC=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function h4(t){for(var e=0,r="",n="";e<t.length;)switch(r=t.charAt(e)){case"G":$f(t,e)&&(e+=6),e++;break;case'"':for(;t.charCodeAt(++e)!==34&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(t.charAt(e+1)==="1"||t.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(e,3).toUpperCase()==="A/P"||t.substr(e,5).toUpperCase()==="AM/PM"||t.substr(e,5).toUpperCase()==="上午/下午")return!0;++e;break;case"[":for(n=r;t.charAt(e++)!=="]"&&e<t.length;)n+=t.charAt(e);if(n.match(NC))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(r=t.charAt(++e))>-1||r=="\\"&&t.charAt(e+1)=="-"&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===r;);break;case"*":++e,(t.charAt(e)==" "||t.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function c4(t,e,r,n){for(var a=[],i="",o=0,s="",l="t",u,f,h,v="H";o<t.length;)switch(s=t.charAt(o)){case"G":if(!$f(t,o))throw new Error("unrecognized character "+s+" in "+t);a[a.length]={t:"G",v:"General"},o+=7;break;case'"':for(i="";(h=t.charCodeAt(++o))!==34&&o<t.length;)i+=String.fromCharCode(h);a[a.length]={t:"t",v:i},++o;break;case"\\":var c=t.charAt(++o),d=c==="("||c===")"?c:"t";a[a.length]={t:d,v:c},++o;break;case"_":a[a.length]={t:"t",v:" "},o+=2;break;case"@":a[a.length]={t:"T",v:e},++o;break;case"B":case"b":if(t.charAt(o+1)==="1"||t.charAt(o+1)==="2"){if(u==null&&(u=yu(e,r,t.charAt(o+1)==="2"),u==null))return"";a[a.length]={t:"X",v:t.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||u==null&&(u=yu(e,r),u==null))return"";for(i=s;++o<t.length&&t.charAt(o).toLowerCase()===s;)i+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=v),a[a.length]={t:s,v:i},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(u==null&&(u=yu(e,r)),t.substr(o,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",v="h",o+=3):t.substr(o,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",o+=5,v="h"):t.substr(o,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",o+=5,v="h"):(p.t="t",++o),u==null&&p.t==="T")return"";a[a.length]=p,l=s;break;case"[":for(i=s;t.charAt(o++)!=="]"&&o<t.length;)i+=t.charAt(o);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";
vendor: 5,818 bytes, line 20
20if(i.match(NC)){if(u==null&&(u=yu(e,r),u==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},l=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",h4(t)||(a[a.length]={t:"t",v:i}));break;case".":if(u!=null){for(i=s;++o<t.length&&(s=t.charAt(o))==="0";)i+=s;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=s;++o<t.length&&"0#?.,E+-%".indexOf(s=t.charAt(o))>-1;)i+=s;a[a.length]={t:"n",v:i};break;case"?":for(i=s;t.charAt(++o)===s;)i+=s;a[a.length]={t:s,v:i},l=s;break;case"*":++o,(t.charAt(o)==" "||t.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;o<t.length&&"0123456789".indexOf(t.charAt(++o))>-1;)i+=t.charAt(o);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:s,v:s},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+t);a[a.length]={t:"t",v:s},++o;break}var g=0,m=0,y;for(o=a.length-1,l="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=v,l="h",g<1&&(g=1);break;case"s":(y=a[o].v.match(/\.0+$/))&&(m=Math.max(m,y[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=a[o].t;break;case"m":l==="s"&&(a[o].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&a[o].v.match(/[Hh]/)&&(g=1),g<2&&a[o].v.match(/[Mm]/)&&(g=2),g<3&&a[o].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var _="",x;for(o=0;o<a.length;++o)switch(a[o].t){case"t":case"T":case" ":case"D":break;case"X":a[o].v="",a[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[o].v=t4(a[o].t.charCodeAt(0),a[o].v,u,m),a[o].t="t";break;case"n":case"?":for(x=o+1;a[x]!=null&&((s=a[x].t)==="?"||s==="D"||(s===" "||s==="t")&&a[x+1]!=null&&(a[x+1].t==="?"||a[x+1].t==="t"&&a[x+1].v==="/")||a[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(a[x].v==="/"||a[x].v===" "&&a[x+1]!=null&&a[x+1].t=="?"));)a[o].v+=a[x].v,a[x]={v:"",t:";"},++x;_+=a[o].v,o=x-1;break;case"G":a[o].t="t",a[o].v=np(e,r);break}var S="",w,b;if(_.length>0){_.charCodeAt(0)==40?(w=e<0&&_.charCodeAt(0)===45?-e:e,b=Vn("n",_,w)):(w=e<0&&n>1?-e:e,b=Vn("n",_,w),w<0&&a[0]&&a[0].t=="t"&&(b=b.substr(1),a[0].v="-"+a[0].v)),x=b.length-1;var M=a.length;for(o=0;o<a.length;++o)if(a[o]!=null&&a[o].t!="t"&&a[o].v.indexOf(".")>-1){M=o;break}var T=a.length;if(M===a.length&&b.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(x>=a[o].v.length-1?(x-=a[o].v.length,a[o].v=b.substr(x+1,a[o].v.length)):x<0?a[o].v="":(a[o].v=b.substr(0,x+1),x=-1),a[o].t="t",T=o);x>=0&&T<a.length&&(a[T].v=b.substr(0,x+1)+a[T].v)}else if(M!==a.length&&b.indexOf("E")===-1){for(x=b.indexOf(".")-1,o=M;o>=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(f=a[o].v.indexOf(".")>-1&&o===M?a[o].v.indexOf(".")-1:a[o].v.length-1,S=a[o].v.substr(f+1);f>=0;--f)x>=0&&(a[o].v.charAt(f)==="0"||a[o].v.charAt(f)==="#")&&(S=b.charAt(x--)+S);a[o].v=S,a[o].t="t",T=o}for(x>=0&&T<a.length&&(a[T].v=b.substr(0,x+1)+a[T].v),x=b.indexOf(".")+1,o=M;o<a.length;++o)if(!(a[o]==null||"n?(".indexOf(a[o].t)===-1&&o!==M)){for(f=a[o].v.indexOf(".")>-1&&o===M?a[o].v.indexOf(".")+1:0,S=a[o].v.substr(0,f);f<a[o].v.length;++f)x<b.length&&(S+=b.charAt(x++));a[o].v=S,a[o].t="t",T=o}}}for(o=0;o<a.length;++o)a[o]!=null&&"n?".indexOf(a[o].t)>-1&&(w=n>1&&e<0&&o>0&&a[o-1].v==="-"?-e:e,a[o].v=Vn(a[o].t,a[o].v,w),a[o].t="t");var A="";for(o=0;o!==a.length;++o)a[o]!=null&&(A+=a[o].v);return A}var X1=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function q1(t,e){if(e==null)return!1;var r=parseFloat(e[2]);switch(e[1]){case"=":if(t==r)return!0;break;case">":if(t>r)return!0;break;case"<":if(t<r)return!0;break;case"<>":if(t!=r)return!0;break;case">=":if(t>=r)return!0;break;case"<=":if(t<=r)return!0;break}return!1}function v4(t,e){var r=f4(t),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof e!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=e>0?r[0]:e<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(X1),s=r[1].match(X1);return q1(e,o)?[n,r[0]]:q1(e,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,i]}function el(t,e,r){r==null&&(r={});var n="";switch(typeof t){case"string":t=="m/d/yy"&&r.dateNF?n=r.dateNF:n=t;break;case"number":t==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Nr)[t],n==null&&(n=r.table&&r.table[W1[t]]||Nr[W1[t]]),n==null&&(n=X3[t]||"General");break}if($f(n,0))return np(e,r);e instanceof Date&&(e=kC(e,r.date1904));var a=v4(n,e);if($f(a[1]))return np(e,r);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return c4(a[1],e,r,a[0])}function zC(t,e){if(typeof e!="number"){e=+e||-1;for(var r=0;r<392;++r){if(Nr[r]==null){e<0&&(e=r);continue}if(Nr[r]==t){e=r;break}}e<0&&(e=391)}return Nr[e]=t,e}function d4(t){for(var e=0;e!=392;++e)t[e]!==void 0&&zC(t[e],e)}function p4(){Nr=Y3()}var g4=(function(){var t={};t.version="1.2.0";function e(){for(var b=0,M=new Array(256),T=0;T!=256;++T)b=T,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,M[T]=b;return typeof Int32Array<"u"?new Int32Array(M):M}
vendor: 2,675 bytes, line 20
20var r=e();function n(b){var M=0,T=0,A=0,k=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(A=0;A!=256;++A)k[A]=b[A];for(A=0;A!=256;++A)for(T=b[A],M=256+A;M<4096;M+=256)T=k[M]=T>>>8^b[T&255];var F=[];for(A=1;A!=16;++A)F[A-1]=typeof Int32Array<"u"?k.subarray(A*256,A*256+256):k.slice(A*256,A*256+256);return F}var a=n(r),i=a[0],o=a[1],s=a[2],l=a[3],u=a[4],f=a[5],h=a[6],v=a[7],c=a[8],d=a[9],p=a[10],g=a[11],m=a[12],y=a[13],_=a[14];function x(b,M){for(var T=M^-1,A=0,k=b.length;A<k;)T=T>>>8^r[(T^b.charCodeAt(A++))&255];return~T}function S(b,M){for(var T=M^-1,A=b.length-15,k=0;k<A;)T=_[b[k++]^T&255]^y[b[k++]^T>>8&255]^m[b[k++]^T>>16&255]^g[b[k++]^T>>>24]^p[b[k++]]^d[b[k++]]^c[b[k++]]^v[b[k++]]^h[b[k++]]^f[b[k++]]^u[b[k++]]^l[b[k++]]^s[b[k++]]^o[b[k++]]^i[b[k++]]^r[b[k++]];for(A+=15;k<A;)T=T>>>8^r[(T^b[k++])&255];return~T}function w(b,M){for(var T=M^-1,A=0,k=b.length,F=0,O=0;A<k;)F=b.charCodeAt(A++),F<128?T=T>>>8^r[(T^F)&255]:F<2048?(T=T>>>8^r[(T^(192|F>>6&31))&255],T=T>>>8^r[(T^(128|F&63))&255]):F>=55296&&F<57344?(F=(F&1023)+64,O=b.charCodeAt(A++)&1023,T=T>>>8^r[(T^(240|F>>8&7))&255],T=T>>>8^r[(T^(128|F>>2&63))&255],T=T>>>8^r[(T^(128|O>>6&15|(F&3)<<4))&255],T=T>>>8^r[(T^(128|O&63))&255]):(T=T>>>8^r[(T^(224|F>>12&15))&255],T=T>>>8^r[(T^(128|F>>6&63))&255],T=T>>>8^r[(T^(128|F&63))&255]);return~T}return t.table=r,t.bstr=x,t.buf=S,t.str=w,t})(),Ir=(function(){var e={};e.version="1.2.1";function r(C,P){for(var D=C.split("/"),L=P.split("/"),E=0,R=0,G=Math.min(D.length,L.length);E<G;++E){if(R=D[E].length-L[E].length)return R;if(D[E]!=L[E])return D[E]<L[E]?-1:1}return D.length-L.length}function n(C){if(C.charAt(C.length-1)=="/")return C.slice(0,-1).indexOf("/")===-1?C:n(C.slice(0,-1));var P=C.lastIndexOf("/");return P===-1?C:C.slice(0,P+1)}function a(C){if(C.charAt(C.length-1)=="/")return a(C.slice(0,-1));var P=C.lastIndexOf("/");return P===-1?C:C.slice(P+1)}function i(C,P){typeof P=="string"&&(P=new Date(P));var D=P.getHours();D=D<<6|P.getMinutes(),D=D<<5|P.getSeconds()>>>1,C.write_shift(2,D);var L=P.getFullYear()-1980;L=L<<4|P.getMonth()+1,L=L<<5|P.getDate(),C.write_shift(2,L)}function o(C){var P=C.read_shift(2)&65535,D=C.read_shift(2)&65535,L=new Date,E=D&31;D>>>=5;var R=D&15;D>>>=4,L.setMilliseconds(0),L.setFullYear(D+1980),L.setMonth(R-1),L.setDate(E);var G=P&31;P>>>=5;var W=P&63;return P>>>=6,L.setHours(P),L.setMinutes(W),L.setSeconds(G<<1),L}function s(C){ua(C,0);for(var P={},D=0;C.l<=C.length-4;){var L=C.read_shift(2),E=C.read_shift(2),R=C.l+E,G={};L===21589&&(D=C.read_shift(1),D&1&&(G.mtime=C.read_shift(4)),E>5&&(D&2&&(G.atime=C.read_shift(4)),D&4&&(G.ctime=C.read_shift(4))),G.mtime&&(G.mt=new Date(G.mtime*1e3))),C.l=R,P[
vendor: 6,548 bytes, line 20
20L]=G}return P}var l;function u(){return l||(l={})}function f(C,P){if(C[0]==80&&C[1]==75)return i0(C,P);if((C[0]|32)==109&&(C[1]|32)==105)return I2(C,P);if(C.length<512)throw new Error("CFB file size "+C.length+" < 512");var D=3,L=512,E=0,R=0,G=0,W=0,H=0,V=[],U=C.slice(0,512);ua(U,0);var Z=h(U);switch(D=Z[0],D){case 3:L=512;break;case 4:L=4096;break;case 0:if(Z[1]==0)return i0(C,P);default:throw new Error("Major Version: Expected 3 or 4 saw "+D)}L!==512&&(U=C.slice(0,L),ua(U,28));var ee=C.slice(0,L);v(U,D);var ue=U.read_shift(4,"i");if(D===3&&ue!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ue);U.l+=4,G=U.read_shift(4,"i"),U.l+=4,U.chk("00100000","Mini Stream Cutoff Size: "),W=U.read_shift(4,"i"),E=U.read_shift(4,"i"),H=U.read_shift(4,"i"),R=U.read_shift(4,"i");for(var j=-1,ie=0;ie<109&&(j=U.read_shift(4,"i"),!(j<0));++ie)V[ie]=j;var Te=c(C,L);g(H,R,Te,L,V);var et=y(Te,G,V,L);et[G].name="!Directory",E>0&&W!==O&&(et[W].name="!MiniFAT"),et[V[0]].name="!FAT",et.fat_addrs=V,et.ssz=L;var tt={},kt=[],Io=[],Eo=[];_(G,et,Te,kt,E,tt,Io,W),d(Io,Eo,kt),kt.shift();var Oo={FileIndex:Io,FullPaths:Eo};return P&&P.raw&&(Oo.raw={header:ee,sectors:Te}),Oo}function h(C){if(C[C.l]==80&&C[C.l+1]==75)return[0,0];C.chk(B,"Header Signature: "),C.l+=16;var P=C.read_shift(2,"u");return[C.read_shift(2,"u"),P]}function v(C,P){var D=9;switch(C.l+=2,D=C.read_shift(2)){case 9:if(P!=3)throw new Error("Sector Shift: Expected 9 saw "+D);break;case 12:if(P!=4)throw new Error("Sector Shift: Expected 12 saw "+D);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+D)}C.chk("0600","Mini Sector Shift: "),C.chk("000000000000","Reserved: ")}function c(C,P){for(var D=Math.ceil(C.length/P)-1,L=[],E=1;E<D;++E)L[E-1]=C.slice(E*P,(E+1)*P);return L[D-1]=C.slice(D*P),L}function d(C,P,D){for(var L=0,E=0,R=0,G=0,W=0,H=D.length,V=[],U=[];L<H;++L)V[L]=U[L]=L,P[L]=D[L];for(;W<U.length;++W)L=U[W],E=C[L].L,R=C[L].R,G=C[L].C,V[L]===L&&(E!==-1&&V[E]!==E&&(V[L]=V[E]),R!==-1&&V[R]!==R&&(V[L]=V[R])),G!==-1&&(V[G]=L),E!==-1&&L!=V[L]&&(V[E]=V[L],U.lastIndexOf(E)<W&&U.push(E)),R!==-1&&L!=V[L]&&(V[R]=V[L],U.lastIndexOf(R)<W&&U.push(R));for(L=1;L<H;++L)V[L]===L&&(R!==-1&&V[R]!==R?V[L]=V[R]:E!==-1&&V[E]!==E&&(V[L]=V[E]));for(L=1;L<H;++L)if(C[L].type!==0){if(W=L,W!=V[W])do W=V[W],P[L]=P[W]+"/"+P[L];while(W!==0&&V[W]!==-1&&W!=V[W]);V[L]=-1}for(P[0]+="/",L=1;L<H;++L)C[L].type!==2&&(P[L]+="/")}function p(C,P,D){for(var L=C.start,E=C.size,R=[],G=L;D&&E>0&&G>=0;)R.push(P.slice(G*F,G*F+F)),E-=F,G=to(D,G*4);return R.length===0?An(0):Ji(R).slice(0,C.size)}function g(C,P,D,L,E){var R=O;if(C===O){if(P!==0)throw new Error("DIFAT chain shorter than expected")}else if(C!==-1){var G=D[C],W=(L>>>2)-1;if(!G)return;for(var H=0;H<W&&(R=to(G,H*4))!==O;++H)E.push(R);g(to(G,L-4),P-1,D,L,E)}}function m(C,P,D,L,E){var R=[],G=[];E||(E=[]);var W=L-1,H=0,V=0;for(H=P;H>=0;){E[H]=!0,R[R.length]=H,G.push(C[H]);var U=D[Math.floor(H*4/L)];if(V=H*4&W,L<4+V)throw new Error("FAT boundary crossed: "+H+" 4 "+L);if(!C[U])break;H=to(C[U],V)}return{nodes:R,data:tx([G])}}function y(C,P,D,L){var E=C.length,R=[],G=[],W=[],H=[],V=L-1,U=0,Z=0,ee=0,ue=0;for(U=0;U<E;++U)if(W=[],ee=U+P,ee>=E&&(ee-=E),!G[ee]){H=[];var j=[];for(Z=ee;Z>=0;){j[Z]=!0,G[Z]=!0,W[W.length]=Z,H.push(C[Z]);var ie=D[Math.floor(Z*4/L)];if(ue=Z*4&V,L<4+ue)throw new Error("FAT boundary crossed: "+Z+" 4 "+L);if(!C[ie]||(Z=to(C[ie],ue),j[Z]))break}R[ee]={nodes:W,data:tx([H])}}return R}function _(C,P,D,L,E,R,G,W){for(var H=0,V=L.length?2:0,U=P[C].data,Z=0,ee=0,ue;Z<U.length;Z+=128){var j=U.slice(Z,Z+128);ua(j,64),ee=j.read_shift(2),ue=qg(j,0,ee-V),L.push(ue);var ie={name:ue,type:j.read_shift(1),color:j.read_shift(1),L:j.read_shift(4,"i"),R:j.read_shift(4,"i"),C:j.read_shift(4,"i"),clsid:j.read_shift(16),state:j.read_shift(4,"i"),start:0,size:0},Te=j.read_shift(2)+j.read_shift(2)+j.read_shift(2)+j.read_shift(2);Te!==0&&(ie.ct=x(j,j.l-8));var et=j.read_shift(2)+j.read_shift(2)+j.read_shift(2)+j.read_shift(2);et!==0&&(ie.mt=x(j,j.l-8)),ie.start=j.read_shift(4,"i"),ie.size=j.read_shift(4,"i"),ie.size<0&&ie.start<0&&(ie.size=ie.type=0,ie.start=O,ie.name=""),ie.type===5?(H=ie.start,E>0&&H!==O&&(P[H].name="!StreamData")):ie.size>=4096?(ie.storage="fat",P[ie.start]===void 0&&(P[ie.start]=m(D,ie.start,P.fat_addrs,P.ssz)),P[ie.start].name=ie.name,ie.content=P[ie.start].data.slice(0,ie.size)):(ie.storage="minifat",ie.size<0?ie.size=0:H!==O&&ie.start!==O&&P[H]&&(ie.content=p(ie,P[H].data,(P[W]||{}).data))),ie.content&&ua(ie.content,0),R[ue]=ie,G.push(ie)}}function x(C,P){return new Date((nr(C,P+4)/1e7*Math.pow(2,32)+nr(C,P)/1e7-11644473600)*1e3)}function S(C,P){return u(),f(l.readFileSync(C),P)}function w(C,P){var D=P&&P.type;switch(D||rt&&Buffer.isBuffer(C)&&(D="buffer"),D||"base64"){case"file":return S(C,P);case"base64":return f(Qi(H1(C)),P);case"binary":return f(Qi(C),P)}return f(C,P)}function b(C,P){var D=P||{},L=D.root||"Root Entry";if(C.FullPaths||(C.FullPaths=[]),C.FileIndex||(C.FileIndex=[]),C.FullPaths.length!==C.FileIndex.length)throw new Error("inconsistent CFB structure");C.FullPaths.length===0&&(C.FullPaths[0]=L+"/",C.FileIndex[0]={name:L,type:5}),D.CLSID&&(C.FileIndex[0].clsid=D.CLSID),M(C)}function M(C){var P="�Sh33tJ5";if(!Ir.find(C,"/"+P)){var D=An(4);D[0]=55,D[1]=D[3]=50,D[2]=54,C.FileIndex.push({name:P,type:2,content:D,size:4,L:69,R:69,C:69}),C.FullPaths.push(C.FullPaths[0]+P),T(C)}}function T(C,P){b(C);for(var D=!1,L=!1,E=C.FullPaths.length-1;E>=0;--E){var R=C.FileIndex[E];switch(R.type){case 0:L?D=!0:(C.FileIndex.pop(),C.FullPaths.pop());break;case 1:case 2:case 5:L=!0,isNaN(R.R*R.L*R.C)&&(D=!0),R.R>-1&&R.L>-1&&R.R==R.L&&(D=!0);break;default:D=!0;break}}if(!(!D&&!P)){var G=new Date(1987,1,19),W=0,H=Object.create?Object.create(null):{},V=[];for(E=0;E<C.FullPaths.length;++E)H[C.FullPaths[E]]=!0,C.FileIndex[E].type!==0&&V.push([C.FullPaths[E],C.FileIndex[E]]);for(E=0;E<V.length;++E){var U=n(V[E][0]);L=H[U],L||(V.push([U,{name:a(U).replace("/",""),type:1,clsid:z,ct:G,mt:G,content:null}]),H[U]=!0)}for(V.sort(function(ue,j){return r(ue[0],j[0])}),C.FullPaths=[],C.FileIndex=[],E=0;E<V.length;++E)C.FullPaths[E]=V[E][0],C.FileIndex[E]=V[E][1];for(E=0;E<V.length;++E){var Z=C.FileIndex[E],ee=C.FullPaths[E];if(Z.name=a(ee).replace("/",""),Z.L=Z.R=Z.C=-(Z.color=1),Z.size=Z.content?Z.content.length:0,Z.start=0,Z.clsid=Z.clsid||z,E===0)Z.C=V.length>1?1:-1,Z.size=0,Z.type=5;else if(ee.slice(-1)=="/"){for(W=E+1;W<V.length&&n(C.FullPaths[W])!=ee;++W);for(Z.C=W>=V.length?-1:W,W=E+1;W<V.length&&n(C.FullPaths[W])!=n(ee);++W);Z.R=W>=V.length?-1:W,Z.type=1}
vendor: 18,668 bytes, lines 20-30
20else n(C.FullPaths[E+1]||"")==n(ee)&&(Z.R=E+1),Z.type=2}}}function A(C,P){var D=P||{};if(D.fileType=="mad")return E2(C,D);if(T(C),D.fileType==="zip")return M2(C,D);var L=(function(ue){for(var j=0,ie=0,Te=0;Te<ue.FileIndex.length;++Te){var et=ue.FileIndex[Te];if(et.content){var tt=et.content.length;tt>0&&(tt<4096?j+=tt+63>>6:ie+=tt+511>>9)}}for(var kt=ue.FullPaths.length+3>>2,Io=j+7>>3,Eo=j+127>>7,Oo=Io+ie+kt+Eo,Oa=Oo+127>>7,Oh=Oa<=109?0:Math.ceil((Oa-109)/127);Oo+Oa+Oh+127>>7>Oa;)Oh=++Oa<=109?0:Math.ceil((Oa-109)/127);var bn=[1,Oh,Oa,Eo,kt,ie,j,0];return ue.FileIndex[0].size=j<<6,bn[7]=(ue.FileIndex[0].start=bn[0]+bn[1]+bn[2]+bn[3]+bn[4]+bn[5])+(bn[6]+7>>3),bn})(C),E=An(L[7]<<9),R=0,G=0;{for(R=0;R<8;++R)E.write_shift(1,N[R]);for(R=0;R<8;++R)E.write_shift(2,0);for(E.write_shift(2,62),E.write_shift(2,3),E.write_shift(2,65534),E.write_shift(2,9),E.write_shift(2,6),R=0;R<3;++R)E.write_shift(2,0);for(E.write_shift(4,0),E.write_shift(4,L[2]),E.write_shift(4,L[0]+L[1]+L[2]+L[3]-1),E.write_shift(4,0),E.write_shift(4,4096),E.write_shift(4,L[3]?L[0]+L[1]+L[2]-1:O),E.write_shift(4,L[3]),E.write_shift(-4,L[1]?L[0]-1:O),E.write_shift(4,L[1]),R=0;R<109;++R)E.write_shift(-4,R<L[2]?L[1]+R:-1)}if(L[1])for(G=0;G<L[1];++G){for(;R<236+G*127;++R)E.write_shift(-4,R<L[2]?L[1]+R:-1);E.write_shift(-4,G===L[1]-1?O:G+1)}var W=function(ue){for(G+=ue;R<G-1;++R)E.write_shift(-4,R+1);ue&&(++R,E.write_shift(-4,O))};for(G=R=0,G+=L[1];R<G;++R)E.write_shift(-4,q.DIFSECT);for(G+=L[2];R<G;++R)E.write_shift(-4,q.FATSECT);W(L[3]),W(L[4]);for(var H=0,V=0,U=C.FileIndex[0];H<C.FileIndex.length;++H)U=C.FileIndex[H],U.content&&(V=U.content.length,!(V<4096)&&(U.start=G,W(V+511>>9)));for(W(L[6]+7>>3);E.l&511;)E.write_shift(-4,q.ENDOFCHAIN);for(G=R=0,H=0;H<C.FileIndex.length;++H)U=C.FileIndex[H],U.content&&(V=U.content.length,!(!V||V>=4096)&&(U.start=G,W(V+63>>6)));for(;E.l&511;)E.write_shift(-4,q.ENDOFCHAIN);for(R=0;R<L[4]<<2;++R){var Z=C.FullPaths[R];if(!Z||Z.length===0){for(H=0;H<17;++H)E.write_shift(4,0);for(H=0;H<3;++H)E.write_shift(4,-1);for(H=0;H<12;++H)E.write_shift(4,0);continue}U=C.FileIndex[R],R===0&&(U.start=U.size?U.start-1:O);var ee=R===0&&D.root||U.name;if(V=2*(ee.length+1),E.write_shift(64,ee,"utf16le"),E.write_shift(2,V),E.write_shift(1,U.type),E.write_shift(1,U.color),E.write_shift(-4,U.L),E.write_shift(-4,U.R),E.write_shift(-4,U.C),U.clsid)E.write_shift(16,U.clsid,"hex");else for(H=0;H<4;++H)E.write_shift(4,0);E.write_shift(4,U.state||0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,U.start),E.write_shift(4,U.size),E.write_shift(4,0)}for(R=1;R<C.FileIndex.length;++R)if(U=C.FileIndex[R],U.size>=4096)if(E.l=U.start+1<<9,rt&&Buffer.isBuffer(U.content))U.content.copy(E,E.l,0,U.size),E.l+=U.size+511&-512;else{for(H=0;H<U.size;++H)E.write_shift(1,U.content[H]);for(;H&511;++H)E.write_shift(1,0)}for(R=1;R<C.FileIndex.length;++R)if(U=C.FileIndex[R],U.size>0&&U.size<4096)if(rt&&Buffer.isBuffer(U.content))U.content.copy(E,E.l,0,U.size),E.l+=U.size+63&-64;else{for(H=0;H<U.size;++H)E.write_shift(1,U.content[H]);for(;H&63;++H)E.write_shift(1,0)}if(rt)E.l=E.length;else for(;E.l<E.length;)E.write_shift(1,0);return E}function k(C,P){var D=C.FullPaths.map(function(H){return H.toUpperCase()}),L=D.map(function(H){var V=H.split("/");return V[V.length-(H.slice(-1)=="/"?2:1)]}),E=!1;P.charCodeAt(0)===47?(E=!0,P=D[0].slice(0,-1)+P):E=P.indexOf("/")!==-1;var R=P.toUpperCase(),G=E===!0?D.indexOf(R):L.indexOf(R);if(G!==-1)return C.FileIndex[G];var W=!R.match(mu);for(R=R.replace(Ds,""),W&&(R=R.replace(mu,"!")),G=0;G<D.length;++G)if((W?D[G].replace(mu,"!"):D[G]).replace(Ds,"")==R||(W?L[G].replace(mu,"!"):L[G]).replace(Ds,"")==R)return C.FileIndex[G];return null}var F=64,O=-2,B="d0cf11e0a1b11ae1",N=[208,207,17,224,161,177,26,225],z="00000000000000000000000000000000",q={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:O,FREESECT:-1,HEADER_SIGNATURE:B,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:z,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Y(C,P,D){u();var L=A(C,D);l.writeFileSync(P,L)}function ne(C){for(var P=new Array(C.length),D=0;D<C.length;++D)P[D]=String.fromCharCode(C[D]);return P.join("")}function te(C,P){var D=A(C,P);switch(P&&P.type||"buffer"){case"file":return u(),l.writeFileSync(P.filename,D),D;case"binary":return typeof D=="string"?D:ne(D);case"base64":return z1(typeof D=="string"?D:ne(D));case"buffer":if(rt)return Buffer.isBuffer(D)?D:Ci(D);case"array":return typeof D=="string"?Qi(D):D}return D}var oe;function se(C){try{var P=C.InflateRaw,D=new P;if(D._processChunk(new Uint8Array([3,0]),D._finishFlushFlag),D.bytesRead)oe=C;else throw new Error("zlib does not expose bytesRead")}catch(L){console.error("cannot use native zlib: "+(L.message||L))}}function Se(C,P){if(!oe)return n0(C,P);var D=oe.InflateRaw,L=new D,E=L._processChunk(C.slice(C.l),L._finishFlushFlag);return C.l+=L.bytesRead,E}function Ne(C){return oe?oe.deflateRawSync(C):jg(C)}var mt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ht=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ct=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function vt(C){var P=(C<<1|C<<11)&139536|(C<<5|C<<15)&558144;return(P>>16|P>>8|P)&255}for(var Ae=typeof Uint8Array<"u",Oe=Ae?new Uint8Array(256):[],me=0;me<256;++me)Oe[me]=vt(me);function Le(C,P){var D=Oe[C&255];return P<=8?D>>>8-P:(D=D<<8|Oe[C>>8&255],P<=16?D>>>16-P:(D=D<<8|Oe[C>>16&255],D>>>24-P))}function tr(C,P){var D=P&7,L=P>>>3;return(C[L]|(D<=6?0:C[L+1]<<8))>>>D&3}function Je(C,P){var D=P&7,L=P>>>3;return(C[L]|(D<=5?0:C[L+1]<<8))>>>D&7}function Pa(C,P){var D=P&7,L=P>>>3;return(C[L]|(D<=4?0:C[L+1]<<8))>>>D&15}function Wr(C,P){var D=P&7,L=P>>>3;return(C[L]|(D<=3?0:C[L+1]<<8))>>>D&31}function Di(C,P){var D=P&7,L=P>>>3;return(C[L]|(D<=1?0:C[L+1]<<8))>>>D&127}function wn(C,P,D){var L=P&7,E=P>>>3,R=(1<<D)-1,G=C[E]>>>L;return D<8-L||(G|=C[E+1]<<8-L,D<16-L)||(G|=C[E+2]<<16-L,D<24-L)||(G|=C[E+3]<<24-L),G&R}function Ia(C,P,D){var L=P&7,E=P>>>3;return L<=5?C[E]|=(D&7)<<L:(C[E]|=D<<L&255,C[E+1]=(D&7)>>8-L),P+3}function gl(C,P,D){var L=P&7,E=P>>>3;return D=(D&1)<<L,C[E]|=D,P+1}function Sn(C,P,D){var L=P&7,E=P>>>3;return D<<=L,C[E]|=D&255,D>>>=8,C[E+1]=D,P+8}function Kg(C,P,D){var L=P&7,E=P>>>3;return D<<=L,C[E]|=D&255,D>>>=8,C[E+1]=D&255,C[E+2]=D>>>8,P+16}function kh(C,P){var D=C.length,L=2*D>P?2*D:P+5,E=0;if(D>=P)return C;if(rt){var R=G1(L);if(C.copy)C.copy(R);else for(;E<C.length;++E)R[E]=C[E];return R}else if(Ae){var G=new Uint8Array(L);if(G.set)G.set(C);else for(;E<D;++E)G[E]=C[E];return G}return C.length=L,C}function $r(C){for(var P=new Array(C),D=0;D<C;++D)P[D]=0;return P}function ml(C,P,D){var L=1,E=0,R=0,G=0,W=0,H=C.length,V=Ae?new Uint16Array(32):$r(32);for(R=0;R<32;++R)V[R]=0;for(R=H;R<D;++R)C[R]=0;H=C.length;var U=Ae?new Uint16Array(H):$r(H);for(R=0;R<H;++R)V[E=C[R]]++,L<E&&(L=E),U[R]=0;for(V[0]=0,R=1;R<=L;++R)V[R+16]=W=W+V[R-1]<<1;for(R=0;R<H;++R)W=C[R],W!=0&&(U[R]=V[W+16]++);var Z=0;for(R=0;R<H;++R)if(Z=C[R],Z!=0)for(W=Le(U[R],L)>>L-Z,G=(1<<L+4-Z)-1;G>=0;--G)P[W|G<<Z]=Z&15|R<<4;return L}var Ph=Ae?new Uint16Array(512):$r(512),Ih=Ae?new Uint16Array(32):$r(32);if(!Ae){for(var Ea=0;Ea<512;++Ea)Ph[Ea]=0;for(Ea=0;Ea<32;++Ea)Ih[Ea]=0}(function(){for(var C=[],P=0;P<32;P++)C.push(5);ml(C,Ih,32);var D=[];for(P=0;P<=143;P++)D.push(8);for(;P<=255;P++)D.push(9);for(;P<=279;P++)D.push(7);for(;P<=287;P++)D.push(8);ml(D,Ph,288)})();var S2=(function(){for(var P=Ae?new Uint8Array(32768):[],D=0,L=0;D<ct.length-1;++D)for(;L<ct[D+1];++L)P[L]=D;for(;L<32768;++L)P[L]=29;var E=Ae?new Uint8Array(259):[];for(D=0,L=0;D<ht.length-1;++D)for(;L<ht[D+1];++L)E[L]=D;function R(W,H){for(var V=0;V<W.length;){var U=Math.min(65535,W.length-V),Z=V+U==W.length;for(H.write_shift(1,+Z),H.write_shift(2,U),H.write_shift(2,~U&65535);U-- >0;)H[H.l++]=W[V++]}return H.l}function G(W,H){for(var V=0,U=0,Z=Ae?new Uint16Array(32768):[];U<W.length;){var ee=Math.min(65535,W.length-U);if(ee<10){for(V=Ia(H,V,+(U+ee==W.length)),V&7&&(V+=8-(V&7)),H.l=V/8|0,H.write_shift(2,ee),H.write_shift(2,~ee&65535);ee-- >0;)H[H.l++]=W[U++];V=H.l*8;continue}V=Ia(H,V,+(U+ee==W.length)+2);for(var ue=0;ee-- >0;){var j=W[U];ue=(ue<<5^j)&32767;var ie=-1,Te=0;if((ie=Z[ue])&&(ie|=U&-32768,ie>U&&(ie-=32768),ie<U))for(;W[ie+Te]==W[U+Te]&&Te<250;)++Te;if(Te>2){j=E[Te],j<=22?V=Sn(H,V,Oe[j+1]>>1)-1:(Sn(H,V,3),V+=5,Sn(H,V,Oe[j-23]>>5),V+=3);var et=j<8?0:j-4>>2;et>0&&(Kg(H,V,Te-ht[j]),V+=et),j=P[U-ie],V=Sn(H,V,Oe[j]>>3),V-=3;var tt=j<4?0:j-2>>1;tt>0&&(Kg(H,V,U-ie-ct[j]),V+=tt);for(var kt=0;kt<Te;++kt)Z[ue]=U&32767,ue=(ue<<5^W[U])&32767,++U;ee-=Te-1}else j<=143?j=j+48:V=gl(H,V,1),V=Sn(H,V,Oe[j]),Z[ue]=U&32767,++U}V=Sn(H,V,0)-1}return H.l=(V+7)/8|0,H.l}return function(H,V){return H.length<8?R(H,V):G(H,V)}})();function jg(C){var P=An(50+Math.floor(C.length*1.1)),D=S2(C,P);return P.slice(0,D)}var Qg=Ae?new Uint16Array(32768):$r(32768),Jg=Ae?new Uint16Array(32768):$r(32768),e0=Ae?new Uint16Array(128):$r(128),t0=1,r0=1;function b2(C,P){var D=Wr(C,P)+257;P+=5;var L=Wr(C,P)+1;P+=5;var E=Pa(C,P)+4;P+=4;for(var R=0,G=Ae?new Uint8Array(19):$r(19),W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],H=1,V=Ae?new Uint8Array(8):$r(8),U=Ae?new Uint8Array(8):$r(8),Z=G.length,ee=0;ee<E;++ee)G[mt[ee]]=R=Je(C,P),H<R&&(H=R),V[R]++,P+=3;var ue=0;for(V[0]=0,ee=1;ee<=H;++ee)U[ee]=ue=ue+V[ee-1]<<1;for(ee=0;ee<Z;++ee)(ue=G[ee])!=0&&(W[ee]=U[ue]++);var j=0;for(ee=0;ee<Z;++ee)if(j=G[ee],j!=0){ue=Oe[W[ee]]>>8-j;for(var ie=(1<<7-j)-1;ie>=0;--ie)e0[ue|ie<<j]=j&7|ee<<3}var Te=[];for(H=1;Te.length<D+L;)switch(ue=e0[Di(C,P)],P+=ue&7,ue>>>=3){case 16:for(R=3+tr(C,P),P+=2,ue=Te[Te.length-1];R-- >0;)Te.push(ue);break;case 17:for(R=3+Je(C,P),P+=3;R-- >0;)Te.push(0);break;case 18:for(R=11+Di(C,P),P+=7;R-- >0;)Te.push(0);break;default:Te.push(ue),H<ue&&(H=ue);break}var et=Te.slice(0,D),tt=Te.slice(D);for(ee=D;ee<286;++ee)et[ee]=0;for(ee=L;ee<30;++ee)tt[ee]=0;return t0=ml(et,Qg,286),r0=ml(tt,Jg,30),P}function T2(C,P){if(C[0]==3&&!(C[1]&3))return[bo(P),2];for(var D=0,L=0,E=G1(P||1<<18),R=0,G=E.length>>>0,W=0,H=0;(L&1)==0;){if(L=Je(C,D),D+=3,L>>>1)L>>1==1?(W=9,H=5):(D=b2(C,D),W=t0,H=r0);else{D&7&&(D+=8-(D&7));var V=C[D>>>3]|C[(D>>>3)+1]<<8;if(D+=32,V>0)for(!P&&G<R+V&&(E=kh(E,R+V),G=E.length);V-- >0;)E[R++]=C[D>>>3],D+=8;continue}for(;;){!P&&G<R+32767&&(E=kh(E,R+32767),G=E.length);var U=wn(C,D,W),Z=L>>>1==1?Ph[U]:Qg[U];if(D+=Z&15,Z>>>=4,(Z>>>8&255)===0)E[R++]=Z;else{if(Z==256)break;Z-=257;var ee=Z<8?0:Z-4>>2;ee>5&&(ee=0);var ue=R+ht[Z];ee>0&&(ue+=wn(C,D,ee),D+=ee),U=wn(C,D,H),Z=L>>>1==1?Ih[U]:Jg[U],D+=Z&15,Z>>>=4;var j=Z<4?0:Z-2>>1,ie=ct[Z];for(j>0&&(ie+=wn(C,D,j),D+=j),!P&&G<ue&&(E=kh(E,ue+100),G=E.length);R<ue;)E[R]=E[R-ie],++R}}}return P?[E,D+7>>>3]:[E.slice(0,R),D+7>>>3]}function n0(C,P){var D=C.slice(C.l||0),L=T2(D,P);return C.l+=L[1],L[0]}function a0(C,P){if(C)typeof console<"u"&&console.error(P);else throw new Error(P)}function i0(C,P){var D=C;ua(D,0);var L=[],E=[],R={FileIndex:L,FullPaths:E};b(R,{root:P.root});for(var G=D.length-4;(D[G]!=80||D[G+1]!=75||D[G+2]!=5||D[G+3]!=6)&&G>=0;)--G;D.l=G+4,D.l+=4;var W=D.read_shift(2);D.l+=6;var H=D.read_shift(4);for(D.l=H,G=0;G<W;++G){D.l+=20;var V=D.read_shift(4),U=D.read_shift(4),Z=D.read_shift(2),ee=D.read_shift(2),ue=D.read_shift(2);D.l+=8;var j=D.read_shift(4),ie=s(D.slice(D.l+Z,D.l+Z+ee));D.l+=Z+ee+ue;var Te=D.l;D.l=j+4,C2(D,V,U,R,ie),D.l=Te}return R}function C2(C,P,D,L,E){C.l+=2;var R=C.read_shift(2),G=C.read_shift(2),W=o(C);if(R&8257)throw new Error("Unsupported ZIP encryption");for(var H=C.read_shift(4),V=C.read_shift(4),U=C.read_shift(4),Z=C.read_shift(2),ee=C.read_shift(2),ue="",j=0;j<Z;++j)ue+=String.fromCharCode(C[C.l++]);if(ee){var ie=s(C.slice(C.l,C.l+ee));(ie[21589]||{}).mt&&(W=ie[21589].mt),((E||{})[21589]||{}).mt&&(W=E[21589].mt)}C.l+=ee;var Te=C.slice(C.l,C.l+V);switch(G){case 8:Te=Se(C,U);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+G)}var et=!1;R&8&&(H=C.read_shift(4),H==134695760&&(H=C.read_shift(4),et=!0),V=C.read_shift(4),U=C.read_shift(4)),V!=P&&a0(et,"Bad compressed size: "+P+" != "+V),U!=D&&a0(et,"Bad uncompressed size: "+D+" != "+U),Eh(L,ue,Te,{unsafe:!0,mt:W})}function M2(C,P){var D=P||{},L=[],E=[],R=An(1),G=D.compression?8:0,W=0,H=0,V=0,U=0,Z=0,ee=C.FullPaths[0],ue=ee,j=C.FileIndex[0],ie=[],Te=0;for(H=1;H<C.FullPaths.length;++H)if(ue=C.FullPaths[H].slice(ee.length),j=C.FileIndex[H],!(!j.size||!j.content||ue=="�Sh33tJ5")){var et=U,tt=An(ue.length);for(V=0;V<ue.length;++V)tt.write_shift(1,ue.charCodeAt(V)&127);tt=tt.slice(0,tt.l),ie[Z]=g4.buf(j.content,0);var kt=j.content;G==8&&(kt=Ne(kt)),R=An(30),R.write_shift(4,67324752),R.write_shift(2,20),R.write_shift(2,W),R.write_shift(2,G),j.mt?i(R,j.mt):R.write_shift(4,0),R.write_shift(-4,ie[Z]),R.write_shift(4,kt.length),R.write_shift(4,j.content.length),R.write_shift(2,tt.length),R.write_shift(2,0),U+=R.length,L.push(R),U+=tt.length,L.push(tt),U+=kt.length,L.push(kt),R=An(46),R.write_shift(4,33639248),R.write_shift(2,0),R.write_shift(2,20),R.write_shift(2,W),R.write_shift(2,G),R.write_shift(4,0),R.write_shift(-4,ie[Z]),R.write_shift(4,kt.length),R.write_shift(4,j.content.length),R.write_shift(2,tt.length),R.write_shift(2,0),R.write_shift(2,0),R.write_shift(2,0),R.write_shift(2,0),R.write_shift(4,0),R.write_shift(4,et),Te+=R.l,E.push(R),Te+=tt.length,E.push(tt),++Z}return R=An(22),R.write_shift(4,101010256),R.write_shift(2,0),R.write_shift(2,0),R.write_shift(2,Z),R.write_shift(2,Z),R.write_shift(4,Te),R.write_shift(4,U),R.write_shift(2,0),Ji([Ji(L),Ji(E),R])}var yl={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function D2(C,P){if(C.ctype)return C.ctype;var D=C.name||"",L=D.match(/\.([^\.]+)$/);return L&&yl[L[1]]||P&&(L=(D=P).match(/[\.\\]([^\.\\])+$/),L&&yl[L[1]])?yl[L[1]]:"application/octet-stream"}function A2(C){for(var P=z1(C),D=[],L=0;L<P.length;L+=76)D.push(P.slice(L,L+76));return D.join(`\r
21`)+`\r
22`}function L2(C){var P=C.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(V){var U=V.charCodeAt(0).toString(16).toUpperCase();return"="+(U.length==1?"0"+U:U)});P=P.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),P.charAt(0)==`
23`&&(P="=0D"+P.slice(1)),P=P.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
24=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var D=[],L=P.split(`\r
25`),E=0;E<L.length;++E){var R=L[E];if(R.length==0){D.push("");continue}for(var G=0;G<R.length;){var W=76,H=R.slice(G,G+W);H.charAt(W-1)=="="?W--:H.charAt(W-2)=="="?W-=2:H.charAt(W-3)=="="&&(W-=3),H=R.slice(G,G+W),G+=W,G<R.length&&(H+="="),D.push(H)}}return D.join(`\r
26`)}function k2(C){for(var P=[],D=0;D<C.length;++D){for(var L=C[D];D<=C.length&&L.charAt(L.length-1)=="=";)L=L.slice(0,L.length-1)+C[++D];P.push(L)}for(var E=0;E<P.length;++E)P[E]=P[E].replace(/[=][0-9A-Fa-f]{2}/g,function(R){return String.fromCharCode(parseInt(R.slice(1),16))});return Qi(P.join(`\r
27`))}function P2(C,P,D){for(var L="",E="",R="",G,W=0;W<10;++W){var H=P[W];if(!H||H.match(/^\s*$/))break;var V=H.match(/^(.*?):\s*([^\s].*)$/);if(V)switch(V[1].toLowerCase()){case"content-location":L=V[2].trim();break;case"content-type":R=V[2].trim();break;case"content-transfer-encoding":E=V[2].trim();break}}switch(++W,E.toLowerCase()){case"base64":G=Qi(H1(P.slice(W).join("")));break;case"quoted-printable":G=k2(P.slice(W));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+E)}var U=Eh(C,L.slice(D.length),G,{unsafe:!0});R&&(U.ctype=R)}function I2(C,P){if(ne(C.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var D=P&&P.root||"",L=(rt&&Buffer.isBuffer(C)?C.toString("binary"):ne(C)).split(`\r
28`),E=0,R="";for(E=0;E<L.length;++E)if(R=L[E],!!/^Content-Location:/i.test(R)&&(R=R.slice(R.indexOf("file")),D||(D=R.slice(0,R.lastIndexOf("/")+1)),R.slice(0,D.length)!=D))for(;D.length>0&&(D=D.slice(0,D.length-1),D=D.slice(0,D.lastIndexOf("/")+1),R.slice(0,D.length)!=D););var G=(L[1]||"").match(/boundary="(.*?)"/);if(!G)throw new Error("MAD cannot find boundary");var W="--"+(G[1]||""),H=[],V=[],U={FileIndex:H,FullPaths:V};b(U);var Z,ee=0;for(E=0;E<L.length;++E){var ue=L[E];ue!==W&&ue!==W+"--"||(ee++&&P2(U,L.slice(Z,E),D),Z=E)}return U}function E2(C,P){var D=P||{},L=D.boundary||"SheetJS";L="------="+L;for(var E=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+L.slice(2)+'"',"","",""],R=C.FullPaths[0],G=R,W=C.FileIndex[0],H=1;H<C.FullPaths.length;++H)if(G=C.FullPaths[H].slice(R.length),W=C.FileIndex[H],!(!W.size||!W.content||G=="�Sh33tJ5")){G=G.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Te){return"_x"+Te.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Te){return"_u"+Te.charCodeAt(0).toString(16)+"_"});for(var V=W.content,U=rt&&Buffer.isBuffer(V)?V.toString("binary"):ne(V),Z=0,ee=Math.min(1024,U.length),ue=0,j=0;j<=ee;++j)(ue=U.charCodeAt(j))>=32&&ue<128&&++Z;var ie=Z>=ee*4/5;E.push(L),E.push("Content-Location: "+(D.root||"file:///C:/SheetJS/")+G),E.push("Content-Transfer-Encoding: "+(ie?"quoted-printable":"base64")),E.push("Content-Type: "+D2(W,G)),E.push(""),E.push(ie?L2(U):A2(U))}return E.push(L+`--\r
29`),E.join(`\r
30`)}function O2(C){var P={};return b(P,C),P}function Eh(C,P,D,L){var E=L&&L.unsafe;E||b(C);var R=!E&&Ir.find(C,P);if(!R){var G=C.FullPaths[0];P.slice(0,G.length)==G?G=P:(G.slice(-1)!="/"&&(G+="/"),G=(G+P).replace("//","/")),R={name:a(P),type:2},C.FileIndex.push(R),C.FullPaths.push(G),E||Ir.utils.cfb_gc(C)}return R.content=D,R.size=D?D.length:0,L&&(L.CLSID&&(R.clsid=L.CLSID),L.mt&&(R.mt=L.mt),L.ct&&(R.ct=L.ct)),R}function R2(C,P){b(C);var D=Ir.find(C,P);if(D){for(var L=0;L<C.FileIndex.length;++L)if(C.FileIndex[L]==D)return C.FileIndex.splice(L,1),C.FullPaths.splice(L,1),!0}return!1}function F2(C,P,D){b(C);var L=Ir.find(C,P);if(L){for(var E=0;E<C.FileIndex.length;++E)if(C.FileIndex[E]==L)return C.FileIndex[E].name=a(D),C.FullPaths[E]=D,!0}return!1}function B2(C){T(C,!0)}return e.find=k,e.read=w,e.parse=f,e.write=te,e.writeFile=Y,e.utils={cfb_new:O2,cfb_add:Eh,cfb_del:R2,cfb_mov:F2,cfb_gc:B2,ReadShift:As,CheckField:a2,prep_blob:ua,bconcat:Ji,use_zlib:se,_deflateRaw:jg,_inflateRaw:n0,consts:q},e})();function m4(t){return typeof t=="string"?$g(t):Array.isArray(t)?V3(t):t}function HC(t,e,r){if(typeof Deno<"u")return Deno.writeFileSync(t,e);var n=e;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var a=new Blob([m4(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,t);if(typeof saveAs<"u")return saveAs(a,t);
30if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:t,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=t,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(e)&&(e=G3(e)),s.write(e),s.close(),e}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+t)}function ka(t){for(var e=Object.keys(t),r=[],n=0;n<e.length;++n)Object.prototype.hasOwnProperty.call(t,e[n])&&r.push(e[n]);return r}function y4(t){for(var e=[],r=ka(t),n=0;n!==r.length;++n)e[t[r[n]]]=r[n];return e}function _4(t){for(var e=[],r=ka(t),n=0;n!==r.length;++n)e[t[r[n]]]=parseInt(r[n],10);return e}function x4(t){for(var e=[],r=ka(t),n=0;n!==r.length;++n)e[t[r[n]]]==null&&(e[t[r[n]]]=[]),e[t[r[n]]].push(r[n]);return e}var Z1=new Date(1899,11,30,0,0,0);function wi(t,e){var r=t.getTime(),n=Z1.getTime()+(t.getTimezoneOffset()-Z1.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var K1=new Date("2017-02-19T19:06:09.000Z"),GC=isNaN(K1.getFullYear())?new Date("2/19/17"):K1,w4=GC.getFullYear()==2017;function ap(t,e){var r=new Date(t);if(w4)return e>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):e<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(t instanceof Date)return t;if(GC.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return t.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=t.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return t.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function vl(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=vl(t[r]));return e}function jt(t,e){for(var r="";r.length<e;)r+=t;return r}function j1(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var r=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(e=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(e=Number(n)))?e/r:e}var S4=["january","february","march","april","may","june","july","august","september","october","november","december"];function b4(t){var e=new Date(t),r=new Date(NaN),n=e.getYear(),a=e.getMonth(),i=e.getDate();if(isNaN(i))return r;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&S4.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?e:t.match(/[^-0-9:,\/\\]/)?r:e}function _t(t,e,r){if(t.FullPaths){if(typeof r=="string"){var n;return rt?n=Ci(r):n=U3(r),Ir.utils.cfb_add(t,e,n)}Ir.utils.cfb_add(t,e,r)}else t.file(e,r)}function T4(){return Ir.utils.cfb_new()}var er=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
31`,C4={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},VC=y4(C4),UC=/[&<>'"]/g,M4=/[\u0000-\u0008\u000b-\u001f]/g;function ut(t){var e=t+"";return e.replace(UC,function(r){return VC[r]}).replace(M4,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}var D4=/[\u0000-\u001f]/g;function A4(t){var e=t+"";return e.replace(UC,function(r){return VC[r]}).replace(/\n/g,"<br/>").replace(D4,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function mv(t){for(var e="",r=0,n=0,a=0,i=0,o=0,s=0;r<t.length;){if(n=t.charCodeAt(r++),n<128){e+=String.fromCharCode(n);continue}if(a=t.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=a&63,e+=String.fromCharCode(o);continue}if(i=t.charCodeAt(r++),n<240){e+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}o=t.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(s&1023))}return e}function Q1(t){var e=bo(2*t.length),r,n,a=1,i=0,o=0,s;for(n=0;n<t.length;n+=a)a=1,(s=t.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(t.charCodeAt(n+1)&63),a=2):s<240?(r=(s&15)*4096+(t.charCodeAt(n+1)&63)*64+(t.charCodeAt(n+2)&63),a=3):(a=4,r=(s&7)*262144+(t.charCodeAt(n+1)&63)*4096+(t.charCodeAt(n+2)&63)*64+(t.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(e[i++]=o&255,e[i++]=o>>>8,o=0),e[i++]=r%256,e[i++]=r>>>8;return e.slice(0,i).toString("ucs2")}function J1(t){return Ci(t,"binary").toString("utf8")}var _u="foo bar baz☃🍣",L4=rt&&(J1(_u)==mv(_u)&&J1||Q1(_u)==mv(_u)&&Q1)||mv,k4=rt?function(t){return Ci(t,"utf8").toString("binary")}:function(t){for(var e=[],r=0,n=0,a=0;r<t.length;)switch(n=t.charCodeAt(r++),!0){case n<128:e.push(String.fromCharCode(n));break;case n<2048:e.push(String.fromCharCode(192+(n>>6))),e.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=t.charCodeAt(r++)-56320+(n<<10),e.push(String.fromCharCode(240+(a>>18&7))),e.push(String.fromCharCode(144+(a>>12&63))),e.push(String.fromCharCode(128+(a>>6&63))),e.push(String.fromCharCode(128+(a&63)));break;default:e.push(String.fromCharCode(224+(n>>12))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(n&63)))}return e.join("")},P4=(function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
32`).replace(/<[^>]*>/g,""),a=0;a<t.length;++a)n=n.replace(t[a][0],t[a][1]);return n}})(),WC=/(^\s|\s$|\n)/;function Rr(t,e){return"<"+t+(e.match(WC)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function $C(t){return ka(t).map(function(e){return" "+e+'="'+t[e]+'"'}).join("")}function ce(t,e,r){return"<"+t+(r!=null?$C(r):"")+(e!=null?(e.match(WC)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function ip(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(r){if(e)throw r}return""}function I4(t,e){switch(typeof t){case"string":var r=ce("vt:lpwstr",ut(t));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return ce((t|0)==t?"vt:i4":"vt:r8",ut(String(t)));case"boolean":return ce("vt:bool",t?"true":"false")}if(t instanceof Date)return ce("vt:filetime",ip(t));throw new Error("Unable to serialize "+t)}
vendor: 9,236 bytes, line 32
32var wt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},ko=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],xu={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml"};function E4(t,e){for(var r=1-2*(t[e+7]>>>7),n=((t[e+7]&127)<<4)+(t[e+6]>>>4&15),a=t[e+6]&15,i=5;i>=0;--i)a=a*256+t[e+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function O4(t,e,r){var n=(e<0||1/e==-1/0?1:0)<<7,a=0,i=0,o=n?-e:e;isFinite(o)?o==0?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(e)?26985:0);for(var s=0;s<=5;++s,i/=256)t[r+s]=i&255;t[r+6]=(a&15)<<4|i&15,t[r+7]=a>>4|n}var ex=function(t){for(var e=[],r=10240,n=0;n<t[0].length;++n)if(t[0][n])for(var a=0,i=t[0][n].length;a<i;a+=r)e.push.apply(e,t[0][n].slice(a,a+r));return e},tx=rt?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(e){return Buffer.isBuffer(e)?e:Ci(e)})):ex(t)}:ex,rx=function(t,e,r){for(var n=[],a=e;a<r;a+=2)n.push(String.fromCharCode(cs(t,a)));return n.join("").replace(Ds,"")},qg=rt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("utf16le",e,r).replace(Ds,""):rx(t,e,r)}:rx,nx=function(t,e,r){for(var n=[],a=e;a<e+r;++a)n.push(("0"+t[a].toString(16)).slice(-2));return n.join("")},YC=rt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("hex",e,e+r):nx(t,e,r)}:nx,ax=function(t,e,r){for(var n=[],a=e;a<r;a++)n.push(String.fromCharCode(eo(t,a)));return n.join("")},dl=rt?function(e,r,n){return Buffer.isBuffer(e)?e.toString("utf8",r,n):ax(e,r,n)}:ax,XC=function(t,e){var r=nr(t,e);return r>0?dl(t,e+4,e+4+r-1):""},qC=XC,ZC=function(t,e){var r=nr(t,e);return r>0?dl(t,e+4,e+4+r-1):""},KC=ZC,jC=function(t,e){var r=2*nr(t,e);return r>0?dl(t,e+4,e+4+r-1):""},QC=jC,JC=function(e,r){var n=nr(e,r);return n>0?qg(e,r+4,r+4+n):""},e2=JC,t2=function(t,e){var r=nr(t,e);return r>0?dl(t,e+4,e+4+r):""},r2=t2,n2=function(t,e){return E4(t,e)},op=n2;rt&&(qC=function(e,r){if(!Buffer.isBuffer(e))return XC(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},KC=function(e,r){if(!Buffer.isBuffer(e))return ZC(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},QC=function(e,r){if(!Buffer.isBuffer(e))return jC(e,r);var n=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n-1)},e2=function(e,r){if(!Buffer.isBuffer(e))return JC(e,r);var n=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n)},r2=function(e,r){if(!Buffer.isBuffer(e))return t2(e,r);var n=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+n)},op=function(e,r){return Buffer.isBuffer(e)?e.readDoubleLE(r):n2(e,r)});var eo=function(t,e){return t[e]},cs=function(t,e){return t[e+1]*256+t[e]},R4=function(t,e){var r=t[e+1]*256+t[e];return r<32768?r:(65535-r+1)*-1},nr=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},to=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},F4=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function As(t,e){var r="",n,a,i=[],o,s,l,u;switch(e){case"dbcs":if(u=this.l,rt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l<t;++l)r+=String.fromCharCode(cs(this,u)),u+=2;t*=2;break;case"utf8":r=dl(this,this.l,this.l+t);break;case"utf16le":t*=2,r=qg(this,this.l,this.l+t);break;case"wstr":return As.call(this,t,"dbcs");case"lpstr-ansi":r=qC(this,this.l),t=4+nr(this,this.l);break;case"lpstr-cp":r=KC(this,this.l),t=4+nr(this,this.l);break;case"lpwstr":r=QC(this,this.l),t=4+2*nr(this,this.l);break;case"lpp4":t=4+nr(this,this.l),r=e2(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+nr(this,this.l),r=r2(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,r="";(o=eo(this,this.l+t++))!==0;)i.push(gu(o));r=i.join("");break;case"_wstr":for(t=0,r="";(o=cs(this,this.l+t))!==0;)i.push(gu(o)),t+=2;t+=2,r=i.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<t;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=eo(this,u),this.l=u+1,s=As.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(gu(cs(this,u))),u+=2}r=i.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=t;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=eo(this,u),this.l=u+1,s=As.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(gu(eo(this,u))),u+=1}r=i.join("");break;default:switch(t){case 1:return n=eo(this,this.l),this.l++,n;case 2:return n=(e==="i"?R4:cs)(this,this.l),this.l+=2,n;case 4:case-4:return e==="i"||(this[this.l+3]&128)===0?(n=(t>0?to:F4)(this,this.l),this.l+=4,n):(a=nr(this,this.l),this.l+=4,a);case 8:case-8:if(e==="f")return t==8?a=op(this,this.l):a=op([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;t=8;case 16:r=YC(this,this.l,t);break}}return this.l+=t,r}var B4=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24&255},N4=function(t,e,r){t[r]=e&255,t[r+1]=e>>8&255,t[r+2]=e>>16&255,t[r+3]=e>>24&255},z4=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255};function H4(t,e,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=e.length;++a)z4(this,e.charCodeAt(a),this.l+2*a);n=2*e.length}else if(r==="sbcs"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=e.length;++a)this[this.l+a]=e.charCodeAt(a)&255;n=e.length}else if(r==="hex"){for(;a<t;++a)this[this.l++]=parseInt(e.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+t,this.length);for(a=0;a<Math.min(e.length,t);++a){var o=e.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(t){case 1:n=1,this[this.l]=e&255;break;case 2:n=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:n=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:n=4,B4(this,e,this.l);break;case 8:if(n=8,r==="f"){O4(this,e,this.l);break}case 16:break;case-4:n=4,N4(this,e,this.l);break}return this.l+=n,this}function a2(t,e){var r=YC(this,this.l,t.length>>1);if(r!==t)throw new Error(e+"Expected "+t+" saw "+r);this.l+=t.length>>1}function ua(t,e){t.l=e,t.read_shift=As,t.chk=a2,t.write_shift=H4}function An(t){var e=bo(t);return ua(e,0),e}function G4(t){return parseInt(V4(t),10)-1}function Mi(t){return""+(t+1)}function V4(t){return t.replace(/\$(\d+)$/,"$1")}function U4(t){for(var e=W4(t),r=0,n=0;n!==e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}function Po(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function W4(t){return t.replace(/^\$([A-Z])/,"$1")}function $4(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function fn(t){for(var e=0,r=0,n=0;n<t.length;++n){var a=t.charCodeAt(n);a>=48&&a<=57?e=10*e+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:e-1}}function Kn(t){for(var e=t.c+1,r="";e;e=(e-1)/26|0)r=String.fromCharCode((e-1)%26+65)+r;return r+(t.r+1)}function tl(t){var e=t.indexOf(":");return e==-1?{s:fn(t),e:fn(t)}:{s:fn(t.slice(0,e)),e:fn(t.slice(e+1))}}function Gr(t,e){return typeof e>"u"||typeof e=="number"?Gr(t.s,t.e):(typeof t!="string"&&(t=Kn(t)),typeof e!="string"&&(e=Kn(e)),t==e?t:t+":"+e)}function yn(t){var e={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=t.length;for(r=0;n<i&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(e.s.c=--r,r=0;n<i&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(e.s.r=--r,n===i||a!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++n,r=0;n!=i&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(e.e.c=--r,r=0;n!=i&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return e.e.r=--r,e}function ix(t,e){var r=t.t=="d"&&e instanceof Date;if(t.z!=null)try{return t.w=el(t.z,r?wi(e):e)}catch{}try{return t.w=el((t.XF||{}).numFmtId||(r?14:0),r?wi(e):e)}catch{return""+e}}function pl(t,e,r){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&r&&r.dateNF&&(t.z=r.dateNF),t.t=="e"?o2[t.v]||t.v:e==null?ix(t,t.v):ix(t,e))}function Y4(t,e){var r=e&&e.sheet?e.sheet:"Sheet1",n={};return n[r]=t,{SheetNames:[r],Sheets:n}}function i2(t,e,r){var n=r||{},a=t?Array.isArray(t):n.dense,i=t||(a?[]:{}),o=0,s=0;if(i&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;
vendor: 7,573 bytes, line 32
32else{var l=typeof n.origin=="string"?fn(n.origin):n.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var f=yn(i["!ref"]);u.s.c=f.s.c,u.s.r=f.s.r,u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(u.e.r=o=f.e.r+1)}for(var h=0;h!=e.length;++h)if(e[h]){if(!Array.isArray(e[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var v=0;v!=e[h].length;++v)if(!(typeof e[h][v]>"u")){var c={v:e[h][v]},d=o+h,p=s+v;if(u.s.r>d&&(u.s.r=d),u.s.c>p&&(u.s.c=p),u.e.r<d&&(u.e.r=d),u.e.c<p&&(u.e.c=p),e[h][v]&&typeof e[h][v]=="object"&&!Array.isArray(e[h][v])&&!(e[h][v]instanceof Date))c=e[h][v];else if(Array.isArray(c.v)&&(c.f=e[h][v][1],c.v=c.v[0]),c.v===null)if(c.f)c.t="n";else if(n.nullError)c.t="e",c.v=0;else if(n.sheetStubs)c.t="z";else continue;else typeof c.v=="number"?c.t="n":typeof c.v=="boolean"?c.t="b":c.v instanceof Date?(c.z=n.dateNF||Nr[14],n.cellDates?(c.t="d",c.w=el(c.z,wi(c.v))):(c.t="n",c.v=wi(c.v),c.w=el(c.z,c.v))):c.t="s";if(a)i[d]||(i[d]=[]),i[d][p]&&i[d][p].z&&(c.z=i[d][p].z),i[d][p]=c;else{var g=Kn({c:p,r:d});i[g]&&i[g].z&&(c.z=i[g].z),i[g]=c}}}return u.s.c<1e7&&(i["!ref"]=Gr(u)),i}function X4(t,e){return i2(null,t,e)}var o2={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},q4={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},wu={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"}
32,comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Z4(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function K4(t,e){var r=x4(q4),n=[],a;n[n.length]=er,n[n.length]=ce("Types",null,{xmlns:wt.CT,"xmlns:xsd":wt.xsd,"xmlns:xsi":wt.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["t
32if","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return ce("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){t[l]&&t[l].length>0&&(a=t[l][0],n[n.length]=ce("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:wu[l][e.bookType]||wu[l].xlsx}))},o=function(l){(t[l]||[]).forEach(function(u){n[n.length]=ce("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:wu[l][e.bookType]||wu[l].xlsx})})},s=function(l){(t[l]||[]).forEach(function(u){n[n.length]=ce("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var dt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROP
32S:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function j4(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function yv(t){var e=[er,ce("Relationships",null,{xmlns:wt.RELS})];return ka(t["!id"]).forEach(function(r){e[e.length]=ce("Relationship",null,t["!id"][r])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function It(t,e,r,n,a,i){if(a||(a={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,a.Id="rId"+e,a.Type=n,a.Target=r,[dt.HLINK,dt.XPATH,dt.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),t["!id"][a.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][a.Id]=a,t[("/"+a.Target).replace("//","/")]=a,e}var ox=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function _v(t,e,r,n,a){a[t]!=null||e==null||e===""||(a[t]=e,e=ut(e),n[n.length]=r?ce(t,e,r):Rr(t,e))}function Q4(t,e){var r=e||{}
vendor: 5,572 bytes, line 32
32,n=[er,ce("cp:coreProperties",null,{"xmlns:cp":wt.CORE_PROPS,"xmlns:dc":wt.dc,"xmlns:dcterms":wt.dcterms,"xmlns:dcmitype":wt.dcmitype,"xmlns:xsi":wt.xsi})],a={};if(!t&&!r.Props)return n.join("");t&&(t.CreatedDate!=null&&_v("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:ip(t.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),t.ModifiedDate!=null&&_v("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:ip(t.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=ox.length;++i){var o=ox[i],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:t?t[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&_v(o[0],s,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var J4=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function ez(t){var e=[],r=ce;return t||(t={}),t.Application="SheetJS",e[e.length]=er,e[e.length]=ce("Properties",null,{xmlns:wt.EXT_PROPS,"xmlns:vt":wt.vt}),J4.forEach(function(n){if(t[n[1]]!==void 0){var a;switch(n[2]){case"string":a=ut(String(t[n[1]]));break;case"bool":a=t[n[1]]?"true":"false";break}a!==void 0&&(e[e.length]=r(n[0],a))}}),e[e.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=r("TitlesOfParts",r("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+ut(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function tz(t){var e=[er,ce("Properties",null,{xmlns:wt.CUST_PROPS,"xmlns:vt":wt.vt})];if(!t)return e.join("");var r=1;return ka(t).forEach(function(a){++r,e[e.length]=ce("property",I4(t[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:ut(a)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var rz=/^\s|\s$|[\t\n\r]/;function nz(t,e){if(!e.bookSST)return"";var r=[er];r[r.length]=ce("sst",null,{xmlns:ko[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var a=t[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(rz)&&(i+=' xml:space="preserve"'),i+=">"+ut(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function az(t){for(var e=[],r=t.split(""),n=0;n<r.length;++n)e[n]=r[n].charCodeAt(0);return e}function iz(t){var e=0,r,n=az(t),a=n.length+1,i,o,s,l,u;for(r=bo(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)o=r[i],s=(e&16384)===0?0:1,l=e<<1&32767,u=s|l,e=u^o;return e^52811}var oz=6,Xf=oz;function sz(t){return Math.floor((t-5)/Xf*100+.5)/100}function lz(t){return Math.round((t*Xf+5)/Xf*256)/256}var uz=96,fz=uz;function sx(t){return t*96/fz}function hz(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)t[n]!=null&&(e[e.length]=ce("numFmt",null,{numFmtId:n,formatCode:ut(t[n])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=ce("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function cz(t){var e=[];return e[e.length]=ce("cellXfs",null),t.forEach(function(r){e[e.length]=ce("xf",null,r)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=ce("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function vz(t,e){var r=[er,ce("styleSheet",null,{xmlns:ko[0],"xmlns:vt":wt.vt})],n;return t.SSF&&(n=hz(t.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=cz(e.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function dz(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var r=[er];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>
32',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>
32',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/>
32</a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function pz(){var t=[er];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
33  <metadataTypes count="1">
34    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
35  </metadataTypes>
36  <futureMetadata name="XLDAPR" count="1">
37    <bk>
38      <extLst>
39        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
40          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
41        </ext>
42      </extLst>
43    </bk>
44  </futureMetadata>
45  <cellMetadata count="1">
46    <bk>
47      <rc t="1" v="0"/>
48    </bk>
49  </cellMetadata>
50</metadata>`),t.join("")}var vs=1024;function gz(t,e){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[ce("xml",null,{"xmlns:v":xu.v,"xmlns:o":xu.o,"xmlns:x":xu.x,"xmlns:mv":xu.mv}).replace(/\/>/,">"),ce("o:shapelayout",ce("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),ce("v:shapetype",[ce("v:stroke",null,{joinstyle:"miter"}),ce("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];vs<t*1e3;)vs+=1e3;return e.forEach(function(i){var o=fn(i[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?ce("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=ce("v:fill",l,s),f={on:"t",obscured:"t"};
vendor: 10,543 bytes, lines 50-54
50++vs,a=a.concat(["<v:shape"+$C({id:"_x0000_s"+vs,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,ce("v:shadow",null,f),ce("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Rr("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),Rr("x:AutoFill","False"),Rr("x:Row",String(o.r)),Rr("x:Column",String(o.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function mz(t){var e=[er,ce("comments",null,{xmlns:ko[0]})],r=[];return e.push("<authors>"),t.forEach(function(n){n[1].forEach(function(a){var i=ut(a.a);r.indexOf(i)==-1&&(r.push(i),e.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),e.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(ut(l.a))),i.push(l.t||"")}),e.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)e.push(Rr("t",ut(i[0]||"")));else{for(var o=`Comment:
51    `+i[0]+`
52`,s=1;s<i.length;++s)o+=`Reply:
53    `+i[s]+`
54`;e.push(Rr("t",ut(o)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function yz(t,e,r){var n=[er,ce("ThreadedComments",null,{xmlns:wt.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(a){var i="";(a[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&e.indexOf(o.a)==-1&&e.push(o.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?i=l.id:l.parentId=i,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(o.a)).slice(-12)+"}"),n.push(ce("threadedComment",Rr("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function _z(t){var e=[er,ce("personList",null,{xmlns:wt.TCMNT,"xmlns:x":ko[0]}).replace(/[\/]>/,">")];return t.forEach(function(r,n){e.push(ce("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),e.push("</personList>"),e.join("")}var xz=["xlsb","xlsm","xlam","biff8","xla"],Vu=typeof Map<"u";function wz(t,e,r){var n=0,a=t.length;if(r){if(Vu?r.has(e):Object.prototype.hasOwnProperty.call(r,e)){for(var i=Vu?r.get(e):r[e];n<i.length;++n)if(t[i[n]].t===e)return t.Count++,i[n]}}else for(;n<a;++n)if(t[n].t===e)return t.Count++,n;return t[a]={t:e},t.Count++,t.Unique++,r&&(Vu?(r.has(e)||r.set(e,[]),r.get(e).push(a)):(Object.prototype.hasOwnProperty.call(r,e)||(r[e]=[]),r[e].push(a))),a}function Sz(t,e){var r={min:t+1,max:t+1},n=-1;return e.MDW&&(Xf=e.MDW),e.width!=null?r.customWidth=1:e.wpx!=null?n=sz(e.wpx):e.wch!=null&&(n=e.wch),n>-1?(r.width=lz(n),r.customWidth=1):e.width!=null&&(r.width=e.width),e.hidden&&(r.hidden=!0),e.level!=null&&(r.outlineLevel=r.level=e.level),r}function bz(t,e){if(t){var r=[.7,.7,.75,.75,.3,.3];t.left==null&&(t.left=r[0]),t.right==null&&(t.right=r[1]),t.top==null&&(t.top=r[2]),t.bottom==null&&(t.bottom=r[3]),t.header==null&&(t.header=r[4]),t.footer==null&&(t.footer=r[5])}}function s2(t,e,r){var n=r.revssf[e.z!=null?e.z:"General"],a=60,i=t.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){zC(e.z,a),r.ssf[a]=e.z,r.revssf[e.z]=n=a;break}}for(a=0;a!=i;++a)if(t[a].numFmtId===n)return a;return t[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Tz(t,e,r){if(t&&t["!ref"]){var n=yn(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+t["!ref"])}}function Cz(t){if(t.length===0)return"";for(var e='<mergeCells count="'+t.length+'">',r=0;r!=t.length;++r)e+='<mergeCell ref="'+Gr(t[r])+'"/>';return e+"</mergeCells>"}function Mz(t,e,r,n,a){var i=!1,o={},s=null;if(n.bookType!=="xlsx"&&e.vbaraw){var l=e.SheetNames[r];try{e.Workbook&&(l=e.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,o.codeName=k4(ut(l))}if(t&&t["!outline"]){var u={summaryBelow:1,summaryRight:1};t["!outline"].above&&(u.summaryBelow=0),t["!outline"].left&&(u.summaryRight=0),s=(s||"")+ce("outlinePr",null,u)}!i&&!s||(a[a.length]=ce("sheetPr",s,o))}var Dz=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Az=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Lz(t){var e={sheet:1};return Dz.forEach(function(r){t[r]!=null&&t[r]&&(e[r]="1")}),Az.forEach(function(r){t[r]!=null&&!t[r]&&(e[r]="0")}),t.password&&(e.password=iz(t.password).toString(16).toUpperCase()),ce("sheetProtection",null,e)}function kz(t){return bz(t),ce("pageMargins",null,t)}function Pz(t,e){for(var r=["<cols>"],n,a=0;a!=e.length;++a)(n=e[a])&&(r[r.length]=ce("col",null,Sz(a,n)));return r[r.length]="</cols>",r.join("")}function Iz(t,e,r,n){var a=typeof t.ref=="string"?t.ref:Gr(t.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=tl(a);o.s.r==o.e.r&&(o.e.r=tl(e["!ref"]).e.r,a=Gr(o));for(var s=0;s<i.length;++s){var l=i[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),ce("autoFilter",null,{ref:a})}function Ez(t,e,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),ce("sheetViews",ce("sheetView",null,a),{})}function Oz(t,e,r,n){if(t.c&&r["!comments"].push([e,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var a="",i=t.t,o=t.v;if(t.t!=="z")switch(t.t){case"b":a=t.v?"1":"0";break;case"n":a=""+t.v;break;case"e":a=o2[t.v];break;case"d":n&&n.cellDates?a=ap(t.v,-1).toISOString():(t=vl(t),t.t="n",a=""+(t.v=wi(ap(t.v)))),typeof t.z>"u"&&(t.z=Nr[14]);break;default:a=t.v;break}var s=Rr("v",ut(a)),l={r:e},u=s2(n.cellXfs,t,n);switch(u!==0&&(l.s=u),t.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Rr("v",""+wz(n.Strings,t.v,n.revStrings)),l.t="s";break}l.t="str";break}if(t.t!=i&&(t.t=i,t.v=o),typeof t.f=="string"&&t.f){var f=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=ce("f",ut(t.f),f)+(t.v!=null?s:"")}return t.l&&r["!links"].push([e,t.l]),t.D&&(l.cm=1),ce("c",s,l)}function Rz(t,e,r,n){var a=[],i=[],o=yn(t["!ref"]),s="",l,u="",f=[],h=0,v=0,c=t["!rows"],d=Array.isArray(t),p={r:u},g,m=-1;for(v=o.s.c;v<=o.e.c;++v)f[v]=Po(v);for(h=o.s.r;h<=o.e.r;++h){for(i=[],u=Mi(h),v=o.s.c;v<=o.e.c;++v){l=f[v]+u;var y=d?(t[h]||[])[v]:t[l];y!==void 0&&(s=Oz(y,l,t,e))!=null&&i.push(s)}(i.length>0||c&&c[h])&&(p={r:u},c&&c[h]&&(g=c[h],g.hidden&&(p.hidden=1),m=-1,g.hpx?m=sx(g.hpx):g.hpt&&(m=g.hpt),m>-1&&(p.ht=m,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),a[a.length]=ce("row",i.join(""),p))}if(c)for(;h<c.length;++h)c&&c[h]&&(p={r:h+1},g=c[h],g.hidden&&(p.hidden=1),m=-1,g.hpx?m=sx(g.hpx):g.hpt&&(m=g.hpt),m>-1&&(p.ht=m,p.customHeight=1),g.level&&(p.outlineLevel=g.level),a[a.length]=ce("row","",p));return a.join("")}function Fz(t,e,r,n){var a=[er,ce("worksheet",null,{xmlns:ko[0],"xmlns:r":wt.r})],i=r.SheetNames[t],o=0,s="",l=r.Sheets[i];l==null&&(l={});var u=l["!ref"]||"A1",f=yn(u);if(f.e.c>16383||f.e.r>1048575){if(e.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),u=Gr(f)}n||(n={}),l["!comments"]=[];var h=[];Mz(l,r,t,e,a),a[a.length]=ce("dimension",null,{ref:u}),a[a.length]=Ez(l,e,t,r),e.sheetFormat&&(a[a.length]=ce("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=Pz(l,l["!cols"])),a[o=a.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=Rz(l,e),s.length>0&&(a[a.length]=s)),a.length>o+1&&(a[a.length]="</sheetData>",a[o]=a[o].replace("/>",">")),l["!protect"]&&(a[a.length]=Lz(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=Iz(l["!autofilter"],l,r,t)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=Cz(l["!merges"]));var v=-1,c,d=-1;return l["!links"].length>0&&(a[a.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(c={ref:p[0]},p[1].Target.charAt(0)!="#"&&(d=It(n,-1,ut(p[1].Target).replace(/#.*$/,""),dt.HLINK),c["r:id"]="rId"+d),(v=p[1].Target.indexOf("#"))>-1&&(c.location=ut(p[1].Target.slice(v+1))),p[1].Tooltip&&(c.tooltip=ut(p[1].Tooltip)),a[a.length]=ce("hyperlink",null,c))}),a[a.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(a[a.length]=kz(l["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(a[a.length]=Rr("ignoredErrors",ce("ignoredError",null,{numberStoredAsText:1,sqref:u}))),h.length>0&&(d=It(n,-1,"../drawings/drawing"+(t+1)+".xml",dt.DRAW),a[a.length]=ce("drawing",null,{"r:id":"rId"+d}),l["!drawing"]=h),l["!comments"].length>0&&(d=It(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",dt.VML),a[a.length]=ce("legacyDrawing",null,{"r:id":"rId"+d}),l["!legacy"]=d),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}var Bz=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Nz="][*?/\\".split("");function l2(t,e){if(t.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return Nz.forEach(function(n){if(t.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function zz(t,e,r){t.forEach(function(n,a){l2(n);for(var i=0;i<a;++i)if(n==t[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=e&&e[a]&&e[a].CodeName||n;
54if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function Hz(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];zz(t.SheetNames,e,!!t.vbaraw);for(var r=0;r<t.SheetNames.length;++r)Tz(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function Gz(t){var e=[er];e[e.length]=ce("workbook",null,{xmlns:ko[0],"xmlns:r":wt.r});var r=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Bz.forEach(function(s){t.Workbook.WBProps[s[0]]!=null&&t.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),e[e.length]=ce("workbookPr",null,n);var a=t.Workbook&&t.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=t.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==t.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=t.SheetNames.length;++i){var o={name:ut(t.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}e[e.length]=ce("sheet",null,o)}return e[e.length]="</sheets>",r&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(e[e.length]=ce("definedName",ut(s.Ref),l))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function Vz(t,e,r,n){for(var a=t["!merges"]||[],i=[],o=e.s.c;o<=e.e.c;++o){for(var s=0,l=0,u=0;u<a.length;++u)if(!(a[u].s.r>r||a[u].s.c>o)&&!(a[u].e.r<r||a[u].e.c<o)){if(a[u].s.r<r||a[u].s.c<o){s=-1;break}s=a[u].e.r-a[u].s.r+1,l=a[u].e.c-a[u].s.c+1;break}if(!(s<0)){var f=Kn({r,c:o}),h=n.dense?(t[r]||[])[o]:t[f],v=h&&h.v!=null&&(h.h||A4(h.w||(pl(h),h.w)||""))||"",c={};s>1&&(c.rowspan=s),l>1&&(c.colspan=l),n.editable?v='<span contenteditable="true">'+v+"</span>":h&&(c["data-t"]=h&&h.t||"z",h.v!=null&&(c["data-v"]=h.v),h.z!=null&&(c["data-z"]=h.z),h.l&&(h.l.Target||"#").charAt(0)!="#"&&(v='<a href="'+h.l.Target+'">'+v+"</a>")),c.id=(n.id||"sjs")+"-"+f,i.push(ce("td",v,c))}}var d="<tr>";return d+i.join("")+"</tr>"}var Uz='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Wz="</body></html>";function $z(t,e,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function Yz(t,e){var r=e||{},n=r.header!=null?r.header:Uz,a=r.footer!=null?r.footer:Wz,i=[n],o=tl(t["!ref"]);r.dense=Array.isArray(t),i.push($z(t,o,r));for(var s=o.s.r;s<=o.e.r;++s)i.push(Vz(t,o,s,r));return i.push("</table>"+a),i.join("")}function u2(t,e,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?fn(n.origin):n.origin;a=o.r,i=o.c}var s=e.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:a,c:i}};if(t["!ref"]){var f=tl(t["!ref"]);u.s.r=Math.min(u.s.r,f.s.r),u.s.c=Math.min(u.s.c,f.s.c),u.e.r=Math.max(u.e.r,f.e.r),u.e.c=Math.max(u.e.c,f.e.c),a==-1&&(u.e.r=a=f.e.r+1)}var h=[],v=0,c=t["!rows"]||(t["!rows"]=[]),d=0,p=0,g=0,m=0,y=0,_=0;for(t["!cols"]||(t["!cols"]=[]);d<s.length&&p<l;++d){var x=s[d];if(lx(x)){if(n.display)continue;c[p]={hidden:!0}}var S=x.children;for(g=m=0;g<S.length;++g){var w=S[g];if(!(n.display&&lx(w))){var b=w.hasAttribute("data-v")?w.getAttribute("data-v"):w.hasAttribute("v")?w.getAttribute("v"):P4(w.innerHTML),M=w.getAttribute("data-z")||w.getAttribute("z");for(v=0;v<h.length;++v){var T=h[v];T.s.c==m+i&&T.s.r<p+a&&p+a<=T.e.r&&(m=T.e.c+1-i,v=-1)}_=+w.getAttribute("colspan")||1,((y=+w.getAttribute("rowspan")||1)>1||_>1)&&h.push({s:{r:p+a,c:m+i},e:{r:p+a+(y||1)-1,c:m+i+(_||1)-1}});var A={t:"s",v:b},k=w.getAttribute("data-t")||w.getAttribute("t")||"";b!=null&&(b.length==0?A.t=k||"z":n.raw||b.trim().length==0||k=="s"||(b==="TRUE"?A={t:"b",v:!0}:b==="FALSE"?A={t:"b",v:!1}:isNaN(j1(b))?isNaN(b4(b).getDate())||(A={t:"d",v:ap(b)},n.cellDates||(A={t:"n",v:wi(A.v)}),A.z=n.dateNF||Nr[14]):A={t:"n",v:j1(b)})),A.z===void 0&&M!=null&&(A.z=M);var F="",O=w.getElementsByTagName("A");if(O&&O.length)for(var B=0;B<O.length&&!(O[B].hasAttribute("href")&&(F=O[B].getAttribute("href"),F.charAt(0)!="#"));++B);F&&F.charAt(0)!="#"&&(A.l={Target:F}),n.dense?(t[p+a]||(t[p+a]=[]),t[p+a][m+i]=A):t[Kn({c:m+i,r:p+a})]=A,u.e.c<m+i&&(u.e.c=m+i),m+=_}}++p}return h.length&&(t["!merges"]=(t["!merges"]||[]).concat(h)),u.e.r=Math.max(u.e.r,p-1+a),t["!ref"]=Gr(u),p>=l&&(t["!fullref"]=Gr((u.e.r=s.length-d+p-1+a,u))),t}function f2(t,e){var r=e||{},n=r.dense?[]:{};return u2(n,t,e)}function Xz(t,e){return Y4(f2(t,e),e)}function lx(t){var e="",r=qz(t);return r&&(e=r(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function qz(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function Zz(t){return function(r){for(var n=0;n!=t.length;++n){var a=t[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function Kz(t){Zz([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function jz(t,e){vs=1024,t&&!t.SSF&&(t.SSF=vl(Nr)),t&&t.SSF&&(p4(),d4
vendor: 8,059 bytes, lines 54-56
54(t.SSF),e.revssf=_4(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Vu?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=xz.indexOf(e.bookType)>-1,a=Z4();Kz(e=e||{});var i=T4(),o="",s=0;if(e.cellXfs=[],s2(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",_t(i,o,Q4(t.Props,e)),a.coreprops.push(o),It(e.rels,2,o,dt.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],u=0;u<t.SheetNames.length;++u)(t.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(t.SheetNames[u]);t.Props.SheetNames=l}t.Props.Worksheets=t.Props.SheetNames.length,_t(i,o,ez(t.Props)),a.extprops.push(o),It(e.rels,3,o,dt.EXT_PROPS),t.Custprops!==t.Props&&ka(t.Custprops||{}).length>0&&(o="docProps/custom.xml",_t(i,o,tz(t.Custprops)),a.custprops.push(o),It(e.rels,4,o,dt.CUST_PROPS));var f=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var h={"!id":{}},v=t.Sheets[t.SheetNames[s-1]],c=(v||{})["!type"]||"sheet";if(o="xl/worksheets/sheet"+s+"."+r,_t(i,o,Fz(s-1,e,t,h)),a.sheets.push(o),It(e.wbrels,-1,"worksheets/sheet"+s+"."+r,dt.WS[0]),v){var d=v["!comments"],p=!1,g="";if(d&&d.length>0){var m=!1;d.forEach(function(y){y[1].forEach(function(_){_.T==!0&&(m=!0)})}),m&&(g="xl/threadedComments/threadedComment"+s+"."+r,_t(i,g,yz(d,f,e)),a.threadedcomments.push(g),It(h,-1,"../threadedComments/threadedComment"+s+"."+r,dt.TCMNT)),g="xl/comments"+s+"."+r,_t(i,g,mz(d)),a.comments.push(g),It(h,-1,"../comments"+s+"."+r,dt.CMNT),p=!0}v["!legacy"]&&p&&_t(i,"xl/drawings/vmlDrawing"+s+".vml",gz(s,v["!comments"])),delete v["!comments"],delete v["!legacy"]}h["!id"].rId1&&_t(i,j4(o),yv(h))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,_t(i,o,nz(e.Strings,e)),a.strs.push(o),It(e.wbrels,-1,"sharedStrings."+r,dt.SST)),o="xl/workbook."+r,_t(i,o,Gz(t)),a.workbooks.push(o),It(e.rels,1,o,dt.WB),o="xl/theme/theme1.xml",_t(i,o,dz(t.Themes,e)),a.themes.push(o),It(e.wbrels,-1,"theme/theme1.xml",dt.THEME),o="xl/styles."+r,_t(i,o,vz(t,e)),a.styles.push(o),It(e.wbrels,-1,"styles."+r,dt.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",_t(i,o,t.vbaraw),a.vba.push(o),It(e.wbrels,-1,"vbaProject.bin",dt.VBA)),o="xl/metadata."+r,_t(i,o,pz()),a.metadata.push(o),It(e.wbrels,-1,"metadata."+r,dt.XLMETA),f.length>1&&(o="xl/persons/person.xml",_t(i,o,_z(f)),a.people.push(o),It(e.wbrels,-1,"persons/person.xml",dt.PEOPLE)),_t(i,"[Content_Types].xml",K4(a,e)),_t(i,"_rels/.rels",yv(e.rels)),_t(i,"xl/_rels/workbook."+r+".rels",yv(e.wbrels)),delete e.revssf,delete e.ssf,i}function Qz(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return HC(e.file,Ir.write(t,{type:rt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return Ir.write(t,e)}function Jz(t,e){var r=vl(e||{}),n=jz(t,r);return e6(n,r)}function e6(t,e){var r={},n=rt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var a=t.FullPaths?Ir.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(e.type=="binary"||e.type=="base64")return a;a=new Uint8Array($g(a))}return e.password&&typeof encrypt_agile<"u"?Qz(encrypt_agile(a,e.password),e):e.type==="file"?HC(e.file,a):e.type=="string"?L4(a):a}function h2(t,e){Hz(t);var r=vl(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=h2(t,r);return r.type="array",$g(n)}return Jz(t,r)}function t6(t){if(!t.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(t.bookType=r.slice(1)),t.bookType=e[t.bookType]||t.bookType}}function r6(t,e,r){var n={};return n.type="file",n.file=e,t6(n),h2(t,n)}function n6(t,e,r,n,a,i,o,s){var l=Mi(r),u=s.defval,f=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,v=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(v,"__rowNum__",{value:r,enumerable:!1})}catch{v.__rowNum__=r}else v.__rowNum__=r;if(!o||t[r])for(var c=e.s.c;c<=e.e.c;++c){var d=o?t[r][c]:t[n[c]+l];if(d===void 0||d.t===void 0){if(u===void 0)continue;i[c]!=null&&(v[i[c]]=u);continue}var p=d.v;switch(d.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+d.t)}if(i[c]!=null){if(p==null)if(d.t=="e"&&p===null)v[i[c]]=null;else if(u!==void 0)v[i[c]]=u;else if(f&&p===null)v[i[c]]=null;else continue;else v[i[c]]=f&&(d.t!=="n"||d.t==="n"&&s.rawNumbers!==!1)?p:pl(d,p,s);p!=null&&(h=!1)}}return{row:v,isempty:h}}function ux(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=e||{},f=u.range!=null?u.range:t["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof f){case"string":l=yn(f);break;case"number":l=yn(t["!ref"]),l.s.r=f;break;default:l=f}n>0&&(a=0);var h=Mi(l.s.r),v=[],c=[],d=0,p=0,g=Array.isArray(t),m=l.s.r,y=0,_={};g&&!t[m]&&(t[m]=[]);var x=u.skipHidden&&t["!cols"]||[],S=u.skipHidden&&t["!rows"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(x[y]||{}).hidden)switch(v[y]=Po(y),r=g?t[m][y]:t[v[y]+h],n){case 1:i[y]=y-l.s.c;break;case 2:i[y]=v[y];break;case 3:i[y]=u.header[y-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=pl(r,null,u),p=_[o]||0,!p)_[o]=1;else{do s=o+"_"+p++;while(_[s]);_[o]=p,_[s]=1}i[y]=s}for(m=l.s.r+a;m<=l.e.r;++m)if(!(S[m]||{}).hidden){var w=n6(t,l,m,v,n,i,g,u);(w.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(c[d++]=w.row)}return c.length=d,c}var fx=/"/g;function a6(t,e,r,n,a,i,o,s){for(var l=!0,u=[],f="",h=Mi(r),v=e.s.c;v<=e.e.c;++v)if(n[v]){var c=s.dense?(t[r]||[])[v]:t[n[v]+h];if(c==null)f="";else if(c.v!=null){l=!1,f=""+(s.rawNumbers&&c.t=="n"?c.v:pl(c,null,s));for(var d=0,p=0;d!==f.length;++d)if((p=f.charCodeAt(d))===a||p===i||p===34||s.forceQuotes){f='"'+f.replace(fx,'""')+'"';break}f=="ID"&&(f='"ID"')}else c.f!=null&&!c.F?(l=!1,f="="+c.f,f.indexOf(",")>=0&&(f='"'+f.replace(fx,'""')+'"')):f="";u.push(f)}return s.blankrows===!1&&l?null:u.join(o)}function c2(t,e){var r=[],n=e??{};if(t==null||t["!ref"]==null)return"";var a=yn(t["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:`
55`,l=s.charCodeAt(0),u=new RegExp((i=="|"?"\\|":i)+"+$"),f="",h=[];n.dense=Array.isArray(t);for(var v=n.skipHidden&&t["!cols"]||[],c=n.skipHidden&&t["!rows"]||[],d=a.s.c;d<=a.e.c;++d)(v[d]||{}).hidden||(h[d]=Po(d));for(var p=0,g=a.s.r;g<=a.e.r;++g)(c[g]||{}).hidden||(f=a6(t,a,g,h,o,l,i,n),f!=null&&(n.strip&&(f=f.replace(u,"")),(f||n.blankrows!==!1)&&r.push((p++?s:"")+f)));return delete n.dense,r.join("")}function i6(t,e){e||(e={}),e.FS="	",e.RS=`
56`;var r=c2(t,e);return r}function o6(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var a=yn(t["!ref"]),i="",o=[],s,l=[],u=Array.isArray(t);for(s=a.s.c;s<=a.e.c;++s)o[s]=Po(s);for(var f=a.s.r;f<=a.e.r;++f)for(i=Mi(f),s=a.s.c;s<=a.e.c;++s)if(e=o[s]+i,r=u?(t[f]||[])[s]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function v2(t,e,r){var n=r||{},a=+!n.skipHeader,i=t||{},o=0,s=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;
56else{var l=typeof n.origin=="string"?fn(n.origin):n.origin;o=l.r,s=l.c}var u,f={s:{c:0,r:0},e:{c:s,r:o+e.length-1+a}};if(i["!ref"]){var h=yn(i["!ref"]);f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),o==-1&&(o=h.e.r+1,f.e.r=o+e.length-1+a)}else o==-1&&(o=0,f.e.r=e.length-1+a);var v=n.header||[],c=0;e.forEach(function(p,g){ka(p).forEach(function(m){(c=v.indexOf(m))==-1&&(v[c=v.length]=m);var y=p[m],_="z",x="",S=Kn({c:s+c,r:o+g+a});u=rl(i,S),y&&typeof y=="object"&&!(y instanceof Date)?i[S]=y:(typeof y=="number"?_="n":typeof y=="boolean"?_="b":typeof y=="string"?_="s":y instanceof Date?(_="d",n.cellDates||(_="n",y=wi(y)),x=n.dateNF||Nr[14]):y===null&&n.nullError&&(_="e",y=0),u?(u.t=_,u.v=y,delete u.w,delete u.R,x&&(u.z=x)):i[S]=u={t:_,v:y},x&&(u.z=x))})}),f.e.c=Math.max(f.e.c,s+v.length-1);var d=Mi(o);if(a)for(c=0;c<v.length;++c)i[Po(c+s)+d]={t:"s",v:v[c]};return i["!ref"]=Gr(f),i}function s6(t,e){return v2(null,t,e)}function rl(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=fn(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?rl(t,Kn(e)):rl(t,Kn({r:e,c:r||0}))}function l6(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function u6(){return{SheetNames:[],Sheets:{}}}function f6(t,e,r,n){var a=1;if(!r)for(;a<=65535&&t.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&t.SheetNames.indexOf(r=o+a)!=-1;++a);}if(l2(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function h6(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=l6(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function c6(t,e){return t.z=e,t}function d2(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function v6(t,e,r){return d2(t,"#"+e,r)}function d6(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function p6(t,e,r,n){for(var a=typeof e!="string"?e:yn(e),i=typeof e=="string"?e:Gr(e),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=rl(t,o,s);l.t="n",l.F=i,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return t}var xv={encode_col:Po,encode_row:Mi,encode_cell:Kn,encode_range:Gr,decode_col:U4,decode_row:G4,split_cell:$4,decode_cell:fn,decode_range:tl,format_cell:pl,sheet_add_aoa:i2,sheet_add_json:v2,sheet_add_dom:u2,aoa_to_sheet:X4,json_to_sheet:s6,table_to_sheet:f2,table_to_book:Xz,sheet_to_csv:c2,sheet_to_txt:i6,sheet_to_json:ux,sheet_to_html:Yz,sheet_to_formulae:o6,sheet_to_row_object_array:ux,sheet_get_cell:rl,book_new:u6,book_append_sheet:f6,book_set_sheet_visibility:h6,cell_set_number_format:c6,cell_set_hyperlink:d2,cell_set_internal_link:v6,cell_add_comment:d6,sheet_set_array_formula:p6,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const g6=""+new URL("OECD_20cm.BbU3Ujtg.png",import.meta.url).href;var Qr=Yn.CMD;function uo(t,e){return Math.abs(t-e)<1e-5}function sp(t){var e=t.data,r=t.len(),n=[],a,i=0,o=0,s=0,l=0;function u(O,B){a&&a.length>2&&n.push(a),a=[O,B]}function f(O,B,N,z){uo(O,N)&&uo(B,z)||a.push(O,B,N,z,N,z)}function h(O,B,N,z,q,Y){var ne=Math.abs(B-O),te=Math.tan(ne/4)*4/3,oe=B<O?-1:1,se=Math.cos(O),Se=Math.sin(O),Ne=Math.cos(B),mt=Math.sin(B),ht=se*q+N,ct=Se*Y+z,vt=Ne*q+N,Ae=mt*Y+z,Oe=q*te*oe,me=Y*te*oe;a.push(ht-Oe*Se,ct+me*se,vt+Oe*mt,Ae-me*Ne,vt,Ae)}for(var v,c,d,p,g=0;g<r;){var m=e[g++],y=g===1;switch(y&&(i=e[g],o=e[g+1],s=i,l=o,(m===Qr.L||m===Qr.C||m===Qr.Q)&&(a=[s,l])),m){case Qr.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case Qr.L:v=e[g++],c=e[g++],f(i,o,v,c),i=v,o=c;break;case Qr.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case Qr.Q:v=e[g++],c=e[g++],d=e[g++],p=e[g++],a.push(i+2/3*(v-i),o+2/3*(c-o),d+2/3*(v-d),p+2/3*(c-p),d,p),i=d,o=p;break;case Qr.A:var _=e[g++],x=e[g++],S=e[g++],w=e[g++],b=e[g++],M=e[g++]+b;g+=1;var T=!e[g++];v=Math.cos(b)*S+_,c=Math.sin(b)*w+x,y?(s=v,l=c,u(s,l)):f(i,o,v,c),i=Math.cos(M)*S+_,o=Math.sin(M)*w+x;for(var A=(T?-1:1)*Math.PI/2,k=b;T?k>M:k<M;k+=A){var F=T?Math.max(k+A,M):Math.min(k+A,M);h(k,F,_,x,S,w)}break;case Qr.R:s=i=e[g++],l=o=e[g++],v=s+e[g++],c=l+e[g++],u(v,l),f(v,l,v,c),f(v,c,s,c),f(s,c,s,l),f(s,l,v,l);break;case Qr.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function lp(t,e,r,n,a,i,o,s,l,u){if(uo(t,r)&&uo(e,n)&&uo(a,o)&&uo(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-t,c=s-e,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var p=r-t,g=n-e,m=a-o,y=i-s,_=p*p+g*g,x=m*m+y*y;if(_<h&&x<h){l.push(o,s);return}
56var S=v*p+c*g,w=-v*m-c*y,b=_-S*S,M=x-w*w;if(b<h&&S>=0&&M<h&&w>=0){l.push(o,s);return}var T=[],A=[];Ca(t,r,a,o,.5,T),Ca(e,n,i,s,.5,A),lp(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),lp(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function m6(t,e){var r=sp(t),n=[];e=e||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],h=i[u++],v=i[u++],c=i[u++],d=i[u++],p=i[u++];lp(s,l,f,h,v,c,d,p,o,e),s=d,l=p}n.push(o)}return n}function p2(t,e,r){var n=t[e],a=t[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=r-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function hx(t,e,r){for(var n=t.r0,a=t.r,i=t.startAngle,o=t.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),h=p2([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;c<h.length;c++)for(var d=(f?u:s)/h[c],p=0;p<h[c];p++){var g={};f?(g.startAngle=i+v*c,g.endAngle=i+v*(c+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+v*c,g.r=n+v*(c+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,r.push(g)}}function y6(t,e,r){for(var n=t.width,a=t.height,i=n>a,o=p2([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=t[s]/o.length,v=0;v<o.length;v++)for(var c=t[l]/o[v],d=0;d<o[v];d++){var p={};p[u]=v*h,p[f]=d*c,p[s]=h,p[l]=c,p.x+=t.x,p.y+=t.y,r.push(p)}}function cx(t,e,r,n){return t*n-r*e}function _6(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,f=o-a,h=s-i,v=cx(f,h,l,u);if(Math.abs(v)<1e-6)return null;var c=t-a,d=e-i,p=cx(c,d,f,h)/v;return p<0||p>1?null:new de(p*l+t,p*u+e)}function x6(t,e,r){var n=new de;de.sub(n,r,e),n.normalize();var a=new de;de.sub(a,t,e);var i=a.dot(n);return i}function qi(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function w6(t,e,r){for(var n=t.length,a=[],i=0;i<n;i++){var o=t[i],s=t[(i+1)%n],l=_6(o[0],o[1],s[0],s[1],e.x,e.y,r.x,r.y);l&&a.push({projPt:x6(l,e,r),pt:l,idx:i})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(g,m){return g.projPt-m.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var v=[u.pt.x,u.pt.y],c=[f.pt.x,f.pt.y],d=[v],p=[c],i=u.idx+1;i<=f.idx;i++)qi(d,t[i].slice());qi(d,c),qi(d,v);for(var i=f.idx+1;i<=u.idx+n;i++)qi(p,t[i%n].slice());return qi(p,v),qi(p,c),[{points:d},{points:p}]}function vx(t){var e=t.points,r=[],n=[];ww(e,r,n);var a=new xe(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new de,f=new de;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),w6(e,u,f)}function qf(t,e,r,n){if(r===1)n.push(e);else{var a=Math.floor(r/2),i=t(e);qf(t,i[0],a,n),qf(t,i[1],r-a,n)}return n}function S6(t,e){for(var r=[],n=0;n<e;n++)r.push(Bp(t));return r}function b6(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function T6(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function C6(t,e){var r=[],n=t.shape,a;switch(t.type){case"rect":y6(n,e,r),a=Ke;break;case"sector":hx(n,e,r),a=Ma;break;case"circle":hx({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),a=Ma;break;default:var i=t.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=le(m6(t.getUpdatedPathProxy(),o),function(m){return T6(m)}),l=s.length;if(l===0)qf(vx,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,h=le(s,function(m){var y=[],_=[];ww(m,y,_);var x=(_[1]-y[1])*(_[0]-y[0]);return f+=x,{poly:m,area:x}});h.sort(function(m,y){return y.area-m.area});for(var v=e,u=0;u<l;u++){var c=h[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(c.area/f*e);d<0||(qf(vx,{points:c.poly},d,r),v-=d)}}a=ph;break}if(!a)return S6(t,e);for(var p=[],u=0;u<r.length;u++){var g=new a;g.setShape(r[u]),b6(t,g),p.push(g)}return p}function M6(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var a=[],i=[],o=r<n?t:e,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],v=l,c=2;c<s;){var d=o[c-2],p=o[c-1],g=o[c++],m=o[c++],y=o[c++],_=o[c++],x=o[c++],S=o[c++];if(v<=0){h.push(g,m,y,_,x,S);continue}for(var w=Math.min(v,f-1)+1,b=1;b<=w;b++){var M=b/w;Ca(d,g,y,x,M,a),Ca(p,m,_,S,M,i),d=a[3],p=i[3],h.push(a[1],i[1],a[2],i[2],d,p),g=a[5],m=i[5],y=a[6],_=i[6]}v-=w-1}return o===t?[h,e]:[t,h]}function dx(t,e){for(var r=t.length,n=t[r-2],a=t[r-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function D6(t,e){for(var r,n,a,i=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],f=void 0,h=void 0;
56l?u?(r=M6(l,u),f=r[0],h=r[1],n=f,a=h):(h=dx(a||l,l),f=l):(f=dx(n||u,u),h=u),i.push(f),o.push(h)}return[i,o]}function px(t){for(var e=0,r=0,n=0,a=t.length,i=0,o=a-2;i<a;o=i,i+=2){var s=t[o],l=t[o+1],u=t[i],f=t[i+1],h=s*f-u*l;e+=h,r+=(s+u)*h,n+=(l+f)*h}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function A6(t,e,r,n){for(var a=(t.length-2)/6,i=1/0,o=0,s=t.length,l=s-2,u=0;u<a;u++){for(var f=u*6,h=0,v=0;v<s;v+=2){var c=v===0?f:(f+v-2)%l+2,d=t[c]-r[0],p=t[c+1]-r[1],g=e[v]-n[0],m=e[v+1]-n[1],y=g-d,_=m-p;h+=y*y+_*_}h<i&&(i=h,o=u)}return o}function L6(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function k6(t,e,r,n){for(var a=[],i,o=0;o<t.length;o++){var s=t[o],l=e[o],u=px(s),f=px(l);i==null&&(i=u[2]<0!=f[2]<0);var h=[],v=[],c=0,d=1/0,p=[],g=s.length;i&&(s=L6(s));for(var m=A6(s,l,u,f)*6,y=g-2,_=0;_<y;_+=2){var x=(m+_)%y+2;h[_+2]=s[x]-u[0],h[_+3]=s[x+1]-u[1]}h[0]=s[m]-u[0],h[1]=s[m+1]-u[1];for(var S=n/r,w=-n/2;w<=n/2;w+=S){for(var b=Math.sin(w),M=Math.cos(w),T=0,_=0;_<s.length;_+=2){var A=h[_],k=h[_+1],F=l[_]-f[0],O=l[_+1]-f[1],B=F*M-O*b,N=F*b+O*M;p[_]=B,p[_+1]=N;var z=B-A,q=N-k;T+=z*z+q*q}if(T<d){d=T,c=w;for(var Y=0;Y<p.length;Y++)v[Y]=p[Y]}}a.push({from:h,to:v,fromCp:u,toCp:f,rotation:-c})}return a}function Zf(t){return t.__isCombineMorphing}var g2="__mOriginal_";function Kf(t,e,r){var n=g2+e,a=t[n]||t[e];t[n]||(t[n]=t[e]);var i=r.replace,o=r.after,s=r.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Ls(t,e){var r=g2+e;t[r]&&(t[e]=t[r],t[r]=null)}function gx(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function m2(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=D6(sp(r),sp(n)),i=a[0],o=a[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&gx(i,s),l&&gx(o,l),Kf(e,"updateTransform",{replace:u}),e.transform=null;var f=k6(i,o,10,Math.PI),h=[];Kf(e,"buildPath",{replace:function(v){for(var c=e.__morphT,d=1-c,p=[],g=0;g<f.length;g++){var m=f[g],y=m.from,_=m.to,x=m.rotation*c,S=m.fromCp,w=m.toCp,b=Math.sin(x),M=Math.cos(x);Tu(p,S,w,c);for(var T=0;T<y.length;T+=2){var A=y[T],k=y[T+1],F=_[T],O=_[T+1],B=A*d+F*c,N=k*d+O*c;h[T]=B*M-N*b+p[0],h[T+1]=B*b+N*M+p[1]}var z=h[0],q=h[1];v.moveTo(z,q);for(var T=2;T<y.length;){var F=h[T++],O=h[T++],Y=h[T++],ne=h[T++],te=h[T++],oe=h[T++];z===F&&q===O&&Y===te&&ne===oe?v.lineTo(te,oe):v.bezierCurveTo(F,O,Y,ne,te,oe),z=te,q=oe}}}})}function Zg(t,e,r){if(!t||!e)return e;var n=r.done,a=r.during;m2(t,e),e.__morphT=0;function i(){Ls(e,"buildPath"),Ls(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Me({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),e}function P6(t,e,r,n,a,i){var o=16;t=a===r?0:Math.round(32767*(t-r)/(a-r)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(t&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function jf(t){var e=1/0,r=1/0,n=-1/0,a=-1/0,i=le(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),r=Math.min(h,r),n=Math.max(f,n),a=Math.max(h,a),[f,h]}),o=le(i,function(s,l){return{cp:s,z:P6(s[0],s[1],e,r,n,a),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function y2(t){return C6(t.path,t.count)}function up(){return{fromIndividuals:[],toIndividuals:[],count:0}}function I6(t,e,r){var n=[];function a(S){for(var w=0;w<S.length;w++){var b=S[w];Zf(b)?a(b.childrenRef()):b instanceof Ie&&n.push(b)}}a(t);var i=n.length;if(!i)return up();var o=r.dividePath||y2,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),up();n=jf(n),s=jf(s);for(var l=r.done,u=r.during,f=r.individualDelay,h=new il,v=0;v<i;v++){var c=n[v],d=s[v];d.parent=e,d.copyTransform(h),f||m2(c,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(S){for(var w=0;w<s.length;w++)s[w].addSelfToZr(S)}Kf(e,"addSelfToZr",{after:function(S){p(S)}}),Kf(e,"removeSelfFromZr",{after:function(S){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(S)}});
56function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Ls(e,"addSelfToZr"),Ls(e,"removeSelfFromZr")}var m=s.length;if(f)for(var y=m,_=function(){y--,y===0&&(g(),l&&l())},v=0;v<m;v++){var x=f?Me({delay:(r.delay||0)+f(v,m,n[v],s[v]),done:_},r):r;Zg(n[v],s[v],x)}else e.__morphT=0,e.animateTo({__morphT:1},Me({during:function(S){for(var w=0;w<m;w++){var b=s[w];b.__morphT=e.__morphT,b.dirtyShape()}u&&u(S)},done:function(){g();for(var S=0;S<t.length;S++)Ls(t[S],"updateTransform");l&&l()}},r));return e.__zr&&p(e.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function E6(t,e,r){var n=e.length,a=[],i=r.dividePath||y2;function o(c){for(var d=0;d<c.length;d++){var p=c[d];Zf(p)?o(p.childrenRef()):p instanceof Ie&&a.push(p)}}if(Zf(t)){o(t.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Bp(a[l++%s]));a.length=n}else{a=i({path:t,count:n});for(var f=t.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),up()}a=jf(a),e=jf(e);for(var h=r.individualDelay,u=0;u<n;u++){var v=h?Me({delay:(r.delay||0)+h(u,n,a[u],e[u])},r):r;Zg(a[u],e[u],v)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}const wv=new Map;function _2(t,e){const r=Object.values(t._componentsViews).find(i=>i.type===e)?.group;if(!r)return{x:0,y:0,width:0,height:0};const n=r.getBoundingRect(),a=r.getComputedTransform();return n.applyTransform(a),n}function O6(t,e){return _2(t,e).height}function Su(t,e){const r=_2(t,e);return r.height+r.y}function R6(t,e=0){const r=Fx({style:t,rotation:e});if(!wv.has(r)){const n=new ft({style:t}).getBoundingRect();wv.set(r,F6(e,n))}return wv.get(r)}function zH(t,e=0){const r=R6(t,e);return r.width-r.x}function F6(t,e){if(t===0)return e;const r=t*(Math.PI/180),n=Math.cos(r),a=Math.sin(r),i=e.x,o=e.y,s=e.x+e.width,l=e.y+e.height,u=i*n-o*a,f=i*a+o*n,h=s*n-l*a,v=s*a+l*n;return{x:Math.min(i,s,u,h),y:Math.min(o,l,f,v),width:Math.max(i,s,u,h)-Math.min(i,s,u,h),height:Math.max(o,l,f,v)-Math.min(o,l,f,v)}}function B6(){const t=_M();return Dv(t.public["nuxt-schema-org"],{scriptAttributes:{}})}function N6(t){const e=B6(),r={type:"application/ld+json",key:"schema-org-graph",nodes:t,tagPriority:"high",...e.scriptAttributes};if(e?.reactive)return xM({script:[r]})}const Jr=30,Sv=200,z6=jn({__name:"export",props:{instance:{},options:{},data:{},entries:{},width:{default:1500},height:{},aspectRatio:{},title:{},subtitle:{},addSchemaOrg:{type:Boolean}},setup(t){Zn([AC,E3,HN,d5]);const e=Nx({export:!0}),r=Ed(document.createElement("div"),e,{renderer:"canvas",width:1,height:1}),n=Ed(document.createElement("div"),e,{renderer:"svg",width:1,height:1}),{items:a}=th(),{items:i}=rh(),{t:o}=Jf();async function s(){return new Promise(_=>{const x=new Image,S=document.createElement("canvas"),w=S.getContext("2d");x.onload=()=>{S.width=x.width,S.height=x.height,w?.drawImage(x,0,0),_(S)},x.src=g6})}async function l(_){const x=await s(),S=Array.isArray(_.graphic)?_.graphic:_.graphic?[_.graphic]:[],w=location.href.split("?")[0];return S.push({type:"group",id:"watermark",width:t.width,left:Jr,bottom:Jr,right:Jr,z:1e4,children:[{type:"text",bottom:0,style:{width:t.width-120,overflow:"break",verticalAlign:"bottom",fontWeight:"bold",text:o("source",{url:w}),rich:{url:{fontSize:12,fontWeight:"normal",fill:"#555555"}}}},{type:"image",bottom:0,left:t.width-Sv-Jr*2,style:{opacity:.5,image:x,width:Sv,height:x.height*(Sv/x.width),sWidth:x.width}}]}),_.graphic=S,_}async function u(_){if(!t.instance)return;const x=_==="svg"?n:r,S=t.height??(t.aspectRatio?t.width/t.aspectRatio:t.instance.getHeight()*(t.width/t.instance.getWidth())),w=t.options??t.instance.getModel()._optionManager._optionBackup.baseOption,M=await l({...w,animation:!1,backgroundColor:_==="png"?"transparent":"white",title:{text:t.title,textStyle:{fontSize:25,lineHeight:30,width:t.width/1.5}}});x.resize({width:t.width,height:S}),x.setOption(M,!0);let T=0;const A=O6(x,"graphic")+Jr;M.visualMap&&(x.setOption({visualMap:{left:Jr,top:Su(x,"title")+24,right:"left",align:"left",orient:"horizontal"}}),T=Su(x,"visualMap.piecewise")+24),M.legend&&(x.setOption({legend:{left:Jr,orient:"horizontal",top:Su(x,"title")+24,align:"left",itemGap:16}}),T=Su(x,"legend.plain")+24),M.matrix&&x.setOption({matrix:{left:Jr,right:Jr,top:T,bottom:A+Jr}});const k=S+T+A;return x.resize({width:t.width,height:k}),x}async function f(_){const x=await u(_);if(!x)return;const S=x.getDataURL({type:_,backgroundColor:"white",pixelRatio:2}),w=document.createElement("a");
56w.download=`chart.${_}`,w.href=S,w.click()}function h(_=","){if(!t.data||!t.entries)return;const x=["",...De(a).flatMap(w=>De(i).map(b=>`"${w.name} - ${b.year}"`))],S=t.data.map(w=>[`"${w.name}"`,...De(a).flatMap(b=>De(i).map(M=>t.entries.find(T=>T.id===w.id&&T.country==b.id&&T.year==M.id)?.value))]);return[x,...S].map(w=>w.join(_)).join(`
57`)}function v(){if(!t.data||!t.entries)return;const _=new Map(De(a).map(S=>[S.id,S.name])),x=new Map(De(i).map(S=>[S.id,S.year]));return t.data.map(S=>({name:S.name,values:t.entries.filter(w=>w.id===S.id).map(w=>({value:w.value,country:_.get(w.country),year:x.get(w.year)}))}))}function c(){if(!t.data||!t.entries)return;const _=xv.book_new();_.Props={Title:"Data Export",CreatedDate:new Date};for(const x of De(i)){const S=[["",...De(a).map(b=>b.name)],...t.data.map(b=>[b.name,...De(a).map(M=>t.entries.find(T=>T.id===b.id&&T.country==M.id&&T.year==x.id)?.value)])],w=xv.aoa_to_sheet(S);xv.book_append_sheet(_,w,String(x.year))}return _}function d(_=","){const x=h(_);if(!x)return;const S=document.createElement("a");S.download="data.csv";const w="\uFEFF";S.href=`data:text/csv;charset=utf-8,${w}${encodeURIComponent(x)}`,S.click(),S.remove()}function p(){const _=v();if(!_)return;const x=document.createElement("a");x.download="data.json",x.href=`data:text/json;charset=utf-8,${encodeURIComponent(JSON.stringify(_))}`,x.click(),x.remove()}function g(){const _=c();_&&r6(_,"data.xlsx")}const m=Kt(()=>t.data?.some(_=>t.entries?.some(x=>x.id===_.id&&kn(x.value)))),y=Kt(()=>[{label:o("download-as",{format:"PNG"}),onSelect:()=>f("png"),"data-testid":"chart-export-png"},{label:o("download-as",{format:"JPEG"}),onSelect:()=>f("jpeg"),"data-testid":"chart-export-jpeg"},{label:o("download-as",{format:"SVG"}),onSelect:()=>f("svg"),"data-testid":"chart-export-svg"},{type:"separator"},{label:o("download-as",{format:"CSV (comma-delimited)"}),onSelect:()=>d(","),"data-testid":"chart-export-csv"},{label:o("download-as",{format:"CSV (semicolon-delimited)"}),onSelect:()=>d(";"),"data-testid":"chart-export-csv-semicolon"},{label:o("download-as",{format:"JSON"}),onSelect:()=>p(),"data-testid":"chart-export-json"},{label:o("download-as",{format:"XLSX"}),onSelect:()=>g(),"data-testid":"chart-export-xlsx"}]);return N6(()=>t.addSchemaOrg?{"@type":"Dataset",name:t.title,description:t.subtitle,distribution:[{"@type":"DataDownload",encodingFormat:"application/json",content:v()}]}:{}),(_,x)=>{const S=eh,w=vp;return _e(),ze(w,{items:X(y)},{default:Re(()=>[je(S,{disabled:!t.instance||!X(m)||!t.options,size:"sm",label:X(o)("download"),"leading-icon":"heroicons-outline:download",variant:"ghost",class:"cursor-pointer disabled:text-gray-400","data-testid":"chart-export-button"},null,8,["disabled","label"])]),_:1},8,["items"])}}}),H6=Object.assign(z6,{__name:"ChartToolsExport"}),G6={},V6={class:"scrollbar-hide flex max-w-fit shrink-0 items-center justify-between divide-x divide-gray-200 overflow-hidden rounded-xl border border-gray-200 bg-white py-1 *:px-2"};function U6(t,e){return _e(),Mt("div",V6,[at(t.$slots,"default")])}const W6=Object.assign(AM(G6,[["render",U6]]),{__name:"AppMenubar"}),$6={key:0,class:"mr-2"},Y6={class:"flex flex-col items-center gap-4 p-3"},X6={class:"grid place-items-center"},q6={class:"grid place-items-center"},Z6=jn({__name:"index",props:{instance:{},data:{},entries:{},exportOptions:{},exportWidth:{},exportAspectRatio:{},exportHeight:{},title:{},subtitle:{},addSchemaOrg:{type:Boolean}},setup(t){const{smaller:e}=wM(SM),r=e("md"),{t:n}=Jf();return(a,i)=>{const o=eh,s=bM,l=H3,u=H6,f=W6;return _e(),ze(f,{"data-allow-mismatch":""},{default:Re(()=>[a.$slots.default&&X(r)?(_e(),Mt("div",$6,[je(s,null,{content:Re(()=>[Fn("div",Y6,[at(a.$slots,"default")])]),default:Re(()=>[je(o,{label:X(n)("options"),variant:"ghost",size:"sm","data-testid":"mobile-chart-options-button"},null,8,["label"])]),_:3})])):at(a.$slots,"default",{key:1}),Fn("div",X6,[je(l)]),Fn("div",q6,[je(u,{instance:t.instance,width:t.exportWidth,height:t.exportHeight,"aspect-ratio":t.exportAspectRatio,data:t.data,options:t.exportOptions,entries:t.entries,title:t.title,subtitle:t.subtitle,"add-schema-org":t.addSchemaOrg},null,8,["instance","width","height","aspect-ratio","data","options","entries","title","subtitle","add-schema-org"])])]),_:3})}}}),K6=Object.assign(Z6,{__name:"ChartTools"}),j6={class:"flex items-center justify-between gap-4"},Q6=jn({__name:"container",props:{instance:{},data:{},entries:{},exportOptions:{},exportWidth:{},exportAspectRatio:{},exportHeight:{},title:{},subtitle:{},addSchemaOrg:{type:Boolean}},setup(t){return(e,r)=>{const n=K6,a=LM;return _e(),ze(a,null,{default:Re(()=>[Fn("div",j6,[at(e.$slots,"heading"),je(n,{class:"mb-8 ml-auto justify-end",instance:t.instance,data:t.data,entries:t.entries,"export-width":t.exportWidth,"export-aspect-ratio":t.exportAspectRatio,"export-height":t.exportHeight,"export-options":t.exportOptions,title:t.title,subtitle:t.subtitle,"add-schema-org":t.addSchemaOrg},{default:Re(i=>[at(e.$slots,"tools",$u(Yu(i)))]),_:3},8,["instance","data","entries","export-width","export-aspect-ratio","export-height","export-options","title","subtitle","add-schema-org"])]),at(e.$slots,"default")]),_:3})}}}),HH=Object.assign(Q6,{__name:"ChartContainer"});function mx(t){return J(t[0])}function yx(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;
57if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var J6={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var a=Bp(t.path);a.setStyle("opacity",r),e.push(a)}return e},split:null};function bv(t,e,r,n,a,i){if(!t.length||!e.length)return;var o=Do("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;mx(t)&&(u=t,f=e),mx(e)&&(u=e,f=t);function h(m,y,_,x,S){var w=m.many,b=m.one;if(w.length===1&&!S){var M=y?w[0]:b,T=y?b:w[0];if(Zf(M))h({many:[M],one:T},!0,_,x,!0);else{var A=s?Me({delay:s(_,x)},l):l;Zg(M,T,A),i(M,T,M,T,A)}}else for(var k=Me({dividePath:J6[r],individualDelay:s&&function(q,Y,ne,te){return s(q+_,x)}},l),F=y?I6(w,b,k):E6(b,w,k),O=F.fromIndividuals,B=F.toIndividuals,N=O.length,z=0;z<N;z++){var A=s?Me({delay:s(z,N)},l):l;i(O[z],B[z],y?w[z]:m.one,y?m.one:w[z],A)}}for(var v=u?u===t:t.length>e.length,c=u?yx(f,u):yx(v?e:t,[v?t:e]),d=0,p=0;p<c.length;p++)d+=c[p].many.length;for(var g=0,p=0;p<c.length;p++)h(c[p],v,g,d),g+=c[p].many.length}function li(t){if(!t)return[];if(J(t)){for(var e=[],r=0;r<t.length;r++)e.push(li(t[r]));return e}var n=[];return t.traverse(function(a){a instanceof Ie&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var x2=1e4,eH=0,_x=1,xx=2,tH=Ue();function rH(t,e){for(var r=t.dimensions,n=0;n<r.length;n++){var a=t.getDimensionInfo(r[n]);if(a&&a.otherDims[e]===0)return r[n]}}function nH(t,e,r){var n=t.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=t.get(n.name,e);return a&&a.categories[i]||i+""}}function Sx(t,e,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=rH(t,a);if(i){var o=nH(t,e,i);return o}var s=t.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||t.getId(e)}function bx(t){var e=[];return I(t,function(r){var n=r.data,a=r.dataGroupId;if(!(n.count()>x2))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:Sx(n,o,a,!1),childGroupId:Sx(n,o,a,!0),divide:r.divide,dataIndex:o})}),e}function Tv(t,e,r){t.traverse(function(n){n instanceof Ie&&br(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function Cv(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Zi(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function aH(t,e,r){var n=Do("update",r,e);n&&t.traverse(function(a){if(a instanceof Qn){var i=ck(a);i&&a.animateFrom({style:i},n)}})}function iH(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var a=t[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function w2(t,e,r){var n=bx(t),a=bx(e);function i(_,x,S,w,b){(S||_)&&x.animateFrom({style:S&&S!==_?K(K({},S.style),_.style):_.style},b)}var o=!1,s=eH,l=ye(),u=ye();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var h=a[f].groupId;if(u.get(h)){s=_x;break}var v=a[f].childGroupId;if(v&&l.get(v)){s=xx;break}}function c(_,x){return function(S){var w=S.data,b=S.dataIndex;return x?w.getId(b):_?s===_x?S.childGroupId:S.groupId:s===xx?S.childGroupId:S.groupId}}var d=iH(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function y(_,x){var S=n[x],w=a[_],b=w.data.hostModel,M=S.data.getItemGraphicEl(S.dataIndex),T=w.data.getItemGraphicEl(w.dataIndex);if(M===T){T&&aH(T,w.dataIndex,b);return}M&&p[M.id]||T&&(Zi(T),M?(Zi(M),Cv(M),o=!0,bv(li(M),li(T),w.divide,b,_,i)):Tv(T,b,_))}new pf(n,a,c(!0,d),c(!1,d),null,"multiple").update(y).updateManyToOne(function(_,x){var S=a[_],w=S.data,b=w.hostModel,M=w.getItemGraphicEl(S.dataIndex),T=qe(le(x,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==M&&!p[A.id]});M&&(Zi(M),T.length?(I(T,function(A){Zi(A),Cv(A)}),o=!0,bv(li(T),li(M),S.divide,b,_,i)):Tv(M,b,S.dataIndex))}).updateOneToMany(function(_,x){var S=n[x],w=S.data.getItemGraphicEl(S.dataIndex);if(!(w&&p[w.id])){var b=qe(le(_,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==w}),M=a[_[0]].data.hostModel;b.length&&(I(b,function(T){return Zi(T)}),w?(Zi(w),Cv(w),o=!0,bv(li(w),li(b),S.divide,M,_[0],i)):I(b,function(T){return Tv(T,M,_[0])}))}}).updateManyToMany(function(_,x){new pf(x,_,function(S){return n[S].data.getId(n[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,w){y(_[S],x[w])}).execute()}).execute(),o&&I(e,function(_){var x=_.data,S=x.hostModel,w=S&&r.getViewOfSeriesModel(S),b=Do("update",S,0);w&&S.isAnimationEnabled()&&b&&b.duration>0&&w.group.traverse(function(M){M instanceof Ie&&!M.animators.length&&M.animateFrom({style:{opacity:0}
57},b)})})}function Tx(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Cx(t){return J(t)?t.sort().join(","):t}function fa(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function oH(t,e){var r=ye(),n=ye(),a=ye();return I(t.oldSeries,function(i,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=Tx(i),f=Cx(u);n.set(f,{dataGroupId:s,data:l}),J(u)&&I(u,function(h){a.set(h,{key:f,dataGroupId:s,data:l})})}),I(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Tx(i),u=Cx(l),f=n.get(u);if(f)r.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:fa(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:fa(s),data:s}]});else if(J(l)){var h=[];I(l,function(d){var p=n.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:fa(p.data),data:p.data})}),h.length&&r.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:fa(s)}]})}else{var v=a.get(l);if(v){var c=r.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:fa(v.data)}],newSeries:[]},r.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:fa(s)})}}}}),r}function Mx(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function sH(t,e,r,n){var a=[],i=[];I(Qe(t.from),function(o){var s=Mx(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:fa(e.oldData[s]),groupIdDim:o.dimension})}),I(Qe(t.to),function(o){var s=Mx(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:fa(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&w2(a,i,n)}function GH(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){I(Qe(n.seriesTransition),function(a){I(Qe(a.to),function(i){for(var o=n.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][Ru]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var a=tH(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)I(Qe(i),function(c){sH(c,a,n,r)});else{var o=oH(a,n);I(o.keys(),function(c){var d=o.get(c);w2(d.oldSeries,d.newSeries,r)})}I(n.updatedSeries,function(c){c[Ru]&&(c[Ru]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<x2&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(v))}})}function VH(t,e){const{aliases:r}=th(),{aliases:n}=rh();return TM(()=>Fx({type:t,ids:De(e)?.map(a=>a.id)}),(a,{signal:i})=>Promise.all((De(e)||[]).map(o=>$fetch(`/api/values/${t}/${o.id}`,{signal:i}).then(s=>(De(n).forEach(({transformEntries:l})=>l(o,s)),De(r).forEach(({transformEntries:l})=>l(o,s)),s)))).then(o=>o.flat()),{default:()=>[]})}export{Ue as $,He as A,Ce as B,Nn as C,ge as D,I as E,J as F,fe as G,Co as H,yH as I,Pe as J,Ut as K,zr as L,X0 as M,wr as N,xH as O,zv as P,nR as Q,Ke as R,mn as S,EH as T,be as U,K as V,Us as W,sI as X,Fe as Y,Tr as Z,K6 as _,rh as a,CH as a$,K0 as a0,_n as a1,ke as a2,pt as a3,ku as a4,BS as a5,On as a6,ye as a7,ML as a8,Vw as a9,sk as aA,Up as aB,_k as aC,TH as aD,us as aE,xk as aF,ph as aG,bH as aH,Xu as aI,bs as aJ,FH as aK,pN as aL,BH as aM,gH as aN,zH as aO,$e as aP,Cc as aQ,Yn as aR,ow as aS,Ie as aT,Dt as aU,Gs as aV,br as aW,Me as aX,RL as aY,sl as aZ,$I as a_,Jt as aa,uS as ab,fS as ac,LH as ad,we as ae,aR as af,he as ag,Ee as ah,Ze as ai,sP as aj,qe as ak,ll as al,Ge as am,wH as an,NS as ao,Th as ap,Ch as aq,eI as ar,gn as as,ft as at,pn as au,bt as av,Ta as aw,Mh as ax,Db as ay,Xw as az,mH as b,WI as b0,xf as b1,gL as b2,fl as b3,$t as b4,QI as b5,JI as b6,dn as b7,_H as b8,fb as b9,OH as bA,wN as bB,bp as bC,Pv as bD,ba as bE,Bn as bF,ir as bG,JR as bH,$F as bI,Qx as bJ,kF as bK,u_ as bL,AF as bM,NT as bN,gk as bO,Xn as bP,Be as bQ,Ao as bR,Dk as bS,zp as bT,sS as bU,dh as bV,tC as bW,n_ as bX,pH as bY,rE as ba,AH as bb,SA as bc,xe as bd,de as be,kE as bf,IH as bg,RE as bh,uy as bi,Ma as bj,Au as bk,vE as bl,nS as bm,gh as bn,IE as bo,di as bp,EE as bq,lP as br,MH as bs,SH as bt,DH as bu,PH as bv,PB as bw,mN as bx,yN as by,gN as bz,VH as c,re as d,ul as e,Sr as f,Xp as g,Fp as h,vb as i,Qp as j,jp as k,Zn as l,le as m,kH as n,GH as o,Wn as p,O5 as q,dH as r,_h as s,ve as t,VM as u,HN as v,RH as w,NH as x,HH as y,vp as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.