Files
ccdi/doc/other/纪检初核系统-离线演示包/mb-proto2/5.fxqum-vendor-f8aaf1fb2db7ed4b19df.js
2026-01-29 22:03:42 +08:00

59 lines
1.7 MiB

try{let oe=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Ct=new oe.Error().stack;Ct&&(oe._sentryDebugIds=oe._sentryDebugIds||{},oe._sentryDebugIds[Ct]="b5b9c273-fc6e-4976-9cfa-b50fdc251cab",oe._sentryDebugIdIdentifier="sentry-dbid-b5b9c273-fc6e-4976-9cfa-b50fdc251cab")}catch(oe){}{let oe=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};oe.SENTRY_RELEASE={id:"22.14.4"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[854],{474:(oe,Ct,T)=>{"use strict";T.d(Ct,{G:()=>F,n:()=>Z});const F=I=>{let{webpage:z}=I;return{wbp:z.url}},Z=I=>{let{wbp:z}=I;return{webpage:{url:z}}}},1002:(oe,Ct,T)=>{"use strict";T.d(Ct,{uw:()=>at,kX:()=>pt,qs:()=>B.qs,pt:()=>B.pt});var F=T(18381),Z=T(12211),I=T(74945),z=T(70933),D=T(60651),V=T(20089),ht=T(38502),ot=T(69594),S=T(67787);const O=S.Ay.div.withConfig({displayName:"styles__StyledItemElbowAnchorContainer",componentId:"sc-1cl5ucl-0"})([".anchor-container{.anchor{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",";svg{width:100%;height:100%;}}.anchor-top{top:0;left:50%;}.anchor-left{top:50%;left:0;}.anchor-right{top:50%;left:100%;}.anchor-bottom{top:100%;left:50%;}.arrow{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;svg{width:100%;height:100%;}}.arrow-top{top:0;left:50%;}.arrow-left{top:50%;left:0;}.arrow-right{top:50%;left:100%;}.arrow-bottom{top:100%;left:50%;}}"],ot.M.defaultCreate);var $=T(72214);const q=(0,$.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$.jsx)("circle",{cx:"10",cy:"10",r:"5.3",fill:"#fff",stroke:"#1684FC",strokeWidth:"1.5"})}),ft=(0,$.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$.jsx)("circle",{cx:"10",cy:"10",r:"5.3",fill:"#1684FC",stroke:"#fff",strokeWidth:"1.5"})});class K extends ht.PureComponent{render(){const{viewport:lt,hoverItem:A,highlightAnchor:kt,isShow:_t}=this.props;if(!_t)return null;const{scale:Mt,offset:At}=lt,jt={position:"absolute",left:0,top:0,transform:"matrix("+Mt+", 0, 0, "+Mt+", "+At.x+", "+At.y+")",pointerEvents:"none",zIndex:3};return(0,$.jsx)("div",{style:jt,children:(0,$.jsx)(it,{viewport:lt,hoverItem:A,highlightAnchor:kt})})}}class it extends ht.PureComponent{render(){const{viewport:lt,hoverItem:A,highlightAnchor:kt}=this.props,{x:_t,y:Mt,w:At,h:jt,r:Nt}=sdkStore.getHotBound(A.key),Vt=_t-At*.5-lt.offset.x/lt.scale,Wt=Mt-jt*.5-lt.offset.y/lt.scale,Ot="translate("+Vt+"px,"+Wt+"px) rotate("+Nt+"deg)",Dt={position:"absolute",width:At,height:jt,transform:Ot,cursor:"move"},{scale:Ht}=lt;let tt=Math.round(20/Ht);tt=tt>=1?tt:1;const Pt={width:tt+"px",height:tt+"px"},zt=["top","right","bottom","left"];return(0,$.jsx)(O,{className:"artboard-item",style:Dt,children:(0,$.jsx)("div",{className:"anchor-container",children:zt.map(te=>(0,$.jsx)("div",{children:(0,$.jsx)("span",{"data-cid":A.key,className:"anchor anchor-"+te+" elbow-anchor-start-point",style:Pt,children:kt===te?ft:q})},te))})})}}const nt=(0,Z.Mz)([z.$S,z.X_,z.ER],(mt,lt,A)=>{var kt,_t;return{scale:lt/100,size:{w:(kt=mt==null?void 0:mt.width)!=null?kt:0,h:(_t=mt==null?void 0:mt.height)!=null?_t:0},offset:A}}),vt=(0,Z.Mz)([nt,D.IL,I.rP,I.e8,I.Q1],(mt,lt,A,kt,_t)=>{if(!_t&&!A)return{isShow:!1};if(!lt)return{isShow:!1};const Mt=sdkStore.getHotItem(lt);return Mt?[V.x.WElbow,V.x.WTear].includes(Mt.hotAttr.type)?{isShow:!1}:{isShow:!0,viewport:mt,hoverItem:Mt,highlightAnchor:kt}:{isShow:!1}}),at=(0,F.Ng)(mt=>vt(mt))(K);var et=T(95549),yt=T(53732),rt=T.n(yt),ct=T(15186),G=T(18488),B=T(97453),W=T(18637);const ut=mt=>{let{widget:lt,mode:A}=mt;return(0,$.jsx)(H,{className:"no-position",children:(0,$.jsx)("svg",{className:rt()("vector","elbow-line-svg-"+lt.key),children:(0,$.jsx)(W.Tr,{widget:lt,mode:A})})})},H=S.Ay.div.withConfig({displayName:"ElbowCurve__StylesVectorContainer",componentId:"sc-tdno7-0"})(["width:100%;height:100%;svg.vector{width:100%;height:100%;overflow:unset;position:absolute;top:0;left:0;}"]),N=ht.memo(ut);var Y=T(45815);const gt=S.Ay.div.withConfig({displayName:"styles__StyledElbow",componentId:"sc-n7b98k-0"})(["&.aboard-line{position:absolute;top:0;left:0;pointer-events:none;path{pointer-events:auto;}.line-wrap{position:absolute;top:0;left:0;overflow:visible !important;.line-path-ghost{stroke:transparent;fill:none;}.line-path{fill:none;}.line-path-hover{fill:none;stroke:transparent;}}.marker-wrap{.marker-wrap-ghost1,.marker-wrap-ghost2{circle,path{fill:",";}&.hollow{circle,path{stroke:",";}}}}}"],mt=>mt.stroke,mt=>mt.stroke);class pt extends ht.PureComponent{constructor(){super(...arguments),(0,et.A)(this,"getIsHoverOrEditState",()=>{const{widget:{hotAttr:lt},isHover:A,isSelected:kt,isDraggingElbow:_t,isActive:Mt,mode:At}=this.props;if(At!=="design")return;const{isLock:jt}=lt;return!jt&&(A||kt||_t&&Mt)})}render(){const{widget:lt,widget:{key:A,hotAttr:kt},hasInteraction:_t,mode:Mt,textPosition:At,isDraggingElbow:jt}=this.props,{elbow:Nt,w:Vt,h:Wt}=kt,{arrowStroke:Ot,dPathList:Dt,startAnchor:Ht,endAnchor:tt,elbowType:Pt}=Nt,zt=(0,Y.X)(Dt,Pt),te=(0,ct.t0)(Ot.bdrColor),$t=Tt(Ot.bdrStyle,Ot.bdrWidth),ae=(0,G.xc)(kt);return(0,$.jsxs)(gt,{className:rt()("aboard-line","aboard-line-v2"),stroke:te,children:[(0,$.jsx)(B.Ay,{mode:Mt,elbowKey:A,markerStart:Ht,markerEnd:tt,w:Vt,h:Wt,isShowText:ae,textPosition:At,strokeWidth:Ot.bdrWidth}),Nt.elbowType==="curve"?(0,$.jsx)(N,{widget:lt,mode:Mt}):(0,$.jsxs)("svg",{className:"line-wrap line-drop-shadow styled-line-wrap-svg-"+A+" elbow-line-svg-"+A,width:Vt||1,height:Wt||1,viewBox:"0 0 "+(Vt||1)+" "+(Wt||1),xmlns:"http://www.w3.org/2000/svg",children:[(0,$.jsx)("path",{className:"line-path",d:zt,markerStart:"url(#"+Ht+"-"+A+"-start-"+Mt+")",markerEnd:"url(#"+tt+"-"+A+"-end-"+Mt+")",clipPath:"url(#"+A+"-clip-path)",strokeWidth:Ot.bdrWidth,strokeDasharray:$t,stroke:te}),Mt==="design"&&!jt&&(0,$.jsx)("path",{className:"line-path",d:zt,clipPath:"url(#"+A+"-clip-path)",strokeWidth:Ot.bdrWidth+4,strokeDasharray:$t,stroke:"transparent"}),_t&&(0,$.jsx)("path",{className:"line-path-ghost",d:zt,strokeWidth:Ot.bdrWidth+3,clipPath:"url(#"+A+"-clip-path)"})]})]})}}const Tt=(mt,lt)=>{if(mt==="solid")return"";if(mt==="dotted")return lt+" "+lt;if(mt==="dashed"){if(lt===1)return"3 2";if(lt===2)return"6 4";if(lt>2)return lt*2+" "+lt}}},3902:(oe,Ct,T)=>{"use strict";T.d(Ct,{Gh:()=>S,W:()=>O,gP:()=>V,jQ:()=>z,sI:()=>D,u7:()=>ot});var F=T(12211),Z=T(70933),I=T(20089);const z=$=>$.ui.fixedLayout.findReplacePanel.show,D=$=>$.ui.fixedLayout.findReplacePanel.findWidgetList,V=$=>$.ui.fixedLayout.findReplacePanel.findSelectWidgetCid,ht=$=>$.ui.fixedLayout.findReplacePanel.findWidgetPanelList,ot=$=>$.ui.fixedLayout.findReplacePanel.isFocusPanel,S=$=>$.ui.fixedLayout.findReplacePanel,O=(0,F.Mz)([D,ht,Z.eo],($,q,ft)=>{const K=[],it=[];return $.concat(q).forEach(vt=>{let{pageKey:at,widget:{key:et,hotAttr:{type:yt}}}=vt;ft===at&&(yt===I.x.WMindNode?K.push(et):it.push(et))}),{findReplaceWMindNodeKeys:Array.from(new Set(K)),findReplaceKeys:Array.from(new Set(it))}})},5621:(oe,Ct,T)=>{"use strict";T.d(Ct,{K:()=>F});function F(Z,I){return Number.parseFloat(Z/I)}},7018:(oe,Ct,T)=>{"use strict";T.d(Ct,{f:()=>z,o:()=>I});var F=T(15889),Z=T(44691);const I=function(D){D===void 0&&(D="");const V=new TextEncoder().encode(D),ht=(0,F.ZI)(V);return(0,Z.l)(ht)},z=D=>{if(!D)return"";const V=(0,Z.D)(D),ht=(0,F.Aq)(V);return new TextDecoder().decode(ht)}},7457:(oe,Ct,T)=>{"use strict";T.d(Ct,{RT:()=>V,Z7:()=>I,nF:()=>F,tC:()=>Z,xM:()=>z});const F=ht=>ht.ui.artboard.isDragLink,Z=ht=>ht.ui.artboard.isDragAnnotationBindingPoint,I=ht=>ht.ui.artboard.showShortCutArtBoard,z=ht=>ht.ui.artboard.isShowNps,D=ht=>ht.ui.artboard.basketPathCacheTag,V=ht=>ht.ui.artboard.isAdjustOverlayRelPos},8783:(oe,Ct,T)=>{"use strict";T.d(Ct,{$y:()=>V,tp:()=>ht});var F=T(15186),Z=T(13235),I=T(68033);const z={newOverOld:!1,showContentBox:!1,fontSize:12,color:"rgba(65, 80, 88, 1)",haDisabled:!0,vaDisabled:!0,isDisabledFontDropdown:!0,isDisabledFontRadioLine:!0,isEditing:!1},D=ot=>{const{textColor:S,fontSize:O}=ot.textV0;return V({color:S,fontSize:O})},V=ot=>({textStyle:{...z,color:ot.color?(0,F.t0)(ot.color):"",fontSize:ot.fontSize}}),ht=ot=>{let{theme:S,color:O,index:$}=ot;const q=I.B5[S][$%I.B5.length];return O?"#"+(0,Z.L5)((0,Z.NI)(O)):q}},10393:(oe,Ct,T)=>{"use strict";T.d(Ct,{l:()=>et});var F=T(38502),Z=T(89310),I=T(85449);const z=3,D=yt=>{let{originXY:rt,side:ct}=yt;const{lf:G,lr:B,lt:W}=ct,ut=rt[0]<(G+B)/2,H={height:6,width:ut?rt[0]-G-8+6:B-rt[0]-8+6,left:ut?5:rt[0]-G-3,top:rt[1]-W-3,position:"absolute"},N="M 3 3 H "+(H.width-6),Y={x:ut?H.width-3:3,y:3},gt={x:ut?3:H.width-3,y:3},pt={right:ut?"":H.width-5,left:ut?H.width-5:"",top:H.top-4};return{svgContainer:H,path:N,circleStart:gt,circleEnd:Y,pointStyle:pt}},V=yt=>{let{isLeftSticky:rt,side:ct}=yt;const{lf:G,lr:B}=ct,W={height:6+z*2,width:49+z*2,left:rt?-38:B-G-8-3,top:6,position:"absolute"},ut=rt?"M 46 "+(3+z)+" H "+(3+z):"M "+(3+z)+" "+(3+z)+" H 46",H={x:rt?3+z:46+z,y:3+z},N={x:rt?46+z:3+z,y:3+z},Y={right:rt?"":-W.width+1+z*3,left:rt?-W.width+7+z*3:"",top:W.top-4+z};return{svgContainer:W,path:ut,circleStart:N,circleEnd:H,pointStyle:Y}},ht=yt=>{let{originXY:rt,isLineTop:ct,isLineBottom:G,side:B}=yt;const{lf:W,lb:ut,lt:H}=B,N={width:6+z*2,height:ct?H-rt[1]+8+6+z*2:G&&rt[1]-ut+8+6+z*2,top:ct?rt[1]-H-3:G&&ut-H-8-3,left:rt[0]-W-3,position:"absolute"},Y="M "+(3+z)+" "+(3+z)+" V "+(N.height-6),gt={x:3+z,y:ct?3+z:N.height-3-z},pt={x:3+z,y:ct?N.height-3-z:3+z},Tt={top:ct?-N.height+7+3*z:"",left:N.left-4+z,bottom:ct?"":-N.height+7+z};return{svgContainer:N,path:Y,circleStart:pt,circleEnd:gt,pointStyle:Tt}},ot=yt=>{let{originXY:rt,isLineLeft:ct,isLineRight:G,side:B}=yt;const{lf:W,lr:ut,lt:H}=B,N={height:6+z*2,width:ct?W-rt[0]+8+6+z*2:G&&rt[0]-ut+8+6+z*2,left:ct?rt[0]-W-3:G&&ut-W-8-3,top:rt[1]-H-3,position:"absolute"},Y="M "+(3+z)+" "+(3+z)+" H "+(N.width-6),gt={x:ct?3+z:N.width-3-z,y:3+z},pt={x:ct?N.width-3-z:3+z,y:3+z},Tt={right:ct?"":-N.width+7+z,left:ct?-N.width+7+z*3:"",top:N.top-4+z};return{svgContainer:N,path:Y,circleStart:pt,circleEnd:gt,pointStyle:Tt}},S=yt=>{let{originXY:rt,isLineLeft:ct,side:G}=yt;const{lf:B,lr:W,lt:ut,lb:H}=G,N=rt[1]<=ut+8,Y={height:N?ut-rt[1]+8+6+z*2:rt[1]-H+8+6+z*2,width:ct?B-rt[0]+8+6+z*2:rt[0]-W+8+6+z*2,left:ct?-B+rt[0]-3:W-B-8-3,top:N?-ut+rt[1]-3:H-ut-11,position:"absolute"},gt={x:ct?3+z:Y.width-3-z,y:N?3+z:Y.height-3-z},pt={x:ct?Y.width-3-z:3+z,y:N?Y.height-3-z:3+z},Tt={x:(Y.width-6)*(ct?.6:.4),y:N?Y.height-3-z:3+z},mt={x:(Y.width-6)*(ct?.6:.4),y:N?3+z:Y.height-3-z};let lt=4;Y.height<=12&&(lt=Y.height/4);let A;ct?N?A="M "+pt.x+" "+pt.y+" H "+(Tt.x+lt)+" Q "+Tt.x+" "+Tt.y+" "+Tt.x+" "+(Tt.y-lt)+" V "+(mt.y+lt)+" Q "+mt.x+" "+mt.y+" "+(mt.x-lt)+" "+mt.y+" H "+gt.x:A="M "+pt.x+" "+pt.y+" H "+(Tt.x+lt)+" Q "+Tt.x+" "+Tt.y+" "+Tt.x+" "+(Tt.y+lt)+" V "+(mt.y-lt)+" Q "+mt.x+" "+mt.y+" "+(mt.x-lt)+" "+mt.y+" H "+gt.x:N?A="M "+pt.x+" "+pt.y+" H "+(Tt.x-lt)+" Q "+Tt.x+" "+Tt.y+" "+Tt.x+" "+(Tt.y-lt)+" V "+(mt.y+lt)+" Q "+mt.x+" "+mt.y+" "+(mt.x+lt)+" "+mt.y+" H "+gt.x:A="M "+pt.x+" "+pt.y+" H "+(Tt.x-lt)+" Q "+Tt.x+" "+Tt.y+" "+Tt.x+" "+(Tt.y+lt)+" V "+(mt.y-lt)+" Q "+mt.x+" "+mt.y+" "+(mt.x+lt)+" "+mt.y+" H "+gt.x;const kt={right:ct?"":-Y.width+7+z,top:N?-Y.height+7+z*3:"",left:ct?-Y.width+7+z*3:"",bottom:N?"":-Y.height+7+z};return{svgContainer:Y,path:A,circleStart:pt,circleEnd:gt,pointStyle:kt}},O=yt=>{let{originXY:rt,side:ct}=yt;const{lf:G,lr:B,lt:W,lb:ut}=ct,H=rt[0]-G<=12,N=rt[1]<ut,Y={width:H?G-rt[0]+8+6+z*2:rt[0]-B+8+6+z*2,height:N?W-rt[1]+8+6+z*2:rt[1]-ut+8+6+z*2,left:H?-G+rt[0]-3:B-G-8-3,top:N?-W+rt[1]-3:ut-W-11,position:"absolute"},gt={x:H?3+z:Y.width-3-z,y:N?3+z:Y.height-3-z},pt={x:H?Y.width-3-z:3+z,y:N?Y.height-3-z:3+z},Tt={x:H?Y.width-3-z:3+z,y:(Y.height-6)*(N?.6:.4)},mt={x:H?3+z:Y.width-3-z,y:(Y.height-6)*(N?.6:.4)};let lt=4;Y.width<=12&&(lt=Y.width/4);let A;N?H?A="M "+pt.x+" "+pt.y+" V "+(Tt.y+lt)+" Q "+Tt.x+" "+Tt.y+" "+(Tt.x-lt)+" "+Tt.y+" H "+(mt.x+lt)+" Q "+mt.x+" "+mt.y+" "+mt.x+" "+(mt.y-lt)+" V "+gt.y:A="M "+pt.x+" "+pt.y+" V "+(Tt.y+lt)+" Q "+Tt.x+" "+Tt.y+" "+(Tt.x+lt)+" "+Tt.y+" H "+(mt.x-lt)+" Q "+mt.x+" "+mt.y+" "+mt.x+" "+(mt.y-lt)+" V "+gt.y:H?A="M "+pt.x+" "+pt.y+" V "+(Tt.y-lt)+" Q "+Tt.x+" "+Tt.y+" "+(Tt.x-lt)+" "+Tt.y+" H "+(mt.x+lt)+" Q "+mt.x+" "+mt.y+" "+mt.x+" "+(mt.y+lt)+" V "+gt.y:A="M "+pt.x+" "+pt.y+" V "+(Tt.y-lt)+" Q "+Tt.x+" "+Tt.y+" "+(Tt.x+lt)+" "+Tt.y+" H "+(mt.x-lt)+" Q "+mt.x+" "+mt.y+" "+mt.x+" "+(mt.y+lt)+" V "+gt.y;const kt={right:H?"":-Y.width+7+z,top:N?-Y.height+7+z*3:"",left:H?-Y.width+7+z*3:"",bottom:N?"":-Y.height+7+z};return{svgContainer:Y,path:A,circleStart:pt,circleEnd:gt,pointStyle:kt}};var $=T(35862),q=T(14776),ft=T(33908),K=T(67787);const it=K.Ay.div.withConfig({displayName:"styles__StyledSticky",componentId:"sc-15jmb7c-0"})(["box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);border-radius:4px;z-index:10;width:100%;height:100%;top:0;left:0;& > div{user-select:inherit;}.text,.text *{user-select:inherit;}p{margin-bottom:5px;word-break:break-word;word-wrap:break-word;}.point{position:absolute;opacity:0;width:14px;height:14px;cursor:pointer;}"]);var nt=T(87612),vt=T(11619),at=T(72214);const et=yt=>{var rt,ct;const{type:G,widget:B,fakeAABB:W,aabb:ut,onMouseDown:H,onCopy:N,fakeBindingInfo:Y,fakePointToDir:gt,onDoubleClick:pt,isPreview:Tt,sdk:mt}=yt,{key:lt,hotAttr:A}=B,{refWCKey:kt,sticky:_t,pointToDir:Mt,"!stickyPointVersion":At}=A,{lineColor:jt,textPlaceHolder:Nt,circleColor:Vt}=(0,Z.$)(B,Y),[Wt,Ot,Dt,Ht]=W||ut||mt.getHotAABB(lt),tt={lf:Wt,lt:Ot,lr:Dt,lb:Ht},Pt=(rt=_t.point)==null?void 0:rt.length;let zt;const te=((ct=(0,I.dP)())==null?void 0:ct.ui.artboard)||{};if(te.isDragAnnotationBindingPoint&&te.draggingStickyKey===lt)zt=Pt?_t.point:null;else if(kt==="")zt=Pt?_t.point:null;else if(mt.getHotItem(kt))try{const Tr=mt.getHotBound(kt),[fn,yn]=(0,vt.OH)({stickyPointVersion:At,getV1Offset:()=>[Tr.x,Tr.y],getV2Offset:()=>[Tr.x-Tr.w/2,Tr.y-Tr.h/2]}),[Zi=0,Vn=0]=_t.point||[0,0];zt=[fn+Zi,yn+Vn]}catch(Tr){console.error("[fatal]: StickyComponent getHotBound error",Tr,kt),(0,nt.p)("[fatal]: StickyComponent getHotBound error",Tr),zt=null}else zt=null;let $t=!1;zt&&zt[0]&&zt[0]>Wt-20&&zt[0]<Dt+20&&(zt[1]<Ot||zt[1]>Ht)&&($t=!0);let ae=!1,Xt=!0;zt&&(Xt=Wt>=zt[0]),(!Pt||!zt)&&(Y&&(Y.stickyKey===lt||Y.stickyKey==="fake")&&gt?Xt=gt==="l":Xt=Mt==="l",$t=!1,ae=!0);let ve=!1;zt&&zt[0]>Wt&&zt[0]<Dt&&zt[1]>Ot&&zt[1]<Ht&&(ve=!0);let Se,we={},Ee="",ke={x:0,y:0},Le={x:0,y:0};const Oe=zt&&(zt[0]<Wt||zt[0]>Dt)&&zt[1]>Ot+8&&zt[1]<Ht-8,Ke=zt&&(zt[1]<Ot||zt[1]>Ht)&&zt[0]>Wt+8&&zt[0]<Dt-8,Qe=zt&&zt[1]<Ot,hr=zt&&zt[1]>Ht,Fe=zt&&zt[0]<Wt,yr=zt&&zt[0]>Dt;ae?{svgContainer:Se,path:Ee,circleStart:ke,circleEnd:Le,pointStyle:we}=V({isLeftSticky:Xt,side:tt}):ve?{svgContainer:Se,path:Ee,circleStart:ke,circleEnd:Le,pointStyle:we}=D({originXY:zt,side:tt}):Ke?{svgContainer:Se,path:Ee,circleStart:ke,circleEnd:Le,pointStyle:we}=ht({originXY:zt,isLineTop:Qe,isLineBottom:hr,side:tt}):Oe?{svgContainer:Se,path:Ee,circleStart:ke,circleEnd:Le,pointStyle:we}=ot({originXY:zt,isLineLeft:Fe,isLineRight:yr,side:tt}):!ve&&!$t&&!Ke&&!Oe?{svgContainer:Se,path:Ee,circleStart:ke,circleEnd:Le,pointStyle:we}=S({originXY:zt,isLineLeft:Fe,side:tt}):!ve&&$t&&!Ke&&!Oe&&({svgContainer:Se,path:Ee,circleStart:ke,circleEnd:Le,pointStyle:we}=O({originXY:zt,side:tt}));const fr=!!Tt;return(0,at.jsxs)(it,{children:[(0,at.jsxs)(at.Fragment,{children:[(0,at.jsxs)("svg",{style:{...Se,pointerEvents:"none"},xmlns:"http://www.w3.org/2000/svg",children:[(0,at.jsx)("path",{d:Ee,stroke:jt,strokeWidth:"2",strokeLinecap:"round",fill:"transparent"}),(0,at.jsx)("circle",{cx:ke.x,cy:ke.y,r:"5",fill:jt}),(0,at.jsx)("circle",{cx:Le.x,cy:Le.y,r:"5",fill:Vt,className:"stickyCircle",stroke:jt,strokeWidth:1.5})]}),(0,at.jsx)("div",{style:we,className:"point",onMouseDown:H,onDoubleClick:pt})]}),(0,at.jsx)(ft.A,{widget:A,mode:G,children:G==="snapshot"?(0,at.jsx)(q.A,{widget:A,placeHolderColor:Nt,onCopy:N}):(0,at.jsx)($.a,{widget:A,widgetKey:lt,placeHolderColor:Nt,isContentCanSelect:fr,onCopy:N,isPreview:Tt})})]})}},11246:(oe,Ct,T)=>{"use strict";T.d(Ct,{_:()=>et,A:()=>G});var F=T(38502),Z=T(53732),I=T.n(Z),z=T(89310),D=T(14776),V=T(67787);const ht=V.Ay.div.withConfig({displayName:"styles__StyledSticky",componentId:"sc-hfnmz1-0"})(["box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);border-radius:4px;z-index:10;width:100%;height:100%;top:0;left:0;& > div{user-select:inherit;}.text,.text *{user-select:inherit;}p{margin-bottom:5px;word-break:break-word;word-wrap:break-word;}.point{position:absolute;opacity:0;width:14px;height:14px;cursor:pointer;}"]),ot=V.Ay.div.withConfig({displayName:"styles__StyledTearComponent",componentId:"sc-hfnmz1-1"})(["width:20px;height:20px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);&.default{color:#333;background:rgba(255,255,255,1);}&.lock{background:rgba(199,199,199,1);color:rgba(255,255,255,1);}&.select-has-binding{background:",";color:#fff;}&.select-no-binding{background:rgba(255,255,255,1);border:2px solid ",";}&.no-ref{background :rgba(255,255,255,1);}&.canHover{&:hover{transition:all 0.05s ease-in-out 0.05s;transform:scale(1.2);cursor:pointer;}}"],B=>B.theme.color_proto,B=>B.theme.color_proto);var S=T(33908),O=T(15186),$=T(18381),q=T(70933),ft=T(60651),K=T(4235),it=T(7457),nt=T(85449),vt=T(20315),at=T(72214);class et extends F.PureComponent{render(){const{widget:{key:W,hotAttr:ut},canHover:H,isActive:N,scale:Y=100,styleFromProps:gt,isDragAnnotationBindingPoint:pt,fakeBindingInfo:Tt}=this.props,{fill:mt,isLock:lt,w:A,h:kt,order:_t,refWCKey:Mt}=ut,Nt={transform:"scale("+100/Y+")",width:A,height:kt,...gt};let Vt="default";return N&&!pt?lt?Vt="lock":Tt&&Tt.stickyKey===W?Tt.isBinded?Vt="select-has-binding":Vt="select-no-binding":Mt?Vt="select-has-binding":Vt="select-no-binding":Mt?(Vt="has-ref",Nt.background=(0,O.t0)(mt.solidColor)):(Vt="no-ref",Nt.border="2px solid "+(0,O.t0)(mt.solidColor)),(0,at.jsx)(ot,{className:I()(Vt,"default",{canHover:H,isSelect:N}),style:Nt,children:_t})}}const yt=(B,W)=>{const ut=(0,K.p$)(B),H=(0,ft.IL)(B),N=(0,q.X_)(B),Y=(0,it.tC)(B),{key:gt}=W.widget,pt=ut.includes(gt),Tt=H===gt;return{fakeBindingInfo:(0,vt.LS)(B),isActive:pt||Tt,scale:N,isDragAnnotationBindingPoint:Y}},rt=(0,$.Ng)(yt)(et),G=(0,F.memo)(B=>{let{widget:W,treeData:ut,mode:H}=B;const{key:N,hotAttr:Y}=W;if(H==="design"){const{STMode:pt}=ut;return(0,at.jsx)(rt,{canHover:!pt,widget:W,mode:H})}if(H==="snapshot"){var gt;const{fill:pt,w:Tt,h:mt,stickyH:lt,tearMode:A,refWCKey:kt}=Y,{textPlaceHolder:_t}=(0,z.$)(W),At=100/(((gt=(0,nt.dP)())==null?void 0:gt.common.scale)||100);if(A){const jt=(0,O.t0)(pt.solidColor),Nt={width:Tt,height:mt,background:jt,transform:"scale("+At+")",color:"#333333"};return(0,at.jsx)(et,{styleFromProps:Nt,widget:W})}return(0,at.jsx)(ht,{children:(0,at.jsx)(S.A,{widget:{...Y,cid:N,w:280,h:lt},mode:H,children:(0,at.jsx)(D.A,{widget:{...Y,cid:N,w:280,h:lt},placeHolderColor:_t,onCopy:()=>{}})})})}})},11587:(oe,Ct,T)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.checkSpecKeys=Ct.checkNavigable=Ct.changeSlide=Ct.canUseDOM=Ct.canGoNext=void 0,Ct.clamp=O,Ct.extractObject=void 0,Ct.filterSettings=Dt,Ct.validSettings=Ct.swipeStart=Ct.swipeMove=Ct.swipeEnd=Ct.slidesOnRight=Ct.slidesOnLeft=Ct.slideHandler=Ct.siblingDirection=Ct.safePreventDefault=Ct.lazyStartIndex=Ct.lazySlidesOnRight=Ct.lazySlidesOnLeft=Ct.lazyEndIndex=Ct.keyHandler=Ct.initializedState=Ct.getWidth=Ct.getTrackLeft=Ct.getTrackCSS=Ct.getTrackAnimateCSS=Ct.getTotalSlides=Ct.getSwipeDirection=Ct.getSlideCount=Ct.getRequiredLazySlides=Ct.getPreClones=Ct.getPostClones=Ct.getOnDemandLazySlides=Ct.getNavigableIndexes=Ct.getHeight=void 0;var F=I(T(38502)),Z=I(T(88409));function I(Ht){return Ht&&Ht.__esModule?Ht:{default:Ht}}function z(Ht){"@babel/helpers - typeof";return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},z(Ht)}function D(Ht,tt){var Pt=Object.keys(Ht);if(Object.getOwnPropertySymbols){var zt=Object.getOwnPropertySymbols(Ht);tt&&(zt=zt.filter(function(te){return Object.getOwnPropertyDescriptor(Ht,te).enumerable})),Pt.push.apply(Pt,zt)}return Pt}function V(Ht){for(var tt=1;tt<arguments.length;tt++){var Pt=arguments[tt]!=null?arguments[tt]:{};tt%2?D(Object(Pt),!0).forEach(function(zt){ht(Ht,zt,Pt[zt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ht,Object.getOwnPropertyDescriptors(Pt)):D(Object(Pt)).forEach(function(zt){Object.defineProperty(Ht,zt,Object.getOwnPropertyDescriptor(Pt,zt))})}return Ht}function ht(Ht,tt,Pt){return(tt=ot(tt))in Ht?Object.defineProperty(Ht,tt,{value:Pt,enumerable:!0,configurable:!0,writable:!0}):Ht[tt]=Pt,Ht}function ot(Ht){var tt=S(Ht,"string");return z(tt)=="symbol"?tt:tt+""}function S(Ht,tt){if(z(Ht)!="object"||!Ht)return Ht;var Pt=Ht[Symbol.toPrimitive];if(Pt!==void 0){var zt=Pt.call(Ht,tt||"default");if(z(zt)!="object")return zt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tt==="string"?String:Number)(Ht)}function O(Ht,tt,Pt){return Math.max(tt,Math.min(Ht,Pt))}var $=Ct.safePreventDefault=function(tt){var Pt=["onTouchStart","onTouchMove","onWheel"];Pt.includes(tt._reactName)||tt.preventDefault()},q=Ct.getOnDemandLazySlides=function(tt){for(var Pt=[],zt=K(tt),te=it(tt),$t=zt;$t<te;$t++)tt.lazyLoadedList.indexOf($t)<0&&Pt.push($t);return Pt},ft=Ct.getRequiredLazySlides=function(tt){for(var Pt=[],zt=K(tt),te=it(tt),$t=zt;$t<te;$t++)Pt.push($t);return Pt},K=Ct.lazyStartIndex=function(tt){return tt.currentSlide-nt(tt)},it=Ct.lazyEndIndex=function(tt){return tt.currentSlide+vt(tt)},nt=Ct.lazySlidesOnLeft=function(tt){return tt.centerMode?Math.floor(tt.slidesToShow/2)+(parseInt(tt.centerPadding)>0?1:0):0},vt=Ct.lazySlidesOnRight=function(tt){return tt.centerMode?Math.floor((tt.slidesToShow-1)/2)+1+(parseInt(tt.centerPadding)>0?1:0):tt.slidesToShow},at=Ct.getWidth=function(tt){return tt&&tt.offsetWidth||0},et=Ct.getHeight=function(tt){return tt&&tt.offsetHeight||0},yt=Ct.getSwipeDirection=function(tt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt,te,$t,ae;return zt=tt.startX-tt.curX,te=tt.startY-tt.curY,$t=Math.atan2(te,zt),ae=Math.round($t*180/Math.PI),ae<0&&(ae=360-Math.abs(ae)),ae<=45&&ae>=0||ae<=360&&ae>=315?"left":ae>=135&&ae<=225?"right":Pt===!0?ae>=35&&ae<=135?"up":"down":"vertical"},rt=Ct.canGoNext=function(tt){var Pt=!0;return tt.infinite||(tt.centerMode&&tt.currentSlide>=tt.slideCount-1||tt.slideCount<=tt.slidesToShow||tt.currentSlide>=tt.slideCount-tt.slidesToShow)&&(Pt=!1),Pt},ct=Ct.extractObject=function(tt,Pt){var zt={};return Pt.forEach(function(te){return zt[te]=tt[te]}),zt},G=Ct.initializedState=function(tt){var Pt=F.default.Children.count(tt.children),zt=tt.listRef,te=Math.ceil(at(zt)),$t=tt.trackRef&&tt.trackRef.node,ae=Math.ceil(at($t)),Xt;if(tt.vertical)Xt=te;else{var ve=tt.centerMode&&parseInt(tt.centerPadding)*2;typeof tt.centerPadding=="string"&&tt.centerPadding.slice(-1)==="%"&&(ve*=te/100),Xt=Math.ceil((te-ve)/tt.slidesToShow)}var Se=zt&&et(zt.querySelector('[data-index="0"]')),we=Se*tt.slidesToShow,Ee=tt.currentSlide===void 0?tt.initialSlide:tt.currentSlide;tt.rtl&&tt.currentSlide===void 0&&(Ee=Pt-1-tt.initialSlide);var ke=tt.lazyLoadedList||[],Le=q(V(V({},tt),{},{currentSlide:Ee,lazyLoadedList:ke}));ke=ke.concat(Le);var Oe={slideCount:Pt,slideWidth:Xt,listWidth:te,trackWidth:ae,currentSlide:Ee,slideHeight:Se,listHeight:we,lazyLoadedList:ke};return tt.autoplaying===null&&tt.autoplay&&(Oe.autoplaying="playing"),Oe},B=Ct.slideHandler=function(tt){var Pt=tt.waitForAnimate,zt=tt.animating,te=tt.fade,$t=tt.infinite,ae=tt.index,Xt=tt.slideCount,ve=tt.lazyLoad,Se=tt.currentSlide,we=tt.centerMode,Ee=tt.slidesToScroll,ke=tt.slidesToShow,Le=tt.useCSS,Oe=tt.lazyLoadedList;if(Pt&&zt)return{};var Ke=ae,Qe,hr,Fe,yr={},fr={},Ar=$t?ae:O(ae,0,Xt-1);if(te){if(!$t&&(ae<0||ae>=Xt))return{};ae<0?Ke=ae+Xt:ae>=Xt&&(Ke=ae-Xt),ve&&Oe.indexOf(Ke)<0&&(Oe=Oe.concat(Ke)),yr={animating:!0,currentSlide:Ke,lazyLoadedList:Oe,targetSlide:Ke},fr={animating:!1,targetSlide:Ke}}else Qe=Ke,Ke<0?(Qe=Ke+Xt,$t?Xt%Ee!==0&&(Qe=Xt-Xt%Ee):Qe=0):!rt(tt)&&Ke>Se?Ke=Qe=Se:we&&Ke>=Xt?(Ke=$t?Xt:Xt-1,Qe=$t?0:Xt-1):Ke>=Xt&&(Qe=Ke-Xt,$t?Xt%Ee!==0&&(Qe=0):Qe=Xt-ke),!$t&&Ke+ke>=Xt&&(Qe=Xt-ke),hr=kt(V(V({},tt),{},{slideIndex:Ke})),Fe=kt(V(V({},tt),{},{slideIndex:Qe})),$t||(hr===Fe&&(Ke=Qe),hr=Fe),ve&&(Oe=Oe.concat(q(V(V({},tt),{},{currentSlide:Ke})))),Le?(yr={animating:!0,currentSlide:Qe,trackStyle:A(V(V({},tt),{},{left:hr})),lazyLoadedList:Oe,targetSlide:Ar},fr={animating:!1,currentSlide:Qe,trackStyle:lt(V(V({},tt),{},{left:Fe})),swipeLeft:null,targetSlide:Ar}):yr={currentSlide:Qe,trackStyle:lt(V(V({},tt),{},{left:Fe})),lazyLoadedList:Oe,targetSlide:Ar};return{state:yr,nextState:fr}},W=Ct.changeSlide=function(tt,Pt){var zt,te,$t,ae,Xt,ve=tt.slidesToScroll,Se=tt.slidesToShow,we=tt.slideCount,Ee=tt.currentSlide,ke=tt.targetSlide,Le=tt.lazyLoad,Oe=tt.infinite;if(ae=we%ve!==0,zt=ae?0:(we-Ee)%ve,Pt.message==="previous")$t=zt===0?ve:Se-zt,Xt=Ee-$t,Le&&!Oe&&(te=Ee-$t,Xt=te===-1?we-1:te),Oe||(Xt=ke-ve);else if(Pt.message==="next")$t=zt===0?ve:zt,Xt=Ee+$t,Le&&!Oe&&(Xt=(Ee+ve)%we+zt),Oe||(Xt=ke+ve);else if(Pt.message==="dots")Xt=Pt.index*Pt.slidesToScroll;else if(Pt.message==="children"){if(Xt=Pt.index,Oe){var Ke=jt(V(V({},tt),{},{targetSlide:Xt}));Xt>Pt.currentSlide&&Ke==="left"?Xt=Xt-we:Xt<Pt.currentSlide&&Ke==="right"&&(Xt=Xt+we)}}else Pt.message==="index"&&(Xt=Number(Pt.index));return Xt},ut=Ct.keyHandler=function(tt,Pt,zt){return tt.target.tagName.match("TEXTAREA|INPUT|SELECT")||!Pt?"":tt.keyCode===37?zt?"next":"previous":tt.keyCode===39?zt?"previous":"next":""},H=Ct.swipeStart=function(tt,Pt,zt){return tt.target.tagName==="IMG"&&$(tt),!Pt||!zt&&tt.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:tt.touches?tt.touches[0].pageX:tt.clientX,startY:tt.touches?tt.touches[0].pageY:tt.clientY,curX:tt.touches?tt.touches[0].pageX:tt.clientX,curY:tt.touches?tt.touches[0].pageY:tt.clientY}}},N=Ct.swipeMove=function(tt,Pt){var zt=Pt.scrolling,te=Pt.animating,$t=Pt.vertical,ae=Pt.swipeToSlide,Xt=Pt.verticalSwiping,ve=Pt.rtl,Se=Pt.currentSlide,we=Pt.edgeFriction,Ee=Pt.edgeDragged,ke=Pt.onEdge,Le=Pt.swiped,Oe=Pt.swiping,Ke=Pt.slideCount,Qe=Pt.slidesToScroll,hr=Pt.infinite,Fe=Pt.touchObject,yr=Pt.swipeEvent,fr=Pt.listHeight,Ar=Pt.listWidth;if(!zt){if(te)return $(tt);$t&&ae&&Xt&&$(tt);var Tr,fn={},yn=kt(Pt);Fe.curX=tt.touches?tt.touches[0].pageX:tt.clientX,Fe.curY=tt.touches?tt.touches[0].pageY:tt.clientY,Fe.swipeLength=Math.round(Math.sqrt(Math.pow(Fe.curX-Fe.startX,2)));var Zi=Math.round(Math.sqrt(Math.pow(Fe.curY-Fe.startY,2)));if(!Xt&&!Oe&&Zi>10)return{scrolling:!0};Xt&&(Fe.swipeLength=Zi);var Vn=(ve?-1:1)*(Fe.curX>Fe.startX?1:-1);Xt&&(Vn=Fe.curY>Fe.startY?1:-1);var ge=Math.ceil(Ke/Qe),_n=yt(Pt.touchObject,Xt),vi=Fe.swipeLength;return hr||(Se===0&&(_n==="right"||_n==="down")||Se+1>=ge&&(_n==="left"||_n==="up")||!rt(Pt)&&(_n==="left"||_n==="up"))&&(vi=Fe.swipeLength*we,Ee===!1&&ke&&(ke(_n),fn.edgeDragged=!0)),!Le&&yr&&(yr(_n),fn.swiped=!0),$t?Tr=yn+vi*(fr/Ar)*Vn:ve?Tr=yn-vi*Vn:Tr=yn+vi*Vn,Xt&&(Tr=yn+vi*Vn),fn=V(V({},fn),{},{touchObject:Fe,swipeLeft:Tr,trackStyle:lt(V(V({},Pt),{},{left:Tr}))}),Math.abs(Fe.curX-Fe.startX)<Math.abs(Fe.curY-Fe.startY)*.8||Fe.swipeLength>10&&(fn.swiping=!0,$(tt)),fn}},Y=Ct.swipeEnd=function(tt,Pt){var zt=Pt.dragging,te=Pt.swipe,$t=Pt.touchObject,ae=Pt.listWidth,Xt=Pt.touchThreshold,ve=Pt.verticalSwiping,Se=Pt.listHeight,we=Pt.swipeToSlide,Ee=Pt.scrolling,ke=Pt.onSwipe,Le=Pt.targetSlide,Oe=Pt.currentSlide,Ke=Pt.infinite;if(!zt)return te&&$(tt),{};var Qe=ve?Se/Xt:ae/Xt,hr=yt($t,ve),Fe={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ee||!$t.swipeLength)return Fe;if($t.swipeLength>Qe){$(tt),ke&&ke(hr);var yr,fr,Ar=Ke?Oe:Le;switch(hr){case"left":case"up":fr=Ar+Tt(Pt),yr=we?pt(Pt,fr):fr,Fe.currentDirection=0;break;case"right":case"down":fr=Ar-Tt(Pt),yr=we?pt(Pt,fr):fr,Fe.currentDirection=1;break;default:yr=Ar}Fe.triggerSlideHandler=yr}else{var Tr=kt(Pt);Fe.trackStyle=A(V(V({},Pt),{},{left:Tr}))}return Fe},gt=Ct.getNavigableIndexes=function(tt){for(var Pt=tt.infinite?tt.slideCount*2:tt.slideCount,zt=tt.infinite?tt.slidesToShow*-1:0,te=tt.infinite?tt.slidesToShow*-1:0,$t=[];zt<Pt;)$t.push(zt),zt=te+tt.slidesToScroll,te+=Math.min(tt.slidesToScroll,tt.slidesToShow);return $t},pt=Ct.checkNavigable=function(tt,Pt){var zt=gt(tt),te=0;if(Pt>zt[zt.length-1])Pt=zt[zt.length-1];else for(var $t in zt){if(Pt<zt[$t]){Pt=te;break}te=zt[$t]}return Pt},Tt=Ct.getSlideCount=function(tt){var Pt=tt.centerMode?tt.slideWidth*Math.floor(tt.slidesToShow/2):0;if(tt.swipeToSlide){var zt,te=tt.listRef,$t=te.querySelectorAll&&te.querySelectorAll(".slick-slide")||[];if(Array.from($t).every(function(ve){if(tt.vertical){if(ve.offsetTop+et(ve)/2>tt.swipeLeft*-1)return zt=ve,!1}else if(ve.offsetLeft-Pt+at(ve)/2>tt.swipeLeft*-1)return zt=ve,!1;return!0}),!zt)return 0;var ae=tt.rtl===!0?tt.slideCount-tt.currentSlide:tt.currentSlide,Xt=Math.abs(zt.dataset.index-ae)||1;return Xt}else return tt.slidesToScroll},mt=Ct.checkSpecKeys=function(tt,Pt){return Pt.reduce(function(zt,te){return zt&&tt.hasOwnProperty(te)},!0)?null:console.error("Keys Missing:",tt)},lt=Ct.getTrackCSS=function(tt){mt(tt,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var Pt,zt;if(!tt.vertical)Pt=At(tt)*tt.slideWidth;else{var te=tt.unslick?tt.slideCount:tt.slideCount+2*tt.slidesToShow;zt=te*tt.slideHeight}var $t={opacity:1,transition:"",WebkitTransition:""};if(tt.useTransform){var ae=tt.vertical?"translate3d(0px, "+tt.left+"px, 0px)":"translate3d("+tt.left+"px, 0px, 0px)",Xt=tt.vertical?"translate3d(0px, "+tt.left+"px, 0px)":"translate3d("+tt.left+"px, 0px, 0px)",ve=tt.vertical?"translateY("+tt.left+"px)":"translateX("+tt.left+"px)";$t=V(V({},$t),{},{WebkitTransform:ae,transform:Xt,msTransform:ve})}else tt.vertical?$t.top=tt.left:$t.left=tt.left;return tt.fade&&($t={opacity:1}),Pt&&($t.width=Pt),zt&&($t.height=zt),window&&!window.addEventListener&&window.attachEvent&&(tt.vertical?$t.marginTop=tt.left+"px":$t.marginLeft=tt.left+"px"),$t},A=Ct.getTrackAnimateCSS=function(tt){mt(tt,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var Pt=lt(tt);return tt.useTransform?(Pt.WebkitTransition="-webkit-transform "+tt.speed+"ms "+tt.cssEase,Pt.transition="transform "+tt.speed+"ms "+tt.cssEase):tt.vertical?Pt.transition="top "+tt.speed+"ms "+tt.cssEase:Pt.transition="left "+tt.speed+"ms "+tt.cssEase,Pt},kt=Ct.getTrackLeft=function(tt){if(tt.unslick)return 0;mt(tt,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var Pt=tt.slideIndex,zt=tt.trackRef,te=tt.infinite,$t=tt.centerMode,ae=tt.slideCount,Xt=tt.slidesToShow,ve=tt.slidesToScroll,Se=tt.slideWidth,we=tt.listWidth,Ee=tt.variableWidth,ke=tt.slideHeight,Le=tt.fade,Oe=tt.vertical,Ke=0,Qe,hr,Fe=0;if(Le||tt.slideCount===1)return 0;var yr=0;if(te?(yr=-_t(tt),ae%ve!==0&&Pt+ve>ae&&(yr=-(Pt>ae?Xt-(Pt-ae):ae%ve)),$t&&(yr+=parseInt(Xt/2))):(ae%ve!==0&&Pt+ve>ae&&(yr=Xt-ae%ve),$t&&(yr=parseInt(Xt/2))),Ke=yr*Se,Fe=yr*ke,Oe?Qe=Pt*ke*-1+Fe:Qe=Pt*Se*-1+Ke,Ee===!0){var fr,Ar=zt&&zt.node;if(fr=Pt+_t(tt),hr=Ar&&Ar.childNodes[fr],Qe=hr?hr.offsetLeft*-1:0,$t===!0){fr=te?Pt+_t(tt):Pt,hr=Ar&&Ar.children[fr],Qe=0;for(var Tr=0;Tr<fr;Tr++)Qe-=Ar&&Ar.children[Tr]&&Ar.children[Tr].offsetWidth;Qe-=parseInt(tt.centerPadding),Qe+=hr&&(we-hr.offsetWidth)/2}}return Qe},_t=Ct.getPreClones=function(tt){return tt.unslick||!tt.infinite?0:tt.variableWidth?tt.slideCount:tt.slidesToShow+(tt.centerMode?1:0)},Mt=Ct.getPostClones=function(tt){return tt.unslick||!tt.infinite?0:tt.variableWidth?tt.slideCount:tt.slidesToShow+(tt.centerMode?1:0)},At=Ct.getTotalSlides=function(tt){return tt.slideCount===1?1:_t(tt)+tt.slideCount+Mt(tt)},jt=Ct.siblingDirection=function(tt){return tt.targetSlide>tt.currentSlide?tt.targetSlide>tt.currentSlide+Nt(tt)?"left":"right":tt.targetSlide<tt.currentSlide-Vt(tt)?"right":"left"},Nt=Ct.slidesOnRight=function(tt){var Pt=tt.slidesToShow,zt=tt.centerMode,te=tt.rtl,$t=tt.centerPadding;if(zt){var ae=(Pt-1)/2+1;return parseInt($t)>0&&(ae+=1),te&&Pt%2===0&&(ae+=1),ae}return te?0:Pt-1},Vt=Ct.slidesOnLeft=function(tt){var Pt=tt.slidesToShow,zt=tt.centerMode,te=tt.rtl,$t=tt.centerPadding;if(zt){var ae=(Pt-1)/2+1;return parseInt($t)>0&&(ae+=1),!te&&Pt%2===0&&(ae+=1),ae}return te?Pt-1:0},Wt=Ct.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},Ot=Ct.validSettings=Object.keys(Z.default);function Dt(Ht){return Ot.reduce(function(tt,Pt){return Ht.hasOwnProperty(Pt)&&(tt[Pt]=Ht[Pt]),tt},{})}},12023:(oe,Ct,T)=>{"use strict";T.d(Ct,{$b:()=>I,Fm:()=>Z,WM:()=>D,ew:()=>z});var F=T(40093);const Z=V=>{let{audio:{audioSrc:ht,isAutoplay:ot,isLoop:S,isKeepAlive:O,isHidden:$}}=V;return{audP:(0,F.y9)(ot,S,O,$),audS:ht}},I=V=>{let{audP:ht,audS:ot}=V;const[S,O,$,q]=(0,F.MA)(ht);return{audio:{audioSrc:ot,isAutoplay:S,isLoop:O,isKeepAlive:$,isHidden:q}}},z=V=>{let{video:{videoSrc:ht,isAutoplay:ot,isLoop:S,isMuted:O,isHideControls:$}}=V;return{vidP:(0,F.y9)(ot,S,O,$),vidS:ht}},D=V=>{let{vidP:ht,vidS:ot}=V;const[S,O,$,q]=(0,F.MA)(ht);return{video:{videoSrc:ot,isAutoplay:S,isLoop:O,isMuted:$,isHideControls:q}}}},12410:(oe,Ct,T)=>{"use strict";T.d(Ct,{X:()=>et});var F=T(13235),Z=T(33421),I=T(7041),z=T(15186),D=T(4235),V=T(9521),ht=T(87229),ot=T(86594),S=T(50365),O=T(44628),$=T(41815),q=T(28068),ft=T(86493),K=T(50036),it=T(43838),nt=T(34748);const vt={strikethrough:"line-through",italic:"fontStyle",bold:"boldType",fontsize:"fontSize",underline:"underline",color:"textColor"},et=(()=>{const yt={"entry:flow:selectedCellsInfo:update":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:H}=B;ut({type:"flow:update:state",payload:H})},"entry:flow:text-edit:prepare":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{event:H}}=B;const N=H.target.closest(".database-cell")||document.elementsFromPoint(H.clientX,H.clientY).find(mt=>mt.className==="database-cell");if(!N)return;const Y=parseInt(N.getAttribute("data-x")),gt=parseInt(N.getAttribute("data-y"));ut({type:"flow:update:state",payload:{isShallowEditing:!0,editingPos:{x:Y,y:gt},selectedCellsInfo:{tl:{x:Y,y:gt},br:{x:Y,y:gt}}}})},"entry:flow:selectedCellsInfo:tl:update":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{tl:H}}=B;const Y={...rt.getSelectedCellsInfo(W()),tl:H};ut({type:"flow:update:state",payload:{selectedCellsInfo:Y}})},"entry:flow:selectedCellsInfo:br:update":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{target:H,startSelectedCellsInfo:N}}=B;const{tl:{x:Y,y:gt}}=N,pt=JSON.parse(JSON.stringify(N));H.x<Y?(pt.tl.x=H.x,pt.br.x=Y):H.x>Y?(pt.tl.x=Y,pt.br.x=H.x):H.x===Y&&(pt.tl.x=Y,pt.br.x=Y),H.y<gt?(pt.tl.y=H.y,pt.br.y=gt):H.y>gt?(pt.tl.y=gt,pt.br.y=H.y):(pt.tl.y=gt,pt.br.y=gt),ut({type:"flow:update:state",payload:{selectedCellsInfo:pt}})},"entry:flow:shallow:move":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{direction:H}}=B;const N=W(),{tl:{x:Y,y:gt}}=rt.getSelectedCellsInfo(N),pt=(0,D.p$)(N)[0],Tt=sdkStore.getHotItem(pt),{table:mt}=Tt.hotAttr.database,lt=Tt.hotAttr.swimlaneType,{isShowBigTitle:A}=Tt.hotAttr.swimConfig;let kt=Y,_t=gt;const Mt=mt[gt].length,At=mt.length;switch(H){case"up":{gt-1>0?_t=gt-1:gt-1===0&&A&&lt==="leftRight"&&(_t=0,kt=0);break}case"down":{gt+1<At&&(_t=gt+1);break}case"right":{Y===0&&gt===0&&lt==="topBottom"?(kt=0,_t=1):Y+1<Mt&&(kt=Y+1);break}case"left":{Y===0&&A&&lt==="topBottom"?(kt=0,_t=0):Y-1>=0&&(kt=Y-1);break}case"tab":{Y+1<Mt?kt=Y+1:Y+1===Mt&&gt+1<At&&(_t=gt+1,kt=0);break}case"shift+tab":{Y-1>=0?kt=Y-1:Y-1<0&&gt-1>=0&&(_t=gt-1,kt=Mt-1);break}}const jt={x:kt,y:_t},Nt={tl:{...jt},br:{...jt}};ut({type:"flow:update:state",payload:{editingPos:jt,selectedCellsInfo:Nt}})},"entry:flow:col:add-del":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{changeType:H,pos:N,handleType:Y}}=B;const gt=sdkStore.getHotItem((0,D.p$)(W())[0]),{database:pt}=gt.hotAttr;let Tt;H==="add"?Tt=(0,S.po)({pos:N,handleType:Y,database:pt,widgetType:"wSwimlane"}):Tt=(0,S.Ft)({pos:N,handleType:Y,database:pt,widgetType:"wSwimlane"});const mt={key:gt.key,hotAttr:{...gt.hotAttr,database:{...Tt.newDatabase}}};if(Y==="bottom"){const A=gt.hotAttr.y-gt.hotAttr.h*.5;mt.hotAttr.h=Tt.newH,mt.hotAttr.y=A+Tt.newH*.5}else{const A=gt.hotAttr.x-gt.hotAttr.w*.5;mt.hotAttr.w=Tt.newW,mt.hotAttr.x=A+Tt.newW*.5}ut({type:"entry:widget:change",payload:{flatChgList:[mt]}})},"entry:flow:contextMenu:col:add-del":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{changeType:H,handleType:N,opDirection:Y}}=B;const gt=W();if(H==="del"){const Mt=sdkStore.getHotItem((0,D.p$)(W())[0]);if(N==="right"){if(Mt.hotAttr.database.widthList.length===1){MB.notice({text:I18N.flow.remain_swimlane,type:"warning"});return}}else if(Mt.hotAttr.database.heightList.length===1){MB.notice({text:I18N.flow.remain_swimlane,type:"warning"});return}}const pt=sdkStore.getHotItem((0,D.p$)(gt)[0]),{database:Tt}=pt.hotAttr,{tl:mt}=rt.getSelectedCellsInfo(gt),lt=mt.x===0&&mt.y===0;let A=0;const kt={...mt};N==="right"?Y==="right"?lt?A=Tt.widthList.length:A=mt.x+1:A=mt.x:Y==="bottom"?lt?A=Tt.heightList.length+1:A=mt.y+1:lt?A=1:A=mt.y,ut({type:ct["entry:flow:col:add-del"],payload:{changeType:H,handleType:N,pos:A}}),N==="right"?H==="del"?A===0?kt.x=0:kt.x=A-1:Y==="left"&&(kt.x=A+1):H==="del"?A===1?kt.y=1:kt.y=A-1:Y==="top"&&(kt.y=A+1),lt&&(kt.x=0,kt.y=0),ut({type:"flow:update:state",payload:{selectedCellsInfo:{tl:kt,br:kt}}})},"entry:flow:col:add-del:batch":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{newColLength:H,handleType:N}}=B;const Y=W(),gt=(0,D.p$)(Y)[0],pt=sdkStore.getHotItem(gt),{database:Tt}=pt.hotAttr,{widthList:mt,heightList:lt}=Tt;let A=0;if(N==="right"?A=mt.length:A=lt.length,A===H)return;const kt={key:pt.key,hotAttr:{...pt.hotAttr}};let _t;if(A>H){const At=H,jt=A;_t=(0,S.dz)({posBegin:At,posEnd:jt,database:Tt,handleType:N,widgetType:"wSwimlane",changeType:"del"})}else if(A<H){const At=A,jt=H;_t=(0,S.dz)({posBegin:At,posEnd:jt,database:Tt,handleType:N,widgetType:"wSwimlane",changeType:"add"})}if(_t.newH){kt.hotAttr.h=_t.newH;const At=pt.hotAttr.y-pt.hotAttr.h*.5;kt.hotAttr.h=_t.newH,kt.hotAttr.y=At+_t.newH*.5}else{kt.hotAttr.w=_t.newW;const At=pt.hotAttr.x-pt.hotAttr.w*.5;kt.hotAttr.w=_t.newW,kt.hotAttr.x=At+_t.newW*.5}kt.hotAttr.database=_t.newDatabase,ut({type:"entry:widget:change",payload:{flatChgList:[kt]}})},"entry:flow:isHideBigTilte:toggle":G=>{let{getState:B,dispatch:W}=G;const ut=sdkStore.getHotItem((0,D.p$)(B())[0]),H=ut.hotAttr.swimConfig,N=!H.isShowBigTitle,Y=ut.hotAttr.swimlaneType,gt={key:ut.key,hotAttr:{...ut.hotAttr,swimConfig:{...H,isShowBigTitle:N}}};if(Y==="leftRight"){const Tt=ut.hotAttr.y+ut.hotAttr.h*.5;let mt=0;const{heightList:lt}=gt.hotAttr.database;if(N)for(let A=0;A<lt.length;A++)mt+=lt[A];else for(let A=1;A<lt.length;A++)mt+=lt[A];gt.hotAttr.h=mt,gt.hotAttr.y=Tt-mt*.5}else{const Tt=ut.hotAttr.x+ut.hotAttr.w*.5;let mt=0;const{widthList:lt}=gt.hotAttr.database;if(N)for(let A=0;A<lt.length;A++)mt+=lt[A];else for(let A=1;A<lt.length;A++)mt+=lt[A];gt.hotAttr.w=mt,gt.hotAttr.x=Tt-mt*.5}W({type:"entry:widget:change",payload:{flatChgList:[gt]}})},"entry:flow:cell:attr:set":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{sup:H,attr:N,value:Y}}=B;const gt=pt=>{if(H==="textV1"){var Tt;const mt=pt[H],lt=pt.richTextV1,A=vt[N];let kt=Y;A==="fontStyle"&&(kt=Y===!0?"italic":"normal");const _t={hotAttr:{type:"wSwimlane",textV1:mt,richTextV1:lt}},Mt=((Tt=(0,V.zs)([_t],A,kt)[0])==null?void 0:Tt.hotAttr)||{};pt.textV1=Mt.textV1,pt.richTextV1=Mt.richTextV1}else H==="fill"&&(pt.fill=Y);return pt};ut({type:ct["entry:flow:selectCells:update"],payload:{updateFunc:gt}})},"entry:flow:copy:cell:self":async(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{isOnlyPasteText:H=!1}}=B;const N=W(),Y=(0,D.p$)(N),gt=sdkStore.getHotItem(Y[0]);if(!(gt!=null&&gt.hotAttr.database))return;const{table:pt,cells:Tt}=gt.hotAttr.database,{tl:mt,br:lt}=rt.getSelectedCellsInfo(N),A={},kt=[],_t=[];for(let jt=mt.y;jt<=lt.y;jt++){const Nt=[],Vt=[];for(let Wt=mt.x;Wt<=lt.x;Wt++){const Ot=pt[jt][Wt];A[Ot]=Tt[Ot],Nt.push(Ot);const Dt=[];for(const tt of Object.values(Tt[Ot].textV1.blocks))Dt.push(tt.text);const Ht=Dt.join("\n");Vt.push(Ht)}_t.push(Vt.join(" ")),kt.push(Nt)}const Mt=_t.join("\n"),At={cells:A,table:kt,isOnlyPasteText:H};await(0,it.$H)({hasNotice:!1})&&(0,it.Rh)({value:Mt}),await(0,ot.c2)(At),ut({type:ct["entry:flow:copy:cell:properties"]})},"entry:flow:cut:cell:self":G=>{let{dispatch:B}=G;B({type:"entry:flow:copy:cell:self",payload:{isOnlyPasteText:!0}});const W=ut=>{const H=(0,I.Y8)();return H.fill=ut.fill,H};B({type:ct["entry:flow:selectCells:update"],payload:{updateFunc:W}})},"entry:flow:paste:cell:self":async(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{textInClipboard:H}}=B;const N=W(),Y=await(0,ot.cW)({isShowPrompt:!1}),gt=(0,D.p$)(N),{tl:pt,br:Tt}=rt.getSelectedCellsInfo(N);let mt=!0;Y!=null&&Y.clipCells&&Object.keys(Y.clipCells).length>1&&(mt=!1);const lt=sdkStore.getHotItem(gt[0]),A={...lt.hotAttr.database},kt=lt.hotAttr.swimlaneType,{table:_t,cells:Mt,widthList:At,heightList:jt}=A,Nt={...Mt};let Vt;H.type==="textV1"?Vt="fromTextV1":H.type==="contextMenu"?Vt="fromCell":Vt="fromPlainText";const Wt=ae=>Xt=>{let{cellKey:ve,copiedCell:Se}=Xt;Vt==="fromTextV1"?Nt[ve]={...(0,I.Y8)(),textV1:H.content,fill:Nt[ve].fill}:Vt==="fromCell"?Y.isOnlyPasteText?Nt[ve]={...Se,fill:Nt[ve].fill}:Nt[ve]={...Se}:(Nt[ve]={...(0,I.Y8)(),fill:Nt[ve].fill},Nt[ve].textV1.blocks["#000000"].text=H.content)},Ot=Nt[_t[pt.y][pt.x]],Dt=Wt(Ot);let[Ht,tt]=[Tt.x,Tt.y];pt.x===0&&pt.y===0&&!(Tt.x===0&&Tt.y===0)&&(kt==="leftRight"?Ht=At.length-1:tt=jt.length);let Pt=[],zt=[];if(Vt==="fromCell"){const{table:ae,cells:Xt}=Y;Pt=ae,zt=Xt}if(mt)for(let ae=pt.y;ae<=tt&&!(ae>=_t.length);ae++)for(let Xt=pt.x;Xt<=Ht&&!(Xt>=_t[ae].length);Xt++){const ve=_t[ae][Xt];if(Vt==="fromCell"){const Se=zt[Pt[0][0]];Dt({cellKey:ve,copiedCell:Se})}else Dt({cellKey:ve,copiedCell:void 0})}else for(let ae=pt.y,Xt=0;ae<pt.y+Pt.length&&!(ae>=_t.length);ae++,Xt++)for(let ve=pt.x,Se=0;ve<pt.x+Pt[Xt].length;ve++,Se++){const we=_t[ae][ve];if(Vt==="fromCell"){const Ee=Pt[Xt][Se],ke=zt[Ee];Dt({cellKey:we,copiedCell:ke})}else Dt({cellKey:we,copiedCell:void 0})}const $t=[{key:lt.key,hotAttr:{...lt.hotAttr,database:{...A,cells:Nt}}}];ut({type:"entry:widget:change",payload:{flatChgList:$t}})},"entry:flow:copy:cell:properties":G=>{let{getState:B}=G;const W=B(),{tl:ut}=rt.getSelectedCellsInfo(W),H=(0,D.p$)(W)[0],N=sdkStore.getHotItem(H),{cells:Y,table:gt}=N.hotAttr.database,pt=Y[gt[ut.y][ut.x]],{fontSize:Tt,color:mt,italic:lt,underline:A,strikethrough:kt,bold:_t}=(0,nt.xH)({baseItem:{...pt,type:"wSwimlane"},returnType:"textV1"});let Mt="";A&&(Mt+="underline"),kt&&(Mt+="line-through"),Mt===""&&(Mt="none");const At={animation:{},appearance:{fill:pt.fill},text:{fontSize:Tt,fontStyle:lt?"italic":"normal",textColor:typeof mt=="number"?mt:(0,F.K8)(mt),textDecoration:Mt,lineHeight:pt.richTextV1.lineHeight,boldType:Number(_t)}};(0,ot.Sl)(At)},"entry:flow:paste:cell:properties":async G=>{let{dispatch:B}=G;const W=await(0,ot._d)({isShowPrompt:!1}),ut=H=>{const N={...H,...W.appearance},Y={};for(const[gt,pt]of Object.entries(W.text))gt==="fontSize"?Y.fontSize=pt:gt==="fontStyle"?pt==="italic"?Y.italic=!0:Y.italic=!1:gt==="textColor"?Y.textColor=typeof pt=="number"?(0,z.t0)(pt):pt:gt==="textDecoration"?(pt.includes("underline")?Y.underline=!0:Y.underline=!1,pt.includes("line-through")?Y.strikethrough=!0:Y.strikethrough=!1):gt==="lineHeight"?Y.lineHeight=pt:gt==="boldType"&&(Y.bold=!!pt);return N.richTextV1={...N.richTextV1,...Y},(0,Z.jv)(N,Y),N};B({type:ct["entry:flow:selectCells:update"],payload:{updateFunc:ut}})},"entry:flow:paste:del:blocks":G=>{let{dispatch:B}=G;const W=ut=>({...ut,textV1:(0,I.Y8)().textV1});B({type:ct["entry:flow:selectCells:update"],payload:{updateFunc:W}})},"entry:flow:change:width-height":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{value:H,attr:N}}=B;const Y=W(),gt=(0,D.p$)(Y)[0],pt=sdkStore.getHotItem(gt),{tl:Tt,br:mt}=rt.getSelectedCellsInfo(Y),{swimConfig:{isShowBigTitle:lt},swimlaneType:A}=pt.hotAttr,{widthList:kt,heightList:_t}=pt.hotAttr.database,Mt={...pt.hotAttr.database},At={key:pt.key,hotAttr:{...pt.hotAttr}};if(N==="height"){const Nt=[..._t];for(let Ot=Tt.y;Ot<=mt.y;Ot++)Nt[Ot]=H;Mt.heightList=Nt;let Vt=(0,S.PM)(Nt);lt||A==="leftRight"&&(Vt-=Nt[0]);const Wt=pt.hotAttr.y-pt.hotAttr.h*.5;At.hotAttr.h=Vt,At.hotAttr.y=Wt+Vt*.5}else{const Nt=[...kt];for(let Ot=Tt.x;Ot<=mt.x;Ot++)Nt[Ot]=H;Mt.widthList=Nt;let Vt=(0,S.PM)(Nt);lt||A==="topBottom"&&(Vt-=Nt[0]);const Wt=pt.hotAttr.x-pt.hotAttr.w*.5;At.hotAttr.w=Vt,At.hotAttr.x=Wt+Vt*.5}At.hotAttr.database=Mt,ut({type:"entry:widget:change",payload:{flatChgList:[At]}})},"entry:flow:selectCells:update":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{updateFunc:H}}=B;const N=W(),Y=(0,D.p$)(N);if(Y.length!==1)return;const{tl:gt,br:pt}=rt.getSelectedCellsInfo(N),Tt=sdkStore.getHotItem(Y[0]),mt=Tt.hotAttr.swimlaneType,lt={...Tt.hotAttr.database},{table:A,cells:kt,widthList:_t,heightList:Mt}=lt,At={...kt};let jt=pt.x,Nt=pt.y;gt.x===0&&gt.y===0&&!(pt.x===0&&pt.y===0)&&(mt==="leftRight"?jt=_t.length-1:Nt=Mt.length);for(let Ot=gt.y;Ot<=Nt&&!(Ot>=A.length);Ot++)for(let Dt=gt.x;Dt<=jt&&!(Dt>=A[Ot].length);Dt++){const Ht=A[Ot][Dt],tt={...kt[Ht]};At[Ht]=H(tt)}const Wt=[{key:Tt.key,hotAttr:{...Tt.hotAttr,database:{...lt,cells:At}}}];ut({type:"entry:widget:change",payload:{flatChgList:Wt}})},"entry:flow:swimlane:paste":(G,B)=>{let{getState:W,dispatch:ut}=G,{payload:{pasteType:H,content:N}}=B,Y;if(H==="plain"){const gt=N;if(/COPIED__MB__WIDGET_V7/.test(gt))return;if(/COPIED__MB__WIDGET/.test(gt))return}if(H==="html"){const gt=N,pt=(0,$.A)({html:gt,componentType:2}),Tt=q.z6.createFromBlockArray(pt.contentBlocks,pt.entityMap),mt=q.$t.createWithContent(Tt),lt=(0,q.dM)(mt.getCurrentContent());Y={type:"textV1",content:(0,ft.qn)(lt)}}else if(H==="plain"){const gt=N;gt.includes(ot.o)?Y={type:"contextMenu"}:Y={type:"text",content:gt.replace(O.Qt,"")}}else Y={type:"contextMenu"};ut({type:et.entryKey["entry:flow:paste:cell:self"],payload:{textInClipboard:Y}})}},rt=ht.B.genQuery(K.a,{getStateFn:G=>G.editor.state.swimlane}),ct=ht.B.genEntryKey(yt);return{__initialState:K.a,__reducer:K.F,__entry:yt,entryKey:ct,query:rt}})()},13331:(oe,Ct,T)=>{var F=T(38103);function Z(I,z){var D=!0;return F(I,function(V,ht,ot){return D=!!z(V,ht,ot),D}),D}oe.exports=Z},14776:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>$});var F=T(38502),Z=T(53732),I=T.n(Z),z=T(46745),D=T(86493),V=T(66360),ht=T(69815),ot=T(42738),S=T(72214);const O=q=>{const{widget:ft,placeHolderColor:K,onCopy:it}=q,{textV1:nt}=ft,vt=(0,F.useMemo)(()=>{const ct=(0,D.mx)(nt);return(0,z.n)(ct)},[nt]),at=(0,V.Ot)(vt);let et="";try{et=(0,ht.d0)(ft)}catch(ct){}const rt="text h-"+(ft["!haVersion"]===3&&!at?ft.textV0.horizontalAlign:void 0);return(0,S.jsx)(ot.w,{className:rt,placeHolderColor:K,onCopy:it,children:(0,S.jsx)("div",{className:"draft-common-editor-wrapper",children:(0,S.jsx)("div",{className:"draft-common-editor",children:(0,S.jsx)("div",{className:I()("public-DraftEditor-content",{empty:at}),"data-content":at?I18N.SettingPanel.design.input_annotations:"",dangerouslySetInnerHTML:{__html:et}})})})})},$=(0,F.memo)(O)},14843:oe=>{function Ct(T,F){for(var Z=-1,I=T==null?0:T.length;++Z<I;)if(!F(T[Z],Z,T))return!1;return!0}oe.exports=Ct},15305:(oe,Ct,T)=>{"use strict";T.d(Ct,{T:()=>Z,s:()=>I});var F=T(67787);const Z=(0,F.AH)(["&.svg-icon-path-icon.fill{[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}[fill='none']{fill:none;}[fill='none'][stroke]{stroke:currentColor;}[stroke='none']{stroke:none;}[stroke='none'][fill]{fill:currentColor;}&:not([fill]),&:not([stroke]){fill:currentColor;}}"]),I=(0,F.AH)(['[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}[fill="none"]{fill:none;}[fill="none"][stroke]{stroke:currentColor;}[stroke="none"]{stroke:none;}[stroke="none"][fill]{fill:currentColor;}&:not([fill]),&:not([stroke]){fill:currentColor;}'])},15651:(oe,Ct,T)=>{"use strict";var F;F={value:!0},Ct.A=void 0;var Z=I(T(84046));function I(D){return D&&D.__esModule?D:{default:D}}var z=Ct.A=Z.default},15748:(oe,Ct,T)=>{"use strict";T.d(Ct,{R7:()=>V,YJ:()=>D,ss:()=>z});var F=T(62587),Z=T(34697),I=T(51561);const z=ht=>{let{theme:ot,node:S,isRootSub:O}=ht,$="#1685FC",q=0,ft="";const K="solid";let it="#FFFFFF";const{isRoot:nt,fill:{fillIsVisible:vt},border:{bdrIsVisible:at},richTextV1:et}=S,yt=nt?"medium":"regular";switch(ot){case Z.dr.DEFAULT:$=nt?"#1685FC":"#DAEBFE",it=nt?"#FFFFFF":"#1F292E";break;case Z.dr.RAINBOW:$=nt?"#EFEFEF":"transparent",it="#1F292E";break;case Z.dr.RETRO:$=nt?"#375F8A":O?"#53A1D9":"transparent",it=nt||O?"#FFFFFF":"#1F292E";break;case Z.dr.YOUTH:$=nt?"#39CCBC":O?"#EDEDED":"#E0E0E0",it=nt?"#FFFFFF":"#1F292E";break;case Z.dr.CLASSICAL:$="#FFFFFF",q=1,ft="#1F292E",it="#1F292E";break;case Z.dr.DARK:$=nt?"#252626":O?"#363738":"#454647",it="#FFFFFF";break}const rt=at?(0,I.Um)(S):{borderWidth:q,borderColor:ft,borderStyle:K};return{backgroundColor:vt?(0,F.n7)(S):$,textColor:et.textColor||it,fontWeight:yt,...rt}},D=(ht,ot,S)=>{const{key:O,hotAttr:{placement:$},sup:q}=ot,{w:ft}=S.getNodeSize(q),{w:K}=S.getNodeSize(O),{x:it}=S.getNodePosition(q),{x:nt}=S.getNodePosition(O),vt=S.getMindPosition(),at={x:it+vt.x},et={x:nt+vt.x},yt=$==="right",rt={x:yt?at.x+ft:at.x},ct={x:yt?et.x:et.x+K};switch(ht){case Z.dr.DEFAULT:case Z.dr.CLASSICAL:case Z.dr.YOUTH:case Z.dr.DARK:return(yt?rt.x-ct.x:ct.x-rt.x)*.3;case Z.dr.RAINBOW:return-5;case Z.dr.RETRO:return-20}},V=(ht,ot,S)=>ot.hotAttr.isRoot?"50%":[Z.dr.DEFAULT,Z.dr.CLASSICAL,Z.dr.YOUTH,Z.dr.DARK,Z.dr.RETRO].includes(ht)?ht===Z.dr.RETRO&&!S.isRootSub(ot.key)?"100%":"50%":"100%"},15776:(oe,Ct,T)=>{"use strict";T.d(Ct,{G:()=>ht,Z:()=>V});var F=T(47921),Z=T(40220),I=T(40860),z=T(39563),D=T(33379);const V=ot=>{let{widget:S,x1:O,y1:$,x2:q,y2:ft,isDragSelected:K=!1}=ot;const{hotAttr:it}=S;O=Number(O),$=Number($),q=Number(q),ft=Number(ft),O<q&&$>ft?[$,ft]=[ft,$]:O>q&&$<ft?[O,q]=[q,O]:(O>q||$>ft)&&([O,q,$,ft]=[q,O,ft,$]);const{mergeCells:nt}=it.tableData;if(!K){let ut=O,H=$,N=q,Y=ft;for(let gt=O;gt<=q;gt++)for(let pt=$;pt<=ft;pt++)if(nt[gt+"-"+pt]){const[Tt,mt]=nt[gt+"-"+pt],[lt,A]=[gt,pt],[kt,_t]=[gt+Number(Tt)-1,pt+Number(mt)-1];ut=Math.min(ut,lt),H=Math.min(H,A),N=Math.max(N,kt),Y=Math.max(Y,_t)}[O,q,$,ft]=[ut,N,H,Y]}O=O<0?0:O,q=q<0?0:q,$=$<0?0:$,ft=ft<0?0:ft;const vt=F.A.getColumnNameFromId([O,$]),at=F.A.getColumnNameFromId([q,ft]),et={x:Number(O),y:Number($)},yt={x:Number(q),y:Number(ft)};let rt=!1;if(!Z.a.tableHandle)return;const ct={key:O+"-"+$,value:[q-O+1,ft-$+1]};nt[ct.key]&&nt[ct.key].join()===ct.value.join()&&(rt=!0);const G={selectionLeftTopInfo:{x:O,y:$},selectionRightBottomInfo:{x:q,y:ft}};(0,D.HU)({widget:it,selectTableCellInfo:G}).length>0&&(rt=!0),(!Z.a.tableHandle||Z.a.tableHandle&&!Z.a.tableHandle.selectedCell)&&(Z.a.tableHandle.selectedCell=[O,$,q,ft]);const B={selectionLeftTopName:vt,selectionRightBottomName:at,selectionLeftTopInfo:et,selectionRightBottomInfo:yt,isCanRemoveMerge:rt};(0,I.t0)({selectTableCellInfo:B,widget:S});const W=(0,z.SS)(it)?(0,I.J5)(it,B):(0,I.zO)(it,B);Array.isArray(W)?MB.action("links:active:link",{cid:[...W]}):MB.action("links:active:link",{cid:[]})},ht=ot=>{let{x:S,y:O,widget:$,selectTableCellInfo:q}=ot;if(q){const{selectionLeftTopInfo:{x:ft,y:K},selectionRightBottomInfo:{x:it,y:nt}}=q;if(S>=ft&&S<=it&&O>=K&&O<=nt)return}V({widget:$,x1:S,y1:O,x2:S,y2:O})}},16454:(oe,Ct,T)=>{"use strict";T.d(Ct,{$5:()=>A,A3:()=>_n,B3:()=>Vt,Br:()=>zt,Cb:()=>hr,De:()=>Ot,E1:()=>et,ER:()=>nt,H5:()=>Se,H9:()=>it,HA:()=>Tr,HW:()=>S,He:()=>Ar,J8:()=>Y,KR:()=>_t,Kv:()=>fr,M2:()=>ut,Mh:()=>tt,Mo:()=>At,Nz:()=>vi,O4:()=>ct,PL:()=>H,PN:()=>mt,Pf:()=>Xt,Ph:()=>we,Qv:()=>yn,Re:()=>$t,St:()=>O,Sy:()=>pt,U4:()=>ve,UB:()=>gt,UR:()=>G,Ur:()=>kt,X_:()=>ge,ZR:()=>q,Zr:()=>Ee,_v:()=>rt,bF:()=>ft,bm:()=>Zi,dK:()=>at,hM:()=>jt,hm:()=>K,jm:()=>$,k6:()=>Nt,kM:()=>B,ks:()=>Wt,lB:()=>Ht,lQ:()=>te,lR:()=>yr,m5:()=>ke,mf:()=>Le,oJ:()=>fn,p$:()=>vt,pW:()=>Ke,sU:()=>Tt,t$:()=>ae,tp:()=>Dt,ts:()=>Pt,ub:()=>Mt,wA:()=>lt,wS:()=>Jr,x:()=>W,y3:()=>zn,zo:()=>yt});var F=T(12211),Z=T(86969),I=T(85584),z=T(20640),D=T(20089),V=T(34860),ht=T(85131),ot=T(62530);const S=Zt=>Zt.model.user,O=Zt=>Zt.container.common.scale,$=Zt=>Zt.container.common.screenCommentThreadCountMap,q=Zt=>Zt.container.previewSetting,ft=Zt=>Zt.container.common.previewOptions,K=Zt=>Zt.container.common.designOptions,it=Zt=>Zt.container.common.guideOptions,nt=Zt=>Zt.container.common.offset,vt=Zt=>Zt.container.common.keyFlags.isSpaceDown,at=Zt=>Zt.container.common.keyFlags.isShiftDown,et=Zt=>Zt.container.common.leftPaneWidth,yt=Zt=>Zt.container.common.rightPaneWidth,rt=Zt=>Zt.container.common.shellContainer,ct=Zt=>Zt.container.previewSetting.theme,G=Zt=>Zt.container.common.panelHeight,B=Zt=>Zt.container.common.isHiddenToolBar,W=Zt=>Zt.container.common.isWidgetBeingExported,ut=Zt=>Zt.container.common.collapsedRBPageKeySet,H=Zt=>Zt.container.current.rootProject||{},N=Zt=>Zt.container.current.projectMeta,Y=Zt=>Zt.container.current.screenGlue,gt=Zt=>Zt.container.current.projectShare,pt=Zt=>Zt.container.current.previewCommonGuidesHasShown,Tt=Zt=>Zt.container.current.previewCommonGuidesToBeShown,mt=Zt=>Zt.container.current.STRenderArea,lt=Zt=>Zt.container.current.org,A=Zt=>{var Vr;return(Vr=Zt.container.current.org)==null?void 0:Vr.members},kt=Zt=>Zt.container.current.screenMeta,_t=Zt=>Zt.container.current.isPanelPreviewMode,Mt=Zt=>Zt.container.current.isCommunityComboPreview,At=Zt=>Zt.container.current.panelPreviewBasketKey,jt=Zt=>Zt.container.current.isPreviewCombo,Nt=Zt=>Zt.container.current.isQuickPreview,Vt=Zt=>Zt.container.current.quickPreviewSize,Wt=Zt=>Zt.container.current.isPreviewAIComponent,Ot=Zt=>Zt.container.current.folderTreeData,Dt=Zt=>Zt.container.current.previewViewMode,Ht=Zt=>Zt.container.previewSetting.simulatorType,tt=Zt=>Zt.container.previewSetting.isShowShell,Pt=Zt=>Zt.container.previewSetting.isDummyApk,zt=Zt=>Zt.container.previewSetting.toolbarActiveItem,te=Zt=>Zt.container.previewSetting.isStickyShow,$t=Zt=>Zt.container.previewSetting.isHighlight,ae=Zt=>Zt.container.previewSetting.isStatePanelShow,Xt=Zt=>Zt.container.previewSetting.isMinimized,ve=Zt=>Zt.container.previewSetting.isShowRightPane,Se=Zt=>Zt.container.sharingManager.isShowSharingManager,we=Zt=>Zt.container.previewSetting.isFullScreenMode,Ee=Zt=>Zt.container.previewSetting.isFromAbar,ke=Zt=>Zt.container.previewSetting.theme,Le=Zt=>Zt.container.runner,Oe=Zt=>Zt.container.runner.activeCanvasKey,Ke=Zt=>Zt.container.runner.activeCid,Qe=Zt=>Zt.container.runner.activePageKey,hr=Zt=>Zt.container.runner.activeWidgetKey,Fe=Zt=>Zt.container.runner.isResetAll,yr=(0,F.Mz)([Qe,Ot],Zt=>(0,ht.BZ)(Zt).filter(Vr=>!Vr.hotAttr.asOverlay).map(Vr=>Vr.key)),fr=(0,F.Mz)([zt],Zt=>Zt===Z.YK),Ar=Zt=>Zt.container.current.screenDataMap,Tr=Zt=>Zt.container.current.screenTreeData,fn=(0,F.Mz)([gt],Zt=>{if((0,V.St)()){const{screen_visible_list:Hn,screen_visible_switch:Qn}=Zt;if(Qn){const{screenTreeData:xr}=(0,z.wb)(Hn);return xr}}const{screenTreeData:Vr}=(0,z.tb)();return Vr}),yn=(0,F.Mz)([fn],Zt=>(0,I.YU)(Zt).filter(Vr=>Vr.bunch===D.x.RbPage)),Zi=(0,F.Mz)([yn],Zt=>Zt.filter(Vr=>!(0,I.Mo)(Vr))),Vn=Zt=>Zt.container.common.viewport,ge=Zt=>Zt.container.common.scale,_n=Zt=>Zt.container.common.offset,vi=Zt=>Zt.container.common.currentScreenOriginOffset,zn=Zt=>Zt.container.common.hasChangedScaleManually,Po=(0,F.Mz)([kt,Vn,ge,_n,Y],(Zt,Vr,Hn,Qn,xr)=>{if(!Vr)return{canvasTop:0,canvasLeft:0};const[on,gi]=[Zt.width,Zt.orientation==="portrait"?xr.height:xr.width],bs=Math.round(Qn.x),Xa=Math.round(Qn.y);return{canvasTop:Vr.top+Math.floor((Vr.height-gi*Hn/100)/2)+Xa,canvasLeft:Math.floor((window.innerWidth-on*Hn/100)/2)+bs}}),Jr=(0,F.Mz)([Mt,jt,Wt],(Zt,Vr,Hn)=>Hn?ot.L.code:Vr||Zt?ot.L.nonCanvas:ot.L.canvas)},17210:(oe,Ct,T)=>{"use strict";var F,Z,I;Z=T(59183),I=T(44345),F=Z.version,Ct.F0=Z.renderToString,F=Z.renderToStaticMarkup,F=Z.renderToNodeStream,F=Z.renderToStaticNodeStream,F=I.renderToReadableStream},17913:(oe,Ct,T)=>{"use strict";T.d(Ct,{A5:()=>z,IC:()=>I,RS:()=>Z,X1:()=>F});const F=D=>{let{map:V}=D;return{mapS:V.mapImageSrc}},Z=D=>{let{mapS:V}=D;return{map:{mapImageSrc:V}}},I=(D,V)=>{D.mapS&&V(D.mapS,"rResExtImage")},z=(D,V)=>D},18390:(oe,Ct,T)=>{"use strict";T.d(Ct,{N:()=>F});const F={bar_chart:"bar_chart",horizontal_bar_chart:"horizontal_bar_chart",line_chart:"line_chart",line_area_chart:"line_area_chart",pie_chart:"pie_chart",ring_chart:"ring_chart",progress_chart:"progress_chart",radar_chart:"radar_chart",mixed_bar_line_chart:"mixed_bar_line_chart",waterfall_chart:"waterfall_chart",scatter_chart:"scatter_chart",nightingale_chart:"nightingale_chart",funnel_chart:"funnel_chart",gauge_chart:"gauge_chart",liquid_fill_gauge_chart:"liquid_fill_gauge_chart",map_chart:"map_chart",bubble_chart:"bubble_chart",radial_polar_chart:"radial_polar_chart",sunburst_chart:"sunburst_chart",word_cloud_chart:"word_cloud_chart",sankey_chart:"sankey_chart",boxplot_chart:"boxplot_chart"}},18816:(oe,Ct,T)=>{"use strict";T.d(Ct,{h:()=>Mt});var F=T(68818);const Z=At=>{let jt,Nt;return{hasMLG:()=>!!jt,getMLG:()=>jt,loadMLG:async()=>jt===void 0?(Nt===void 0&&((0,F.FM)()?(Nt=Promise.resolve(window.map_json["mp_"+At]),jt=window.map_json["mp_"+At]):(Nt=fetch("/mb-static/2410/echarts-map/mp_"+At+".json").then(Dt=>Dt.ok?Dt.json():""),Nt.then(Dt=>{jt=Dt}))),Nt):jt}},I=Z("100000"),z=Z("110000"),D=Z("120000"),V=Z("130000"),ht=Z("140000"),ot=Z("150000"),S=Z("210000"),O=Z("220000"),$=Z("230000"),q=Z("310000"),ft=Z("320000"),K=Z("330000"),it=Z("340000"),nt=Z("350000"),vt=Z("360000"),at=Z("370000"),et=Z("410000"),yt=Z("420000"),rt=Z("430000"),ct=Z("440000"),G=Z("450000"),B=Z("460000"),W=Z("500000"),ut=Z("510000"),H=Z("520000"),N=Z("530000"),Y=Z("540000"),gt=Z("610000"),pt=Z("620000"),Tt=Z("630000"),mt=Z("640000"),lt=Z("650000"),A=Z("710000"),kt=Z("810000"),_t=Z("820000"),Mt={Map100000:I,Map110000:z,Map120000:D,Map130000:V,Map140000:ht,Map150000:ot,Map210000:S,Map220000:O,Map230000:$,Map310000:q,Map320000:ft,Map330000:K,Map340000:it,Map350000:nt,Map360000:vt,Map370000:at,Map410000:et,Map420000:yt,Map430000:rt,Map440000:ct,Map450000:G,Map460000:B,Map500000:W,Map510000:ut,Map520000:H,Map530000:N,Map540000:Y,Map610000:gt,Map620000:pt,Map630000:Tt,Map640000:mt,Map650000:lt,Map710000:A,Map810000:kt,Map820000:_t}},19396:(oe,Ct,T)=>{var F=T(79371),Z=T(41391),I="Expected a function";function z(D,V,ht){var ot=!0,S=!0;if(typeof D!="function")throw new TypeError(I);return Z(ht)&&(ot="leading"in ht?!!ht.leading:ot,S="trailing"in ht?!!ht.trailing:S),F(D,V,{leading:ot,maxWait:V,trailing:S})}oe.exports=z},20315:(oe,Ct,T)=>{"use strict";T.d(Ct,{Hr:()=>I,LS:()=>ht,Lc:()=>F,MS:()=>V,SF:()=>S,jy:()=>Z,sL:()=>ot,tI:()=>D,yc:()=>z});const F=O=>O.editor.state.ST.STMode,Z=O=>O.editor.state.ST.isDraggingWTear,I=O=>O.editor.state.ST.isDraggingTearSticky,z=O=>O.editor.state.ST.tearOffset,D=O=>O.editor.state.ST.isShowTearSticky,V=O=>O.editor.state.ST.isLeftDown,ht=O=>O.editor.state.ST.fakeBindingInfo,ot=O=>O.editor.state.ST.fakePointToDir,S=O=>O.editor.state.ST.prevBindingCanvasKey},20640:(oe,Ct,T)=>{"use strict";T.d(Ct,{ON:()=>K,UG:()=>nt,eO:()=>V,tb:()=>ht,u1:()=>it,wb:()=>S});var F=T(85584),Z=T(64639),I=T(20089),z=T(26067),D=T(74222);const V=vt=>""+((0,F.Mo)(vt)?Z.L7:Z.KL)+Z.wv+0,ht=function(vt,at){vt===void 0&&(vt=D.$k),at===void 0&&(at=sdkStore);const et={},yt={};return{screenTreeData:ot(vt,et,yt,at),screenTreeMap:et,screenDataMap:yt}},ot=function(vt,at,et,yt){var rt;vt===void 0&&(vt=D.$k),at===void 0&&(at={}),et===void 0&&(et={}),yt===void 0&&(yt=sdkStore);const ct=yt.getHotItem(vt),{sub:G,hotAttr:B,key:W,sup:ut}=ct,H=G.map(N=>{const Y=yt.getHotItem(N),{hotAttr:gt,key:pt}=Y;if(gt.bunch===I.x.RbPage)return et[pt]=Y,ot(pt,at,et,yt)}).filter(N=>N).sort((N,Y)=>N.data.zIndex-Y.data.zIndex);return((rt=ct.hotAttr)==null?void 0:rt.bunch)===I.x.RbPage&&(et[W]=ct),H!=null&&H.length&&(at[W]=H),{cid:vt,data:{cid:W,...B,sup:ut,sub:G,icon:B.icon||V(B)},children:H}},S=vt=>{const at={},et={},yt=vt.filter(N=>!sdkStore.isTrashed(N));yt.forEach(N=>{at[N]=sdkStore.getHotItem(N)});const rt=yt.map(N=>({key:N,...ft(N,yt)})),ct=rt.filter(N=>N.level===0),G=D.$k,B=sdkStore.getHotItem(G),W=Array.from(new Set([...ct.map(N=>N.key)])),ut=W.map(N=>q(N,yt,rt,et)).map(N=>{const Y=$(N.cid);return{...N,data:{...N.data,zIndex:Y}}}).sort((N,Y)=>O(N.data.zIndex,Y.data.zIndex));return et[G]=ut,{screenTreeData:{cid:G,data:{cid:G,key:G,sub:W,...B,icon:B.hotAttr.icon||V(B.hotAttr)},children:ut},screenDataMap:at,screenTreeMap:et}},O=(vt,at)=>{const et=vt.split("-").slice(1),yt=at.split("-").slice(1);let rt=0;const ct=yt.length>et.length?et.length:yt.length;for(let G=0;G<ct;G++){const B=parseInt(yt[G]),W=parseInt(et[G]);if(B>W){rt=-1;break}else if(B<W){rt=1;break}else G===ct-1&&rt===0&&(yt.length>et.length?rt=-1:rt=1)}return rt},$=vt=>{const at=yt=>{if(yt===D.$k)return"";const rt=sdkStore.getHotItem(yt);if(!rt)return"1";const ct=String(rt.hotAttr.zIndex||1);return at(rt.sup)+"-"+ct};return at(vt)},q=(vt,at,et,yt)=>{const rt=sdkStore.getHotItem(vt),ct=et.filter(B=>B.level!==0&&B.supKey===vt).map(B=>B.key),G=ct.map(B=>q(B,at,et,yt)).sort((B,W)=>B.data.zIndex-W.data.zIndex);return yt[vt]=G,{cid:rt.key,data:{...rt.hotAttr,cid:rt.key,sub:[ct],sup:rt.sup},children:G}},ft=(vt,at)=>{var et;const rt=((et=sdkStore.findUpHotItemList(vt))!=null?et:[]).map(B=>B==null?void 0:B.key).filter(B=>B!==vt).reverse();let ct=0,G=vt;return rt.forEach((B,W)=>{if(at.includes(B)){ct=W,G=B;return}}),{supKey:G,level:ct}},K=vt=>{const{key:at,sup:et,sub:yt,hotAttr:rt}=vt;return{cid:at,sup:et,sub:yt,...rt}},it=vt=>{var at;const et=(0,F.YU)(vt).filter(ct=>ct.bunch===I.x.RbPage&&!(0,F.Mo)(ct));let yt="";const rt=et.find(ct=>{const G=(0,z.Y2)(ct.cid);return G&&(G==null?void 0:G.length)>0?(yt=G[0].key,!0):!1});return{activePageKey:(rt==null?void 0:rt.cid)||((at=et[0])==null?void 0:at.cid),activeCanvasKey:yt}},nt=vt=>{if(!rootSdk.sdkStore.isActiveKey(vt))return[];const at=rootSdk.sdkStore.getHotItem(vt),{hotAttr:et}=at;let yt=[vt];return et.bunch===I.x.RbPage&&et.asFolder&&(yt=rootSdk.sdkStore.findAllTypeUnder(vt,"rResBunch").map(rt=>rt.key)),yt}},23039:(oe,Ct,T)=>{var F=T(39338),Z=function(D){var V=/[height|width]$/;return V.test(D)},I=function(D){var V="",ht=Object.keys(D);return ht.forEach(function(ot,S){var O=D[ot];ot=F(ot),Z(ot)&&typeof O=="number"&&(O=O+"px"),O===!0?V+=ot:O===!1?V+="not "+ot:V+="("+ot+": "+O+")",S<ht.length-1&&(V+=" and ")}),V},z=function(D){var V="";return typeof D=="string"?D:D instanceof Array?(D.forEach(function(ht,ot){V+=I(ht),ot<D.length-1&&(V+=", ")}),V):I(D)};oe.exports=z},24041:(oe,Ct,T)=>{"use strict";T.d(Ct,{Zt:()=>D,gg:()=>O,qu:()=>z});var F=T(62280),Z=T(98915),I=T(20089);const z={prepare:0,animate:1,finish:2},D=($,q)=>{const{key:ft,hotAttr:{type:K,fixPosTo:it}}=q;if(it!=="none"&&it!=="sticky")return!1;const nt=I.Q.USE_CLIP_TEXT.includes(K)?(0,Z.HN)(ft,$):K==="wWrap"?(0,Z.PH)(ft,$):$.getLocalBound(ft);if(nt)return(0,F.Pb)(nt)},V=($,q,ft)=>{const K=D($,q);return K?K[1]<ft:!1},ht=($,q,ft,K)=>{const it=D($,q);return it?ft<it[3]+K:!1},ot=($,q)=>{if(!$||!q||!sdkStore.isActiveKey(q))return{};const ft=sdkStore.getHotItem(q),{hotAttr:{stickyHeaderHeight:K,stickyFooterHeight:it,h:nt}}=ft,vt=fromWBoundToAABB($),at=K>0&&vt[1]<K,et=it>0&&nt<vt[3]+it;return{isFixedOnHeader:at,isFixedOnFooter:et}},S=($,q)=>!$||!q||!sdkStore.isActiveKey($)||!sdkStore.isActiveKey(q)?{}:ot(sdkStore.getRelocateLocalBound($,q),q),O=$=>{if(!$||!($!=null&&$.runnerTransform))return;const{rotateZ:q=0,translateX:ft=0,translateY:K=0,scaleX:it=100,scaleY:nt=100,originX:vt=50,originY:at=50}=$.runnerTransform,et=()=>$.w*it/100,yt=()=>$.h*nt/100,rt=()=>$.x+vt/100*($.w-et())+ft,ct=()=>$.y+at/100*($.h-yt())+K;if(!($.r===void 0&&$.w===void 0&&$.h===void 0))return{...$.r!==void 0&&{r:q},...$.w!==void 0&&{w:et()},...$.h!==void 0&&{h:yt()},...$.x!==void 0&&$.w!==void 0&&{x:rt()},...$.y!==void 0&&$.h!==void 0&&{y:ct()}}}},24496:(oe,Ct,T)=>{"use strict";T.d(Ct,{A6:()=>q,GP:()=>nt,H_:()=>ot,OX:()=>it,UN:()=>D,WH:()=>I,aJ:()=>S,ah:()=>$,fo:()=>K,g0:()=>V,jZ:()=>ht,oi:()=>ft,uA:()=>O,ul:()=>z,ux:()=>vt});var F=T(12211),Z=T(25997);const I=at=>at.editor.state.mind.editMindKey,z=at=>at.editor.state.mind.selectedMindNodeKeys,D=at=>at.editor.state.mind.selectedMindNodeFlagIconKey,V=at=>at.editor.state.mind.selectedMindNodeImageKey,ht=at=>at.editor.state.mind.isShowMindNodeMenu,ot=at=>at.editor.state.mind.draggingState,S=at=>at.editor.state.mind.isShallowEditText,O=at=>at.editor.state.mind.isEditingSelectAll,$=at=>at.editor.state.mind.isEditingMoveToEnd,q=(0,F.Mz)([z,D,V],(at,et,yt)=>!et&&!yt&&at[at.length-1]),ft=(0,F.Mz)([I,q,Z.UV,Z.RX],(at,et,yt,rt)=>{const ct=at&&yt.getHotItem(at);if(ct&&et){const G=yt.getHotItem(et);if(G)return{mindNode:ct,richTextNode:G}}return null}),K=(0,F.Mz)([z,Z.UV,Z.RX],(at,et)=>{const yt=[];return at.forEach(rt=>{const ct=et.getHotItem(rt);ct&&yt.push(ct)}),yt}),it=/^(183|477)$/.test(T.j)?null:K,nt=(0,F.Mz)([q,Z.UV,Z.RX],(at,et)=>at&&et.getHotItem(at)),vt=(0,F.Mz)([q,Z.UV,Z.RX],(at,et)=>at&&et.getHotItem(at))},26036:(oe,Ct,T)=>{"use strict";T.d(Ct,{e:()=>z,o:()=>I});var F=T(40093),Z=T(86033);const I=D=>{let{flip:V}=D;return{fp:[(0,F.y9)(V.flipH,V.flipV)].join(Z.xi)}},z=D=>{let{fp:V}=D;if(!V)return{flip:{flipH:!1,flipV:!1}};const[ht]=V.split(Z.xi),[ot,S]=(0,F.MA)(ht);return{flip:{flipH:ot,flipV:S}}}},27648:oe=>{function Ct(){}oe.exports=Ct},27784:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>S});var F=T(95549),Z=T(38502),I=T(25582),z=T.n(I),D=T(17307),V=T(67787);const ht=V.Ay.div.withConfig({displayName:"styles__StyledImageWrapper",componentId:"sc-gyu0a7-0"})(["&.image-wrapper{width:100%;height:100%;border-radius:inherit;transition:inherit;transition-property:filter;span{height:100%;width:100%;display:flex;justify-content:center;align-items:center;border-radius:inherit;i{font-size:26px;}.icon{color:#8d9ea7;}}.wrapper{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:inherit;transition:inherit;img{width:100%;border-radius:inherit;transition:inherit;pointer-events:none;}}}"]);var ot=T(72214);class S extends Z.PureComponent{render(){const{src:$="",stretchToFill:q,filter:ft,backgroundColor:K,dataContainerCid:it,link_cid:nt,className:vt,style:at,fillType:et}=this.props,yt={display:$?"none":"flex",backgroundColor:K},rt={display:$?"block":"none",height:q||et==="fill"?"100%":"auto",filter:ft.trim(),objectFit:et==="fill"?"cover":null};return(0,ot.jsxs)(ht,{className:"image-wrapper "+vt,"data-container-cid":it,"data-link_cid":nt,style:at,children:[(0,ot.jsx)("span",{style:yt,children:(0,ot.jsx)(D.C,{name:"right_panel/image/place_holder"})}),(0,ot.jsx)("div",{className:"wrapper",children:(0,ot.jsx)("img",{src:$,draggable:!1,style:rt})})]})}}(0,F.A)(S,"defaultProps",{stretchToFill:!1,filter:"",backgroundColor:"#e8e8e8",style:{},fillType:"default"}),(0,F.A)(S,"propTypes",{src:z().string,stretchToFill:z().bool,filter:z().string,link_cid:z().string,className:z().string,backgroundColor:z().string,style:z().object,fillType:z().string})},27937:(oe,Ct,T)=>{"use strict";T.d(Ct,{tH:()=>it});var F=T(48012),Z=T(85713),I=T(59260),z=T(13708),D=T(38502);const V=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ht=T(93093),ot=T(60256);function S(vt){const at=vt.match(/^([^.]+)/);return at!==null&&parseInt(at[0])>=17}function O(vt,at){const et=new WeakSet;function yt(rt,ct){if(!et.has(rt)){if(rt.cause)return et.add(rt),yt(rt.cause,ct);rt.cause=ct}}yt(vt,at)}function $(vt,at,et){let{componentStack:yt}=at;if(S(D.version)&&(0,ot.bJ)(vt)&&yt){const rt=new Error(vt.message);rt.name="React ErrorBoundary "+vt.name,rt.stack=yt,O(vt,rt)}return(0,ht.Cp)(vt,{...et,captureContext:{contexts:{react:{componentStack:yt}}}})}function q(vt){return(at,et)=>{const yt=$(at,et);vt&&vt(at,et,yt)}}const ft="unknown",K={componentStack:null,error:null,eventId:null};class it extends D.Component{constructor(at){super(at),it.prototype.__init.call(this),this.state=K,this._openFallbackReportDialog=!0;const et=(0,F.KU)();et&&at.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=et.on("afterSendEvent",yt=>{!yt.type&&this._lastEventId&&yt.event_id===this._lastEventId&&(0,Z.mn)({...at.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(at,et){const{componentStack:yt}=et,rt=yt==null?void 0:yt,{beforeCapture:ct,onError:G,showDialog:B,dialogOptions:W}=this.props;(0,F.v4)(ut=>{ct&&ct(ut,at,rt);const H=this.props.handled!=null?this.props.handled:!!this.props.fallback,N=$(at,et,{mechanism:{handled:H}});G&&G(at,rt,N),B&&(this._lastEventId=N,this._openFallbackReportDialog&&(0,Z.mn)({...W,eventId:N})),this.setState({error:at,componentStack:yt,eventId:N})})}componentDidMount(){const{onMount:at}=this.props;at&&at()}componentWillUnmount(){const{error:at,componentStack:et,eventId:yt}=this.state,{onUnmount:rt}=this.props;rt&&rt(at,et,yt),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:at}=this.props,{error:et,componentStack:yt,eventId:rt}=this.state;at&&at(et,yt,rt),this.setState(K)}}render(){const{fallback:at,children:et}=this.props,yt=this.state;if(yt.error){let rt;return typeof at=="function"?rt=D.createElement(at,{error:yt.error,componentStack:yt.componentStack,resetError:this.resetErrorBoundary,eventId:yt.eventId}):rt=at,D.isValidElement(rt)?rt:(at&&V&&I.vF.warn("fallback did not produce a valid ReactElement"),null)}return typeof et=="function"?et():et}}function nt(vt,at){const et=vt.displayName||vt.name||ft,yt=rt=>React.createElement(it,{...at},React.createElement(vt,{...rt}));return yt.displayName="errorBoundary("+et+")",hoistNonReactStatics(yt,vt),yt}},30409:(oe,Ct,T)=>{"use strict";T.d(Ct,{D:()=>F});const F=()=>{let Z=new WeakMap,I=new WeakMap;return{resetOCache:()=>{Z=new WeakMap},resetOOCache:()=>{I=new WeakMap},getOCache:ot=>{let S=Z.get(ot);return S===void 0&&Z.set(ot,S={}),S},getOOCache:(ot,S)=>{let O=I.get(ot);O===void 0&&I.set(ot,O=new WeakMap);let $=O.get(S);return $===void 0&&O.set(S,$={}),$}}}},31417:(oe,Ct,T)=>{var F=T(51071);function Z(I){return I&&I.length?F(I):[]}oe.exports=Z},31838:(oe,Ct,T)=>{"use strict";T.d(Ct,{AG:()=>F,Fy:()=>I,JD:()=>Z});const F=new Map([["110000","\u5317\u4EAC"],["120000","\u5929\u6D25"],["130000","\u6CB3\u5317"],["140000","\u5C71\u897F"],["150000","\u5185\u8499\u53E4"],["210000","\u8FBD\u5B81"],["220000","\u5409\u6797"],["230000","\u9ED1\u9F99\u6C5F"],["310000","\u4E0A\u6D77"],["320000","\u6C5F\u82CF"],["330000","\u6D59\u6C5F"],["340000","\u5B89\u5FBD"],["350000","\u798F\u5EFA"],["360000","\u6C5F\u897F"],["370000","\u5C71\u4E1C"],["410000","\u6CB3\u5357"],["420000","\u6E56\u5317"],["430000","\u6E56\u5357"],["440000","\u5E7F\u4E1C"],["450000","\u5E7F\u897F"],["460000","\u6D77\u5357"],["500000","\u91CD\u5E86"],["510000","\u56DB\u5DDD"],["520000","\u8D35\u5DDE"],["530000","\u4E91\u5357"],["540000","\u897F\u85CF"],["610000","\u9655\u897F"],["620000","\u7518\u8083"],["630000","\u9752\u6D77"],["640000","\u5B81\u590F"],["650000","\u65B0\u7586"],["710000","\u53F0\u6E7E"],["810000","\u9999\u6E2F"],["820000","\u6FB3\u95E8"]]),Z=new Map([["100000",["\u5317\u4EAC","\u5929\u6D25","\u6CB3\u5317","\u5C71\u897F","\u5185\u8499\u53E4","\u8FBD\u5B81","\u5409\u6797","\u9ED1\u9F99\u6C5F","\u4E0A\u6D77","\u6C5F\u82CF","\u6D59\u6C5F","\u5B89\u5FBD","\u798F\u5EFA","\u6C5F\u897F","\u5C71\u4E1C","\u6CB3\u5357","\u6E56\u5317","\u6E56\u5357","\u5E7F\u4E1C","\u5E7F\u897F","\u6D77\u5357","\u91CD\u5E86","\u56DB\u5DDD","\u8D35\u5DDE","\u4E91\u5357","\u897F\u85CF","\u9655\u897F","\u7518\u8083","\u9752\u6D77","\u5B81\u590F","\u65B0\u7586","\u53F0\u6E7E","\u9999\u6E2F","\u6FB3\u95E8"]],["110000",["\u4E1C\u57CE\u533A","\u897F\u57CE\u533A","\u671D\u9633\u533A","\u4E30\u53F0\u533A","\u77F3\u666F\u5C71\u533A","\u6D77\u6DC0\u533A","\u95E8\u5934\u6C9F\u533A","\u623F\u5C71\u533A","\u901A\u5DDE\u533A","\u987A\u4E49\u533A","\u660C\u5E73\u533A","\u5927\u5174\u533A","\u6000\u67D4\u533A","\u5E73\u8C37\u533A","\u5BC6\u4E91\u533A","\u5EF6\u5E86\u533A"]],["120000",["\u548C\u5E73\u533A","\u6CB3\u4E1C\u533A","\u6CB3\u897F\u533A","\u5357\u5F00\u533A","\u6CB3\u5317\u533A","\u7EA2\u6865\u533A","\u4E1C\u4E3D\u533A","\u897F\u9752\u533A","\u6D25\u5357\u533A","\u5317\u8FB0\u533A","\u6B66\u6E05\u533A","\u5B9D\u577B\u533A","\u6EE8\u6D77\u65B0\u533A","\u5B81\u6CB3\u533A","\u9759\u6D77\u533A","\u84DF\u5DDE\u533A"]],["130000",["\u77F3\u5BB6\u5E84\u5E02","\u5510\u5C71\u5E02","\u79E6\u7687\u5C9B\u5E02","\u90AF\u90F8\u5E02","\u90A2\u53F0\u5E02","\u4FDD\u5B9A\u5E02","\u5F20\u5BB6\u53E3\u5E02","\u627F\u5FB7\u5E02","\u6CA7\u5DDE\u5E02","\u5ECA\u574A\u5E02","\u8861\u6C34\u5E02"]],["140000",["\u592A\u539F\u5E02","\u5927\u540C\u5E02","\u9633\u6CC9\u5E02","\u957F\u6CBB\u5E02","\u664B\u57CE\u5E02","\u6714\u5DDE\u5E02","\u664B\u4E2D\u5E02","\u8FD0\u57CE\u5E02","\u5FFB\u5DDE\u5E02","\u4E34\u6C7E\u5E02","\u5415\u6881\u5E02"]],["150000",["\u547C\u548C\u6D69\u7279\u5E02","\u5305\u5934\u5E02","\u4E4C\u6D77\u5E02","\u8D64\u5CF0\u5E02","\u901A\u8FBD\u5E02","\u9102\u5C14\u591A\u65AF\u5E02","\u547C\u4F26\u8D1D\u5C14\u5E02","\u5DF4\u5F66\u6DD6\u5C14\u5E02","\u4E4C\u5170\u5BDF\u5E03\u5E02","\u5174\u5B89\u76DF","\u9521\u6797\u90ED\u52D2\u76DF","\u963F\u62C9\u5584\u76DF"]],["210000",["\u6C88\u9633\u5E02","\u5927\u8FDE\u5E02","\u978D\u5C71\u5E02","\u629A\u987A\u5E02","\u672C\u6EAA\u5E02","\u4E39\u4E1C\u5E02","\u9526\u5DDE\u5E02","\u8425\u53E3\u5E02","\u961C\u65B0\u5E02","\u8FBD\u9633\u5E02","\u76D8\u9526\u5E02","\u94C1\u5CAD\u5E02","\u671D\u9633\u5E02","\u846B\u82A6\u5C9B\u5E02"]],["220000",["\u957F\u6625\u5E02","\u5409\u6797\u5E02","\u56DB\u5E73\u5E02","\u8FBD\u6E90\u5E02","\u901A\u5316\u5E02","\u767D\u5C71\u5E02","\u677E\u539F\u5E02","\u767D\u57CE\u5E02","\u5EF6\u8FB9\u671D\u9C9C\u65CF\u81EA\u6CBB\u5DDE"]],["230000",["\u54C8\u5C14\u6EE8\u5E02","\u9F50\u9F50\u54C8\u5C14\u5E02","\u9E21\u897F\u5E02","\u9E64\u5C97\u5E02","\u53CC\u9E2D\u5C71\u5E02","\u5927\u5E86\u5E02","\u4F0A\u6625\u5E02","\u4F73\u6728\u65AF\u5E02","\u4E03\u53F0\u6CB3\u5E02","\u7261\u4E39\u6C5F\u5E02","\u9ED1\u6CB3\u5E02","\u7EE5\u5316\u5E02","\u5927\u5174\u5B89\u5CAD\u5730\u533A"]],["310000",["\u9EC4\u6D66\u533A","\u5F90\u6C47\u533A","\u957F\u5B81\u533A","\u9759\u5B89\u533A","\u666E\u9640\u533A","\u8679\u53E3\u533A","\u6768\u6D66\u533A","\u95F5\u884C\u533A","\u5B9D\u5C71\u533A","\u5609\u5B9A\u533A","\u6D66\u4E1C\u65B0\u533A","\u91D1\u5C71\u533A","\u677E\u6C5F\u533A","\u9752\u6D66\u533A","\u5949\u8D24\u533A","\u5D07\u660E\u533A"]],["320000",["\u5357\u4EAC\u5E02","\u65E0\u9521\u5E02","\u5F90\u5DDE\u5E02","\u5E38\u5DDE\u5E02","\u82CF\u5DDE\u5E02","\u5357\u901A\u5E02","\u8FDE\u4E91\u6E2F\u5E02","\u6DEE\u5B89\u5E02","\u76D0\u57CE\u5E02","\u626C\u5DDE\u5E02","\u9547\u6C5F\u5E02","\u6CF0\u5DDE\u5E02","\u5BBF\u8FC1\u5E02"]],["330000",["\u676D\u5DDE\u5E02","\u5B81\u6CE2\u5E02","\u6E29\u5DDE\u5E02","\u5609\u5174\u5E02","\u6E56\u5DDE\u5E02","\u7ECD\u5174\u5E02","\u91D1\u534E\u5E02","\u8862\u5DDE\u5E02","\u821F\u5C71\u5E02","\u53F0\u5DDE\u5E02","\u4E3D\u6C34\u5E02"]],["340000",["\u5408\u80A5\u5E02","\u829C\u6E56\u5E02","\u868C\u57E0\u5E02","\u6DEE\u5357\u5E02","\u9A6C\u978D\u5C71\u5E02","\u6DEE\u5317\u5E02","\u94DC\u9675\u5E02","\u5B89\u5E86\u5E02","\u9EC4\u5C71\u5E02","\u6EC1\u5DDE\u5E02","\u961C\u9633\u5E02","\u5BBF\u5DDE\u5E02","\u516D\u5B89\u5E02","\u4EB3\u5DDE\u5E02","\u6C60\u5DDE\u5E02","\u5BA3\u57CE\u5E02"]],["350000",["\u798F\u5DDE\u5E02","\u53A6\u95E8\u5E02","\u8386\u7530\u5E02","\u4E09\u660E\u5E02","\u6CC9\u5DDE\u5E02","\u6F33\u5DDE\u5E02","\u5357\u5E73\u5E02","\u9F99\u5CA9\u5E02","\u5B81\u5FB7\u5E02"]],["360000",["\u5357\u660C\u5E02","\u666F\u5FB7\u9547\u5E02","\u840D\u4E61\u5E02","\u4E5D\u6C5F\u5E02","\u65B0\u4F59\u5E02","\u9E70\u6F6D\u5E02","\u8D63\u5DDE\u5E02","\u5409\u5B89\u5E02","\u5B9C\u6625\u5E02","\u629A\u5DDE\u5E02","\u4E0A\u9976\u5E02"]],["370000",["\u6D4E\u5357\u5E02","\u9752\u5C9B\u5E02","\u6DC4\u535A\u5E02","\u67A3\u5E84\u5E02","\u4E1C\u8425\u5E02","\u70DF\u53F0\u5E02","\u6F4D\u574A\u5E02","\u6D4E\u5B81\u5E02","\u6CF0\u5B89\u5E02","\u5A01\u6D77\u5E02","\u65E5\u7167\u5E02","\u4E34\u6C82\u5E02","\u5FB7\u5DDE\u5E02","\u804A\u57CE\u5E02","\u6EE8\u5DDE\u5E02","\u83CF\u6CFD\u5E02"]],["410000",["\u90D1\u5DDE\u5E02","\u5F00\u5C01\u5E02","\u6D1B\u9633\u5E02","\u5E73\u9876\u5C71\u5E02","\u5B89\u9633\u5E02","\u9E64\u58C1\u5E02","\u65B0\u4E61\u5E02","\u7126\u4F5C\u5E02","\u6FEE\u9633\u5E02","\u8BB8\u660C\u5E02","\u6F2F\u6CB3\u5E02","\u4E09\u95E8\u5CE1\u5E02","\u5357\u9633\u5E02","\u5546\u4E18\u5E02","\u4FE1\u9633\u5E02","\u5468\u53E3\u5E02","\u9A7B\u9A6C\u5E97\u5E02","\u6D4E\u6E90\u5E02"]],["420000",["\u6B66\u6C49\u5E02","\u9EC4\u77F3\u5E02","\u5341\u5830\u5E02","\u5B9C\u660C\u5E02","\u8944\u9633\u5E02","\u9102\u5DDE\u5E02","\u8346\u95E8\u5E02","\u5B5D\u611F\u5E02","\u8346\u5DDE\u5E02","\u9EC4\u5188\u5E02","\u54B8\u5B81\u5E02","\u968F\u5DDE\u5E02","\u6069\u65BD\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE","\u4ED9\u6843\u5E02","\u6F5C\u6C5F\u5E02","\u5929\u95E8\u5E02","\u795E\u519C\u67B6\u6797\u533A"]],["430000",["\u957F\u6C99\u5E02","\u682A\u6D32\u5E02","\u6E58\u6F6D\u5E02","\u8861\u9633\u5E02","\u90B5\u9633\u5E02","\u5CB3\u9633\u5E02","\u5E38\u5FB7\u5E02","\u5F20\u5BB6\u754C\u5E02","\u76CA\u9633\u5E02","\u90F4\u5DDE\u5E02","\u6C38\u5DDE\u5E02","\u6000\u5316\u5E02","\u5A04\u5E95\u5E02","\u6E58\u897F\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE"]],["440000",["\u5E7F\u5DDE\u5E02","\u97F6\u5173\u5E02","\u6DF1\u5733\u5E02","\u73E0\u6D77\u5E02","\u6C55\u5934\u5E02","\u4F5B\u5C71\u5E02","\u6C5F\u95E8\u5E02","\u6E5B\u6C5F\u5E02","\u8302\u540D\u5E02","\u8087\u5E86\u5E02","\u60E0\u5DDE\u5E02","\u6885\u5DDE\u5E02","\u6C55\u5C3E\u5E02","\u6CB3\u6E90\u5E02","\u9633\u6C5F\u5E02","\u6E05\u8FDC\u5E02","\u4E1C\u839E\u5E02","\u4E2D\u5C71\u5E02","\u6F6E\u5DDE\u5E02","\u63ED\u9633\u5E02","\u4E91\u6D6E\u5E02"]],["450000",["\u5357\u5B81\u5E02","\u67F3\u5DDE\u5E02","\u6842\u6797\u5E02","\u68A7\u5DDE\u5E02","\u5317\u6D77\u5E02","\u9632\u57CE\u6E2F\u5E02","\u94A6\u5DDE\u5E02","\u8D35\u6E2F\u5E02","\u7389\u6797\u5E02","\u767E\u8272\u5E02","\u8D3A\u5DDE\u5E02","\u6CB3\u6C60\u5E02","\u6765\u5BBE\u5E02","\u5D07\u5DE6\u5E02"]],["460000",["\u6D77\u53E3\u5E02","\u4E09\u4E9A\u5E02","\u4E09\u6C99\u5E02","\u510B\u5DDE\u5E02","\u4E94\u6307\u5C71\u5E02","\u743C\u6D77\u5E02","\u6587\u660C\u5E02","\u4E07\u5B81\u5E02","\u4E1C\u65B9\u5E02","\u5B9A\u5B89\u53BF","\u5C6F\u660C\u53BF","\u6F84\u8FC8\u53BF","\u4E34\u9AD8\u53BF","\u767D\u6C99\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u660C\u6C5F\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u4E50\u4E1C\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u9675\u6C34\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u4FDD\u4EAD\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF","\u743C\u4E2D\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF"]],["500000",["\u4E07\u5DDE\u533A","\u6DAA\u9675\u533A","\u6E1D\u4E2D\u533A","\u5927\u6E21\u53E3\u533A","\u6C5F\u5317\u533A","\u6C99\u576A\u575D\u533A","\u4E5D\u9F99\u5761\u533A","\u5357\u5CB8\u533A","\u5317\u789A\u533A","\u7DA6\u6C5F\u533A","\u5927\u8DB3\u533A","\u6E1D\u5317\u533A","\u5DF4\u5357\u533A","\u9ED4\u6C5F\u533A","\u957F\u5BFF\u533A","\u6C5F\u6D25\u533A","\u5408\u5DDD\u533A","\u6C38\u5DDD\u533A","\u5357\u5DDD\u533A","\u74A7\u5C71\u533A","\u94DC\u6881\u533A","\u6F7C\u5357\u533A","\u8363\u660C\u533A","\u5F00\u5DDE\u533A","\u6881\u5E73\u533A","\u6B66\u9686\u533A","\u57CE\u53E3\u53BF","\u4E30\u90FD\u53BF","\u57AB\u6C5F\u53BF","\u5FE0\u53BF","\u4E91\u9633\u53BF","\u5949\u8282\u53BF","\u5DEB\u5C71\u53BF","\u5DEB\u6EAA\u53BF","\u77F3\u67F1\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF","\u79C0\u5C71\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF","\u9149\u9633\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF","\u5F6D\u6C34\u82D7\u65CF\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF"]],["510000",["\u6210\u90FD\u5E02","\u81EA\u8D21\u5E02","\u6500\u679D\u82B1\u5E02","\u6CF8\u5DDE\u5E02","\u5FB7\u9633\u5E02","\u7EF5\u9633\u5E02","\u5E7F\u5143\u5E02","\u9042\u5B81\u5E02","\u5185\u6C5F\u5E02","\u4E50\u5C71\u5E02","\u5357\u5145\u5E02","\u7709\u5C71\u5E02","\u5B9C\u5BBE\u5E02","\u5E7F\u5B89\u5E02","\u8FBE\u5DDE\u5E02","\u96C5\u5B89\u5E02","\u5DF4\u4E2D\u5E02","\u8D44\u9633\u5E02","\u963F\u575D\u85CF\u65CF\u7F8C\u65CF\u81EA\u6CBB\u5DDE","\u7518\u5B5C\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u51C9\u5C71\u5F5D\u65CF\u81EA\u6CBB\u5DDE"]],["520000",["\u8D35\u9633\u5E02","\u516D\u76D8\u6C34\u5E02","\u9075\u4E49\u5E02","\u5B89\u987A\u5E02","\u6BD5\u8282\u5E02","\u94DC\u4EC1\u5E02","\u9ED4\u897F\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE","\u9ED4\u4E1C\u5357\u82D7\u65CF\u4F97\u65CF\u81EA\u6CBB\u5DDE","\u9ED4\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE"]],["530000",["\u6606\u660E\u5E02","\u66F2\u9756\u5E02","\u7389\u6EAA\u5E02","\u4FDD\u5C71\u5E02","\u662D\u901A\u5E02","\u4E3D\u6C5F\u5E02","\u666E\u6D31\u5E02","\u4E34\u6CA7\u5E02","\u695A\u96C4\u5F5D\u65CF\u81EA\u6CBB\u5DDE","\u7EA2\u6CB3\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u5DDE","\u6587\u5C71\u58EE\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE","\u897F\u53CC\u7248\u7EB3\u50A3\u65CF\u81EA\u6CBB\u5DDE","\u5927\u7406\u767D\u65CF\u81EA\u6CBB\u5DDE","\u5FB7\u5B8F\u50A3\u65CF\u666F\u9887\u65CF\u81EA\u6CBB\u5DDE","\u6012\u6C5F\u5088\u50F3\u65CF\u81EA\u6CBB\u5DDE","\u8FEA\u5E86\u85CF\u65CF\u81EA\u6CBB\u5DDE"]],["540000",["\u62C9\u8428\u5E02","\u65E5\u5580\u5219\u5E02","\u660C\u90FD\u5E02","\u6797\u829D\u5E02","\u5C71\u5357\u5E02","\u90A3\u66F2\u5E02","\u963F\u91CC\u5730\u533A"]],["610000",["\u897F\u5B89\u5E02","\u94DC\u5DDD\u5E02","\u5B9D\u9E21\u5E02","\u54B8\u9633\u5E02","\u6E2D\u5357\u5E02","\u5EF6\u5B89\u5E02","\u6C49\u4E2D\u5E02","\u6986\u6797\u5E02","\u5B89\u5EB7\u5E02","\u5546\u6D1B\u5E02"]],["620000",["\u5170\u5DDE\u5E02","\u5609\u5CEA\u5173\u5E02","\u91D1\u660C\u5E02","\u767D\u94F6\u5E02","\u5929\u6C34\u5E02","\u6B66\u5A01\u5E02","\u5F20\u6396\u5E02","\u5E73\u51C9\u5E02","\u9152\u6CC9\u5E02","\u5E86\u9633\u5E02","\u5B9A\u897F\u5E02","\u9647\u5357\u5E02","\u4E34\u590F\u56DE\u65CF\u81EA\u6CBB\u5DDE","\u7518\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE"]],["630000",["\u897F\u5B81\u5E02","\u6D77\u4E1C\u5E02","\u6D77\u5317\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u9EC4\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u6D77\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u679C\u6D1B\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u7389\u6811\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u6D77\u897F\u8499\u53E4\u65CF\u85CF\u65CF\u81EA\u6CBB\u5DDE"]],["640000",["\u94F6\u5DDD\u5E02","\u77F3\u5634\u5C71\u5E02","\u5434\u5FE0\u5E02","\u56FA\u539F\u5E02","\u4E2D\u536B\u5E02"]],["650000",["\u4E4C\u9C81\u6728\u9F50\u5E02","\u514B\u62C9\u739B\u4F9D\u5E02","\u5410\u9C81\u756A\u5E02","\u54C8\u5BC6\u5E02","\u660C\u5409\u56DE\u65CF\u81EA\u6CBB\u5DDE","\u535A\u5C14\u5854\u62C9\u8499\u53E4\u81EA\u6CBB\u5DDE","\u5DF4\u97F3\u90ED\u695E\u8499\u53E4\u81EA\u6CBB\u5DDE","\u963F\u514B\u82CF\u5730\u533A","\u514B\u5B5C\u52D2\u82CF\u67EF\u5C14\u514B\u5B5C\u81EA\u6CBB\u5DDE","\u5580\u4EC0\u5730\u533A","\u548C\u7530\u5730\u533A","\u4F0A\u7281\u54C8\u8428\u514B\u81EA\u6CBB\u5DDE","\u5854\u57CE\u5730\u533A","\u963F\u52D2\u6CF0\u5730\u533A","\u77F3\u6CB3\u5B50\u5E02","\u963F\u62C9\u5C14\u5E02","\u56FE\u6728\u8212\u514B\u5E02","\u4E94\u5BB6\u6E20\u5E02","\u5317\u5C6F\u5E02","\u94C1\u95E8\u5173\u5E02","\u53CC\u6CB3\u5E02","\u53EF\u514B\u8FBE\u62C9\u5E02","\u6606\u7389\u5E02","\u80E1\u6768\u6CB3\u5E02"]],["710000",["\u8FDE\u6C5F\u53BF","\u5B9C\u5170\u53BF","\u5F70\u5316\u53BF","\u5357\u6295\u53BF","\u4E91\u6797\u53BF","\u57FA\u9686\u5E02","\u53F0\u5317\u5E02","\u65B0\u5317\u5E02","\u53F0\u4E2D\u5E02","\u53F0\u5357\u5E02","\u6843\u56ED\u5E02","\u82D7\u6817\u53BF","\u5609\u4E49\u5E02","\u5609\u4E49\u53BF","\u91D1\u95E8\u53BF","\u9AD8\u96C4\u5E02","\u53F0\u4E1C\u53BF","\u82B1\u83B2\u53BF","\u6F8E\u6E56\u53BF","\u65B0\u7AF9\u5E02","\u65B0\u7AF9\u53BF","\u5C4F\u4E1C\u53BF"]],["810000",["\u4E2D\u897F\u533A","\u6E7E\u4ED4\u533A","\u4E1C\u533A","\u5357\u533A","\u6CB9\u5C16\u65FA\u533A","\u6DF1\u6C34\u57D7\u533A","\u4E5D\u9F99\u57CE\u533A","\u9EC4\u5927\u4ED9\u533A","\u89C2\u5858\u533A","\u8343\u6E7E\u533A","\u5C6F\u95E8\u533A","\u5143\u6717\u533A","\u5317\u533A","\u5927\u57D4\u533A","\u897F\u8D21\u533A","\u6C99\u7530\u533A","\u8475\u9752\u533A","\u79BB\u5C9B\u533A"]],["820000",["\u82B1\u5730\u739B\u5802\u533A","\u82B1\u738B\u5802\u533A","\u671B\u5FB7\u5802\u533A","\u5927\u5802\u533A","\u98CE\u987A\u5802\u533A","\u5609\u6A21\u5802\u533A","\u8DEF\u51FC\u586B\u6D77\u533A","\u5723\u65B9\u6D4E\u5404\u5802\u533A"]]]),I=[4210607103,4292934911,3655729151,3657423359,4293315839,4291611903,3771858943,3102928383,3773935359,3522494463]},32286:(oe,Ct,T)=>{"use strict";T.d(Ct,{L:()=>z});var F=T(5209),Z=T(19396),I=T.n(Z);const z=I()(D=>{D&&(0,F.kH)("Shortcut_key_use_V8",{type:D})},5e3)},33843:(oe,Ct,T)=>{"use strict";T.d(Ct,{o:()=>z,q:()=>ot});var F=T(8783),Z=T(75810),I=T(78689);const z=S=>{const O=S[0].data.map((q,ft)=>S.map(K=>K.data[ft]));let $=0;for(let q=0;q<O.length;q++)if(!O[q].every(K=>!K)){$=q;break}return S.map(q=>{const ft=q.data.slice($);return{...q,data:ft.map((K,it)=>it===ft.length-1?Number(K):String(K))}})},D=S=>z(S).filter($=>{const q=$.data,ft=q.length,K=!q[0];if(isNaN(q[ft-1])||q[ft-1]<=0||K)return!1;const nt=q.slice(0,ft-1);if(nt.every(at=>!at))return!1;let vt=!1;for(let at=0;at<nt.length-1;at++){const et=nt.slice(at+1,ft-1);if(!nt[at]&&et.some(yt=>yt)){vt=!0;break}}return!vt}),V=S=>{let{name:O,depth:$,data:q,maxDepth:ft,theme:K,color:it=void 0,index:nt=0}=S;const vt=O==="root"?q:O?q.filter(rt=>rt.data[$]===O):[],et=(rt=>{const ct=new Map,G=[];return rt.forEach(B=>{ct.has(B.data[$+1])||(ct.set(B.data[$+1],!0),G.push(B))}),G})(vt),yt=O==="root"?void 0:it;return{name:O,children:$+1===ft?[]:et.map((rt,ct)=>{const G=yt||(0,Z.qy)((0,F.tp)({theme:K,color:rt==null?void 0:rt.color,index:ct}));return V({name:rt.data[$+1],depth:$+1,data:vt,maxDepth:ft,theme:K,color:G,index:ct})}),value:vt.reduce((rt,ct)=>rt+Number(ct.data[ct.data.length-1]),0),itemStyle:{color:yt,opacity:Math.max(.2*(5-$),.2)}}},ht=(S,O)=>{const $=D(S);return $!=null&&$.length?V({name:"root",depth:-1,data:$,maxDepth:$[0].data.length-1,theme:O}).children:[]},ot=S=>{let{data:O,theme:$,borderRadius:q,labelText:ft,labelNumber:K,unit:it}=S;const nt=ht(O,$),vt=ft.isVisible?(0,F.$y)(ft.textStyle).textStyle:{},at=K.isVisible?(0,F.$y)(K.textStyle).textStyle:{},{prefixStr:et,suffixStr:yt}=(0,I.I)(it);return{type:"sunburst",data:nt,radius:[0,"90%"],emphasis:{focus:"ancestor"},label:{show:!0,rotate:"radial",formatter:function(rt){const ct=ft.isVisible?K.isVisible?rt.name+":":rt.name:"",G=K.isVisible?et+rt.value+yt:"";return"{name|"+ct+"} {value|"+G+"}"},rich:{name:{...vt},value:{...at}}},itemStyle:{borderRadius:q}}}},33908:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>ft});var F=T(38502),Z=T(18381),I=T(62587),z=T(20089),D=T(67787);const V=D.Ay.div.withConfig({displayName:"styles__StyledStickyShellDiv",componentId:"sc-f82b4x-0"})(["display:flex;flex-direction:column;border-radius:4px;border:1px solid ",";overflow:hidden;.header{flex-shrink:0;width:100%;height:20px;padding:0 12px;position:relative;line-height:20px;color:#333333;font-size:12px;font-weight:500;background-color:",";}.footer{margin-top:-1px;font-size:12px;line-height:16px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;padding:0px 12px 12px 12px;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"],K=>K.bgColor,K=>K.bgColor);var ht=T(79287),ot=T.n(ht),S=T(70933),O=T(16454),$=T(72214);const ft=K=>{var it;const{widget:nt,children:vt,isEditingArea:at,hasPositionStyle:et=!0,mode:yt}=K,rt=(0,I.n7)(nt),{w:ct,h:G,order:B,type:W,info:ut}=nt,{showAuthor:H,showTime:N,author:Y,time:gt,authorCid:pt}=ut,Tt=gt?ot()(Number(gt)).format("YYYY.MM.DD"):"",mt=!yt||yt==="snapshot"?(it=MB.currentOrg)==null?void 0:it.members:(0,Z.d4)(yt==="preview"?O.$5:S.$5),lt=(0,F.useMemo)(()=>{if(pt){if(mt){var At;const jt=mt==null||(At=mt.find(Nt=>Nt.user_cid===pt))==null?void 0:At.name;if(jt)return jt}if(MB.user.cid===pt&&MB.user.name)return MB.user.name}return Y},[mt,Y,pt]),A=W===z.x.WTear||at,kt=W===z.x.WSticky&&at,Mt={...et?{position:"absolute",top:0,left:0}:{},width:ct+"px",height:A?void 0:G+"px",minHeight:kt?G+"px":void 0,boxShadow:W===z.x.WTear?"0px 2.4px 4.8px 0px rgba(0, 0, 0, 0.2)":"",fontFamily:"PingFangSC"};return(0,$.jsxs)(V,{style:Mt,bgColor:rt,children:[(0,$.jsx)("header",{className:"header",children:W!==z.x.WTear?B:""}),vt,(H||N)&&(0,$.jsxs)("div",{className:"footer",children:[H&&(0,$.jsx)("span",{className:"username",children:lt}),N&&(0,$.jsx)("span",{children:Tt})]})]})}},34165:(oe,Ct,T)=>{"use strict";T.d(Ct,{AO:()=>D});const F=4294967295,Z=4,I=new ArrayBuffer(0),z=K=>{const it=K.byteLength;if(it>4294967295)throw new Error("headerArrayBuffer exceeds max size 4294967295, get: "+it);const nt=new DataView(new ArrayBuffer(4));return nt.setUint32(0,it,!1),[nt.buffer,K]},D=K=>{const it=new DataView(K,0,4).getUint32(0,!1);return[K.slice(4,4+it),4+it]},V=function(K,it){return it===void 0&&(it=I),concatArrayBuffer([...z(encodeUTF8(K).buffer),it])},ht=K=>{const[it,nt]=D(K);return[decodeUTF8(it),K.slice(nt)]},ot=function(K,it){return it===void 0&&(it=I),concatArrayBuffer([...z(fromU16String(K)),it])},S=K=>{const[it,nt]=D(K);return[toU16String(it),K.slice(nt)]},O=function(K){K===void 0&&(K=[]);const it=new DataView(new ArrayBuffer(4*K.length));return K.forEach((nt,vt)=>{let{byteLength:at}=nt;return it.setUint32(4*vt,at,!1)}),concatArrayBuffer([...z(it.buffer),...K])},$=K=>{const[it,nt]=D(K),vt=new DataView(it),at=[];for(let et=0,yt=vt.byteLength/4;et<yt;et++)at.push(vt.getUint32(4*et,!1));return deconcatArrayBuffer(K,at,nt)},q=K=>{const it=[];for(const nt of K){const vt=nt.byteLength;if(vt>4294967295)throw new Error("arrayBuffer exceeds max size 4294967295, get: "+vt);const at=new DataView(new ArrayBuffer(4));at.setUint32(0,vt,!1),it.push(at.buffer,nt)}return concatArrayBuffer(it)},ft=K=>{const it=[];let nt=0;for(;nt<K.byteLength;){const vt=new DataView(K.slice(nt,nt+4)).getUint32(0,!1);it.push(K.slice(nt+4,nt+4+vt)),nt+=4+vt}return it}},34697:(oe,Ct,T)=>{"use strict";T.d(Ct,{LZ:()=>ot,M8:()=>D,dr:()=>I,eB:()=>z,iv:()=>S,or:()=>O,vA:()=>ht,x$:()=>V});var F=T(7198),Z=T(57479);const I={DEFAULT:0,RAINBOW:1,RETRO:2,YOUTH:3,CLASSICAL:4,DARK:5};let z=function($){return $.SAME_LEVEL="same_level",$.CHILD_LEVEL="child_level",$}({}),D=function($){return $.UP="up",$.DOWN="down",$.LEFT="left",$.RIGHT="right",$}({});const V={[I.DEFAULT]:2,[I.RAINBOW]:2,[I.RETRO]:3,[I.YOUTH]:3,[I.CLASSICAL]:3,[I.DARK]:3},ht={[I.DEFAULT]:2,[I.RAINBOW]:2,[I.RETRO]:2,[I.YOUTH]:2,[I.CLASSICAL]:2,[I.DARK]:2},ot=["#EB5E5B","#F2B74B","#4AABEE","#EA8F49","#54B7AF","#8DB75B","#E86069","#CC559A","#B055BE","#6E4FBE","#3780BF","#4260BC","#377A81"],S=$=>({keys:{tab:()=>$({type:"entry:mind:add:node-mind",payload:{type:z.CHILD_LEVEL}}),ins:()=>$({type:"entry:mind:add:node-mind",payload:{type:z.CHILD_LEVEL}}),del:()=>$({type:"entry:mind:del:selected:node-mind"}),backspace:()=>$({type:"entry:mind:del:selected:node-mind"}),enter:()=>$({type:"entry:mind:add:node-mind",payload:{type:z.SAME_LEVEL}}),"command+c":()=>{$({type:"entry:mind:copy:selected:node-mind"})},"ctrl+c":()=>{$({type:"entry:mind:copy:selected:node-mind"})},"ctrl+x":()=>$({type:"entry:mind:cut:node"}),"command+x":()=>$({type:"entry:mind:cut:node"}),"command+alt+v":()=>{$({type:"entry:mind:paste:node:properties"})},"ctrl+d":()=>{},"command+d":()=>{},"ctrl+alt+v":()=>{$({type:"entry:mind:paste:node:properties"})},space:()=>{$({type:"entry:mind:enter:text:editing",payload:{isSelectAll:!1}})},up:()=>{$({type:"entry:mind:arrow:key",payload:{direction:D.UP}})},down:()=>{$({type:"entry:mind:arrow:key",payload:{direction:D.DOWN}})},left:()=>{$({type:"entry:mind:arrow:key",payload:{direction:D.LEFT}})},right:()=>{$({type:"entry:mind:arrow:key",payload:{direction:D.RIGHT}})}},priority:F.zu.Mode}),O=($,q)=>{const ft=$.ctrlKey||$.metaKey,K=$.altKey,it=$.shiftKey;let nt=!0;switch($.keyCode){case Z.Ju.Tab:case Z.Ju.Insert:q&&q({type:"entry:mind:add:node-mind",payload:{type:z.CHILD_LEVEL}});break;case Z.Ju.Delete:case Z.Ju.Backspace:q&&q({type:"entry:mind:del:selected:node-mind"});break;case Z.Ju.Enter:q&&q({type:"entry:mind:add:node-mind",payload:{type:z.SAME_LEVEL}});break;case Z.Ju.C:ft?q&&q({type:"entry:mind:copy:selected:node-mind"}):nt=!1;break;case Z.Ju.X:ft?q&&q({type:"entry:mind:cut:node"}):nt=!1;break;case Z.Ju.V:ft&&K?q&&q({type:"entry:mind:paste:node:properties"}):nt=!1;break;case Z.Ju.Space:q&&q({type:"entry:mind:enter:text:editing",payload:{isSelectAll:!1}});break;case Z.Ju.Left:q&&q({type:"entry:mind:arrow:key",payload:{direction:D.LEFT}});break;case Z.Ju.Up:q&&q({type:"entry:mind:arrow:key",payload:{direction:D.UP}});break;case Z.Ju.Right:q&&q({type:"entry:mind:arrow:key",payload:{direction:D.RIGHT}});break;case Z.Ju.Down:q&&q({type:"entry:mind:arrow:key",payload:{direction:D.DOWN}});break;case Z.Ju.B:ft?q&&q({type:"entry:set:text:attr:by:key",payload:{attr:"boldType"}}):nt=!1;break;case Z.Ju.I:ft?q&&q({type:"entry:set:text:attr:by:key",payload:{attr:"italic"}}):nt=!1;break;case Z.Ju.U:ft?q&&q({type:"entry:set:text:attr:by:key",payload:{attr:"underline"}}):nt=!1;break;case Z.Ju.S:ft&&it?q&&q({type:"entry:set:text:attr:by:key",payload:{attr:"lineThrough"}}):nt=!1;break;case Z.Ju.Period:ft&&it?q&&q({type:"entry:set:text:attr:by:key",payload:{attr:"fontSize",action:"increase"}}):nt=!1;break;case Z.Ju.Comma:ft&&it?q&&q({type:"entry:set:text:attr:by:key",payload:{attr:"fontSize",action:"decrease"}}):nt=!1;break;case Z.Ju.F:ft?q&&q({type:"entry:findReplacePanel:toggle:show"}):nt=!1;break;case Z.Ju.Z:ft?it?q&&q({type:"entry:undo-stack:redo"}):q&&q({type:"entry:undo-stack:undo"}):nt=!1;break;default:nt=!1;break}return nt}},35639:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>et});var F=T(38502),Z=T(53732),I=T.n(Z),z=T(15186),D=T(67787),V=T(92598),ht=T(24041),ot=T(69212);const S=yt=>{let{isRenderScroll:rt,canvasKey:ct,deviceScroll:G,isPanelPreviewMode:B,transitionState:W}=yt;useEffect(()=>{if(!rt)return MB.runnerController.destroyScrollBarByCid(ct);const ut=G==="hide"&&!B,H=["auto","horizontal","hide"].includes(G),N=["auto","vertical","hide"].includes(G),Y={scrollX:B?!0:H,scrollY:B?!0:N,scrollbars:B?G!=="hide":!0,fadeScrollbars:B?G==="hide":!0,mouseWheel:B?G!=="hide":!0};MB.runnerController.renderScrollbar(ct,Y),ut&&MB.runnerController.disableScrollBar(ct)},[ct,G,B,W,rt]),useEffect(()=>()=>{MB.runnerController.destroyScrollBarByCid(ct)},[ct])},O=yt=>{let{canvasKey:rt,canvasNode:ct,sdkStore:G,headerEle:B,footerEle:W}=yt;const ut=(0,F.useRef)([]),H=(0,F.useRef)([]);return(0,F.useMemo)(()=>{const N=[],Y=[];let gt=[];if(ct){const{h:pt,stickyHeaderHeight:Tt,stickyFooterHeight:mt}=ct.hotAttr;gt=G.getRenderableSubHotItems(rt);const lt=Tt>0||mt>0;gt.forEach(A=>{if(lt){var kt;const _t=(0,ht.gg)(A.hotAttr);_t&&G.overwriteItem({key:A.key,hotAttr:_t});const Mt=(0,ht.Zt)(G,A);if(_t){const jt=G._getOriginHotItem(A.key),Nt={...A.hotAttr.r!==void 0&&{r:jt.hotAttr.r},...A.hotAttr.w!==void 0&&{w:jt.hotAttr.w},...A.hotAttr.h!==void 0&&{h:jt.hotAttr.h},...A.hotAttr.x!==void 0&&{x:jt.hotAttr.x},...A.hotAttr.y!==void 0&&{y:jt.hotAttr.y}};G.overwriteItem({key:A.key,hotAttr:Nt})}if(!Mt)return;Tt>0&&Mt[1]<Tt&&N.push(A),mt>0&&pt<Mt[3]+mt&&Y.push(A);const At=G.getWidgetTransformRecords(A.key);if((kt=A.hotAttr)!=null&&kt.runnerTransform&&(At==null?void 0:At.duration)>0){const jt=ut.current.find(tt=>tt.key===A.key),Nt=N.find(tt=>tt.key===A.key),Vt=H.current.find(tt=>tt.key===A.key),Wt=Y.find(tt=>tt.key===A.key);let Ot,Dt;const Ht=()=>requestAnimationFrame(()=>G.triggerSnapshotChange([rt,A.key],!0));At!=null&&At.disableCallback||(!jt&&Nt&&(Ot=()=>{(B==null?void 0:B.querySelector('.tree-node[data-cid="'+A.key+'"]'))&&requestAnimationFrame(()=>{Ht(),G.setWidgetTransformRecords(A.key,{disableCallback:void 0})})}),!Vt&&Wt&&(Ot=()=>{(W==null?void 0:W.querySelector('.tree-node[data-cid="'+A.key+'"]'))&&requestAnimationFrame(()=>{Ht(),G.setWidgetTransformRecords(A.key,{disableCallback:void 0})})})),jt&&!Nt&&(N.push(A),Ot||(Dt=Ht)),Vt&&!Wt&&(Y.push(A),Ot||(Dt=Ht)),Ot&&G.setWidgetTransformRecords(A.key,{disableCallback:Ot}),Dt&&G.setWidgetTransformRecords(A.key,{completeCallback:Dt})}}})}return ut.current=N,H.current=Y,[N,Y]},[G,ct])};var $=T(68033),q=T(72214);const ft=yt=>{const{canvasKey:rt,deviceScroll:ct="",isRenderScroll:G,showScrollBar:B,canvasRef:W,isMainScreenScrollBasket:ut,onTransitionEnd:H}=yt,N=(0,ot.f)(),{sdkStore:Y,isPanelPreviewMode:gt}=N,pt=yt.transition||N.transition||{},{name:Tt,duration:mt,callback:lt}=pt,[A,kt]=(0,F.useState)(ht.qu.finish),_t=(0,F.useRef)(rt),Mt=(0,F.useRef)(A),At=(0,F.useRef)(),jt=Tt==="auto"&&mt>0,Nt=(0,F.useRef)(pt),Vt=(0,F.useRef)(H);Nt.current=pt,Vt.current=H;const Wt=(0,F.useRef)(!1);if((0,F.useEffect)(()=>{if(!G)return MB.runnerController.destroyScrollBarByCid(rt);if(A===ht.qu.prepare)return;const Le=ct==="hide",Oe=["auto","hide","horizontal"].includes(ct),Ke=["auto","hide","vertical"].includes(ct);let Qe=!0,hr=!0;Le||B===$.zJ.hide?(Qe=!1,hr=!1):B===$.zJ.show?(Qe=!0,hr=!1):(Qe=!0,hr=!0);let Fe;if(ut){var yr,fr;Fe="screenContent",W!=null&&(yr=W.current)!=null&&yr.closest(".screen-header")&&(Fe="screenHeader"),W!=null&&(fr=W.current)!=null&&fr.closest(".screen-footer")&&(Fe="screenFooter")}const Ar={scrollX:Oe,scrollY:Ke,scrollbars:Qe,fadeScrollbars:hr,mouseWheel:!0,...Fe?{basketFromScreenPartSet:new Set([Fe])}:void 0};return MB.runnerController.renderScrollbar(rt,Ar),Le&&MB.runnerController.disableScrollBar(rt),()=>{MB.runnerController.destroyScrollBarByCid(rt,Fe)}},[rt,ct,B,A,G,ut,W]),(0,F.useEffect)(()=>()=>{clearTimeout(At.current),Y.deleteTransitionScope(_t.current)},[Y]),(0,F.useEffect)(()=>{const{mainCanvasKey:Le,overlayCanvasKeys:Oe,basketCanvasKeys:Ke}=MB.runnerController.getAllActiveKeys();if([Le,...Oe,...Ke].includes(rt)){if(!Wt.current){if(Wt.current=!0,Nt.current.name==="none"||!Nt.current.delay){var Qe;(Qe=Vt.current)==null||Qe.call(Vt),MB.runnerController.execTimerEventCallbackSet(rt)}return}if((!jt||A===ht.qu.animate)&&MB.runnerController.execTimerEventCallbackSet(rt),A===ht.qu.finish){var hr;(hr=Vt.current)==null||hr.call(Vt)}}},[rt,N.activeCanvasKey,A,jt]),rt&&rt!==_t.current){const Le=jt?ht.qu.prepare:ht.qu.finish;clearTimeout(At.current),kt(Le),Y.deleteTransitionScope(_t.current),jt&&Y.recordTransitionScope(_t.current,rt),_t.current=rt}Mt.current!==A&&(jt&&Y.setScopeTransitionState(rt,A,mt),A===ht.qu.prepare?At.current=setTimeout(()=>requestAnimationFrame(()=>{kt(ht.qu.animate)}),0):A===ht.qu.animate&&(At.current=setTimeout(()=>{kt(ht.qu.finish);const Le=setTimeout(()=>{Y.deleteTransitionScope(rt),clearTimeout(Le)})},mt)),Mt.current=A);const Ot=rt?Y.getTransitionHotItem(rt):null,Dt=(0,F.useRef)(null),Ht=(0,F.useRef)(null),[tt,Pt]=O({canvasKey:rt,canvasNode:Ot,sdkStore:Y,headerEle:Dt.current,footerEle:Ht.current});if(!Ot)return null;const{w:zt,h:te,fill:$t,stickyHeaderHeight:ae,stickyFooterHeight:Xt,asOverlay:ve,isVisible:Se}=Ot.hotAttr,Ee={height:te-(ae+Xt),width:zt,...$t.fillIsVisible&&!ve&&gt&&Se&&"solidColor"in $t&&{backgroundColor:(0,z.t0)($t.solidColor)}},ke={height:te,marginTop:gt?0:-ae};return(0,q.jsxs)(q.Fragment,{children:[Se&&ae>0&&(0,q.jsx)("div",{ref:Dt,className:"screen-header",style:{height:ae},children:tt.map(Le=>(0,q.jsx)(V.o,{hotItem:Le,mode:"preview"},Le.key))}),(0,q.jsx)("div",{className:"screen-content",children:(0,q.jsx)("div",{className:"widgets",style:Ee,children:(0,q.jsx)("div",{className:"scontainer",style:ke,children:(0,q.jsx)(V.o,{hotItem:Ot,mode:"preview"},rt)})})}),Se&&Xt>0&&(0,q.jsx)("div",{ref:Ht,className:"screen-footer",style:{height:Xt},children:(0,q.jsx)("div",{className:"footer-widgets",style:{transform:"translateY("+(Xt-te)+"px)"},children:Pt.map(Le=>(0,q.jsx)(V.o,{hotItem:Le,mode:"preview"},Le.key))})}),A<ht.qu.finish&&mt&&(0,q.jsx)(K,{canvasKey:rt,duration:mt})]})},K=(0,D.DU)(['.pcanvas,.pstate{&[data-cid="','"]{.tree-node,.widget,.group,.panel{transition:all ',"ms linear,z-index 0s linear;}}}"],yt=>yt.canvasKey,yt=>yt.duration),it=ft;var nt=T(77670),vt=T(20089);const at=yt=>{const{pageKey:rt,canvasKey:ct,isShow:G,isActive:B,style:W,transition:ut,inOverlay:H=!1,onTransitionEnd:N}=yt,{sdkStore:Y,isPanelPreviewMode:gt,panelPreviewBasketKey:pt}=(0,ot.f)(),Tt=gt&&pt?pt:rt,{name:mt,delay:lt=0,duration:A=0}=ut||{},[kt,_t]=(0,F.useState)(Y.getSnapshotItem(ct)),Mt=Y.getHotItem(rt),At=(0,F.useRef)(null),jt=(W==null?void 0:W.display)==="none",Nt=(0,F.useRef)(null),Vt=(0,F.useCallback)(()=>{var ve;(ve=Nt.current)==null||ve.call(Nt),Nt.current=At.current&&MB.runnerController.initMouseEventHandler(At.current)},[]);if((0,F.useEffect)(()=>(Vt(),()=>{var ve;(ve=Nt.current)==null||ve.call(Nt)}),[]),(0,F.useEffect)(()=>{Vt(),_t(Y.getSnapshotItem(ct));const ve=Y.externalSubscribe(Se=>{Se!=null&&Se.includes(ct)&&_t(Y.getSnapshotItem(ct))});return()=>{ve()}},[Y,Tt,ct]),(0,F.useEffect)(()=>{if(!kt||jt)return;const ve=kt.key,Se=[];kt.sub.filter(we=>{var Ee;if(((Ee=Y.getSnapshotItem(we))==null?void 0:Ee.hotAttr.fixPosTo)==="sticky"){var ke;const Le=(ke=At.current)==null?void 0:ke.querySelectorAll('.widget[data-cid="'+we+'"]');Le==null||Le.forEach(Oe=>Se.push(Oe))}}),MB.runnerController.scrollHandler.updateStickyWidgetList(ve,Se),MB.runnerController.scrollHandler.updateStickyBehavior(ve),setTimeout(Vt,lt+A+100)},[kt,jt]),!kt||!Y.isActiveKey(ct))return null;const{hotAttr:{fill:Wt,orientation:Ot,asOverlay:Dt,isVisible:Ht}}=kt;let{deviceScroll:tt}=Mt.hotAttr,Pt={display:G?"":"none",...Wt.fillIsVisible&&!Dt&&!gt&&Ht&&{backgroundColor:(0,z.t0)(Wt.solidColor)},...W,opacity:Ht?1:0};mt==="auto"&&(Pt.transition="all "+A+"ms linear, z-index 0s linear");let zt,te;Mt.hotAttr.type===vt.x.WBasket?zt=Mt:gt&&pt&&(zt=Y.getHotItem(pt)),zt&&(tt=$.F1[zt.hotAttr.scroll],te=zt.hotAttr.showScrollBar,Pt={...Pt,top:0,left:0});const $t=!!(zt&&!gt),ae=I()("pcanvas",Ot,{active:B,"as-overlay":Dt,"in-overlay":H}),Xt=B&&Pt.display!=="none";return(0,q.jsx)(nt.mt,{id:"pscreen"+ct,"data-cid":ct,"data-orientation":Ot,className:ae,style:Pt,ref:At,children:(0,q.jsx)(it,{canvasKey:ct,canvasRef:At,isRenderScroll:Xt,deviceScroll:tt,showScrollBar:te,transition:ut,isMainScreenScrollBasket:$t,onTransitionEnd:N})})},et=(0,F.memo)(at)},35862:(oe,Ct,T)=>{"use strict";T.d(Ct,{M:()=>B,a:()=>ut});var F=T(95549),Z=T(38502),I=T(18381),z=T(12211),D=T(79371),V=T.n(D),ht=T(53732),ot=T.n(ht),S=T(68818),O=T(39679),$=T(46745),q=T(86493),ft=T(70933),K=T(60651),it=T(4235),nt=T(66360),vt=T(78915),at=T(36449),et=T(69815),yt=T(42738),rt=T(72214);class ct extends Z.PureComponent{constructor(N){super(N),(0,F.A)(this,"editorRef",null),(0,F.A)(this,"setStickyHeight",V()(()=>{const{widget:{textV0:{padding:pt},h:Tt},widgetKey:mt,dispatch:lt}=this.props;let A=!1,kt=Tt;this.editorRef&&this.editorRef.editor&&this.editorRef.editor.editorContainer&&(kt=this.editorRef.editor.editorContainer.offsetHeight||0,kt=kt+(pt||0)*2,kt<100&&(kt=100),kt!==Tt&&kt>Tt&&(A=!0)),A&&lt({type:at.k.EntryKey["entry:draft:sticky:update"],payload:{key:mt,h:kt}})},500,{leading:!1,trailing:!0})),(0,F.A)(this,"_showPlaceholder",pt=>pt&&!this.state.editorState.isInCompositionMode()&&!this.state.editorState.getCurrentContent().hasText()),(0,F.A)(this,"onDoubleClick",pt=>{const{isPreview:Tt,dispatch:mt}=this.props,lt=document.elementFromPoint(pt.clientX,pt.clientY);lt.tagName==="IMG"&&mt(Tt?{type:"previewModal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:lt.src}}}:{type:"modal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:lt.src}}})});const{widget:{textV1:Y}}=N,gt=(0,q.mx)(Y);this.state={editorState:(0,$.n)(gt)}}componentDidUpdate(N){const{widget:{textV1:Y,w:gt,h:pt}}=N,{widget:{textV1:Tt,w:mt,h:lt},newSelection:A,editingCid:kt,widgetKey:_t}=this.props;if(!(0,O.eI)(Tt,Y)){const Mt=(0,q.mx)(Tt);this.setState({editorState:(0,$.n)(Mt)})}!A||!A.length||A.includes(_t)&&_t!==kt&&(mt!==gt||lt!==pt)&&this.setStickyHeight()}render(){var N;const{widget:Y,widgetKey:gt,viewType:pt,activeEntityKey:Tt,editingCid:mt,placeHolderColor:lt,onCopy:A,is4Tear:kt,placeHolder:_t,isContentCanSelect:Mt}=this.props,{editorState:At}=this.state,jt=(0,nt.Ot)(At),Nt=this._showPlaceholder(jt);let Vt=Mt!==void 0?Mt:pt==="only_view";!(0,S.FM)()&&!((N=MB)!=null&&(N=N.user)!=null&&N.cid)&&(Vt=!1);const Wt=Y["!haVersion"]===3&&!jt?Y.textV0.horizontalAlign:void 0,Ot=ot()("draft-editor-div",kt&&"wTear",pt!==vt.qi.OnlyView&&"text",gt===mt&&"active",Tt&&"active-"+Tt,Nt&&"show-placeholder",Vt&&"contentSelect","h-"+Wt);let Dt="";try{Dt=(0,et.d0)(Y,gt)}catch(Ht){}return(0,rt.jsx)(yt.w,{className:Ot,activeKey:Tt,placeHolderColor:lt,onCopy:A,onDoubleClick:this.onDoubleClick,children:(0,rt.jsx)("div",{className:"draft-common-editor-wrapper",children:(0,rt.jsx)("div",{className:"draft-common-editor",children:(0,rt.jsx)("div",{className:ot()("public-DraftEditor-content is-preview",{empty:jt}),"data-content":jt?_t||I18N.SettingPanel.design.input_annotations:"",dangerouslySetInnerHTML:{__html:Dt}})})})})}}const G=(0,z.Mz)([at.k.Query.getActiveEntityKey,it.p$,ft.lh,K.jx],(H,N,Y,gt)=>({activeEntityKey:H,newSelection:N,editingCid:Y,viewType:gt})),B=(0,I.Ng)(H=>G(H))(ct),W=(0,z.Mz)([at.k.Query.getActiveEntityKey,at.k.Query.getIsCreatingLink],(H,N)=>({activeEntityKey:H,isCreatingLink:N,viewType:"only_view"})),ut=(0,I.Ng)(H=>W(H))(ct)},36017:(oe,Ct,T)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.InnerSlider=void 0;var F=O(T(38502)),Z=O(T(43075)),I=O(T(57011)),z=O(T(53732)),D=T(11587),V=T(95652),ht=T(72795),ot=T(96265),S=O(T(85293));function O(pt){return pt&&pt.__esModule?pt:{default:pt}}function $(pt){"@babel/helpers - typeof";return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},$(pt)}function q(){return q=Object.assign?Object.assign.bind():function(pt){for(var Tt=1;Tt<arguments.length;Tt++){var mt=arguments[Tt];for(var lt in mt)({}).hasOwnProperty.call(mt,lt)&&(pt[lt]=mt[lt])}return pt},q.apply(null,arguments)}function ft(pt,Tt){if(pt==null)return{};var mt,lt,A=K(pt,Tt);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(pt);for(lt=0;lt<kt.length;lt++)mt=kt[lt],Tt.includes(mt)||{}.propertyIsEnumerable.call(pt,mt)&&(A[mt]=pt[mt])}return A}function K(pt,Tt){if(pt==null)return{};var mt={};for(var lt in pt)if({}.hasOwnProperty.call(pt,lt)){if(Tt.includes(lt))continue;mt[lt]=pt[lt]}return mt}function it(pt,Tt){var mt=Object.keys(pt);if(Object.getOwnPropertySymbols){var lt=Object.getOwnPropertySymbols(pt);Tt&&(lt=lt.filter(function(A){return Object.getOwnPropertyDescriptor(pt,A).enumerable})),mt.push.apply(mt,lt)}return mt}function nt(pt){for(var Tt=1;Tt<arguments.length;Tt++){var mt=arguments[Tt]!=null?arguments[Tt]:{};Tt%2?it(Object(mt),!0).forEach(function(lt){H(pt,lt,mt[lt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pt,Object.getOwnPropertyDescriptors(mt)):it(Object(mt)).forEach(function(lt){Object.defineProperty(pt,lt,Object.getOwnPropertyDescriptor(mt,lt))})}return pt}function vt(pt,Tt){if(!(pt instanceof Tt))throw new TypeError("Cannot call a class as a function")}function at(pt,Tt){for(var mt=0;mt<Tt.length;mt++){var lt=Tt[mt];lt.enumerable=lt.enumerable||!1,lt.configurable=!0,"value"in lt&&(lt.writable=!0),Object.defineProperty(pt,N(lt.key),lt)}}function et(pt,Tt,mt){return Tt&&at(pt.prototype,Tt),mt&&at(pt,mt),Object.defineProperty(pt,"prototype",{writable:!1}),pt}function yt(pt,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Super expression must either be null or a function");pt.prototype=Object.create(Tt&&Tt.prototype,{constructor:{value:pt,writable:!0,configurable:!0}}),Object.defineProperty(pt,"prototype",{writable:!1}),Tt&&rt(pt,Tt)}function rt(pt,Tt){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(mt,lt){return mt.__proto__=lt,mt},rt(pt,Tt)}function ct(pt){var Tt=W();return function(){var mt,lt=ut(pt);if(Tt){var A=ut(this).constructor;mt=Reflect.construct(lt,arguments,A)}else mt=lt.apply(this,arguments);return G(this,mt)}}function G(pt,Tt){if(Tt&&($(Tt)=="object"||typeof Tt=="function"))return Tt;if(Tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(pt)}function B(pt){if(pt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pt}function W(){try{var pt=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(Tt){}return(W=function(){return!!pt})()}function ut(pt){return ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Tt){return Tt.__proto__||Object.getPrototypeOf(Tt)},ut(pt)}function H(pt,Tt,mt){return(Tt=N(Tt))in pt?Object.defineProperty(pt,Tt,{value:mt,enumerable:!0,configurable:!0,writable:!0}):pt[Tt]=mt,pt}function N(pt){var Tt=Y(pt,"string");return $(Tt)=="symbol"?Tt:Tt+""}function Y(pt,Tt){if($(pt)!="object"||!pt)return pt;var mt=pt[Symbol.toPrimitive];if(mt!==void 0){var lt=mt.call(pt,Tt||"default");if($(lt)!="object")return lt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Tt==="string"?String:Number)(pt)}var gt=Ct.InnerSlider=function(pt){yt(mt,pt);var Tt=ct(mt);function mt(lt){var A;vt(this,mt),A=Tt.call(this,lt),H(B(A),"listRefHandler",function(_t){return A.list=_t}),H(B(A),"trackRefHandler",function(_t){return A.track=_t}),H(B(A),"adaptHeight",function(){if(A.props.adaptiveHeight&&A.list){var _t=A.list.querySelector('[data-index="'.concat(A.state.currentSlide,'"]'));A.list.style.height=(0,D.getHeight)(_t)+"px"}}),H(B(A),"componentDidMount",function(){if(A.props.onInit&&A.props.onInit(),A.props.lazyLoad){var _t=(0,D.getOnDemandLazySlides)(nt(nt({},A.props),A.state));_t.length>0&&(A.setState(function(At){return{lazyLoadedList:At.lazyLoadedList.concat(_t)}}),A.props.onLazyLoad&&A.props.onLazyLoad(_t))}var Mt=nt({listRef:A.list,trackRef:A.track},A.props);A.updateState(Mt,!0,function(){A.adaptHeight(),A.props.autoplay&&A.autoPlay("update")}),A.props.lazyLoad==="progressive"&&(A.lazyLoadTimer=setInterval(A.progressiveLazyLoad,1e3)),A.ro=new S.default(function(){A.state.animating?(A.onWindowResized(!1),A.callbackTimers.push(setTimeout(function(){return A.onWindowResized()},A.props.speed))):A.onWindowResized()}),A.ro.observe(A.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(At){At.onfocus=A.props.pauseOnFocus?A.onSlideFocus:null,At.onblur=A.props.pauseOnFocus?A.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",A.onWindowResized):window.attachEvent("onresize",A.onWindowResized)}),H(B(A),"componentWillUnmount",function(){A.animationEndCallback&&clearTimeout(A.animationEndCallback),A.lazyLoadTimer&&clearInterval(A.lazyLoadTimer),A.callbackTimers.length&&(A.callbackTimers.forEach(function(_t){return clearTimeout(_t)}),A.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",A.onWindowResized):window.detachEvent("onresize",A.onWindowResized),A.autoplayTimer&&clearInterval(A.autoplayTimer),A.ro.disconnect()}),H(B(A),"componentDidUpdate",function(_t){if(A.checkImagesLoad(),A.props.onReInit&&A.props.onReInit(),A.props.lazyLoad){var Mt=(0,D.getOnDemandLazySlides)(nt(nt({},A.props),A.state));Mt.length>0&&(A.setState(function(Nt){return{lazyLoadedList:Nt.lazyLoadedList.concat(Mt)}}),A.props.onLazyLoad&&A.props.onLazyLoad(Mt))}A.adaptHeight();var At=nt(nt({listRef:A.list,trackRef:A.track},A.props),A.state),jt=A.didPropsChange(_t);jt&&A.updateState(At,jt,function(){A.state.currentSlide>=F.default.Children.count(A.props.children)&&A.changeSlide({message:"index",index:F.default.Children.count(A.props.children)-A.props.slidesToShow,currentSlide:A.state.currentSlide}),A.props.autoplay?A.autoPlay("update"):A.pause("paused")})}),H(B(A),"onWindowResized",function(_t){A.debouncedResize&&A.debouncedResize.cancel(),A.debouncedResize=(0,I.default)(function(){return A.resizeWindow(_t)},50),A.debouncedResize()}),H(B(A),"resizeWindow",function(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,Mt=!!(A.track&&A.track.node);if(Mt){var At=nt(nt({listRef:A.list,trackRef:A.track},A.props),A.state);A.updateState(At,_t,function(){A.props.autoplay?A.autoPlay("update"):A.pause("paused")}),A.setState({animating:!1}),clearTimeout(A.animationEndCallback),delete A.animationEndCallback}}),H(B(A),"updateState",function(_t,Mt,At){var jt=(0,D.initializedState)(_t);_t=nt(nt(nt({},_t),jt),{},{slideIndex:jt.currentSlide});var Nt=(0,D.getTrackLeft)(_t);_t=nt(nt({},_t),{},{left:Nt});var Vt=(0,D.getTrackCSS)(_t);(Mt||F.default.Children.count(A.props.children)!==F.default.Children.count(_t.children))&&(jt.trackStyle=Vt),A.setState(jt,At)}),H(B(A),"ssrInit",function(){if(A.props.variableWidth){var _t=0,Mt=0,At=[],jt=(0,D.getPreClones)(nt(nt(nt({},A.props),A.state),{},{slideCount:A.props.children.length})),Nt=(0,D.getPostClones)(nt(nt(nt({},A.props),A.state),{},{slideCount:A.props.children.length}));A.props.children.forEach(function(ve){At.push(ve.props.style.width),_t+=ve.props.style.width});for(var Vt=0;Vt<jt;Vt++)Mt+=At[At.length-1-Vt],_t+=At[At.length-1-Vt];for(var Wt=0;Wt<Nt;Wt++)_t+=At[Wt];for(var Ot=0;Ot<A.state.currentSlide;Ot++)Mt+=At[Ot];var Dt={width:_t+"px",left:-Mt+"px"};if(A.props.centerMode){var Ht="".concat(At[A.state.currentSlide],"px");Dt.left="calc(".concat(Dt.left," + (100% - ").concat(Ht,") / 2 ) ")}return{trackStyle:Dt}}var tt=F.default.Children.count(A.props.children),Pt=nt(nt(nt({},A.props),A.state),{},{slideCount:tt}),zt=(0,D.getPreClones)(Pt)+(0,D.getPostClones)(Pt)+tt,te=100/A.props.slidesToShow*zt,$t=100/zt,ae=-$t*((0,D.getPreClones)(Pt)+A.state.currentSlide)*te/100;A.props.centerMode&&(ae+=(100-$t*te/100)/2);var Xt={width:te+"%",left:ae+"%"};return{slideWidth:$t+"%",trackStyle:Xt}}),H(B(A),"checkImagesLoad",function(){var _t=A.list&&A.list.querySelectorAll&&A.list.querySelectorAll(".slick-slide img")||[],Mt=_t.length,At=0;Array.prototype.forEach.call(_t,function(jt){var Nt=function(){return++At&&At>=Mt&&A.onWindowResized()};if(!jt.onclick)jt.onclick=function(){return jt.parentNode.focus()};else{var Vt=jt.onclick;jt.onclick=function(Wt){Vt(Wt),jt.parentNode.focus()}}jt.onload||(A.props.lazyLoad?jt.onload=function(){A.adaptHeight(),A.callbackTimers.push(setTimeout(A.onWindowResized,A.props.speed))}:(jt.onload=Nt,jt.onerror=function(){Nt(),A.props.onLazyLoadError&&A.props.onLazyLoadError()}))})}),H(B(A),"progressiveLazyLoad",function(){for(var _t=[],Mt=nt(nt({},A.props),A.state),At=A.state.currentSlide;At<A.state.slideCount+(0,D.getPostClones)(Mt);At++)if(A.state.lazyLoadedList.indexOf(At)<0){_t.push(At);break}for(var jt=A.state.currentSlide-1;jt>=-(0,D.getPreClones)(Mt);jt--)if(A.state.lazyLoadedList.indexOf(jt)<0){_t.push(jt);break}_t.length>0?(A.setState(function(Nt){return{lazyLoadedList:Nt.lazyLoadedList.concat(_t)}}),A.props.onLazyLoad&&A.props.onLazyLoad(_t)):A.lazyLoadTimer&&(clearInterval(A.lazyLoadTimer),delete A.lazyLoadTimer)}),H(B(A),"slideHandler",function(_t){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=A.props,jt=At.asNavFor,Nt=At.beforeChange,Vt=At.onLazyLoad,Wt=At.speed,Ot=At.afterChange,Dt=A.state.currentSlide,Ht=(0,D.slideHandler)(nt(nt(nt({index:_t},A.props),A.state),{},{trackRef:A.track,useCSS:A.props.useCSS&&!Mt})),tt=Ht.state,Pt=Ht.nextState;if(tt){Nt&&Nt(Dt,tt.currentSlide);var zt=tt.lazyLoadedList.filter(function(te){return A.state.lazyLoadedList.indexOf(te)<0});Vt&&zt.length>0&&Vt(zt),!A.props.waitForAnimate&&A.animationEndCallback&&(clearTimeout(A.animationEndCallback),Ot&&Ot(Dt),delete A.animationEndCallback),A.setState(tt,function(){jt&&A.asNavForIndex!==_t&&(A.asNavForIndex=_t,jt.innerSlider.slideHandler(_t)),Pt&&(A.animationEndCallback=setTimeout(function(){var te=Pt.animating,$t=ft(Pt,["animating"]);A.setState($t,function(){A.callbackTimers.push(setTimeout(function(){return A.setState({animating:te})},10)),Ot&&Ot(tt.currentSlide),delete A.animationEndCallback})},Wt))})}}),H(B(A),"changeSlide",function(_t){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=nt(nt({},A.props),A.state),jt=(0,D.changeSlide)(At,_t);if(!(jt!==0&&!jt)&&(Mt===!0?A.slideHandler(jt,Mt):A.slideHandler(jt),A.props.autoplay&&A.autoPlay("update"),A.props.focusOnSelect)){var Nt=A.list.querySelectorAll(".slick-current");Nt[0]&&Nt[0].focus()}}),H(B(A),"clickHandler",function(_t){A.clickable===!1&&(_t.stopPropagation(),_t.preventDefault()),A.clickable=!0}),H(B(A),"keyHandler",function(_t){var Mt=(0,D.keyHandler)(_t,A.props.accessibility,A.props.rtl);Mt!==""&&A.changeSlide({message:Mt})}),H(B(A),"selectHandler",function(_t){A.changeSlide(_t)}),H(B(A),"disableBodyScroll",function(){var _t=function(At){At=At||window.event,At.preventDefault&&At.preventDefault(),At.returnValue=!1};window.ontouchmove=_t}),H(B(A),"enableBodyScroll",function(){window.ontouchmove=null}),H(B(A),"swipeStart",function(_t){A.props.verticalSwiping&&A.disableBodyScroll();var Mt=(0,D.swipeStart)(_t,A.props.swipe,A.props.draggable);Mt!==""&&A.setState(Mt)}),H(B(A),"swipeMove",function(_t){var Mt=(0,D.swipeMove)(_t,nt(nt(nt({},A.props),A.state),{},{trackRef:A.track,listRef:A.list,slideIndex:A.state.currentSlide}));Mt&&(Mt.swiping&&(A.clickable=!1),A.setState(Mt))}),H(B(A),"swipeEnd",function(_t){var Mt=(0,D.swipeEnd)(_t,nt(nt(nt({},A.props),A.state),{},{trackRef:A.track,listRef:A.list,slideIndex:A.state.currentSlide}));if(Mt){var At=Mt.triggerSlideHandler;delete Mt.triggerSlideHandler,A.setState(Mt),At!==void 0&&(A.slideHandler(At),A.props.verticalSwiping&&A.enableBodyScroll())}}),H(B(A),"touchEnd",function(_t){A.swipeEnd(_t),A.clickable=!0}),H(B(A),"slickPrev",function(){A.callbackTimers.push(setTimeout(function(){return A.changeSlide({message:"previous"})},0))}),H(B(A),"slickNext",function(){A.callbackTimers.push(setTimeout(function(){return A.changeSlide({message:"next"})},0))}),H(B(A),"slickGoTo",function(_t){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_t=Number(_t),isNaN(_t))return"";A.callbackTimers.push(setTimeout(function(){return A.changeSlide({message:"index",index:_t,currentSlide:A.state.currentSlide},Mt)},0))}),H(B(A),"play",function(){var _t;if(A.props.rtl)_t=A.state.currentSlide-A.props.slidesToScroll;else if((0,D.canGoNext)(nt(nt({},A.props),A.state)))_t=A.state.currentSlide+A.props.slidesToScroll;else return!1;A.slideHandler(_t)}),H(B(A),"autoPlay",function(_t){A.autoplayTimer&&clearInterval(A.autoplayTimer);var Mt=A.state.autoplaying;if(_t==="update"){if(Mt==="hovered"||Mt==="focused"||Mt==="paused")return}else if(_t==="leave"){if(Mt==="paused"||Mt==="focused")return}else if(_t==="blur"&&(Mt==="paused"||Mt==="hovered"))return;A.autoplayTimer=setInterval(A.play,A.props.autoplaySpeed+50),A.setState({autoplaying:"playing"})}),H(B(A),"pause",function(_t){A.autoplayTimer&&(clearInterval(A.autoplayTimer),A.autoplayTimer=null);var Mt=A.state.autoplaying;_t==="paused"?A.setState({autoplaying:"paused"}):_t==="focused"?(Mt==="hovered"||Mt==="playing")&&A.setState({autoplaying:"focused"}):Mt==="playing"&&A.setState({autoplaying:"hovered"})}),H(B(A),"onDotsOver",function(){return A.props.autoplay&&A.pause("hovered")}),H(B(A),"onDotsLeave",function(){return A.props.autoplay&&A.state.autoplaying==="hovered"&&A.autoPlay("leave")}),H(B(A),"onTrackOver",function(){return A.props.autoplay&&A.pause("hovered")}),H(B(A),"onTrackLeave",function(){return A.props.autoplay&&A.state.autoplaying==="hovered"&&A.autoPlay("leave")}),H(B(A),"onSlideFocus",function(){return A.props.autoplay&&A.pause("focused")}),H(B(A),"onSlideBlur",function(){return A.props.autoplay&&A.state.autoplaying==="focused"&&A.autoPlay("blur")}),H(B(A),"render",function(){var _t=(0,z.default)("slick-slider",A.props.className,{"slick-vertical":A.props.vertical,"slick-initialized":!0}),Mt=nt(nt({},A.props),A.state),At=(0,D.extractObject)(Mt,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),jt=A.props.pauseOnHover;At=nt(nt({},At),{},{onMouseEnter:jt?A.onTrackOver:null,onMouseLeave:jt?A.onTrackLeave:null,onMouseOver:jt?A.onTrackOver:null,focusOnSelect:A.props.focusOnSelect&&A.clickable?A.selectHandler:null});var Nt;if(A.props.dots===!0&&A.state.slideCount>=A.props.slidesToShow){var Vt=(0,D.extractObject)(Mt,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Wt=A.props.pauseOnDotsHover;Vt=nt(nt({},Vt),{},{clickHandler:A.changeSlide,onMouseEnter:Wt?A.onDotsLeave:null,onMouseOver:Wt?A.onDotsOver:null,onMouseLeave:Wt?A.onDotsLeave:null}),Nt=F.default.createElement(ht.Dots,Vt)}var Ot,Dt,Ht=(0,D.extractObject)(Mt,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Ht.clickHandler=A.changeSlide,A.props.arrows&&(Ot=F.default.createElement(ot.PrevArrow,Ht),Dt=F.default.createElement(ot.NextArrow,Ht));var tt=null;A.props.vertical&&(tt={height:A.state.listHeight});var Pt=null;A.props.vertical===!1?A.props.centerMode===!0&&(Pt={padding:"0px "+A.props.centerPadding}):A.props.centerMode===!0&&(Pt={padding:A.props.centerPadding+" 0px"});var zt=nt(nt({},tt),Pt),te=A.props.touchMove,$t={className:"slick-list",style:zt,onClick:A.clickHandler,onMouseDown:te?A.swipeStart:null,onMouseMove:A.state.dragging&&te?A.swipeMove:null,onMouseUp:te?A.swipeEnd:null,onMouseLeave:A.state.dragging&&te?A.swipeEnd:null,onTouchStart:te?A.swipeStart:null,onTouchMove:A.state.dragging&&te?A.swipeMove:null,onTouchEnd:te?A.touchEnd:null,onTouchCancel:A.state.dragging&&te?A.swipeEnd:null,onKeyDown:A.props.accessibility?A.keyHandler:null},ae={className:_t,dir:"ltr",style:A.props.style};return A.props.unslick&&($t={className:"slick-list"},ae={className:_t,style:A.props.style}),F.default.createElement("div",ae,A.props.unslick?"":Ot,F.default.createElement("div",q({ref:A.listRefHandler},$t),F.default.createElement(V.Track,q({ref:A.trackRefHandler},At),A.props.children)),A.props.unslick?"":Dt,A.props.unslick?"":Nt)}),A.list=null,A.track=null,A.state=nt(nt({},Z.default),{},{currentSlide:A.props.initialSlide,targetSlide:A.props.initialSlide?A.props.initialSlide:0,slideCount:F.default.Children.count(A.props.children)}),A.callbackTimers=[],A.clickable=!0,A.debouncedResize=null;var kt=A.ssrInit();return A.state=nt(nt({},A.state),kt),A}return et(mt,[{key:"didPropsChange",value:function(A){for(var kt=!1,_t=0,Mt=Object.keys(this.props);_t<Mt.length;_t++){var At=Mt[_t];if(!A.hasOwnProperty(At)){kt=!0;break}if(!($(A[At])==="object"||typeof A[At]=="function"||isNaN(A[At]))&&A[At]!==this.props[At]){kt=!0;break}}return kt||F.default.Children.count(this.props.children)!==F.default.Children.count(A.children)}}]),mt}(F.default.Component)},36272:(oe,Ct,T)=>{"use strict";T.d(Ct,{of:()=>Z});const F=D=>{const V=new Map(D);return V.fork=()=>F(V),V.slowSize=()=>V.size,V.slowKeys=()=>V.keys(),V.slowValues=()=>V.values(),V},Z=D=>D?D.fork():I(),I=function(D,V){D===void 0&&(D=new Map),V===void 0&&(V=new Map);const ht=()=>(D.size!==0&&(V=new Map(V),D.forEach((ot,S)=>{ot===void 0?V.delete(S):V.set(S,ot)}),D=new Map),V);return{has:ot=>D.has(ot)?D.get(ot)!==void 0:V.has(ot),get:ot=>D.has(ot)?D.get(ot):V.get(ot),set:(ot,S)=>{D.has(ot)&&D.get(ot)===void 0&&D.delete(ot),D.set(ot,S)},delete:ot=>V.has(ot)?D.has(ot)&&D.get(ot)===void 0?!1:(D.set(ot,void 0),!0):D.delete(ot),fork:()=>(D.size>=z&&ht(),I(new Map(D),V)),slowSize:()=>ht().size,slowKeys:()=>ht().keys(),slowValues:()=>ht().values(),getMap:()=>D}},z=4*1024},36397:(oe,Ct,T)=>{"use strict";T.d(Ct,{Gq:()=>rt,Pf:()=>gt,QP:()=>pt,Yp:()=>Y,tG:()=>Tt});var F=T(38502),Z=T(17210),I=T(67787),z=T(38047),D=T(14166),V=T(62280),ht=T(35083),ot=T(15186),S=T(20089),O=T(53940),$=T(14861),q=T(39306),ft=T(43605),K=T(42715),it=T(98915),nt=T(79770),vt=T(92598),at=T(78409),et=T(72214);const yt=Math.pow(2,31)-1,rt=(mt,lt,A,kt)=>{const _t=mt.getHotItem(lt),Mt=W(mt,lt,kt),{shadow:At}=_t.hotAttr,jt=Dt=>kt==="local"?mt.getCCSBound2308(Dt):mt.getHotBound(Dt);switch(_t.hotAttr.type){case"rResBunch":{const Dt=(0,D.F1)();return _t.hotAttr.bunch==="rbPage"&&Tt({hotItem:_t,isExportSticky:A}).sub.forEach(tt=>{var Pt;return((Pt=mt.getHotItem(tt||""))==null?void 0:Pt.hotAttr.type)!=="rResBunch"&&(0,D.il)(Dt,rt(mt,tt,!1,kt))}),Dt}case"rResCanvas":{const Dt=jt(lt);if(_t.hotAttr.isClipContent)return(0,V.Pb)(Dt);{const Ht=(0,D.F1)();_t.sub.forEach(we=>(0,D.il)(Ht,rt(mt,we,!1,kt)));let tt=1/0,Pt=1/0,zt=-1/0,te=-1/0;const $t=(we,Ee)=>{tt=Math.min(tt,we),Pt=Math.min(Pt,Ee),zt=Math.max(zt,we),te=Math.max(te,Ee)},ae=Dt.x-Dt.w/2+Math.min(0,Ht[0]),Xt=Dt.y-Dt.h/2+Math.min(0,Ht[1]),ve=Math.max(Ht[2]-Ht[0],Dt.w),Se=Math.max(Ht[3]-Ht[1],Dt.h);return $t(ae,Xt),$t(ae,Xt+Se),$t(ae+ve,Xt),$t(ae+ve,Xt+Se),[tt,Pt,zt,te]}}case"wWrap":{const Dt=jt(lt);if(_t.hotAttr.isAutoSize){const Ht=(0,D.F1)();if(_t.sub.length===0)return Mt;_t.sub.forEach(Se=>{const we=rt(mt,Se,!1,"local");(0,D.il)(Ht,we)});const tt=(0,ht.bj)();(0,ht.a6)(tt,-Dt.x,-Dt.y),(0,ht.$P)(tt,(0,z.EQ)(Dt.r)),(0,ht.a6)(tt,Dt.x,Dt.y);let Pt=1/0,zt=1/0,te=-1/0,$t=-1/0;const ae=(Se,we)=>{const Ee=(0,ht.Bb)(tt,Se,we);Pt=Math.min(Pt,Ee.x),zt=Math.min(zt,Ee.y),te=Math.max(te,Ee.x),$t=Math.max($t,Ee.y)},Xt=Dt.x-Dt.w/2+Math.min(0,Ht[0]),ve=Dt.y-Dt.h/2+Math.min(0,Ht[1]);return ae(Xt,ve),ae(Xt,ve+Ht[3]-Ht[1]),ae(Xt+Ht[2]-Ht[0],ve),ae(Xt+Ht[2]-Ht[0],ve+Ht[3]-Ht[1]),[Pt,zt,te,$t]}return Mt}case"wLine":{var Nt;const Dt=jt(lt);if(!(At!=null&&At.shadowIsVisible))return Mt;const{border:{bdrWidth:Ht},line:{linePointFrom:tt,linePointTo:Pt}}=_t.hotAttr,zt=At.offsetX,te=At.offsetY,$t=At.blurRadius,ae=(Nt=At.spreadRadius)!=null?Nt:0,Xt=(0,ft.W8)(Dt.w,Dt.h,[[tt.x,tt.y],[Pt.x,Pt.y]]),ve={x:Dt.x+zt,y:Dt.y+te};return(0,D.il)(Mt,(0,V.Pb)({...ve,r:Xt,w:Math.round(Math.sqrt(Dt.w*Dt.w+Dt.h*Dt.h))+$t*2+ae*2,h:Ht+$t*2+ae*2}))}case"wArrow":{var Vt;const Dt=jt(lt);if(!(At!=null&&At.shadowIsVisible))return Mt;const{arrow:{arrowPointFrom:Ht,arrowPointTo:tt,arrowPointFromType:Pt,arrowPointToType:zt,arrowStroke:{bdrWidth:te}}}=_t.hotAttr,$t=Pt!==0?(0,q.Lv)(Pt,te):{w:te,h:te},ae=zt!==0?(0,q.Lv)(zt,te):{w:te,h:te},Xt=At.offsetX,ve=At.offsetY,Se=At.blurRadius,we=(Vt=At.spreadRadius)!=null?Vt:0,Ee=(0,ft.W8)(Dt.w,Dt.h,[[Ht.x,Ht.y],[tt.x,tt.y]]),ke={x:Dt.x+Xt,y:Dt.y+ve};return(0,D.il)(Mt,(0,V.Pb)({...ke,r:Ee,w:Math.round(Math.sqrt(Dt.w*Dt.w+Dt.h*Dt.h))+Se*2+we*2,h:Math.max($t.w,$t.h,ae.w,ae.h)+Se*2+we*2}))}case"wRichText":{let Dt=Mt;const tt=jt(lt).r,Pt=(0,z.EQ)(tt),zt=Math.sin(Pt),te=Math.cos(Pt),$t=kt==="local"?(0,it.HN)(lt,mt):(0,it.VU)(lt,mt);if($t===null)return Mt;if(Dt=(0,D.il)(Dt,(0,V.Pb)($t)),!At.shadowIsVisible||At.type!=="text_shadow")return Dt;const ae=At.offsetX,Xt=At.offsetY,ve=At.blurRadius,Se={x:$t.x+ae*te-Xt*zt,y:$t.y+ae*zt+Xt*te,r:tt,w:$t.w+ve*2,h:$t.h+ve*2};return(0,D.il)(Mt,(0,V.Pb)(Se))}case"wRect":case"wOval":case"wPolygon":case"wStar":case"wTriangle":case"wVector":case"wButton":case"wPlaceholder":{var Wt;let Dt=Mt;const Ht=jt(lt),tt=Ht.r,Pt=(0,z.EQ)(tt),zt=Math.sin(Pt),te=Math.cos(Pt),$t=kt==="local"?(0,it.HN)(lt,mt):(0,it.VU)(lt,mt);if($t===null)return Mt;if(Dt=(0,D.il)(Dt,(0,V.Pb)($t)),!(At!=null&&At.shadowIsVisible))return Dt;const ae=At.offsetX,Xt=At.offsetY,ve=At.blurRadius,Se=(Wt=At.spreadRadius)!=null?Wt:0,we={x:Ht.x+ae*te-Xt*zt,y:Ht.y+ae*zt+Xt*te,r:tt,w:Ht.w+ve*2+Se*2,h:Ht.h+ve*2+Se*2};return(0,D.il)(Mt,(0,V.Pb)(we))}default:{var Ot;const Dt=jt(lt);if(!(At!=null&&At.shadowIsVisible))return Mt;const Ht=At.offsetX,tt=At.offsetY,Pt=At.blurRadius,zt=(Ot=At.spreadRadius)!=null?Ot:0,te=Dt.r,$t=(0,z.EQ)(te),ae=Math.sin($t),Xt=Math.cos($t),Se={...{x:Dt.x+Ht*Xt-tt*ae,y:Dt.y+Ht*ae+tt*Xt},r:te,w:Dt.w+Pt*2+zt*2,h:Dt.h+Pt*2+zt*2};return(0,D.il)(Mt,(0,V.Pb)(Se))}}},ct=I.Ay.div.withConfig({displayName:"utilswNodeToHTMLStr__WatermarkMask",componentId:"sc-1ob8kf9-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:",";background:repeat url(/mb-proto2/images/water_mark_new",".png);"],yt,ENV.IS_MO?"_en":""),G=mt=>{let{scale:lt,children:A,itemScalerStyle:kt}=mt;const _t={position:"absolute",top:0,left:0,transform:"scale("+lt+")",transformOrigin:"top left",...kt};return(0,et.jsx)("div",{style:_t,children:A})},B=mt=>{var lt,A;let{item:kt,children:_t,sdk:Mt}=mt;const At=Mt.getHotItem(Mt.locUpRBPageKey(kt.key)),jt=At==null||(lt=At.hotAttr)==null?void 0:lt.device,Nt=(At==null||(A=At.hotAttr)==null?void 0:A.deviceOrientation)==="landscape",Vt=(0,K.MR)(jt),Wt=$.v2[jt];if(Vt&&Wt&&kt.hotAttr.type==="rResCanvas"){const{shellStyle:Ot,topOffset:Dt,leftOffset:Ht,imageUrl:tt}=(0,K.eC)(Vt,Nt),Pt=Nt?Wt.height:Wt.width,zt=Nt?Wt.width:Wt.height,te={...Ot,objectFit:"cover",zIndex:1},$t={position:"absolute",width:Pt+"px",height:zt+"px",top:Dt+"px",left:Ht+"px",overflow:"hidden",zIndex:-1},ae=(0,K.uQ)(jt);return(0,et.jsxs)("div",{style:{position:"relative"},children:[(0,et.jsx)("img",{src:tt,style:te}),(0,et.jsx)("div",{style:{...$t,...ae},children:_t})]})}else return(0,et.jsx)(F.Fragment,{children:_t})},W=(mt,lt,A)=>{const kt=mt.getHotItem(lt).hotAttr;let _t;const Mt=At=>A==="local"?mt.getCCSBound2308(At):mt.getHotBound(At);if(kt.bunch==="rbPage")_t=(0,D.F1)(),Tt({hotItem:mt.getHotItem(lt),isExportSticky:!1}).sub.forEach(jt=>mt.getHotItem(jt).hotAttr.type!=="rResBunch"&&(0,D.il)(_t,mt.getHotKeyAABB(jt)));else switch(kt.type){case"rResCanvas":{_t=mt.getHotKeyAABB(lt);break}case"wTear":{const At=(0,V.Pb)(Mt(lt)),jt=At[0],Nt=At[1],Vt=jt+280,Wt=Nt+kt.stickyH;_t=[jt,Nt,Vt,Wt];break}case"wLine":{const{border:{bdrWidth:At},line:{linePointFrom:jt,linePointTo:Nt}}=kt,Vt=Mt(lt);_t=(0,V.Pb)({...Vt,r:(0,ft.W8)(Vt.w,Vt.h,[[jt.x,jt.y],[Nt.x,Nt.y]]),w:Math.round(Math.sqrt(Vt.w*Vt.w+Vt.h*Vt.h)),h:At});break}case"wArrow":{const{arrow:{arrowPointFrom:At,arrowPointTo:jt,arrowPointFromType:Nt,arrowPointToType:Vt,arrowStroke:{bdrWidth:Wt}}}=kt,Ot=Mt(lt),Dt=Nt!==0?(0,q.Lv)(Nt,Wt):{w:Wt,h:Wt},Ht=Vt!==0?(0,q.Lv)(Vt,Wt):{w:Wt,h:Wt},tt={...Ot,r:(0,ft.W8)(Ot.w,Ot.h,[[At.x,At.y],[jt.x,jt.y]]),w:Math.round(Math.sqrt(Ot.w*Ot.w+Ot.h*Ot.h)),h:Math.max(Dt.w,Dt.h,Ht.w,Ht.h)};_t=(0,V.Pb)(tt);break}case"wElbow":{_t=(0,V.Pb)(Mt(lt)),(0,D.il)(_t,(0,nt.af)(_t,kt));break}case"wTable":{const At=Mt(lt),{tableConfig:{outerBorder:jt}}=kt,Nt=jt!=null&&jt.bdrIsVisible?jt.bdrWidth:0,Vt={x:At.x,y:At.y,w:At.w+Nt*2,h:At.h+Nt*2,r:At.r};_t=(0,V.Pb)(Vt);break}default:_t=(0,V.Pb)(Mt(lt))}return _t},ut=mt=>{let{item:lt,scale:A,isWithDeviceFrame:kt,hasWatermark:_t,isExportSticky:Mt,isIncludeCanvasName:At,sdk:jt}=mt;const Nt=rt(jt,lt.key,!!Mt,"local"),Vt=Nt[2]-Nt[0],Wt=Nt[3]-Nt[1],Ot=At?Y(lt,Nt,jt):0,Dt={position:"relative",top:-Nt[1]+"px",left:-Nt[0]+"px",width:Vt+"px",height:Wt+Ot+"px"},Ht=kt&&lt.hotAttr.type===S.x.Canvas&&!lt.hotAttr.asOverlay?B:zt=>{let{children:te}=zt;return(0,et.jsx)(et.Fragment,{children:te})},Pt={backgroundColor:lt.hotAttr.type===S.x.Bunch&&lt.hotAttr.bunch===S.x.RbPage?(0,ot.t0)((0,O.t6)(O.Sx.LIGHT,lt.hotAttr)):"unset"};return(0,et.jsxs)(G,{scale:A,itemScalerStyle:Pt,children:[At&&N(Nt,lt,A,jt),_t&&(0,et.jsx)(ct,{}),(0,et.jsx)(Ht,{item:lt,sdk:jt,children:(0,et.jsx)("div",{style:Dt,children:(0,et.jsx)(at.A,{sdkStore:jt,children:(0,et.jsx)(vt.o,{mode:"snapshot",hotItem:lt})})})})]})},H=mt=>{let{item:lt,sdk:A}=mt;return(0,et.jsx)(at.A,{sdkStore:A,children:(0,et.jsx)(vt.o,{mode:"snapshot",hotItem:lt})})},N=(mt,lt,A,kt)=>{const _t=kt.getSubHotItemList(lt.key).filter(Nt=>{let{hotAttr:Vt}=Nt;return Vt.type===S.x.Canvas&&!Vt.asOverlay}),Mt=Y(lt,mt,kt),At=10+A*2,jt={position:"relative",zIndex:yt-1,height:Mt+"px",overflow:"visible"};return _t.length?(0,et.jsx)("div",{style:jt,children:_t.map(Nt=>{if(!Nt.hotAttr.isVisible)return null;const Vt=kt.getHotAABB(Nt.key),Wt={position:"absolute",width:Vt[2]-Vt[0]+"px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",backgroundColor:"rgba(255, 255, 255, 0)",transform:"translate("+(Vt[0]-mt[0])+"px,"+(Vt[1]-mt[1]-20+Mt)+"px)",fontSize:At+"px",lineHeight:"20px",height:"20px"};return(0,et.jsx)("div",{style:Wt,children:(0,et.jsx)("span",{children:Nt.hotAttr.name})},Nt.key)})}):null},Y=(mt,lt,A)=>{const _t=A.getSubHotItemList(mt.key).filter(At=>{let{hotAttr:jt}=At;return jt.type===S.x.Canvas&&!jt.asOverlay}).map(At=>A.getHotAABB(At.key));let Mt=0;return _t.forEach(At=>{const jt=At[1]-lt[1];jt<20&&(Mt=Math.max(Mt,20-jt))}),Mt},gt=mt=>{let{item:lt,scale:A,isWithDeviceFrame:kt,hasWatermark:_t,isExportSticky:Mt,isIncludeCanvasName:At,sdk:jt}=mt;return(0,Z.F0)((0,et.jsx)(ut,{item:lt,isWithDeviceFrame:kt,scale:A,hasWatermark:_t,isExportSticky:Mt,isIncludeCanvasName:At,sdk:jt}))},pt=mt=>{let{item:lt,sdk:A}=mt;return(0,Z.F0)((0,et.jsx)(H,{item:lt,sdk:A}))},Tt=mt=>{let{hotItem:lt,isExportSticky:A=!1}=mt;return{...lt,sub:A?lt==null?void 0:lt.sub.filter(kt=>{var _t,Mt;return((_t=sdkStore.getHotItem(kt))==null||(_t=_t.hotAttr)==null?void 0:_t.type)!==S.x.WTear&&((Mt=sdkStore.getHotItem(kt))==null||(Mt=Mt.hotAttr)==null?void 0:Mt.type)!==S.x.WLR}):lt==null?void 0:lt.sub.filter(kt=>{var _t,Mt,At;return((_t=sdkStore.getHotItem(kt))==null||(_t=_t.hotAttr)==null?void 0:_t.type)!==S.x.WSticky&&((Mt=sdkStore.getHotItem(kt))==null||(Mt=Mt.hotAttr)==null?void 0:Mt.type)!==S.x.WTear&&((At=sdkStore.getHotItem(kt))==null||(At=At.hotAttr)==null?void 0:At.type)!==S.x.WLR})}}},36449:(oe,Ct,T)=>{"use strict";T.d(Ct,{k:()=>O});var F=T(38581),Z=T(37342),I=T(4235),z=T(70933),D=T(13642),V=T(56202),ht=T(20089);const ot=()=>{let $=[];const q=vt=>{$=vt,$.forEach(at=>at==null?void 0:at.classList.add("link-highlight"))},ft=()=>{$.forEach(vt=>vt==null?void 0:vt.classList.remove("link-highlight"))},K={"entry:draft:screen:mousemove":(vt,at)=>{let{getState:et,dispatch:yt}=vt,{payload:{event:rt,from:ct}}=at;const G=et();if(nt.getIsCreatingLink(G))return;if(ct==="design"){const pt=(0,z.pO)(G),Tt=(0,z.Jv)(G),mt=(0,z.lh)(G);if(pt||Tt||mt)return}const W=nt.getActiveEntityKey(G);if(rt.target&&rt.target.closest&&!rt.target.closest(".draft-common-editor")&&!rt.target.closest(".draft-link-toast")&&!(rt.target.closest(".wSticky")||rt.target.closest(".mind-node")||rt.target.closest(".wRichText")||rt.target.closest(".widget"))){W&&yt({type:it["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),O.Query.getLinkToastShow(G)&&D.A.emit("draft:link-toast:hide"),ft();return}const ut=document.elementFromPoint(rt.clientX,rt.clientY),H=ut==null?void 0:ut.closest(".draft-common-editor-wrapper"),N=ut==null?void 0:ut.closest(".draft-basic-text-editor-wrapper"),Y=ut==null?void 0:ut.closest(".draft-link-toast"),gt=ut==null?void 0:ut.closest("a");if(gt!=null&&gt.getAttribute("data-block-key")){const pt=gt.getAttribute("data-entity-key");if(pt===W)return;const Tt=gt.getAttribute("data-entity-start"),mt=gt.getAttribute("data-entity-end"),lt=gt.getAttribute("data-widget-key"),A=gt.getAttribute("data-block-key"),kt=decodeURIComponent(gt.getAttribute("data-link-title")||""),_t=gt.getAttribute("data-href"),Mt=gt.getBoundingClientRect();if(!Mt)return;let{top:At,left:jt,bottom:Nt,width:Vt}=Mt;const Wt=gt.closest(".preview-modal-portal-root .simulator-container");if(Wt){const Pt=Wt.getBoundingClientRect();Pt&&(Nt=Nt-Pt.top,jt=jt-Pt.left)}const Ot={top:Nt,left:jt+Vt/2-24},Dt=sdkStore.getHotItem(lt);yt({type:O.EntryKey["entry:draft:batch:update"],payload:{activeEntityKey:pt}}),D.A.emit("draft:link-toast:view",{widget:Dt,linkTitle:kt,linkTarget:_t,style:Ot,blockKey:A,start:Tt,end:mt,fromType:"settingPanel",canEditLink:!Wt,isPreviewModal:!!Wt}),ft();const Ht=new URLSearchParams(location.search),tt=(Wt||Ht.get("view_mode")==="device"?".simulator-container":".screen-container")+' a[data-entity-key="'+pt+'"][data-widget-key="'+lt+'"]';q(document.querySelectorAll(tt));return}if(!H&&!N&&!Y){W&&yt({type:it["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),O.Query.getLinkToastShow(G)&&D.A.emit("draft:link-toast:hide"),ft();return}if((H||N)&&!Y){const{isLink:pt}=S(rt.target);pt||(W&&yt({type:it["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),O.Query.getLinkToastShow(G)&&D.A.emit("draft:link-toast:hide"),ft())}},"entry:draft:open:hyperlink":(vt,at)=>{let{dispatch:et}=vt,{payload:{hyperlink:yt,transition:rt,isPreviewModal:ct}}=at;const G=(0,V.Fr)(),B=(0,V.vq)();let W,ut;try{const gt=new URL(yt);W=gt.href,ut=gt.hostname.split(".").slice(-2).join(".")}catch(gt){W="https://"+yt,ut=""}const H=()=>{switch(rt){case"inPage":(0,Z.JW)(W,"_self");break;case"newTab":window.ReactNativeWebView?MB.messageBucket.send("openLinkByBrowser",{link:yt}):(0,Z.JW)(W,"_blank","noreferrer");break}},Y=new URLSearchParams(location.search).get("view_mode")==="device"||ct?"previewModal:update:state":"modal:update:state";["wondershare.com","modao.cc"].includes(ut)?B&&rt==="newTab"?et({type:Y,payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:yt,isMobile:G,displayWeChatNewTabInternalUrlTip:!0,confirmText:I18N.Common.confirm,onConfirm:H}}}):H():et({type:Y,payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:yt,isMobile:G,displayWeChatNewTabExternalUrlTip:B&&rt==="newTab",confirmText:I18N.SettingPanel.continue,onConfirm:H}}})},"entry:draft:sticky:update":(vt,at)=>{let{getState:et,dispatch:yt}=vt,{payload:rt}=at;const ct=et(),{key:G,textV1:B,h:W,stickyH:ut,isNeedMigrateLinkItalic:H}=rt,Y=(0,I.nE)(ct).filter(pt=>pt.key===G);if(!Y||Y.length!==1)return;const gt=Y.map(pt=>{const Tt=pt.hotAttr;let mt={type:Tt.type,textV1:Tt.textV1};if(W&&Tt.type!==ht.x.WTear){const A=Tt.y-Tt.h/2;mt={...mt,y:A+W/2,h:W}}B&&(mt.textV1=B),ut&&(mt.stickyH=ut),H&&(mt["!liVersion"]=3);const lt=(0,F.$b)(mt,!0);return{key:pt.key,hotAttr:lt}});yt({type:"entry:widget:change",payload:{flatChgList:gt}})},"entry:draft:linkToastShow:update":(vt,at)=>{let{getState:et,dispatch:yt}=vt,{payload:{linkToastShow:rt}}=at;yt({type:"draft:update:state",payload:{linkToastShow:rt}})},"entry:draft:activeEntityKey:update":(vt,at)=>{let{getState:et,dispatch:yt}=vt,{payload:{activeEntityKey:rt}}=at;yt({type:"draft:update:state",payload:{activeEntityKey:rt}})},"entry:draft:alignmentToolbarShow:update":(vt,at)=>{let{getState:et,dispatch:yt}=vt,{payload:{alignmentToolbarShow:rt}}=at;yt({type:"draft:update:state",payload:{alignmentToolbarShow:rt}})},"entry:draft:isCreatingLink:update":(vt,at)=>{let{getState:et,dispatch:yt}=vt,{payload:{isCreatingLink:rt}}=at;yt({type:"draft:update:state",payload:{isCreatingLink:rt}})},"entry:draft:batch:update":(vt,at)=>{let{getState:et,dispatch:yt}=vt,{payload:rt}=at;yt({type:"draft:update:state",payload:rt})}},it=Object.keys(K).reduce((vt,at)=>({...vt,[at]:at}),{}),nt={getLinkToastShow:vt=>vt.container?vt.container.draft.linkToastShow:vt.editor.state.draft.linkToastShow,getActiveEntityKey:vt=>vt.container?vt.container.draft.activeEntityKey:vt.editor.state.draft.activeEntityKey,getAlignmentToolbarShow:vt=>vt.container?vt.container.draft.alignmentToolbarShow:vt.editor.state.draft.alignmentToolbarShow,getIsCreatingLink:vt=>vt.container?vt.container.draft.isCreatingLink:vt.editor.state.draft.isCreatingLink,isStopAutoSave:vt=>vt.container?vt.container.draft.isStopAutoSave:vt.editor.state.draft.isStopAutoSave};return{__entry:K,Query:nt,EntryKey:it}};function S($){let q=!1;if($.tagName.toLowerCase()==="p")return{isLink:q,target:$};if($.tagName.toLowerCase()==="a")return q=!0,{isLink:q,target:$};let ft=$.offsetParent;for(;ft&&!(ft.tagName.toLowerCase()==="p"||ft.tagName.toLowerCase()==="div");){if(ft.tagName.toLowerCase()==="a"){q=!0;break}ft=ft.offsetParent}return{isLink:q,target:ft}}const O=ot()},38006:(oe,Ct,T)=>{"use strict";T.d(Ct,{z:()=>F});const F=Z=>{let{width:I,height:z,sides:D,radius:V,borderWidth:ht}=Z;const ot=Math.min(I,z),S=ht>ot/10?ot/10:ht,O=I-S,$=z-S,q=Math.min(O,$),ft=q/2,K=Math.PI/D,it=[];for(let nt=0;nt<D*2;nt++){const vt=nt%2?q*V/2:q/2-S;it.push({x:(ft+vt*Math.sin(nt*K))/q*O,y:(ft-vt*Math.cos(nt*K))/q*$})}return it}},38747:(oe,Ct,T)=>{"use strict";T.d(Ct,{$:()=>z,B:()=>D});var F=T(40093),Z=T(69415),I=T(86033);const z=V=>{let{info:ht}=V;const{author:ot,showAuthor:S,time:O,showTime:$,authorCid:q}=ht||{};return{infoP:[ot,(0,F.rK)(S),(0,Z.vH)(O),(0,F.rK)($),q].join(I.q1)}},D=V=>{let{infoP:ht}=V;const[ot="",S,O,$,q=""]=(ht==null?void 0:ht.split(I.q1))||[];return{info:{author:ot,showAuthor:S?(0,F.Vf)(S):!1,time:O?(0,Z.TT)(O):0,showTime:$?(0,F.Vf)($):!1,authorCid:q}}}},39182:(oe,Ct,T)=>{"use strict";T.d(Ct,{Ay:()=>rt,xC:()=>at});var F=T(53732),Z=T.n(F),I=T(20089),z=T(38502),D=T(15186),V=T(45709),ht=T(69815),ot=T(10549),S=T(59025),O=T(67787);const $=O.Ay.div.withConfig({displayName:"style__StyledText",componentId:"sc-5fud2h-0"})(["word-break:break-all;.link-highlight{background:#BAD7FB;}li{list-style:none;}&.h-right{ul,ol{&.listRTL{li.listRTL{justify-content:flex-end;}}}}&.h-center{ul,ol{&.listRTL{li.listRTL{justify-content:center;}}}}&.h-left,&.h-justify{ul,ol{&.listRTL{li.listRTL{justify-content:flex-start;}}}}.text{position:relative;word-break:break-word;white-space:",";a{pointer-events:auto;cursor:inherit;color:",";text-decoration:",";> span{text-decoration:",";}}}"],ct=>ct.isAutoSize?"pre":"break-spaces",ct=>ct.style.color,ct=>ct.liVersion===3?"":ct.linkTextDecoration,ct=>ct.liVersion===3?"":ct.linkTextDecoration);var q=T(38047),ft=T(72064),K=T(64122);const it=(ct,G)=>{var B;if(!ct)return[0,0];const{aniName:W="",aniDuration:ut=0,endTime:H=0}=((B=(0,ft.EW)())==null?void 0:B.getWidgetAnimationRecords(G))||{};return W===K.nn?[ut,H]:[0,0]},nt=(ct,G,B)=>{const W=G==="preview"&&ct.hotAttr.type===I.x.WRichText&&!B,{key:ut,hotAttr:{textV1:H}}=ct,{blocks:N={}}=H,[Y,gt]=it(W,ut),pt=!W||Y===0,[Tt,mt]=(0,z.useState)(()=>{if(pt)return H;const kt=Object.keys(N).sort((Mt,At)=>(0,q.EN)(Mt.substring(1))-(0,q.EN)(At.substring(1))),_t={[kt[0]]:{...N[kt[0]],text:""}};return{...H,blocks:_t}}),lt=(0,z.useRef)(),A=(0,z.useCallback)(()=>{if(pt)return;const kt=Object.keys(N).sort((Nt,Vt)=>(0,q.EN)(Nt.substring(1))-(0,q.EN)(Vt.substring(1))),_t=kt.reduce((Nt,Vt)=>Nt+N[Vt].text,"").length,Mt={[kt[0]]:{...N[kt[0]],text:""}},At=performance.now(),jt=()=>{const Nt=(performance.now()-At)/Y;if(Nt<1){const Vt=Math.floor(_t*Nt);let Wt=0;const Ot=Mt;for(const Dt of kt){if(Wt>=Vt)break;if(Wt+N[Dt].text.length<Vt)Ot[Dt]={...N[Dt]},Wt=Wt+N[Dt].text.length;else{Ot[Dt]={...N[Dt]};const Ht=N[Dt].text.slice(0,Vt-Wt);Ot[Dt].text=Ht;break}}mt({...H,blocks:Ot}),lt.current=requestAnimationFrame(jt)}else mt(H)};lt.current=requestAnimationFrame(jt)},[pt,N,Y,H]);return(0,z.useEffect)(()=>{Y>0&&gt>0&&A()},[Y,gt,A]),(0,z.useEffect)(()=>()=>{lt.current&&cancelAnimationFrame(lt.current)},[]),pt?H:Tt};var vt=T(72214);const at=ct=>{let G="flex-start";return ct==="center"&&(G="center"),ct==="right"&&(G="flex-end"),G},et=ct=>{const{w:G,h:B,richTextV1:{sizeType:W,fontFamily:ut,fontDirection:H,fontWeight:N,fontSize:Y,textColor:gt,letterSpacing:pt,lineHeight:Tt,underline:mt,strikethrough:lt,italic:A,bold:kt,verticalAlign:_t,horizontalAlign:Mt,paddingTuple:At,isClipText:jt},shadow:Nt,type:Vt}=ct,Wt=Vt===I.x.WRichText,Ot=Vt===I.x.WMindNode;let Dt="";mt&&(Dt="underline"),lt&&(Dt+=(Dt?" ":"")+"line-through"),Dt===""&&(Dt="none");const Ht=Wt?(0,V._y)(N,kt):kt?700:400,tt=Nt&&Wt?{textShadow:Nt.shadowIsVisible?Nt.offsetX+"px "+Nt.offsetY+"px "+Nt.blurRadius+"px "+(0,D.t0)(Nt.shadowColor):"none"}:{};return{overflow:W===0||W===1&&!jt?"visible":"hidden",width:Ot?G:"100%",height:Ot?B:"100%",fontFamily:ut,fontSize:Y+"px",fontWeight:Ht,fontStyle:A?"italic":"normal",justifyContent:_t,alignItems:at(Mt),textAlign:Mt,boxShadow:"none",writingMode:H,color:gt,letterSpacing:pt+"px",lineHeight:Tt+"px",...(0,S.N3)(At),textDecoration:Dt,display:"flex",flexDirection:"column",...tt}},yt=ct=>{let{widget:G,styles:B,isAutoSize:W,mode:ut}=ct;const{key:H,hotAttr:N}=G,{type:Y,textV1:gt,richTextV1:pt}=N,Tt=N["!liVersion"],mt=(0,ot.a5)(gt.blocks),lt=nt(G,ut,mt);if(mt||(0,ot.a5)(lt.blocks))return null;const A=(0,ht.d0)({...N,textV1:lt},H),kt=Z()("rich-text","h-"+pt.horizontalAlign,Y),_t=pt.sizeType===0||W,Mt=et(N),At=Mt.textDecoration,jt=At==="none"?"underline":At.includes("underline")?At:At+" underline",Nt={...Mt,...B};return(0,vt.jsx)($,{className:kt,style:Nt,isAutoSize:_t,linkTextDecoration:jt,liVersion:Tt,children:(0,vt.jsx)("div",{id:"text-dom-"+H,className:"text",dangerouslySetInnerHTML:{__html:A}})})},rt=(0,z.memo)(yt)},39306:(oe,Ct,T)=>{"use strict";T.d(Ct,{Lv:()=>I,Qb:()=>F,Xh:()=>Z});const F=[{value:1,settingIconName:"design/arrow/arrow_one",size:[8,9],type:"arrow",getPath:(D,V,ht,ot)=>'<path d="M0 0 L'+D+" "+V/2+" L0 "+V+' Z" fill="'+ot+'" fill-rule="nonzero"/>',lineWidth:D=>D},{value:2,settingIconName:"design/arrow/arrow_two",size:[8,9],type:"arrow",getPath:(D,V,ht,ot)=>'<path d="M'+ht*.5+" "+ht*.75+" L"+(D-ht*.95)+" "+D/2+" L"+ht*.5+" "+(V-ht*.75)+' Z" stroke-width="'+ht+'" stroke-linejoin="miter" fill="transparent" stroke="'+ot+'" fill-rule="nonzero"/>',lineWidth:D=>D},{value:3,settingIconName:"design/arrow/arrow_three",size:[8,9],type:"arrow",getPath:(D,V,ht,ot)=>'<path d="M0 0 L'+D+" "+V/2+" L0 "+V+" L"+Number((D/3).toFixed(1))+" "+(V-ht)/2+" L"+D/3+" "+((V-ht)/2+ht)+' Z" stroke-linejoin="miter" fill="'+ot+'" />',lineWidth:D=>D-Number((D/3).toFixed(1)),getRefX:D=>Number((D/3).toFixed(1))},{value:4,settingIconName:"design/arrow/arrow_four",size:[9,9],type:"circle",getPath:(D,V,ht,ot)=>{const S=D/2;return'<circle cx="'+S+'" cy="'+S+'" r="'+S+'" fill="'+ot+'" />'},lineWidth:D=>D,ScaleCardinality:7},{value:5,settingIconName:"design/arrow/arrow_five",size:[9,9],type:"circle",getPath:(D,V,ht,ot)=>{const S=D/2;return' <circle cx="'+S+'" cy="'+S+'" r="'+(D-ht)/2+'" fill="transparent" stroke-width="'+ht+'" stroke="'+ot+'" />'},lineWidth:D=>D,ScaleCardinality:7},{value:6,settingIconName:"design/arrow/arrow_six",size:[9,9],type:"rect",getPath:(D,V,ht,ot)=>'<rect x="0" y="0" width="'+D+'" height="'+V+'" fill="'+ot+'" />',lineWidth:D=>D,ScaleCardinality:7},{value:7,settingIconName:"design/arrow/arrow_seven",size:[9,9],type:"rect",getPath:(D,V,ht,ot)=>{const S=ht/2;return'<path d="M'+S+" "+S+" L"+(D-S)+" "+S+" L"+(D-S)+" "+(V-S)+" L"+S+" "+(V-S)+' Z" fill="transparent" stroke="'+ot+'" stroke-width="'+ht+'" />'},lineWidth:D=>D,ScaleCardinality:7},{value:8,settingIconName:"design/arrow/arrow_eight",size:[11,11],type:"diamond",getPath:(D,V,ht,ot)=>{const S=D/2,O=V/2;return'<path d="M'+S+" 0 L"+D+" "+O+" L"+S+" "+V+" L0 "+O+' Z" fill="'+ot+'" />'},lineWidth:D=>D*.8,getRefX:D=>D*.2,ScaleCardinality:7},{value:9,settingIconName:"design/arrow/arrow_nine",size:[11,11],type:"diamond",getPath:(D,V,ht,ot)=>{const S=D/2,O=V/2,$=.75*ht;return'<path d="M'+S+" "+$+" L"+(D-$)+" "+O+" L"+S+" "+(V-$)+" L"+$+" "+O+' Z" fill="transparent" stroke="'+ot+'" stroke-width="'+ht+'" stroke-linejoin="miter"/>'},lineWidth:D=>D*.8,getRefX:D=>D*.2,ScaleCardinality:7}],Z=D=>F.filter(V=>V.value===D)[0],I=(D,V)=>{const ht=Z(D);if(V===1)return{w:ht.size[0],h:ht.size[1]};switch(ht.type){case"arrow":return{w:8+(V-1)*4+V,h:9+(V-1)*4+V};case"diamond":return{w:(ht.ScaleCardinality+(V-1)*3+V)/.8,h:(ht.ScaleCardinality+(V-1)*3+V)/.8};case"circle":return{w:(ht.ScaleCardinality+(V-1)*3+V)*1.1,h:(ht.ScaleCardinality+(V-1)*3+V)*1.1};default:return{w:ht.ScaleCardinality+(V-1)*3+V,h:ht.ScaleCardinality+(V-1)*3+V}}},z=D=>{const{arrowPointFromType:V,arrowPointToType:ht,arrowStroke:{bdrWidth:ot}}=D,{h:S}=I(V,ot),{h:O}=I(ht,ot);return Math.max(S,O)}},39338:oe=>{var Ct=function(T){return T.replace(/[A-Z]/g,function(F){return"-"+F.toLowerCase()}).toLowerCase()};oe.exports=Ct},39490:(oe,Ct,T)=>{"use strict";T.d(Ct,{q:()=>I,s:()=>Z});var F=T(69415);const Z=z=>{var D,V;let{iconData:ht}=z;return{icVB:ht.viewBox,icP:ht.path,icNCS:[ht.iconName,ht.iconColor,(0,F.c5)(ht.iconSize)],icSA:[((D=ht.svgAttr)==null?void 0:D.fill)||0,((V=ht.svgAttr)==null?void 0:V.stroke)||0],iMCI:ht.isMultiColorIcon}},I=z=>{let{icVB:D,icP:V,icNCS:ht,icSA:ot,iMCI:S}=z;const[O,$,q]=ht,[ft,K]=ot;return{iconData:{viewBox:D,path:V,iconName:O,iconColor:$,iconSize:(0,F._3)(q),svgAttr:{fill:ft===0?void 0:ft,stroke:K===0?void 0:K},isMultiColorIcon:S||!1}}}},41658:(oe,Ct,T)=>{"use strict";T.d(Ct,{K:()=>F,k:()=>Z});const F=I=>{let{injection:z}=I;return{i:z}},Z=I=>{let{i:z}=I;return{injection:z}}},41815:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>jt});var F=T(28068),Z=T(51125),I=T.n(Z),z=T(70302);const D=Vt=>{let Wt,Ot=null;return document.implementation&&document.implementation.createHTMLDocument&&(Wt=document.implementation.createHTMLDocument("foo"),Wt.documentElement.innerHTML=Vt,Ot=Wt.getElementsByTagName("body")[0]),Ot},V=" ",ht=4,ot=new RegExp("\\n","g"),S=new RegExp("^\\n","g"),O=(Vt,Wt,Ot,Dt)=>{const Ht=Vt.textContent.replace(S,"").replace(ot,Dt?V:"");return{chunk:{text:Ht,inlines:Array(Ht.length).fill(Wt),entities:Array(Ht.length).fill(Ot),blocks:[]}}},$=()=>({text:"",inlines:[],entities:[],blocks:[]}),q=()=>({text:"\r",inlines:[],entities:[],blocks:[]}),ft=(Vt,Wt)=>({text:"",inlines:[],entities:[],blocks:[{type:Vt,depth:0,data:Wt||(0,z.T5)({})}]}),K=(Vt,Wt,Ot)=>({text:"\r",inlines:[],entities:[],blocks:[{type:Vt,depth:Math.max(0,Math.min(ht,Wt)),data:Ot||(0,z.T5)({})}]}),it=Vt=>({text:"\r ",inlines:[(0,z.CD)()],entities:[Vt],blocks:[{type:"atomic",depth:0,data:(0,z.T5)({})}]}),nt=Vt=>({text:" ",inlines:[(0,z.CD)()],entities:[Vt],blocks:[{type:"atomic",depth:0,data:(0,z.T5)({})}]}),vt=(Vt,Wt)=>({text:Vt.text+Wt.text,inlines:Vt.inlines.concat(Wt.inlines),entities:Vt.entities.concat(Wt.entities),blocks:Vt.blocks.concat(Wt.blocks)});var at=T(44916);const et=(0,z.T5)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},unstyled:{element:"p",aliasedElements:["div"]}}),yt=(Vt,Wt,Ot)=>{const Dt=et.filter(Ht=>Ht.element===Wt&&(!Ht.wrapper||Ht.wrapper===Ot)||Ht.wrapper===Wt||Ht.aliasedElements&&Ht.aliasedElements.indexOf(Wt)>-1).keySeq().toSet().toArray();if(Dt.length===1){let Ht=Dt[0];return[at.a.BASIC].includes(Vt)&&Ht!=="unstyled"&&(Ht="unstyled"),Ht}},rt=["left","center","right","justify"],ct=["0","2em","2rem"],G=(Vt,Wt)=>{if(!Wt.style)return;const{textAlign:Ot,marginLeft:Dt,marginBottom:Ht}=Wt.style;let tt=(0,z.T5)();if([at.a.COMMON].includes(Vt)&&(Ot&&rt.includes(Ot)&&(tt=tt.set("textAlign",Ot)),Dt)){let Pt;ct.includes(Dt)&&(Pt=Number(Dt.replace("em","").replace("rem","")));const zt=Wt.classList;if(zt&&zt.length)for(let te=0;te<zt.length;te+=1){const $t=zt[te];if($t.includes("rdw-indent-")){Pt=Number($t.split("rdw-indent-")[1]);break}}Pt&&(tt=tt.set("textIndent",Pt))}if([at.a.TEXT].includes(Vt)&&Ht){const Pt=Wt.getAttribute("style");if(Pt&&Pt.includes("margin-bottom")){const zt=Ht.replace("px","");Number(zt)+""===zt&&(tt=tt.set("paraSpacing",Number(Ht.replace("px",""))))}}return tt.size?tt:void 0},B=Vt=>{let Wt;if(Vt instanceof HTMLAnchorElement){const Ot={};Vt.dataset&&Vt.dataset.mention!==void 0?(Ot.url=Vt.href,Ot.text=Vt.innerHTML,Ot.value=Vt.dataset.value,Wt=F.wC.__create("MENTION","IMMUTABLE",Ot)):(Ot.url=Vt.getAttribute&&(Vt.getAttribute("href")||Vt.getAttribute("data-href"))||Vt.href,Ot.title=Vt.innerHTML,Ot.targetOption=Vt.target,Wt=F.wC.__create("LINK","MUTABLE",Ot))}return Wt};var W=T(44854);const ut={sub:"SUBSCRIPT",sup:"SUPERSCRIPT",strike:"STRIKETHROUGH",s:"STRIKETHROUGH",del:"STRIKETHROUGH",i:"ITALIC",em:"ITALIC",b:"fontweight-700",strong:"fontweight-700",u:"UNDERLINE",ins:"UNDERLINE"},H=Vt=>{let{componentType:Wt,tag:Ot,node:Dt,currentStyle:Ht,inlineProcessType:tt}=Vt,Pt=ut[Ot];tt==="plain"&&(Pt=void 0);let zt;if(tt==="plain")return Ht;if(Pt)zt=Ht.add(Pt).toOrderedSet();else if(Dt instanceof HTMLElement){zt=Ht;const te=Dt;zt=zt.withMutations($t=>{const ae=te.style.color,Xt=te.style.fontSize,ve=te.style.fontFamily.replace(/^"|"$/g,""),Se=te.style.fontWeight,we=te.style.textDecoration||"",Ee=te.style.fontStyle,ke=te.style.lineHeight,Le=te.style.letterSpacing;if(Se&&(["bold"].includes(Se)?$t.add("fontweight-700"):["light","lighter","normal"].includes(Se),["100","200","300","400","500","600","700","800","900","1000"].includes(Se))){const Oe=Number(Se);(["700"].includes(Se)||tt==="total")&&$t.add("fontweight-"+Oe)}if(Ee==="italic"?$t.add("ITALIC"):Ee==="normal"&&$t.remove("ITALIC"),we.includes("underline")&&$t.add("UNDERLINE"),we.includes("line-through")&&$t.add("STRIKETHROUGH"),we==="none"&&($t.remove("UNDERLINE"),$t.remove("STRIKETHROUGH")),tt==="total"){if(ae&&(ae.startsWith("rgba")?$t.add("color-"+ae.replace(/ /g,"")):$t.add("color-"+ae.replace(/ /g,"").replace(/\)/g,",1)").replace("rgb","rgba"))),Xt){const Oe=Xt.replace(/px$/g,"");W.mQ.includes(Oe)&&$t.add("fontsize-"+Oe)}if([at.a.TEXT].includes(Wt)){if(ke){const Oe=ke.includes("px")?ke:ke+"px";W.$M.includes(Oe)&&$t.add("lineheight-"+Oe)}if([at.a.TEXT].includes(Wt)&&(ve&&W.d1.includes(ve)&&$t.add("fontfamily-"+ve),Le)){const Oe=Le.includes("px")?Le:Le+"px",Ke=parseFloat(Oe).toFixed(1);W.Nk[Ke]&&$t.add("letterspacing-"+Ke+"px")}}}}).toOrderedSet()}return zt};var N=T(43838);const Y="&nbsp;",gt=" ",pt=new RegExp("\\r","g"),Tt=new RegExp(Y,"g"),mt=new RegExp("&#13;","g"),lt=new RegExp("&#8203;?","g"),A=["unordered-list-item","ordered-list-item"],kt={"public-DraftStyleDefault-depth0":0,"public-DraftStyleDefault-depth1":1,"public-DraftStyleDefault-depth2":2,"public-DraftStyleDefault-depth3":3,"public-DraftStyleDefault-depth4":4};let _t=!0;const Mt=Vt=>{let{componentType:Wt,node:Ot,inlineStyle:Dt,depth:Ht,lastList:tt,inEntity:Pt,isFromFeishu:zt,inlineProcessType:te,isSearchReplace:$t,isExpr:ae}=Vt;const Xt=Ot.nodeName.toLowerCase();let ve=Ht;if(Xt==="#text")return O(Ot,Dt,Pt,zt);if(Xt==="br"){const ke=Ot.nextSibling,Le=ke&&(ke.nodeName||"").toLowerCase();return Le==="#text"||Le==="br"?{chunk:q()}:{chunk:$()}}if(Xt==="mbwattr")return{chunk:{text:ae?Ot.dataset.exprwattrkey:Ot.textContent,inlines:[],entities:[],blocks:[]}};if(Wt===at.a.COMMON&&Xt==="img"&&Ot instanceof HTMLImageElement){const ke={};ke.src=Ot.getAttribute&&Ot.getAttribute("src")||Ot.src,ke.alt=Ot.alt,ke.height=Ot.style.height,ke.width=parseFloat(Ot.style.width),Ot.style.float&&(ke.alignment=Ot.style.float),Ot.style.textAlign&&(ke.alignment=Ot.style.textAlign),ke.alignment||(ke.alignment="center");const Le=F.wC.__create("IMAGE","MUTABLE",ke);return{chunk:$t?nt(Le):it(Le)}}if(Xt==="video"&&Ot instanceof HTMLVideoElement)return{chunk:$()};if(Xt==="iframe"&&Ot instanceof HTMLIFrameElement)return{chunk:$()};const Se=yt(Wt,Xt,tt);let we;if(Se)if(Xt==="ul"||Xt==="ol")tt=Xt,ve+=1;else{const ke=Ot.parentNode,Le=ke&&ke.nodeName&&["div","p","ol","ul"].includes(ke.nodeName.toLowerCase()),Oe=ke.childNodes;let Ke=!1;Le&&Oe&&Oe.length&&(Ke=I()(Oe,fr=>fr.nodeName.toLowerCase()!=="#text"));const Qe=Ot&&Ot.nodeName&&["div","p","ol","ul"].includes(Ot.nodeName.toLowerCase()),hr=Ot.childNodes;let Fe=!1;Qe&&hr&&hr.length&&(Fe=I()(hr,fr=>fr.nodeName.toLowerCase()!=="#text"));const yr=Ke&&Fe;if(!A.includes(Se))yr||(tt="",ve=-1);else{const fr=Ot.classList;A.includes(Se)&&fr&&fr.length&&I()(fr,Ar=>{if(Ar&&Ar.startsWith("public-DraftStyleDefault-depth")){const Tr=kt[Ar];if(typeof Tr=="number")return ve=Tr,!1}return!0})}_t?(we=ft(Se,G(Wt,Ot)),_t=!1):yr||ke&&ke.nodeName&&!["li","h1","h2","h3"].includes(ke.nodeName.toLowerCase())&&(we=K(Se,ve,G(Wt,Ot)))}we||(we=$()),Dt=H({componentType:Wt,tag:Xt,node:Ot,currentStyle:Dt,inlineProcessType:te});let Ee=Ot.firstChild;for(;Ee;){const ke=B(Ee),{chunk:Le}=Mt({componentType:Wt,node:Ee,inlineStyle:Dt,depth:ve,lastList:tt,inEntity:ke||Pt,isFromFeishu:zt,inlineProcessType:te,isSearchReplace:$t,isExpr:ae});we=vt(we,Le),Ee=Ee.nextSibling}return{chunk:we}},At=(Vt,Wt,Ot,Dt,Ht)=>{let tt=Vt.trim().replace(pt,"").replace(Tt,gt).replace(mt,"").replace(lt,"");const Pt=(0,N.NW)(Vt);tt=tt.replace(/<br[^>]*>/g,"<br>").replace(/<meta[^>]*>/g,"").replace(/<figure[^>]*>/g,"").replace(/<\/figure>/g,"").replace(/<!--[^-->]*-->/g,"").replace(/<([ou]l)[^>]*\s+(style="[^"]*?(font-size|color)[^;"]*?;?[^"]*?")[^>]*>/g,"<$1>").replace(/<style[^>]*>[^]*?<\/style>/g,""),Dt||(tt=tt.replace(/<img[^>]*>/g,"")),Wt===at.a.BASIC&&(tt=tt.replace(/<a[^>]*>/g,"").replace(/<\/a>/g,""),tt=tt.replace(/<ul/g,"<div").replace(/<\/ul>/g,"</div>").replace(/<li/g,"<div").replace(/<\/li>/g,"</div>").replace(/public-DraftStyleDefault-depth[0-4]/g,""));const zt=D(tt);if(!zt)return null;let te=!1;if(!Pt){const ae=zt.querySelector(".lark-record-clipboard");ae&&ae.remove(),te=!!ae;const Xt=zt.children,ve=zt.children[0];if(Xt.length===1&&Xt[0].tagName==="DIV"&&ve.children.length>=1){const Se=ve.children;for(;Se.length>0;)zt.appendChild(Se[0])}te&&zt.querySelectorAll("[data-page-id]").forEach(we=>{we.remove()})}_t=!0;const{chunk:$t}=Mt({componentType:Wt,node:zt,inlineStyle:(0,z.CD)(),depth:-1,lastList:"",inEntity:void 0,isFromFeishu:te,inlineProcessType:Ot,isSearchReplace:Dt,isExpr:Ht});return{chunk:$t}},jt=Vt=>{let{html:Wt,componentType:Ot=0,inlineProcessType:Dt="total",isSearchReplace:Ht=!1,isExpr:tt=!1}=Vt;const Pt=At(Wt,Ot,Dt,Ht,tt);if(Pt){const{chunk:zt}=Pt;let te=(0,z.uY)({});zt.entities&&zt.entities.forEach(ae=>{ae&&(te=te.set(ae,F.wC.__get(ae)))});let $t=0;if(Ot===at.a.COMMON&&Ht){const ae=zt.blocks.reduce((we,Ee,ke)=>{if(Ee.type==="atomic"){if(ke>0){const Le=we.pop();we.push({...Le,type:"atomic"})}}else we.push(Ee);return we},[]),Xt={...zt,blocks:ae};return{contentBlocks:Xt.text.split("\r").map((we,Ee)=>{const ke=$t+we.length,Le=Xt&&Xt.inlines.slice($t,ke),Oe=Xt&&Xt.entities.slice($t,ke),Ke=Nt(Le,Oe);return $t=ke,new F.$G({key:(0,F.Se)(),type:Xt&&Xt.blocks[Ee]&&Xt.blocks[Ee].type||"unstyled",depth:Xt&&Xt.blocks[Ee]&&Xt.blocks[Ee].depth,data:Xt&&Xt.blocks[Ee]&&Xt.blocks[Ee].data||(0,z.T5)({}),text:we,characterList:Ke})}),entityMap:te}}else return{contentBlocks:zt.text.split("\r").map((ve,Se)=>{const we=$t+ve.length,Ee=zt&&zt.inlines.slice($t,we),ke=zt&&zt.entities.slice($t,we),Le=Nt(Ee,ke);return $t=we,new F.$G({key:(0,F.Se)(),type:zt&&zt.blocks[Se]&&zt.blocks[Se].type||"unstyled",depth:zt&&zt.blocks[Se]&&zt.blocks[Se].depth,data:zt&&zt.blocks[Se]&&zt.blocks[Se].data||(0,z.T5)({}),text:ve,characterList:Le})}),entityMap:te}}return null},Nt=(Vt,Wt)=>(0,z.B8)(Vt.map((Ot,Dt)=>{const Ht={style:Ot,entity:null};return Wt[Dt]&&(Ht.entity=Wt[Dt]),F.z5.create(Ht)}))},42715:(oe,Ct,T)=>{"use strict";T.d(Ct,{MR:()=>Z,eC:()=>I,uQ:()=>z});const F=JSON.parse('{"iphone_se":{"device":"iphone_se","bg":"iphone_se","width":370,"height":750,"top":92,"left":25},"iphone_5":{"device":"iphone_5","bg":"iphone_se","width":370,"height":750,"top":91,"left":25},"iphone_6":{"device":"iphone_6","bg":"iphone_7","width":435,"height":888,"top":114,"left":30},"iphone_8":{"device":"iphone_8","bg":"iphone_7","width":435,"height":888,"top":114,"left":30},"iphone_6_plus":{"device":"iphone_6_plus","bg":"iphone_7_plus","width":482,"height":983,"top":127,"left":34},"iphone_8_plus":{"device":"iphone_8_plus","bg":"iphone_7_plus","width":482,"height":983,"top":127,"left":34},"iphone_x":{"device":"iphone_x","bg":"iphone_x","width":435,"height":864,"top":26,"left":30},"iphone_xs_max":{"device":"iphone_xs_max","bg":"iphone_xs_max","width":475,"height":950,"top":28,"left":31},"iphone_11_pro":{"device":"iphone_x","bg":"iphone_x","width":435,"height":864,"top":26,"left":30},"iphone_11_pro_max":{"device":"iphone_11_pro_max","bg":"iphone_11","width":502,"height":975,"top":40,"left":44},"iphone_12_pro":{"device":"iphone_12_pro","bg":"iphone_12","width":438,"height":884,"top":20,"left":24},"iphone_12_pro_max":{"device":"iphone_12_pro_max","bg":"iphone_12_pro_max","width":478,"height":967,"top":20,"left":25},"iphone_13_pro":{"device":"iphone_13_pro","bg":"iphone_14","width":458,"height":910,"top":33,"left":34},"iphone_13_pro_max":{"device":"iphone_13_pro_max","bg":"iphone_14_plus","width":488,"height":992,"top":33,"left":30},"iphone_13_mini":{"device":"iphone_13_mini","bg":"iphone_13_mini","width":430,"height":866,"top":27,"left":27,"right":28},"iphone_14_pro":{"device":"iphone_14_pro","bg":"iphone_14","width":458,"height":910,"top":33,"left":34},"iphone_14_pro_max":{"device":"iphone_14_pro_max","bg":"iphone_14_pro_max","width":482,"height":977,"top":22,"left":26},"iphone_15_pro_max":{"device":"iphone_15_pro_max","bg":"iphone_15_pro_max","width":494,"height":1009,"top":40,"left":32},"iphone_15_pro":{"device":"iphone_15_pro","bg":"iphone_15_pro","width":476,"height":933,"top":41,"left":41.5,"right":41.5},"iphone_15_plus":{"device":"iphone_15_plus","bg":"iphone_15_plus","width":508,"height":1010,"top":39,"left":39},"iphone_15":{"device":"iphone_15","bg":"iphone_15","width":472,"height":930,"top":40,"left":40,"right":39},"iphone_16_pro_max":{"device":"iphone_16_pro_max","bg":"iphone_16_pro_max","width":521,"height":1030,"top":38.5,"left":41},"iphone_16_pro":{"device":"iphone_16_pro","bg":"iphone_16_pro","width":484,"height":950,"top":38.5,"left":41},"iphone_16_plus":{"device":"iphone_16_plus","bg":"iphone_16_plus","width":521,"height":1016,"top":43.5,"left":46},"iphone_16":{"device":"iphone_16","bg":"iphone_16","width":485,"height":938,"top":43.5,"left":46},"iphone_17_pro_max":{"device":"iphone_17_pro_max","bg":"iphone_17_pro_max","width":506,"height":1022,"top":34,"left":33},"iphone_17_pro":{"device":"iphone_17_pro","bg":"iphone_17_pro","width":468,"height":940,"top":33,"left":33.5},"iphone_17":{"device":"iphone_17","bg":"iphone_17","width":468,"height":940,"top":33,"left":33.5},"iphone_air":{"device":"iphone_air","bg":"iphone_air","width":460,"height":958,"top":23,"left":19.5},"Huawei":{"device":"huawei","bg":"huawei_p9","width":400,"height":800,"top":77,"left":20},"Huawei_p8":{"device":"Huawei_p8","bg":"huawei_p9","width":400,"height":800,"top":77,"left":20},"Huawei_p40":{"device":"Huawei_p40","bg":"huawei_p40_v2","width":429,"height":880,"top":15,"left":16,"right":18},"Huawei_p40_error":{"device":"Huawei_p40","bg":"huawei_p40","width":392,"height":805,"top":15,"left":15},"Huawei_mate60":{"device":"Huawei_mate60","bg":"Huawei_mate60","width":432,"height":914,"top":14,"left":15,"right":12},"Huawei_mate60_pro":{"device":"Huawei_mate60_pro","bg":"Huawei_mate60_pro","width":452,"height":935,"top":14,"left":16},"Huawei_mate70":{"device":"Huawei_mate70","bg":"Huawei_mate70","width":486,"height":946,"top":31,"left":40},"Huawei_mate70_pro":{"device":"Huawei_mate70_pro","bg":"Huawei_mate70_pro","width":523,"height":1022,"top":39,"left":39.5},"Huawei_mate70_pro_plus":{"device":"Huawei_mate70_pro_plus","bg":"Huawei_mate70_pro_plus","width":523,"height":1022,"top":39,"left":39.5},"Huawei_mateX5_expand":{"device":"Huawei_mateX5_expand","bg":"Huawei_mateX5_expand","width":786,"height":870,"top":18.5,"left":21,"right":24},"Huawei_mateX5_fold":{"device":"Huawei_mateX5_fold","bg":"Huawei_mateX5_fold","width":400,"height":870,"top":17,"left":21,"right":19},"Huawei_mateXT_one_screen":{"device":"Huawei_mateXT_one_screen","bg":"Huawei_mateXT_one_screen","width":368,"height":778.5,"top":17.5,"left":17},"Huawei_mateXT_two_screen":{"device":"Huawei_mateXT_two_screen","bg":"Huawei_mateXT_two_screen","width":717,"height":779,"top":17,"left":8},"Huawei_mateXT_three_screen":{"device":"Huawei_mateXT_three_screen","bg":"Huawei_mateXT_three_screen","width":1102,"height":790,"top":22,"left":16},"samsung":{"device":"samsung","bg":"samsung_s7","width":398,"height":804,"top":85,"left":19},"samsung_galaxy_s23":{"device":"samsung_galaxy_s23","bg":"samsung_galaxy_s23","width":393,"height":810,"top":14,"left":14,"right":19},"google_nexus":{"device":"android","bg":"nexus_5","width":402,"height":798,"top":70,"left":21},"google_pixel_2":{"device":"google_pixel_2","bg":"google_pixel_2","width":481,"height":956,"top":112,"left":35},"google_pixel_2_xl":{"device":"google_pixel_2_xl","bg":"google_pixel_2_xl","width":509,"height":955,"top":70,"left":49},"Xiaomi_14":{"device":"Xiaomi_14","bg":"Xiaomi_14","width":426,"height":917,"top":12,"left":13,"right":12},"Xiaomi_15":{"device":"Xiaomi_15","bg":"Xiaomi_15","width":476,"height":962,"top":36,"left":36},"smart_tv":{"device":"web","bg":"sony_w850c","width":2038,"height":1244,"top":21,"left":36},"car_play":{"device":"web","bg":"car_play","width":1810,"height":1396,"top":86,"left":255},"car_play_hmi":{"device":"web","bg":"car_play","width":1810,"height":1396,"top":86,"left":255},"Xiaomi":{"device":"android","bg":"nexus_5","width":402,"height":798,"top":70,"left":21},"ipad_3_4":{"device":"ipad","bg":"ipad","width":881,"height":1247,"top":111,"left":56.5},"ipad_pro":{"device":"ipad","bg":"ipad_pro","width":1224,"height":1716,"top":175,"left":100},"ipad_mini":{"device":"ipad_mini","bg":"ipad_mini","width":864,"height":1304,"top":140,"left":48},"ipad_pro_11":{"device":"ipad_pro_11","bg":"ipad_pro_11","width":944,"height":1304,"top":55,"left":55},"ipad_pro_12":{"device":"ipad_pro_12","bg":"ipad_pro_12","width":1146,"height":1482,"top":59,"left":61},"ipad_2023":{"device":"ipad_2023","bg":"ipad_2023","width":944,"height":1304,"top":64,"left":62},"Huawei_mate_pad_pro_13_2":{"device":"Huawei_mate_pad_pro_13_2","bg":"Huawei_mate_pad_pro_13_2","width":1010,"height":1492,"top":24,"left":23.5,"bottom":29,"landscape":"clockwise"},"Huawei_mate_pad_pro_11":{"device":"Huawei_mate_pad_pro_11","bg":"Huawei_mate_pad_pro_11","width":891,"height":1375,"top":50,"left":45,"right":45},"apple_watch_38":{"device":"apple_watch","bg":"apple_watch_38","width":224,"height":400,"top":115,"left":38},"apple_watch_40":{"device":"apple_watch","bg":"apple_watch_40","width":230,"height":399,"top":101,"left":29},"apple_watch_se_40":{"device":"apple_watch","bg":"apple_watch_se_40","width":256,"height":438,"top":121,"left":47},"apple_watch_42":{"device":"apple_watch","bg":"apple_watch_42","width":244,"height":438,"top":121,"left":38},"apple_watch_44":{"device":"apple_watch","bg":"apple_watch_44","width":251,"height":430,"top":103,"left":28},"apple_watch_se_44":{"device":"apple_watch","bg":"apple_watch_se_44","width":274,"height":448,"top":112.5,"left":45},"apple_watch_ultra_2_49":{"device":"apple_watch_ultra_2_49","bg":"apple_watch_ultra_2_49","width":300,"height":470,"top":109.5,"left":48},"apple_watch_9_45":{"device":"apple_watch_9_45","bg":"apple_watch_9_45","width":270,"height":430,"top":94,"left":36},"apple_watch_9_41":{"device":"apple_watch_9_41","bg":"apple_watch_9_41","width":238,"height":376,"top":81,"left":30,"right":32},"Huawei_watch_gt4_46":{"device":"Huawei_watch_gt4_46","bg":"Huawei_watch_gt4_46","width":300,"height":480,"top":124,"left":33.5},"Huawei_watch_gt4_41":{"device":"Huawei_watch_gt4_41","bg":"Huawei_watch_gt4_41","width":276,"height":482,"top":123,"left":21.5},"Huawei_watch_gt5_46":{"device":"Huawei_watch_gt5_46","bg":"Huawei_watch_gt5_46","width":317,"height":489,"top":128,"left":42},"Huawei_watch_gt5_41":{"device":"Huawei_watch_gt5_41","bg":"Huawei_watch_gt5_41","width":334,"height":605,"top":186,"left":51},"Huawei_wristband_8":{"device":"Huawei_wristband_8","bg":"Huawei_wristband_8","width":117,"height":304,"top":61,"left":9.5},"Huawei_wristband_9":{"device":"Huawei_wristband_9","bg":"Huawei_wristband_9","width":176.5,"height":359,"top":82,"left":36.5},"Xiaomi_wristband_8":{"device":"Xiaomi_wristband_8","bg":"Xiaomi_wristband_8","width":144,"height":442,"top":94,"left":24},"Xiaomi_wristband_9":{"device":"Xiaomi_wristband_9","bg":"Xiaomi_wristband_9","width":212,"height":503,"top":120.5,"left":59},"desktop_1920":{"device":"desktop_1920","bg":"desktop_1920","width":2060,"height":1743,"top":72,"left":70},"desktop":{"device":"desktop","bg":"desktop","width":2034,"height":1276,"top":87,"left":302},"imac":{"device":"imac","bg":"imac","width":1393,"height":1151,"top":60,"left":56.5},"imac_2023":{"device":"imac_2023","bg":"imac_2023","width":2378,"height":2018,"top":78.5,"left":69},"mac_book_pro":{"device":"mac_book_pro","bg":"mac_book_pro","width":1882,"height":1098,"top":71,"left":221},"mac_book_pro_16":{"device":"mac_book_pro_16","bg":"mac_book_pro_16","width":2170,"height":1430,"top":156.5,"left":221},"mac_book_pro_14":{"device":"mac_book_pro_14","bg":"mac_book_pro_14","width":1972,"height":1282,"top":150,"left":230},"mac_book_air_13":{"device":"mac_book_air_13","bg":"mac_book_air_13","width":1612,"height":1052,"top":110,"left":167},"Huawei_mate_book_16s":{"device":"Huawei_mate_book_16s","bg":"Huawei_mate_book_16s","width":1804,"height":944,"top":21,"left":272},"Huawei_mate_book_14s":{"device":"Huawei_mate_book_14s","bg":"Huawei_mate_book_14s","width":1702,"height":952,"top":30.5,"left":222},"tesla_car_play_hmi":{"device":"tesla_car_play_hmi","bg":"tesla_car_play_hmi","width":1968,"height":1248,"top":24,"left":24},"industrial_hmi_16_9":{"device":"industrial_hmi_16_9","bg":"industrial_hmi_16_9","width":1968,"height":1128,"top":24,"left":24},"industrial_hmi_16_10":{"device":"industrial_hmi_16_10","bg":"industrial_hmi_16_10","width":1328,"height":848,"top":24,"left":24},"industrial_hmi_4_3":{"device":"industrial_hmi_4_3","bg":"industrial_hmi_4_3","width":1072,"height":816,"top":24,"left":24}}'),Z=D=>{if(D==="none")return null;const V=F[D];return V!=null&&V.bg?V:null},I=(D,V)=>{if(!(D!=null&&D.bg))return null;const{width:ht,height:ot,bg:S,top:O,left:$,right:q,bottom:ft,landscape:K}=D;let it=V?"rotate(-90deg) translateX(-100%)":"none",nt=V?q||$:O,vt=V?O:$;return V&&K==="clockwise"&&(it="rotate(90deg) translateY(-100%)",nt=$,vt=ft||O),{shellStyle:{width:ht,height:ot,transformOrigin:"top left",transform:it},topOffset:nt,leftOffset:vt,imageUrl:"/mb-proto2/images/devices/"+S+".png?version=20251020"}},z=D=>{if(!Z(D))return null;let V=null;return["iphone_14_pro_max","iphone_14_pro","iphone_13_pro_max","iphone_15_pro_max","iphone_15_pro","iphone_15_plus","iphone_15","iphone_16_plus","iphone_16","Huawei_mate60_pro","Huawei_mate70","Huawei_mate70_pro","Huawei_mate70_pro_plus","Xiaomi_14","Xiaomi_15","samsung_galaxy_s23","apple_watch_9_41","apple_watch_9_45"].includes(D)&&(V="25px"),["Huawei_watch_gt4_46","Huawei_watch_gt4_41","Huawei_watch_gt5_46","Huawei_watch_gt5_41"].includes(D)&&(V="30%"),["iphone_16_pro_max","iphone_16_pro","iphone_17_pro_max","iphone_17_pro","iphone_17","iphone_air","Huawei_mate60"].includes(D)&&(V="40px"),V?{borderRadius:V}:null}},42738:(oe,Ct,T)=>{"use strict";T.d(Ct,{w:()=>Z});var F=T(67787);const Z=F.Ay.div.withConfig({displayName:"styles__StyledDraftCommonEditorDiv",componentId:"sc-m6rvfo-0"})(["flex:1;position:relative;border:1px solid #ffffff;padding:12px;background-color:#ffffff;font-size:14px!important;color:rgba(25,25,25,1)!important;&.h-right{ul,ol{&.listRTL{li.listRTL{justify-content:flex-end;}}}.public-DraftEditor-content{text-align:right;}}&.h-center{ul,ol{&.listRTL{li.listRTL{justify-content:center;}}}.public-DraftEditor-content{text-align:center;}}&.h-left,&.h-justify{ul,ol{&.listRTL{li.listRTL{justify-content:flex-start;}}}.public-DraftEditor-content{text-align:left;}}&.wTear{padding:12px 6px 12px 12px;.draft-common-editor-wrapper{.draft-common-editor{min-height:84px;max-height:252px;overflow:auto;}}}&.editing{cursor:text;a{cursor:text;}}&.text{&.active{display:none !important;}}&.contentSelect{.draft-common-editor-wrapper{.draft-common-editor{.public-DraftEditor-content{&[contenteditable=false],&.is-preview{user-select:text !important;cursor:text;*{user-select:text !important;}}}}}}&.","{.draft-common-editor{.draft-link-decorator-a.","{background-color:#BAD7FB !important;}}}.draft-common-editor-wrapper{width:100%;word-break:break-word;white-space:break-spaces;.draft-common-editor{width:100%;&::-webkit-scrollbar-thumb{background-color:#dbdbdb;&:hover{background-color:#cccccc;}}.DraftEditor-editorContainer{height:initial;border:none;}.public-DraftEditorPlaceholder-inner{line-height:1.5;color:","}.public-DraftEditor-content{line-height:1.5;&[contenteditable=false]{user-select:none !important;*{user-select:none !important;}}h1{font-size:26px;span{font-size:26px !important;}}h2{font-size:22px;span{font-size:22px !important;}}h3{font-size:18px;span{font-size:18px !important;}}}.public-DraftStyleDefault-block{margin:0;}.rdw-left-aligned-block{.public-DraftStyleDefault-block{text-align:left;&::before{white-space:nowrap;}}}.rdw-center-aligned-block{.public-DraftStyleDefault-block{text-align:center;&::before{white-space:nowrap;}}}.rdw-right-aligned-block{.public-DraftStyleDefault-block{text-align:right;&::before{white-space:nowrap;right:0;}}}.rdw-justify-aligned-block{.public-DraftStyleDefault-block{text-align:justify;&::before{white-space:nowrap;}}}.rdw-indent-0{margin-left:0;}.rdw-indent-2{margin-left:2rem;}.rdw-indent-4{margin-left:4rem;}.rdw-indent-6{margin-left:6rem;}.draft-image-atomic{cursor:pointer;border-radius:2px;outline:none;margin-top:10px;margin-bottom:10px;&.unfocused:hover{outline:3px solid #accef7;}&.focused{outline:3px solid #accef7;}&.has-margin-top{margin-top:10px;}&.has-margin-bottom{margin-bottom:10px;}}}}.draft-common-editor-wrapper{.draft-common-editor{.public-DraftEditor-content{p{margin:initial;}.link-highlight{background:#BAD7FB;}a{color:rgba(25,25,25,1);> span{}}&.empty{position:relative;&::before{content:attr(data-content);color:",";}}.image-no-font-size{font-size:0px;}}}}"],I=>"active-"+I.activeKey,I=>"active-"+I.activeKey,I=>I.placeHolderColor,I=>I.placeHolderColor)},43075:(oe,Ct)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=void 0;var T={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},F=Ct.default=T},43838:(oe,Ct,T)=>{"use strict";T.d(Ct,{$H:()=>D,AU:()=>V,EU:()=>ft,NW:()=>rt,Rh:()=>nt,Tq:()=>et,U$:()=>yt,V3:()=>Z,Xy:()=>at,ZC:()=>vt,c3:()=>q,dV:()=>ht,fw:()=>K,oV:()=>S,qG:()=>it,v:()=>F,yh:()=>I,ze:()=>ct});const F=async()=>{try{const G=await navigator.clipboard.read();for(const B of G)try{return{type:"html",content:await(await B.getType("text/html")).text()}}catch(W){try{return{type:"plain",content:await(await B.getType("text/plain")).text()}}catch(ut){return{type:"none"}}}}catch(G){return{type:"none"}}},Z=G=>{let B,W;return G.clipboardData.getData("text/html")?(B="html",W=G.clipboardData.getData("text/html")):G.clipboardData.getData("text/plain")?(B="plain",W=G.clipboardData.getData("text/plain")):B="none",{type:B,content:W}},I=function(G,B,W){return W===void 0&&(W=!0),G.replace(/\r\n$/,B?"\r\n":"").split("\r\n").map(ut=>ut.split(" ").map(H=>/\n/g.test(H)?H.replace(/^"|"$/g,"").replace(/""/g,'"').replace(/\n/g,W?"<br/>":""):H))},z=async()=>{let G;try{G=(await navigator.permissions.query({name:"clipboard-read"})).state}catch(B){return"denied"}return G},D=async G=>{let{hasNotice:B=!0}=G;if(!navigator.clipboard)return!0;const W=await z();return W==="denied"||W==="prompt"?(B&&MB.notice({text:I18N.ContextMenu.clipboard_limit,type:"error"}),!0):!1},V=async()=>await z()==="denied"?(MB.notice({text:I18N.ContextMenu.copy_png_faild_right,type:"error"}),!0):!1,ht=async()=>await z()==="prompt",ot=()=>new DOMParser().parseFromString('\n <meta charset="utf-8" data-mb-meta="9">\n <span style="white-space:pre-wrap"></span>\n ',"text/html"),S=async G=>{let{itemType:B}=G;try{const W=await navigator.clipboard.read();let ut;for(const H of W)if(H.types.includes(B)){switch(B){case"text/plain":{ut=await(await H.getType("text/plain")).text();break}case"text/html":{ut=await(await H.getType("text/html")).text();break}case"image/png":{ut=await H.getType(B);break}}break}return ut}catch(W){return}},O="data-mb-type",$="data-mb-type-data",q=async(G,B)=>{const ut=new DOMParser().parseFromString(G,"text/html"),H=ut==null?void 0:ut.querySelector("["+O+"="+B+"]"),N=H==null?void 0:H.getAttribute($);return N?JSON.parse(JSON.parse(N)):""},ft=async G=>{const B=await S({itemType:"text/html"});return q(B,G)},K=async G=>{let B;try{const gt=await S({itemType:"text/html"});B=new DOMParser().parseFromString(gt,"text/html")}catch(gt){B=ot()}let W;yt(B)?W=B:W=ot();let ut=W.querySelector("["+O+'="'+G.type+'"]'),H=!1;ut||(H=!0,ut=document.createElement("meta")),ut.setAttribute(O,G.type),ut.setAttribute($,JSON.stringify(G.data)),H&&W.body.appendChild(ut);const N=W.head.innerHTML+W.body.innerHTML,Y=new Blob([N],{type:"text/html"});await navigator.clipboard.write([new ClipboardItem({"text/html":Y})])},it=async G=>{let{html:B,selectionText:W}=G;const ut=new Blob([B],{type:"text/html"}),H=new Blob([W],{type:"text/plain"});await navigator.clipboard.write([new ClipboardItem({"text/html":ut,"text/plain":H})])},nt=G=>{let{value:B}=G;const W=document.createElement("input");W.value=B,document.body.append(W),W.select(),W.setSelectionRange(0,B.length),document.execCommand("copy"),W.remove()},vt=async G=>{const B=new Blob([G],{type:"text/plain"});await navigator.clipboard.write([new ClipboardItem({"text/plain":B})])},at=async()=>await S({itemType:"text/html"}),et=async()=>{const G=await S({itemType:"text/html"}),B=new DOMParser().parseFromString(G,"text/html");if(!yt(B))return G},yt=G=>{let B=!1;return G.querySelectorAll("meta").forEach(W=>{W.getAttribute("data-mb-meta")==="9"&&(B=!0)}),B},rt=G=>{const B=new DOMParser().parseFromString(G,"text/html");return B?B.querySelector("[data-mb-text-flag]")!==null:!1},ct="<meta data-mb-text-flag=1>"},44345:(oe,Ct,T)=>{"use strict";/**
* @license React
* react-dom-server.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var F=T(38502);function Z(L){for(var J="https://reactjs.org/docs/error-decoder.html?invariant="+L,St=1;St<arguments.length;St++)J+="&args[]="+encodeURIComponent(arguments[St]);return"Minified React error #"+L+"; visit "+J+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var I=null,z=0;function D(L,J){if(J.length!==0)if(512<J.length)0<z&&(L.enqueue(new Uint8Array(I.buffer,0,z)),I=new Uint8Array(512),z=0),L.enqueue(J);else{var St=I.length-z;St<J.length&&(St===0?L.enqueue(I):(I.set(J.subarray(0,St),z),L.enqueue(I),J=J.subarray(St)),I=new Uint8Array(512),z=0),I.set(J,z),z+=J.length}}function V(L,J){return D(L,J),!0}function ht(L){I&&0<z&&(L.enqueue(new Uint8Array(I.buffer,0,z)),I=null,z=0)}var ot=new TextEncoder;function S(L){return ot.encode(L)}function O(L){return ot.encode(L)}function $(L,J){typeof L.error=="function"?L.error(J):L.close()}var q=Object.prototype.hasOwnProperty,ft=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,K={},it={};function nt(L){return q.call(it,L)?!0:q.call(K,L)?!1:ft.test(L)?it[L]=!0:(K[L]=!0,!1)}function vt(L,J,St,It,ee,Jt,pe){this.acceptsBooleans=J===2||J===3||J===4,this.attributeName=It,this.attributeNamespace=ee,this.mustUseProperty=St,this.propertyName=L,this.type=J,this.sanitizeURL=Jt,this.removeEmptyString=pe}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(L){at[L]=new vt(L,0,!1,L,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(L){var J=L[0];at[J]=new vt(J,1,!1,L[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(L){at[L]=new vt(L,2,!1,L.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(L){at[L]=new vt(L,2,!1,L,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(L){at[L]=new vt(L,3,!1,L.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(L){at[L]=new vt(L,3,!0,L,null,!1,!1)}),["capture","download"].forEach(function(L){at[L]=new vt(L,4,!1,L,null,!1,!1)}),["cols","rows","size","span"].forEach(function(L){at[L]=new vt(L,6,!1,L,null,!1,!1)}),["rowSpan","start"].forEach(function(L){at[L]=new vt(L,5,!1,L.toLowerCase(),null,!1,!1)});var et=/[\-:]([a-z])/g;function yt(L){return L[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(L){var J=L.replace(et,yt);at[J]=new vt(J,1,!1,L,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(L){var J=L.replace(et,yt);at[J]=new vt(J,1,!1,L,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(L){var J=L.replace(et,yt);at[J]=new vt(J,1,!1,L,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(L){at[L]=new vt(L,1,!1,L.toLowerCase(),null,!1,!1)}),at.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(L){at[L]=new vt(L,1,!1,L.toLowerCase(),null,!0,!0)});var rt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ct=["Webkit","ms","Moz","O"];Object.keys(rt).forEach(function(L){ct.forEach(function(J){J=J+L.charAt(0).toUpperCase()+L.substring(1),rt[J]=rt[L]})});var G=/["'&<>]/;function B(L){if(typeof L=="boolean"||typeof L=="number")return""+L;L=""+L;var J=G.exec(L);if(J){var St="",It,ee=0;for(It=J.index;It<L.length;It++){switch(L.charCodeAt(It)){case 34:J="&quot;";break;case 38:J="&amp;";break;case 39:J="&#x27;";break;case 60:J="&lt;";break;case 62:J="&gt;";break;default:continue}ee!==It&&(St+=L.substring(ee,It)),ee=It+1,St+=J}L=ee!==It?St+L.substring(ee,It):St}return L}var W=/([A-Z])/g,ut=/^ms-/,H=Array.isArray,N=O("<script>"),Y=O("<\/script>"),gt=O('<script src="'),pt=O('<script type="module" src="'),Tt=O('" async=""><\/script>'),mt=/(<\/|<)(s)(cript)/gi;function lt(L,J,St,It){return""+J+(St==="s"?"\\u0073":"\\u0053")+It}function A(L,J,St,It,ee){L=L===void 0?"":L,J=J===void 0?N:O('<script nonce="'+B(J)+'">');var Jt=[];if(St!==void 0&&Jt.push(J,S((""+St).replace(mt,lt)),Y),It!==void 0)for(St=0;St<It.length;St++)Jt.push(gt,S(B(It[St])),Tt);if(ee!==void 0)for(It=0;It<ee.length;It++)Jt.push(pt,S(B(ee[It])),Tt);return{bootstrapChunks:Jt,startInlineScript:J,placeholderPrefix:O(L+"P:"),segmentPrefix:O(L+"S:"),boundaryPrefix:L+"B:",idPrefix:L,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function kt(L,J){return{insertionMode:L,selectedValue:J}}function _t(L){return kt(L==="http://www.w3.org/2000/svg"?2:L==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Mt(L,J,St){switch(J){case"select":return kt(1,St.value!=null?St.value:St.defaultValue);case"svg":return kt(2,null);case"math":return kt(3,null);case"foreignObject":return kt(1,null);case"table":return kt(4,null);case"thead":case"tbody":case"tfoot":return kt(5,null);case"colgroup":return kt(7,null);case"tr":return kt(6,null)}return 4<=L.insertionMode||L.insertionMode===0?kt(1,null):L}var At=O("<!-- -->");function jt(L,J,St,It){return J===""?It:(It&&L.push(At),L.push(S(B(J))),!0)}var Nt=new Map,Vt=O(' style="'),Wt=O(":"),Ot=O(";");function Dt(L,J,St){if(typeof St!="object")throw Error(Z(62));J=!0;for(var It in St)if(q.call(St,It)){var ee=St[It];if(ee!=null&&typeof ee!="boolean"&&ee!==""){if(It.indexOf("--")===0){var Jt=S(B(It));ee=S(B((""+ee).trim()))}else{Jt=It;var pe=Nt.get(Jt);pe!==void 0||(pe=O(B(Jt.replace(W,"-$1").toLowerCase().replace(ut,"-ms-"))),Nt.set(Jt,pe)),Jt=pe,ee=typeof ee=="number"?ee===0||q.call(rt,It)?S(""+ee):S(ee+"px"):S(B((""+ee).trim()))}J?(J=!1,L.push(Vt,Jt,Wt,ee)):L.push(Ot,Jt,Wt,ee)}}J||L.push(Pt)}var Ht=O(" "),tt=O('="'),Pt=O('"'),zt=O('=""');function te(L,J,St,It){switch(St){case"style":Dt(L,J,It);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<St.length)||St[0]!=="o"&&St[0]!=="O"||St[1]!=="n"&&St[1]!=="N"){if(J=at.hasOwnProperty(St)?at[St]:null,J!==null){switch(typeof It){case"function":case"symbol":return;case"boolean":if(!J.acceptsBooleans)return}switch(St=S(J.attributeName),J.type){case 3:It&&L.push(Ht,St,zt);break;case 4:It===!0?L.push(Ht,St,zt):It!==!1&&L.push(Ht,St,tt,S(B(It)),Pt);break;case 5:isNaN(It)||L.push(Ht,St,tt,S(B(It)),Pt);break;case 6:!isNaN(It)&&1<=It&&L.push(Ht,St,tt,S(B(It)),Pt);break;default:J.sanitizeURL&&(It=""+It),L.push(Ht,St,tt,S(B(It)),Pt)}}else if(nt(St)){switch(typeof It){case"function":case"symbol":return;case"boolean":if(J=St.toLowerCase().slice(0,5),J!=="data-"&&J!=="aria-")return}L.push(Ht,S(St),tt,S(B(It)),Pt)}}}var $t=O(">"),ae=O("/>");function Xt(L,J,St){if(J!=null){if(St!=null)throw Error(Z(60));if(typeof J!="object"||!("__html"in J))throw Error(Z(61));J=J.__html,J!=null&&L.push(S(""+J))}}function ve(L){var J="";return F.Children.forEach(L,function(St){St!=null&&(J+=St)}),J}var Se=O(' selected=""');function we(L,J,St,It){L.push(Oe(St));var ee=St=null,Jt;for(Jt in J)if(q.call(J,Jt)){var pe=J[Jt];if(pe!=null)switch(Jt){case"children":St=pe;break;case"dangerouslySetInnerHTML":ee=pe;break;default:te(L,It,Jt,pe)}}return L.push($t),Xt(L,ee,St),typeof St=="string"?(L.push(S(B(St))),null):St}var Ee=O("\n"),ke=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Le=new Map;function Oe(L){var J=Le.get(L);if(J===void 0){if(!ke.test(L))throw Error(Z(65,L));J=O("<"+L),Le.set(L,J)}return J}var Ke=O("<!DOCTYPE html>");function Qe(L,J,St,It,ee){switch(J){case"select":L.push(Oe("select"));var Jt=null,pe=null;for(sr in St)if(q.call(St,sr)){var Ce=St[sr];if(Ce!=null)switch(sr){case"children":Jt=Ce;break;case"dangerouslySetInnerHTML":pe=Ce;break;case"defaultValue":case"value":break;default:te(L,It,sr,Ce)}}return L.push($t),Xt(L,pe,Jt),Jt;case"option":pe=ee.selectedValue,L.push(Oe("option"));var qe=Ce=null,ur=null,sr=null;for(Jt in St)if(q.call(St,Jt)){var Ur=St[Jt];if(Ur!=null)switch(Jt){case"children":Ce=Ur;break;case"selected":ur=Ur;break;case"dangerouslySetInnerHTML":sr=Ur;break;case"value":qe=Ur;default:te(L,It,Jt,Ur)}}if(pe!=null)if(St=qe!==null?""+qe:ve(Ce),H(pe)){for(It=0;It<pe.length;It++)if(""+pe[It]===St){L.push(Se);break}}else""+pe===St&&L.push(Se);else ur&&L.push(Se);return L.push($t),Xt(L,sr,Ce),Ce;case"textarea":L.push(Oe("textarea")),sr=pe=Jt=null;for(Ce in St)if(q.call(St,Ce)&&(qe=St[Ce],qe!=null))switch(Ce){case"children":sr=qe;break;case"value":Jt=qe;break;case"defaultValue":pe=qe;break;case"dangerouslySetInnerHTML":throw Error(Z(91));default:te(L,It,Ce,qe)}if(Jt===null&&pe!==null&&(Jt=pe),L.push($t),sr!=null){if(Jt!=null)throw Error(Z(92));if(H(sr)&&1<sr.length)throw Error(Z(93));Jt=""+sr}return typeof Jt=="string"&&Jt[0]==="\n"&&L.push(Ee),Jt!==null&&L.push(S(B(""+Jt))),null;case"input":L.push(Oe("input")),qe=sr=Ce=Jt=null;for(pe in St)if(q.call(St,pe)&&(ur=St[pe],ur!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(Z(399,"input"));case"defaultChecked":qe=ur;break;case"defaultValue":Ce=ur;break;case"checked":sr=ur;break;case"value":Jt=ur;break;default:te(L,It,pe,ur)}return sr!==null?te(L,It,"checked",sr):qe!==null&&te(L,It,"checked",qe),Jt!==null?te(L,It,"value",Jt):Ce!==null&&te(L,It,"value",Ce),L.push(ae),null;case"menuitem":L.push(Oe("menuitem"));for(var Wn in St)if(q.call(St,Wn)&&(Jt=St[Wn],Jt!=null))switch(Wn){case"children":case"dangerouslySetInnerHTML":throw Error(Z(400));default:te(L,It,Wn,Jt)}return L.push($t),null;case"title":L.push(Oe("title")),Jt=null;for(Ur in St)if(q.call(St,Ur)&&(pe=St[Ur],pe!=null))switch(Ur){case"children":Jt=pe;break;case"dangerouslySetInnerHTML":throw Error(Z(434));default:te(L,It,Ur,pe)}return L.push($t),Jt;case"listing":case"pre":L.push(Oe(J)),pe=Jt=null;for(qe in St)if(q.call(St,qe)&&(Ce=St[qe],Ce!=null))switch(qe){case"children":Jt=Ce;break;case"dangerouslySetInnerHTML":pe=Ce;break;default:te(L,It,qe,Ce)}if(L.push($t),pe!=null){if(Jt!=null)throw Error(Z(60));if(typeof pe!="object"||!("__html"in pe))throw Error(Z(61));St=pe.__html,St!=null&&(typeof St=="string"&&0<St.length&&St[0]==="\n"?L.push(Ee,S(St)):L.push(S(""+St)))}return typeof Jt=="string"&&Jt[0]==="\n"&&L.push(Ee),Jt;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":L.push(Oe(J));for(var Ai in St)if(q.call(St,Ai)&&(Jt=St[Ai],Jt!=null))switch(Ai){case"children":case"dangerouslySetInnerHTML":throw Error(Z(399,J));default:te(L,It,Ai,Jt)}return L.push(ae),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return we(L,St,J,It);case"html":return ee.insertionMode===0&&L.push(Ke),we(L,St,J,It);default:if(J.indexOf("-")===-1&&typeof St.is!="string")return we(L,St,J,It);L.push(Oe(J)),pe=Jt=null;for(ur in St)if(q.call(St,ur)&&(Ce=St[ur],Ce!=null))switch(ur){case"children":Jt=Ce;break;case"dangerouslySetInnerHTML":pe=Ce;break;case"style":Dt(L,It,Ce);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:nt(ur)&&typeof Ce!="function"&&typeof Ce!="symbol"&&L.push(Ht,S(ur),tt,S(B(Ce)),Pt)}return L.push($t),Xt(L,pe,Jt),Jt}}var hr=O("</"),Fe=O(">"),yr=O('<template id="'),fr=O('"></template>'),Ar=O("<!--$-->"),Tr=O('<!--$?--><template id="'),fn=O('"></template>'),yn=O("<!--$!-->"),Zi=O("<!--/$-->"),Vn=O("<template"),ge=O('"'),_n=O(' data-dgst="');O(' data-msg="'),O(' data-stck="');var vi=O("></template>");function zn(L,J,St){if(D(L,Tr),St===null)throw Error(Z(395));return D(L,St),V(L,fn)}var Po=O('<div hidden id="'),Jr=O('">'),Zt=O("</div>"),Vr=O('<svg aria-hidden="true" style="display:none" id="'),Hn=O('">'),Qn=O("</svg>"),xr=O('<math aria-hidden="true" style="display:none" id="'),on=O('">'),gi=O("</math>"),bs=O('<table hidden id="'),Xa=O('">'),ql=O("</table>"),tu=O('<table hidden><tbody id="'),_s=O('">'),eu=O("</tbody></table>"),Zh=O('<table hidden><tr id="'),Pc=O('">'),Eo=O("</tr></table>"),Ec=O('<table hidden><colgroup id="'),Lo=O('">'),Cs=O("</colgroup></table>");function $h(L,J,St,It){switch(St.insertionMode){case 0:case 1:return D(L,Po),D(L,J.segmentPrefix),D(L,S(It.toString(16))),V(L,Jr);case 2:return D(L,Vr),D(L,J.segmentPrefix),D(L,S(It.toString(16))),V(L,Hn);case 3:return D(L,xr),D(L,J.segmentPrefix),D(L,S(It.toString(16))),V(L,on);case 4:return D(L,bs),D(L,J.segmentPrefix),D(L,S(It.toString(16))),V(L,Xa);case 5:return D(L,tu),D(L,J.segmentPrefix),D(L,S(It.toString(16))),V(L,_s);case 6:return D(L,Zh),D(L,J.segmentPrefix),D(L,S(It.toString(16))),V(L,Pc);case 7:return D(L,Ec),D(L,J.segmentPrefix),D(L,S(It.toString(16))),V(L,Lo);default:throw Error(Z(397))}}function Za(L,J){switch(J.insertionMode){case 0:case 1:return V(L,Zt);case 2:return V(L,Qn);case 3:return V(L,gi);case 4:return V(L,ql);case 5:return V(L,eu);case 6:return V(L,Eo);case 7:return V(L,Cs);default:throw Error(Z(397))}}var Lc=O('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ru=O('$RS("'),Ro=O('","'),Gr=O('")<\/script>'),ya=O('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ts=O('$RC("'),Ms=O('","'),Oo=O('")<\/script>'),As=O('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Cn=O('$RX("'),Rc=O('"'),Is=O(")<\/script>"),No=O(","),nu=/[<\u2028\u2029]/g;function xa(L){return JSON.stringify(L).replace(nu,function(J){switch(J){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var $a=Object.assign,iu=Symbol.for("react.element"),Ja=Symbol.for("react.portal"),Bo=Symbol.for("react.fragment"),Ds=Symbol.for("react.strict_mode"),Vo=Symbol.for("react.profiler"),ks=Symbol.for("react.provider"),zo=Symbol.for("react.context"),Oc=Symbol.for("react.forward_ref"),au=Symbol.for("react.suspense"),Ps=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),bt=Symbol.for("react.scope"),Et=Symbol.for("react.debug_trace_mode"),ne=Symbol.for("react.legacy_hidden"),qt=Symbol.for("react.default_value"),he=Symbol.iterator;function Ae(L){if(L==null)return null;if(typeof L=="function")return L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case Bo:return"Fragment";case Ja:return"Portal";case Vo:return"Profiler";case Ds:return"StrictMode";case au:return"Suspense";case Ps:return"SuspenseList"}if(typeof L=="object")switch(L.$$typeof){case zo:return(L.displayName||"Context")+".Consumer";case ks:return(L._context.displayName||"Context")+".Provider";case Oc:var J=L.render;return L=L.displayName,L||(L=J.displayName||J.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case E:return J=L.displayName||null,J!==null?J:Ae(L.type)||"Memo";case Q:J=L._payload,L=L._init;try{return Ae(L(J))}catch(St){}}return null}var $e={};function er(L,J){if(L=L.contextTypes,!L)return $e;var St={},It;for(It in L)St[It]=J[It];return St}var ir=null;function Kr(L,J){if(L!==J){L.context._currentValue=L.parentValue,L=L.parent;var St=J.parent;if(L===null){if(St!==null)throw Error(Z(401))}else{if(St===null)throw Error(Z(401));Kr(L,St)}J.context._currentValue=J.value}}function mi(L){L.context._currentValue=L.parentValue,L=L.parent,L!==null&&mi(L)}function yi(L){var J=L.parent;J!==null&&yi(J),L.context._currentValue=L.value}function qn(L,J){if(L.context._currentValue=L.parentValue,L=L.parent,L===null)throw Error(Z(402));L.depth===J.depth?Kr(L,J):qn(L,J)}function Qa(L,J){var St=J.parent;if(St===null)throw Error(Z(402));L.depth===St.depth?Kr(L,St):Qa(L,St),J.context._currentValue=J.value}function $i(L){var J=ir;J!==L&&(J===null?yi(L):L===null?mi(J):J.depth===L.depth?Kr(J,L):J.depth>L.depth?qn(J,L):Qa(J,L),ir=L)}var ou={isMounted:function(){return!1},enqueueSetState:function(L,J){L=L._reactInternals,L.queue!==null&&L.queue.push(J)},enqueueReplaceState:function(L,J){L=L._reactInternals,L.replace=!0,L.queue=[J]},enqueueForceUpdate:function(){}};function qa(L,J,St,It){var ee=L.state!==void 0?L.state:null;L.updater=ou,L.props=St,L.state=ee;var Jt={queue:[],replace:!1};L._reactInternals=Jt;var pe=J.contextType;if(L.context=typeof pe=="object"&&pe!==null?pe._currentValue:It,pe=J.getDerivedStateFromProps,typeof pe=="function"&&(pe=pe(St,ee),ee=pe==null?ee:$a({},ee,pe),L.state=ee),typeof J.getDerivedStateFromProps!="function"&&typeof L.getSnapshotBeforeUpdate!="function"&&(typeof L.UNSAFE_componentWillMount=="function"||typeof L.componentWillMount=="function"))if(J=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),J!==L.state&&ou.enqueueReplaceState(L,L.state,null),Jt.queue!==null&&0<Jt.queue.length)if(J=Jt.queue,pe=Jt.replace,Jt.queue=null,Jt.replace=!1,pe&&J.length===1)L.state=J[0];else{for(Jt=pe?J[0]:L.state,ee=!0,pe=pe?1:0;pe<J.length;pe++){var Ce=J[pe];Ce=typeof Ce=="function"?Ce.call(L,Jt,St,It):Ce,Ce!=null&&(ee?(ee=!1,Jt=$a({},Jt,Ce)):$a(Jt,Ce))}L.state=Jt}else Jt.queue=null}var su={id:1,overflow:""};function to(L,J,St){var It=L.id;L=L.overflow;var ee=32-lu(It)-1;It&=~(1<<ee),St+=1;var Jt=32-lu(J)+ee;if(30<Jt){var pe=ee-ee%5;return Jt=(It&(1<<pe)-1).toString(32),It>>=pe,ee-=pe,{id:1<<32-lu(J)+ee|St<<ee|It,overflow:Jt+L}}return{id:1<<Jt|St<<ee|It,overflow:L}}var lu=Math.clz32?Math.clz32:cn,Ag=Math.log,Jh=Math.LN2;function cn(L){return L>>>=0,L===0?32:31-(Ag(L)/Jh|0)|0}function Qh(L,J){return L===J&&(L!==0||1/L===1/J)||L!==L&&J!==J}var Ig=typeof Object.is=="function"?Object.is:Qh,Sa=null,Nc=null,uu=null,zr=null,eo=!1,ti=!1,xi=0,Mi=null,cu=0;function ro(){if(Sa===null)throw Error(Z(321));return Sa}function Dg(){if(0<cu)throw Error(Z(312));return{memoizedState:null,queue:null,next:null}}function qh(){return zr===null?uu===null?(eo=!1,uu=zr=Dg()):(eo=!0,zr=uu):zr.next===null?(eo=!1,zr=zr.next=Dg()):(eo=!0,zr=zr.next),zr}function du(){Nc=Sa=null,ti=!1,uu=null,cu=0,zr=Mi=null}function tf(L,J){return typeof J=="function"?J(L):J}function kg(L,J,St){if(Sa=ro(),zr=qh(),eo){var It=zr.queue;if(J=It.dispatch,Mi!==null&&(St=Mi.get(It),St!==void 0)){Mi.delete(It),It=zr.memoizedState;do It=L(It,St.action),St=St.next;while(St!==null);return zr.memoizedState=It,[It,J]}return[zr.memoizedState,J]}return L=L===tf?typeof J=="function"?J():J:St!==void 0?St(J):J,zr.memoizedState=L,L=zr.queue={last:null,dispatch:null},L=L.dispatch=rf.bind(null,Sa,L),[zr.memoizedState,L]}function ef(L,J){if(Sa=ro(),zr=qh(),J=J===void 0?null:J,zr!==null){var St=zr.memoizedState;if(St!==null&&J!==null){var It=St[1];t:if(It===null)It=!1;else{for(var ee=0;ee<It.length&&ee<J.length;ee++)if(!Ig(J[ee],It[ee])){It=!1;break t}It=!0}if(It)return St[0]}}return L=L(),zr.memoizedState=[L,J],L}function rf(L,J,St){if(25<=cu)throw Error(Z(301));if(L===Sa)if(ti=!0,L={action:St,next:null},Mi===null&&(Mi=new Map),St=Mi.get(J),St===void 0)Mi.set(J,L);else{for(J=St;J.next!==null;)J=J.next;J.next=L}}function Yw(){throw Error(Z(394))}function hu(){}var fu={readContext:function(L){return L._currentValue},useContext:function(L){return ro(),L._currentValue},useMemo:ef,useReducer:kg,useRef:function(L){Sa=ro(),zr=qh();var J=zr.memoizedState;return J===null?(L={current:L},zr.memoizedState=L):J},useState:function(L){return kg(tf,L)},useInsertionEffect:hu,useLayoutEffect:function(){},useCallback:function(L,J){return ef(function(){return L},J)},useImperativeHandle:hu,useEffect:hu,useDebugValue:hu,useDeferredValue:function(L){return ro(),L},useTransition:function(){return ro(),[!1,Yw]},useId:function(){var L=Nc.treeContext,J=L.overflow;L=L.id,L=(L&~(1<<32-lu(L)-1)).toString(32)+J;var St=Es;if(St===null)throw Error(Z(404));return J=xi++,L=":"+St.idPrefix+"R"+L,0<J&&(L+="H"+J.toString(32)),L+":"},useMutableSource:function(L,J){return ro(),J(L._source)},useSyncExternalStore:function(L,J,St){if(St===void 0)throw Error(Z(407));return St()}},Es=null,Bc=F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function nf(L){return console.error(L),null}function Ho(){}function Pg(L,J,St,It,ee,Jt,pe,Ce,qe){var ur=[],sr=new Set;return J={destination:null,responseState:J,progressiveChunkSize:It===void 0?12800:It,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:sr,pingedTasks:ur,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ee===void 0?nf:ee,onAllReady:Jt===void 0?Ho:Jt,onShellReady:pe===void 0?Ho:pe,onShellError:Ce===void 0?Ho:Ce,onFatalError:qe===void 0?Ho:qe},St=pu(J,0,null,St,!1,!1),St.parentFlushed=!0,L=Vc(J,L,null,St,sr,$e,null,su),ur.push(L),J}function Vc(L,J,St,It,ee,Jt,pe,Ce){L.allPendingTasks++,St===null?L.pendingRootTasks++:St.pendingTasks++;var qe={node:J,ping:function(){var ur=L.pingedTasks;ur.push(qe),ur.length===1&&Lg(L)},blockedBoundary:St,blockedSegment:It,abortSet:ee,legacyContext:Jt,context:pe,treeContext:Ce};return ee.add(qe),qe}function pu(L,J,St,It,ee,Jt){return{status:0,id:-1,index:J,parentFlushed:!1,chunks:[],children:[],formatContext:It,boundary:St,lastPushedText:ee,textEmbedded:Jt}}function Ls(L,J){if(L=L.onError(J),L!=null&&typeof L!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof L+'" instead');return L}function zc(L,J){var St=L.onShellError;St(J),St=L.onFatalError,St(J),L.destination!==null?(L.status=2,$(L.destination,J)):(L.status=1,L.fatalError=J)}function af(L,J,St,It,ee){for(Sa={},Nc=J,xi=0,L=St(It,ee);ti;)ti=!1,xi=0,cu+=1,zr=null,L=St(It,ee);return du(),L}function of(L,J,St,It){var ee=St.render(),Jt=It.childContextTypes;if(Jt!=null){var pe=J.legacyContext;if(typeof St.getChildContext!="function")It=pe;else{St=St.getChildContext();for(var Ce in St)if(!(Ce in Jt))throw Error(Z(108,Ae(It)||"Unknown",Ce));It=$a({},pe,St)}J.legacyContext=It,Fn(L,J,ee),J.legacyContext=pe}else Fn(L,J,ee)}function sf(L,J){if(L&&L.defaultProps){J=$a({},J),L=L.defaultProps;for(var St in L)J[St]===void 0&&(J[St]=L[St]);return J}return J}function lf(L,J,St,It,ee){if(typeof St=="function")if(St.prototype&&St.prototype.isReactComponent){ee=er(St,J.legacyContext);var Jt=St.contextType;Jt=new St(It,typeof Jt=="object"&&Jt!==null?Jt._currentValue:ee),qa(Jt,St,It,ee),of(L,J,Jt,St)}else{Jt=er(St,J.legacyContext),ee=af(L,J,St,It,Jt);var pe=xi!==0;if(typeof ee=="object"&&ee!==null&&typeof ee.render=="function"&&ee.$$typeof===void 0)qa(ee,St,It,Jt),of(L,J,ee,St);else if(pe){It=J.treeContext,J.treeContext=to(It,1,0);try{Fn(L,J,ee)}finally{J.treeContext=It}}else Fn(L,J,ee)}else if(typeof St=="string"){switch(ee=J.blockedSegment,Jt=Qe(ee.chunks,St,It,L.responseState,ee.formatContext),ee.lastPushedText=!1,pe=ee.formatContext,ee.formatContext=Mt(pe,St,It),Yr(L,J,Jt),ee.formatContext=pe,St){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ee.chunks.push(hr,S(St),Fe)}ee.lastPushedText=!1}else{switch(St){case ne:case Et:case Ds:case Vo:case Bo:Fn(L,J,It.children);return;case Ps:Fn(L,J,It.children);return;case bt:throw Error(Z(343));case au:t:{St=J.blockedBoundary,ee=J.blockedSegment,Jt=It.fallback,It=It.children,pe=new Set;var Ce={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:pe,errorDigest:null},qe=pu(L,ee.chunks.length,Ce,ee.formatContext,!1,!1);ee.children.push(qe),ee.lastPushedText=!1;var ur=pu(L,0,null,ee.formatContext,!1,!1);ur.parentFlushed=!0,J.blockedBoundary=Ce,J.blockedSegment=ur;try{if(Yr(L,J,It),ur.lastPushedText&&ur.textEmbedded&&ur.chunks.push(At),ur.status=1,Rs(Ce,ur),Ce.pendingTasks===0)break t}catch(sr){ur.status=4,Ce.forceClientRender=!0,Ce.errorDigest=Ls(L,sr)}finally{J.blockedBoundary=St,J.blockedSegment=ee}J=Vc(L,Jt,St,qe,pe,J.legacyContext,J.context,J.treeContext),L.pingedTasks.push(J)}return}if(typeof St=="object"&&St!==null)switch(St.$$typeof){case Oc:if(It=af(L,J,St.render,It,ee),xi!==0){St=J.treeContext,J.treeContext=to(St,1,0);try{Fn(L,J,It)}finally{J.treeContext=St}}else Fn(L,J,It);return;case E:St=St.type,It=sf(St,It),lf(L,J,St,It,ee);return;case ks:if(ee=It.children,St=St._context,It=It.value,Jt=St._currentValue,St._currentValue=It,pe=ir,ir=It={parent:pe,depth:pe===null?0:pe.depth+1,context:St,parentValue:Jt,value:It},J.context=It,Fn(L,J,ee),L=ir,L===null)throw Error(Z(403));It=L.parentValue,L.context._currentValue=It===qt?L.context._defaultValue:It,L=ir=L.parent,J.context=L;return;case zo:It=It.children,It=It(St._currentValue),Fn(L,J,It);return;case Q:ee=St._init,St=ee(St._payload),It=sf(St,It),lf(L,J,St,It,void 0);return}throw Error(Z(130,St==null?St:typeof St,""))}}function Fn(L,J,St){if(J.node=St,typeof St=="object"&&St!==null){switch(St.$$typeof){case iu:lf(L,J,St.type,St.props,St.ref);return;case Ja:throw Error(Z(257));case Q:var It=St._init;St=It(St._payload),Fn(L,J,St);return}if(H(St)){uf(L,J,St);return}if(St===null||typeof St!="object"?It=null:(It=he&&St[he]||St["@@iterator"],It=typeof It=="function"?It:null),It&&(It=It.call(St))){if(St=It.next(),!St.done){var ee=[];do ee.push(St.value),St=It.next();while(!St.done);uf(L,J,ee)}return}throw L=Object.prototype.toString.call(St),Error(Z(31,L==="[object Object]"?"object with keys {"+Object.keys(St).join(", ")+"}":L))}typeof St=="string"?(It=J.blockedSegment,It.lastPushedText=jt(J.blockedSegment.chunks,St,L.responseState,It.lastPushedText)):typeof St=="number"&&(It=J.blockedSegment,It.lastPushedText=jt(J.blockedSegment.chunks,""+St,L.responseState,It.lastPushedText))}function uf(L,J,St){for(var It=St.length,ee=0;ee<It;ee++){var Jt=J.treeContext;J.treeContext=to(Jt,It,ee);try{Yr(L,J,St[ee])}finally{J.treeContext=Jt}}}function Yr(L,J,St){var It=J.blockedSegment.formatContext,ee=J.legacyContext,Jt=J.context;try{return Fn(L,J,St)}catch(qe){if(du(),typeof qe=="object"&&qe!==null&&typeof qe.then=="function"){St=qe;var pe=J.blockedSegment,Ce=pu(L,pe.chunks.length,null,pe.formatContext,pe.lastPushedText,!0);pe.children.push(Ce),pe.lastPushedText=!1,L=Vc(L,J.node,J.blockedBoundary,Ce,J.abortSet,J.legacyContext,J.context,J.treeContext).ping,St.then(L,L),J.blockedSegment.formatContext=It,J.legacyContext=ee,J.context=Jt,$i(Jt)}else throw J.blockedSegment.formatContext=It,J.legacyContext=ee,J.context=Jt,$i(Jt),qe}}function Hc(L){var J=L.blockedBoundary;L=L.blockedSegment,L.status=3,Eg(this,J,L)}function Yt(L,J,St){var It=L.blockedBoundary;L.blockedSegment.status=3,It===null?(J.allPendingTasks--,J.status!==2&&(J.status=2,J.destination!==null&&J.destination.close())):(It.pendingTasks--,It.forceClientRender||(It.forceClientRender=!0,L=St===void 0?Error(Z(432)):St,It.errorDigest=J.onError(L),It.parentFlushed&&J.clientRenderedBoundaries.push(It)),It.fallbackAbortableTasks.forEach(function(ee){return Yt(ee,J,St)}),It.fallbackAbortableTasks.clear(),J.allPendingTasks--,J.allPendingTasks===0&&(It=J.onAllReady,It()))}function Rs(L,J){if(J.chunks.length===0&&J.children.length===1&&J.children[0].boundary===null){var St=J.children[0];St.id=J.id,St.parentFlushed=!0,St.status===1&&Rs(L,St)}else L.completedSegments.push(J)}function Eg(L,J,St){if(J===null){if(St.parentFlushed){if(L.completedRootSegment!==null)throw Error(Z(389));L.completedRootSegment=St}L.pendingRootTasks--,L.pendingRootTasks===0&&(L.onShellError=Ho,J=L.onShellReady,J())}else J.pendingTasks--,J.forceClientRender||(J.pendingTasks===0?(St.parentFlushed&&St.status===1&&Rs(J,St),J.parentFlushed&&L.completedBoundaries.push(J),J.fallbackAbortableTasks.forEach(Hc,L),J.fallbackAbortableTasks.clear()):St.parentFlushed&&St.status===1&&(Rs(J,St),J.completedSegments.length===1&&J.parentFlushed&&L.partialBoundaries.push(J)));L.allPendingTasks--,L.allPendingTasks===0&&(L=L.onAllReady,L())}function Lg(L){if(L.status!==2){var J=ir,St=Bc.current;Bc.current=fu;var It=Es;Es=L.responseState;try{var ee=L.pingedTasks,Jt;for(Jt=0;Jt<ee.length;Jt++){var pe=ee[Jt],Ce=L,qe=pe.blockedSegment;if(qe.status===0){$i(pe.context);try{Fn(Ce,pe,pe.node),qe.lastPushedText&&qe.textEmbedded&&qe.chunks.push(At),pe.abortSet.delete(pe),qe.status=1,Eg(Ce,pe.blockedBoundary,qe)}catch(Si){if(du(),typeof Si=="object"&&Si!==null&&typeof Si.then=="function"){var ur=pe.ping;Si.then(ur,ur)}else{pe.abortSet.delete(pe),qe.status=4;var sr=pe.blockedBoundary,Ur=Si,Wn=Ls(Ce,Ur);if(sr===null?zc(Ce,Ur):(sr.pendingTasks--,sr.forceClientRender||(sr.forceClientRender=!0,sr.errorDigest=Wn,sr.parentFlushed&&Ce.clientRenderedBoundaries.push(sr))),Ce.allPendingTasks--,Ce.allPendingTasks===0){var Ai=Ce.onAllReady;Ai()}}}finally{}}}ee.splice(0,Jt),L.destination!==null&&cf(L,L.destination)}catch(Si){Ls(L,Si),zc(L,Si)}finally{Es=It,Bc.current=St,St===fu&&$i(J)}}}function Fc(L,J,St){switch(St.parentFlushed=!0,St.status){case 0:var It=St.id=L.nextSegmentId++;return St.lastPushedText=!1,St.textEmbedded=!1,L=L.responseState,D(J,yr),D(J,L.placeholderPrefix),L=S(It.toString(16)),D(J,L),V(J,fr);case 1:St.status=2;var ee=!0;It=St.chunks;var Jt=0;St=St.children;for(var pe=0;pe<St.length;pe++){for(ee=St[pe];Jt<ee.index;Jt++)D(J,It[Jt]);ee=Wc(L,J,ee)}for(;Jt<It.length-1;Jt++)D(J,It[Jt]);return Jt<It.length&&(ee=V(J,It[Jt])),ee;default:throw Error(Z(390))}}function Wc(L,J,St){var It=St.boundary;if(It===null)return Fc(L,J,St);if(It.parentFlushed=!0,It.forceClientRender)It=It.errorDigest,V(J,yn),D(J,Vn),It&&(D(J,_n),D(J,S(B(It))),D(J,ge)),V(J,vi),Fc(L,J,St);else if(0<It.pendingTasks){It.rootSegmentID=L.nextSegmentId++,0<It.completedSegments.length&&L.partialBoundaries.push(It);var ee=L.responseState,Jt=ee.nextSuspenseID++;ee=O(ee.boundaryPrefix+Jt.toString(16)),It=It.id=ee,zn(J,L.responseState,It),Fc(L,J,St)}else if(It.byteSize>L.progressiveChunkSize)It.rootSegmentID=L.nextSegmentId++,L.completedBoundaries.push(It),zn(J,L.responseState,It.id),Fc(L,J,St);else{if(V(J,Ar),St=It.completedSegments,St.length!==1)throw Error(Z(391));Wc(L,J,St[0])}return V(J,Zi)}function Rg(L,J,St){return $h(J,L.responseState,St.formatContext,St.id),Wc(L,J,St),Za(J,St.formatContext)}function Og(L,J,St){for(var It=St.completedSegments,ee=0;ee<It.length;ee++)jc(L,J,St,It[ee]);if(It.length=0,L=L.responseState,It=St.id,St=St.rootSegmentID,D(J,L.startInlineScript),L.sentCompleteBoundaryFunction?D(J,Ts):(L.sentCompleteBoundaryFunction=!0,D(J,ya)),It===null)throw Error(Z(395));return St=S(St.toString(16)),D(J,It),D(J,Ms),D(J,L.segmentPrefix),D(J,St),V(J,Oo)}function jc(L,J,St,It){if(It.status===2)return!0;var ee=It.id;if(ee===-1){if((It.id=St.rootSegmentID)===-1)throw Error(Z(392));return Rg(L,J,It)}return Rg(L,J,It),L=L.responseState,D(J,L.startInlineScript),L.sentCompleteSegmentFunction?D(J,ru):(L.sentCompleteSegmentFunction=!0,D(J,Lc)),D(J,L.segmentPrefix),ee=S(ee.toString(16)),D(J,ee),D(J,Ro),D(J,L.placeholderPrefix),D(J,ee),V(J,Gr)}function cf(L,J){I=new Uint8Array(512),z=0;try{var St=L.completedRootSegment;if(St!==null&&L.pendingRootTasks===0){Wc(L,J,St),L.completedRootSegment=null;var It=L.responseState.bootstrapChunks;for(St=0;St<It.length-1;St++)D(J,It[St]);St<It.length&&V(J,It[St])}var ee=L.clientRenderedBoundaries,Jt;for(Jt=0;Jt<ee.length;Jt++){var pe=ee[Jt];It=J;var Ce=L.responseState,qe=pe.id,ur=pe.errorDigest,sr=pe.errorMessage,Ur=pe.errorComponentStack;if(D(It,Ce.startInlineScript),Ce.sentClientRenderFunction?D(It,Cn):(Ce.sentClientRenderFunction=!0,D(It,As)),qe===null)throw Error(Z(395));if(D(It,qe),D(It,Rc),(ur||sr||Ur)&&(D(It,No),D(It,S(xa(ur||"")))),(sr||Ur)&&(D(It,No),D(It,S(xa(sr||"")))),Ur&&(D(It,No),D(It,S(xa(Ur)))),!V(It,Is)){L.destination=null,Jt++,ee.splice(0,Jt);return}}ee.splice(0,Jt);var Wn=L.completedBoundaries;for(Jt=0;Jt<Wn.length;Jt++)if(!Og(L,J,Wn[Jt])){L.destination=null,Jt++,Wn.splice(0,Jt);return}Wn.splice(0,Jt),ht(J),I=new Uint8Array(512),z=0;var Ai=L.partialBoundaries;for(Jt=0;Jt<Ai.length;Jt++){var Si=Ai[Jt];t:{ee=L,pe=J;var vu=Si.completedSegments;for(Ce=0;Ce<vu.length;Ce++)if(!jc(ee,pe,Si,vu[Ce])){Ce++,vu.splice(0,Ce);var wa=!1;break t}vu.splice(0,Ce),wa=!0}if(!wa){L.destination=null,Jt++,Ai.splice(0,Jt);return}}Ai.splice(0,Jt);var gu=L.completedBoundaries;for(Jt=0;Jt<gu.length;Jt++)if(!Og(L,J,gu[Jt])){L.destination=null,Jt++,gu.splice(0,Jt);return}gu.splice(0,Jt)}finally{ht(J),L.allPendingTasks===0&&L.pingedTasks.length===0&&L.clientRenderedBoundaries.length===0&&L.completedBoundaries.length===0&&J.close()}}function Gc(L,J){try{var St=L.abortableTasks;St.forEach(function(It){return Yt(It,L,J)}),St.clear(),L.destination!==null&&cf(L,L.destination)}catch(It){Ls(L,It),zc(L,It)}}Ct.renderToReadableStream=function(L,J){return new Promise(function(St,It){var ee,Jt,pe=new Promise(function(sr,Ur){Jt=sr,ee=Ur}),Ce=Pg(L,A(J?J.identifierPrefix:void 0,J?J.nonce:void 0,J?J.bootstrapScriptContent:void 0,J?J.bootstrapScripts:void 0,J?J.bootstrapModules:void 0),_t(J?J.namespaceURI:void 0),J?J.progressiveChunkSize:void 0,J?J.onError:void 0,Jt,function(){var sr=new ReadableStream({type:"bytes",pull:function(Ur){if(Ce.status===1)Ce.status=2,$(Ur,Ce.fatalError);else if(Ce.status!==2&&Ce.destination===null){Ce.destination=Ur;try{cf(Ce,Ur)}catch(Wn){Ls(Ce,Wn),zc(Ce,Wn)}}},cancel:function(){Gc(Ce)}},{highWaterMark:0});sr.allReady=pe,St(sr)},function(sr){pe.catch(function(){}),It(sr)},ee);if(J&&J.signal){var qe=J.signal,ur=function(){Gc(Ce,qe.reason),qe.removeEventListener("abort",ur)};qe.addEventListener("abort",ur)}Lg(Ce)})},Ct.version="18.3.1"},44628:(oe,Ct,T)=>{"use strict";T.d(Ct,{Bq:()=>I,Bs:()=>F,Qt:()=>z});const F=/^((https)?:\/\/)[^\s]+/,Z=/^\d+(\.\d+)?$/,I=/<svg[\s\S]*<\/svg>$/,z=/^\s+|\n+|\s+$/g},44691:(oe,Ct,T)=>{"use strict";T.d(Ct,{D:()=>D,l:()=>z});const F=[],Z=[];{const V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(let ht=0,ot=V.length;ht<ot;++ht)F[ht]=V.charAt(ht),Z[V.charCodeAt(ht)]=ht;Z[45]=62,Z[95]=63}const I=(V,ht,ot)=>{const S=[];for(;ht<ot;ht+=3){const O=(V[ht]<<16)+(V[ht+1]<<8)+V[ht+2];S.push(F[O>>18&63]+F[O>>12&63]+F[O>>6&63]+F[63&O])}return S.join("")},z=function(V){V===void 0&&(V=new ArrayBuffer(0));const ht=new Uint8Array(V),ot=ht.length,S=ot%3,O=[];for(let $=0,q=ot-S;$<q;$+=12288)O.push(I(ht,$,Math.min(q,$+12288)));if(S===1){const $=ht[ot-1];O.push(F[$>>2&63]+F[$<<4&48]+"==")}else if(S===2){const $=(ht[ot-2]<<8)+ht[ot-1];O.push(F[$>>10&63]+F[$>>4&63]+F[$<<2&60]+"=")}return O.join("")},D=function(V){V===void 0&&(V="");const ht=V.indexOf("="),ot=ht===-1?V.length:ht;if(ot%4==1)throw new Error("invalid Base64 string u6Count");const S=ot%4,O=3*Math.floor(ot/4)+(S&&(S===2?1:2)),$=new Uint8Array(O);for(let q=0,ft=ot-S,K=0;q<ft;q+=4,K+=3){const it=Z[V.charCodeAt(q)]<<18|Z[V.charCodeAt(q+1)]<<12|Z[V.charCodeAt(q+2)]<<6|Z[V.charCodeAt(q+3)];$[K]=it>>16&255,$[K+1]=it>>8&255,$[K+2]=255&it}if(S===2){const q=Z[V.charCodeAt(ot-2)]<<2|Z[V.charCodeAt(ot-1)]>>4;$[O-1]=255&q}else if(S===3){const q=Z[V.charCodeAt(ot-3)]<<10|Z[V.charCodeAt(ot-2)]<<4|Z[V.charCodeAt(ot-1)]>>2;$[O-2]=q>>8&255,$[O-1]=255&q}return $.buffer}},44916:(oe,Ct,T)=>{"use strict";T.d(Ct,{F:()=>F,a:()=>Z});const F=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"}],Z={COMMON:0,TEXT:1,BASIC:2}},45611:(oe,Ct,T)=>{"use strict";T.d(Ct,{Dx:()=>S,SB:()=>ht,l8:()=>I,pT:()=>V});var F=T(20089),Z=T(70248);const I=function(O,$,q){$===void 0&&($=!1);const ft=[],{hotAttr:{type:K},sub:it}=O,nt=$?[F.x.Canvas,F.x.WWrap]:[F.x.WWrap];return q&&!q(O)||(ft.push(O),nt.includes(K)&&it.forEach(vt=>{ft.push(...I(sdkStore.getHotItem(vt)))})),ft},z=O=>{const $=[],{type:q,children:ft}=O;return q===WidgetType.WWrap&&ft.forEach(K=>{$.push(...z(K))}),$},D=O=>!O.widget.isLock&&!isShadowKey(O.widget.cid),V=O=>!O.hotAttr.isLock&&!(0,Z.OO)(O.key)&&!ht(O),ht=function(O,$){return $===void 0&&($=sdkStore),O.hotAttr.type===F.x.WWrap&&(!O.sub.length||$.getSubHotItemList(O.key).every(q=>ht(q,$)))},ot=O=>{const $=[],{type:q,children:ft}=O;return q===WidgetType.WWrap?ft.forEach(K=>$.push(...ot(K))):$.push(O),$},S=O=>{const $=[],{key:q,hotAttr:{type:ft}}=O;return ft===F.x.WWrap?sdkStore.getSubHotItemList(q).forEach(K=>$.push(...S(K))):$.push(O),$}},47921:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>Z});const F=function(I,z){var D={};D.options={};var V={onselection:null,onCopySelection:null,onTableKeyDown:null};for(var ht in V)z&&z.hasOwnProperty(ht)?D.options[ht]=ht=="text"?Object.assign(V[ht],z[ht]):z[ht]:D.options[ht]=V[ht];return D.el=I,D.corner=null,D.selectedCell=null,D.refreshSelection=function(){D.selectedCell&&D.updateSelectionFromCoords(D.selectedCell[0],D.selectedCell[1],D.selectedCell[2],D.selectedCell[3])},D.resetSelection=function(){D.selectedCell=null},D.updateSelection=function(ot,S,O){var $=ot.getAttribute("data-x"),q=ot.getAttribute("data-y");if(S)var ft=S.getAttribute("data-x"),K=S.getAttribute("data-y");else var ft=$,K=q;D.updateSelectionFromCoords($,q,ft,K,O)},D.updateSelectionFromCoords=function(ot,S,O,$,q){D.resetSelection(),O==null&&(O=ot),$==null&&($=S),D.selectedCell=[ot,S,O,$],typeof D.options.onselection=="function"&&D.options.onselection(I,ot,S,O,$,q),D.selectedCell=[ot,S,O,$]},D.updateCopySelection=function(ot,S){typeof D.options.onCopySelection=="function"&&D.options.onCopySelection(ot,S)},D.init=function(){F.current=D},D.destory=function(){D=null,F.current=null},I.jexcel=D,D.init(),D};F.current=null,F.timeControl=null,F.timeControlLoading=null,F.isMouseAction=!1,F.mouseDownControls=function(I){if(I=I||window.event,I.buttons)var z=I.buttons;else if(I.button)var z=I.button;else var z=I.which;var D=F.getElement(I.target);if(D[0]?F.current!=D[0].jexcel&&(F.current&&F.current.resetSelection(),F.current=D[0].jexcel):F.current&&(F.current.resetSelection(!0),F.current=null),F.current&&z!==2)if(I.target.classList.contains("jexcel_corner"))F.current.selectedCorner=!0;else if(D[1]==2){if(!I.target.classList.contains("jexcel_row")){if(!(I.target.classList.contains("jclose")&&I.target.clientWidth-I.offsetX<50&&I.offsetY<50)){var V=function(O){var $=O.getAttribute("data-x"),q=O.getAttribute("data-y");if($&&q)return[$,q];if(O.parentNode)return V(O.parentNode)},ht=V(I.target);if(ht){var ot=ht[0],S=ht[1];I.shiftKey&&F.current.selectedCell?F.current.updateSelectionFromCoords(F.current.selectedCell[0],F.current.selectedCell[1],ot,S):F.current.updateSelectionFromCoords(ot,S),F.current.selectedHeader=null,F.current.selectedRow=null}}}}else F.current.selectedRow=!1;else F.isMouseAction=!1},F.mouseOverControls=function(I){var z;if(I=I||window.event,!((z=I)!=null&&(z=z.relatedTarget)!=null&&(z=z.classList)!=null&&z.contains("md-magnifier-color-item"))){if(I.buttons)var D=I.buttons;else if(I.button)var D=I.button;else var D=I.which;if(D?F.isMouseAction=!0:F.isMouseAction=!1,F.current&&F.isMouseAction==!0){var V=F.getElement(I.target);if(V[0]){if(F.current!=V[0].jexcel&&F.current)return!1;var ht=I.target.getAttribute("data-x"),ot=I.target.getAttribute("data-y");if(V[1]==2)if(I.target.classList.contains("jexcel_row")){if(F.current.selectedRow){var S=F.current.selectedRow,O=ot;F.current.updateSelectionFromCoords(0,S,F.current.options.data[0].length-1,O)}}else ht&&ot&&(F.current.selectedCorner?F.current.updateCopySelection(ht,ot):F.current.selectedCell&&F.current.updateSelectionFromCoords(F.current.selectedCell[0],F.current.selectedCell[1],ht,ot))}}}},F.doubleClickControls=function(I){if(F.current&&!I.target.classList.contains("jexcel_corner")){var z=F.getElement(I.target);if(z[1]==2){var D=function(S){if(S.parentNode){var O=S.getAttribute("data-x"),$=S.getAttribute("data-y");return O&&$?S:D(S.parentNode)}},V=D(I.target);if(!V)return;let ht=V.getAttribute("data-x"),ot=V.getAttribute("data-y");F.current.openEditor(ht,ot)}}},F.getColumnName=function(I){var z="";return I>701?(z+=String.fromCharCode(64+parseInt(I/676)),z+=String.fromCharCode(64+parseInt(I%676/26))):I>25&&(z+=String.fromCharCode(64+parseInt(I/26))),z+=String.fromCharCode(65+I%26),z},F.getIdFromColumnName=function(I,z){var D=/^[a-zA-Z]+/.exec(I);if(D){for(var V=0,ht=0;ht<D[0].length;ht++)V+=parseInt(D[0].charCodeAt(ht)-64)*Math.pow(26,D[0].length-1-ht);V--,V<0&&(V=0);var ot=parseInt(/[0-9]+$/.exec(I));ot>0&&ot--,z==!0?I=[V,ot]:I=V+"-"+ot}return I},F.getColumnNameFromId=function(I){return Array.isArray(I)||(I=I.split("-")),F.getColumnName(parseInt(I[0]))+(parseInt(I[1])+1)},F.getElement=function(I){var z=0,D=0;function V(ht){ht.className&&ht.classList.contains("jexcel_container")&&(D=ht),ht.tagName=="THEAD"?z=1:ht.tagName=="TBODY"&&(z=2),ht.parentNode&&V(ht.parentNode)}return V(I),[D,z]};const Z=F},48892:(oe,Ct,T)=>{"use strict";T.d(Ct,{W:()=>I});var F=T(67787);const Z=17,I=F.Ay.div.withConfig({displayName:"styles__StyledScrollBar",componentId:"sc-1h8q4j3-0"})(["pointer-events:none;.track{position:absolute;background:transparent;pointer-events:auto;.handler{position:absolute;cursor:pointer;.thumb{position:absolute;pointer-events:none;border-radius:6px;outline:1px solid rgba(255,255,255,0.3);background:rgba(0,0,0,0.3);transition:background 0.2s ease-in-out;}}}.x-track{left:","px;right:11px;bottom:0;height:8px;.handler{bottom:4px;height:8px;.thumb{bottom:0;width:100%;height:4px;}}}.y-track{top:","px;bottom:11px;right:0;width:8px;.handler{right:4px;width:8px;.thumb{right:0;height:100%;width:4px;}}}"],Z+4+1,Z+4+1)},50036:(oe,Ct,T)=>{"use strict";T.d(Ct,{F:()=>Z,a:()=>F});const F={selectedCellsInfo:{tl:{x:0,y:0},br:{x:0,y:0}},editingPos:{x:-1,y:-1},isShallowEditing:!1,isDeepEditing:!1},Z=function(I,z){I===void 0&&(I=F);let{type:D="flow:update:state",payload:V=F}=z;switch(D){case"flow:update:state":return{...I,...V};case"flow:update:clear":return{...F};default:return I}}},51071:(oe,Ct,T)=>{var F=T(93973),Z=T(24923),I=T(38195),z=T(71197),D=T(93619),V=T(70597),ht=200;function ot(S,O,$){var q=-1,ft=Z,K=S.length,it=!0,nt=[],vt=nt;if($)it=!1,ft=I;else if(K>=ht){var at=O?null:D(S);if(at)return V(at);it=!1,ft=z,vt=new F}else vt=O?[]:nt;t:for(;++q<K;){var et=S[q],yt=O?O(et):et;if(et=$||et!==0?et:0,it&&yt===yt){for(var rt=vt.length;rt--;)if(vt[rt]===yt)continue t;O&&vt.push(yt),nt.push(et)}else ft(vt,yt,$)||(vt!==nt&&vt.push(yt),nt.push(et))}return nt}oe.exports=ot},51125:(oe,Ct,T)=>{var F=T(14843),Z=T(13331),I=T(57327),z=T(89775),D=T(71882);function V(ht,ot,S){var O=z(ht)?F:Z;return S&&D(ht,ot,S)&&(ot=void 0),O(ht,I(ot,3))}oe.exports=V},52563:(oe,Ct,T)=>{"use strict";T.d(Ct,{FE:()=>V,Pj:()=>z,Vo:()=>ht});var F=T(79371),Z=T.n(F);const I=function(ot,S,O){O===void 0&&(O=1e3);const $=(q,ft)=>{(q==null?void 0:q.size)>S[0]&&console.error("[Oversize "+ot+"]",q.size),(ft==null?void 0:ft.size)>S[1]&&console.error("[Oversize "+ot+" effecSet]",ft.size)};return Z()($,O)},z=ot=>{const S=new Map;return{_map:S,addRef:(K,it)=>{S.has(K)?S.get(K).add(it):S.set(K,new Set([it])),ot==null||ot(S,S.get(K))},delRef:(K,it)=>{const nt=S.get(K);nt&&(nt.delete(it),nt.size||S.delete(K))},getRef:K=>S.get(K),hasRef:(K,it)=>{var nt;return(nt=S.get(K))==null?void 0:nt.has(it)}}},D=ot=>{const S=ot.hotAttr.interactions;if(!(S!=null&&S.length))return null;const O=new Set;return S.forEach($=>{const q=$.targetResCanvasKey||$.targetBasketKey||$.targetWidgetKey||$.targetOverlayKey;q&&O.add(q)}),O},V=()=>{const ot=I("ItaRefMap",[2e3,200]),{_map:S,addRef:O,delRef:$}=z(ot);return{update:(q,ft)=>{const{key:K}=q,it=ft?D(ft):null,nt=D(q);nt&&[...nt].forEach(vt=>{O(vt,K),it==null||it.delete(vt)}),it!=null&&it.size&&[...it].forEach(vt=>$(vt,K))},delete:q=>{const ft=q?D(q):null;ft!=null&&ft.size&&[...ft].forEach(K=>$(K,q.key))},getEffectKeys:q=>S.has(q)?Array.from(S.get(q)):[],clear:()=>{ot.flush(),S.clear()},_getMap:()=>S}},ht=()=>{const ot=I("MktCidRefMap",[2e3,2e3]),{_map:S,addRef:O,delRef:$,hasRef:q}=z(ot),ft=K=>{if(!K)return;const{mktCid:it,mktUnlock:nt}=K.hotAttr;return it&&!nt?it:void 0};return{update:(K,it)=>{const{key:nt}=K,vt=ft(it),at=ft(K);at&&at!==vt&&(at&&!sdkStore.findUpHotItemList(nt).some(et=>q(at,et.key))&&O(at,nt),vt&&$(at,nt))},delete:K=>{if(K){const it=ft(K);it&&$(it,K.key)}},getEffectKeys:K=>S.has(K)?Array.from(S.get(K)):[],clear:()=>{ot.flush(),S.clear()},isEmpty:()=>!S.size,_getMap:()=>S}}},52822:(oe,Ct,T)=>{"use strict";T.d(Ct,{ck:()=>it,Cv:()=>nt});var F=T(70248);class Z{constructor(et,yt,rt,ct,G){this.widgetStore=et,this.runningIsEditingCombo=yt,this.runningFolderKey=rt,this.runningBasketRefPage=ct,this.editingBDanliKey=G}dup(){const et=this.constructor,yt=new et(this.widgetStore,this.runningIsEditingCombo,this.runningFolderKey,this.runningBasketRefPage,this.editingBDanliKey);return yt.cid=this.cid,yt.key=this.key,yt.ref=this.ref,yt.type=this.type,yt.parentRef=this.parentRef,yt.hotAttr=this.hotAttr,yt.sub=this.sub,yt.sup=this.sup,yt.widget=this.widget,yt.children=this.children,yt}get parent(){return this.sup?this.widgetStore.getNode(this.sup):null}get keyToAccessIntAct(){return this.editingBDanliKey?(0,F.j_)([this.editingBDanliKey,this.key]):this.key}}var I=T(68049),z=T(20089),D=T(92272);const V=at=>{const{widget:{border:{bdrIsVisible:et,bdrWidth:yt},icon:rt,image:{imageRef:ct,imageRectWidth:G,imageRectHeight:B}}}=at,{w:W,h:ut}=at.getMindNodeTextSize(),H=rt?K:0,N=rt?ft:0,Y=et?yt*2:0,gt=(0,D.Kf)(ct),pt=gt?G:0,Tt=gt?B+it:0,mt=Math.max(W,pt),lt=Math.max(Tt+ut,N),A=mt+2*at.paddingHorizontal+Y+H,kt=lt+2*at.paddingVertical+Y;return{w:A,h:kt}},ht=at=>{let{children:et,mindNodeSize:yt}=at,rt=0,ct=0;for(let G=0;G<et.length;G++){const B=et[G];B.mindNodeSize.w>ct&&(ct=B.mindNodeSize.w),G>0&&(rt+=nt(B.isMindFirstDepth)),rt+=B.mindNodeTreeSize.h}return{w:ct,h:Math.max(rt,yt.h)}},ot=60,S=36,O=12,$=10,q=40,ft=24,K=ft+10,it=10,nt=at=>at?S:O;class vt extends Z{constructor(et){super(et),this.cacheSizeMap=new Map,this.cachePositionMap=new Map,this.cacheTreeSizeMap=new Map,this.cacheTextSizeMap=new Map,this.cacheTextPositionMap=new Map,this.useMindCache=!0}get isMindFirstDepth(){var et;return(et=this.parent.widget)==null?void 0:et.isRoot}get paddingHorizontal(){return this.widget.isRoot?20:this.isMindFirstDepth?18:10}get paddingVertical(){return this.widget.isRoot?16:this.isMindFirstDepth?10:5}get mindNodeSize(){if(this.cacheSizeMap.get(this.key)&&this.useMindCache)return this.cacheSizeMap.get(this.key);const et=V(this);return this.cacheSizeMap.set(this.key,et),et}get mindNodeTreeSize(){if(this.cacheTreeSizeMap.get(this.key)&&this.useMindCache)return this.cacheTreeSizeMap.get(this.key);if(this.children.length===0||!this.widget.expand)return this.mindNodeSize;const{w:et,h:yt}=ht({children:this.children,mindNodeSize:this.mindNodeSize});return this.cacheTreeSizeMap.set(this.key,{w:et,h:yt}),{w:et,h:yt}}getRootMindNodeTreeSize(et){if(et===void 0&&(et="right"),this.cacheTreeSizeMap.get(this.key+"-"+et)&&this.useMindCache)return this.cacheTreeSizeMap.get(this.key+"-"+et);const yt=this.children.filter(G=>G.widget.placement===et),{w:rt,h:ct}=ht({children:yt,mindNodeSize:this.mindNodeSize});return this.cacheTreeSizeMap.set(this.key+"-"+et,{w:rt,h:ct}),{w:rt,h:ct}}get mindNodePosition(){var et;if(this.cachePositionMap.get(this.key)&&this.useMindCache)return this.cachePositionMap.get(this.key);if((et=this.widget)!=null&&et.isRoot||this.parent.type!==z.x.WMindNode){const{widget:{border:{bdrIsVisible:ut,bdrWidth:H}}}=this.parent.parent;return ut?{x:-H,y:-H}:{x:0,y:0}}const yt=this.parent;let ct=-(this.isMindFirstDepth?yt.getRootMindNodeTreeSize(this.widget.placement).h:yt.mindNodeTreeSize.h)/2,G=!1;this.parent.children.some((ut,H,N)=>{const Y=ut;if(G=Y.key===this.key,Y.widget.placement!==this.widget.placement)return!1;if(G)Y.widget.expand&&N.length===1&&this.children.length<2||N.length===1?ct+=(yt.mindNodeTreeSize.h-Y.mindNodeSize.h)/2:ct+=(Y.mindNodeTreeSize.h-Y.mindNodeSize.h)/2;else{const gt=nt(this.isMindFirstDepth);ct+=Y.mindNodeTreeSize.h+gt}return G});const W={x:this.widget.placement==="left"?yt.mindNodePosition.x-this.mindNodeSize.w-ot:yt.mindNodePosition.x+yt.mindNodeSize.w+ot,y:yt.mindNodePosition.y+yt.mindNodeSize.h/2+ct};return this.cachePositionMap.set(this.key,W),W}get subCount(){var et;return(et=this.children)==null?void 0:et.reduce((yt,rt)=>yt+rt.subCount,this.children.length)}getMindNodeTextSize(){if(this.cacheTextSizeMap.get(this.key)&&this.useMindCache)return this.cacheTextSizeMap.get(this.key);const{width:et,height:yt}=(0,I.F7)(this.widget),rt={w:et,h:yt};return this.cacheTextSizeMap.set(this.key,rt),rt}getMindNodeTextPosition(){if(this.cacheTextPositionMap.get(this.key)&&this.useMindCache)return this.cacheTextPositionMap.get(this.key);const{icon:et,image:{imageRef:yt,imageRectHeight:rt}}=this.widget,{h:ct}=this.getMindNodeTextSize(),B=(0,D.Kf)(yt)?rt+it:0,W=B+ct,ut=et?ft:0,H=W<ut?(ut-W)/2:0,N=(et?K:0)+this.paddingHorizontal,Y=B+this.paddingVertical+H,gt={x:N,y:Y};return this.cacheTextPositionMap.set(this.key,gt),gt}}},55135:(oe,Ct,T)=>{"use strict";T.d(Ct,{Je:()=>I,dB:()=>z});var F=T(90141);const Z=D=>F.$2.includes(D.href.split(".").slice(-1).join()),I=D=>["v.qq.com","vimeo.com","youtu.be","www.youtube.com","www.bilibili.com","v.youku.com"].includes(D.hostname),z=D=>{try{const V=new URL(D);if(!(Z(V)||I(V))||!F.sz.includes(V.protocol))return!1}catch(V){return!1}return!0}},55514:(oe,Ct,T)=>{"use strict";T.d(Ct,{Z:()=>Z,v:()=>F});const F=I=>{if(!I)return"default";const{imageFillType:z,imageClipType:D}=I;return z&&z!=="default"?z:D&&D!=="none"?"stretch":"default"},Z=I=>{let{w:z,h:D,imageRectOriginalWidth:V,imageRectOriginalHeight:ht}=I;const ot=z/D,S=V/ht;let O,$,q,ft;return ot>S?(O=z,$=O/S,q=O/2,ft=D/2):($=D,O=D*S,ft=$/2,q=z/2),{imageRectWidth:O,imageRectHeight:$,imageRectCenterX:q,imageRectCenterY:ft}}},56590:(oe,Ct,T)=>{"use strict";T.d(Ct,{P:()=>I,g:()=>Z});var F=T(38502);const Z=(0,F.createContext)(null),I=()=>(0,F.useContext)(Z)},57011:(oe,Ct,T)=>{var F="Expected a function",Z=NaN,I="[object Symbol]",z=/^\s+|\s+$/g,D=/^[-+]0x[0-9a-f]+$/i,V=/^0b[01]+$/i,ht=/^0o[0-7]+$/i,ot=parseInt,S=typeof T.g=="object"&&T.g&&T.g.Object===Object&&T.g,O=typeof self=="object"&&self&&self.Object===Object&&self,$=S||O||Function("return this")(),q=Object.prototype,ft=q.toString,K=Math.max,it=Math.min,nt=function(){return $.Date.now()};function vt(ct,G,B){var W,ut,H,N,Y,gt,pt=0,Tt=!1,mt=!1,lt=!0;if(typeof ct!="function")throw new TypeError(F);G=rt(G)||0,at(B)&&(Tt=!!B.leading,mt="maxWait"in B,H=mt?K(rt(B.maxWait)||0,G):H,lt="trailing"in B?!!B.trailing:lt);function A(Ot){var Dt=W,Ht=ut;return W=ut=void 0,pt=Ot,N=ct.apply(Ht,Dt),N}function kt(Ot){return pt=Ot,Y=setTimeout(At,G),Tt?A(Ot):N}function _t(Ot){var Dt=Ot-gt,Ht=Ot-pt,tt=G-Dt;return mt?it(tt,H-Ht):tt}function Mt(Ot){var Dt=Ot-gt,Ht=Ot-pt;return gt===void 0||Dt>=G||Dt<0||mt&&Ht>=H}function At(){var Ot=nt();if(Mt(Ot))return jt(Ot);Y=setTimeout(At,_t(Ot))}function jt(Ot){return Y=void 0,lt&&W?A(Ot):(W=ut=void 0,N)}function Nt(){Y!==void 0&&clearTimeout(Y),pt=0,W=gt=ut=Y=void 0}function Vt(){return Y===void 0?N:jt(nt())}function Wt(){var Ot=nt(),Dt=Mt(Ot);if(W=arguments,ut=this,gt=Ot,Dt){if(Y===void 0)return kt(gt);if(mt)return Y=setTimeout(At,G),A(gt)}return Y===void 0&&(Y=setTimeout(At,G)),N}return Wt.cancel=Nt,Wt.flush=Vt,Wt}function at(ct){var G=typeof ct;return!!ct&&(G=="object"||G=="function")}function et(ct){return!!ct&&typeof ct=="object"}function yt(ct){return typeof ct=="symbol"||et(ct)&&ft.call(ct)==I}function rt(ct){if(typeof ct=="number")return ct;if(yt(ct))return Z;if(at(ct)){var G=typeof ct.valueOf=="function"?ct.valueOf():ct;ct=at(G)?G+"":G}if(typeof ct!="string")return ct===0?ct:+ct;ct=ct.replace(z,"");var B=V.test(ct);return B||ht.test(ct)?ot(ct.slice(2),B?2:8):D.test(ct)?Z:+ct}oe.exports=vt},57892:(oe,Ct,T)=>{"use strict";T.d(Ct,{G:()=>Z,n:()=>I});var F=T(38502);const Z=(0,F.createContext)(null),I=()=>(0,F.useContext)(Z)},58156:(oe,Ct,T)=>{"use strict";T.d(Ct,{Z:()=>I,j:()=>z});const F=new Map;let Z;const I=D=>{const{key:V,hotAttr:ht,sub:ot}=D;ht.type==="rResBunch"&&ht.bunch==="rbPage"&&(Z=V),Z&&F.set(Z,z(Z)+1)},z=D=>F.get(D)||0},59183:(oe,Ct,T)=>{"use strict";/**
* @license React
* react-dom-server-legacy.browser.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var F=T(38502);function Z(E){for(var Q="https://reactjs.org/docs/error-decoder.html?invariant="+E,bt=1;bt<arguments.length;bt++)Q+="&args[]="+encodeURIComponent(arguments[bt]);return"Minified React error #"+E+"; visit "+Q+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var I=Object.prototype.hasOwnProperty,z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,D={},V={};function ht(E){return I.call(V,E)?!0:I.call(D,E)?!1:z.test(E)?V[E]=!0:(D[E]=!0,!1)}function ot(E,Q,bt,Et,ne,qt,he){this.acceptsBooleans=Q===2||Q===3||Q===4,this.attributeName=Et,this.attributeNamespace=ne,this.mustUseProperty=bt,this.propertyName=E,this.type=Q,this.sanitizeURL=qt,this.removeEmptyString=he}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){S[E]=new ot(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var Q=E[0];S[Q]=new ot(Q,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){S[E]=new ot(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){S[E]=new ot(E,2,!1,E,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(E){S[E]=new ot(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){S[E]=new ot(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){S[E]=new ot(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){S[E]=new ot(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){S[E]=new ot(E,5,!1,E.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function $(E){return E[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(E){var Q=E.replace(O,$);S[Q]=new ot(Q,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var Q=E.replace(O,$);S[Q]=new ot(Q,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var Q=E.replace(O,$);S[Q]=new ot(Q,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){S[E]=new ot(E,1,!1,E.toLowerCase(),null,!1,!1)}),S.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){S[E]=new ot(E,1,!1,E.toLowerCase(),null,!0,!0)});var q={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ft=["Webkit","ms","Moz","O"];Object.keys(q).forEach(function(E){ft.forEach(function(Q){Q=Q+E.charAt(0).toUpperCase()+E.substring(1),q[Q]=q[E]})});var K=/["'&<>]/;function it(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var Q=K.exec(E);if(Q){var bt="",Et,ne=0;for(Et=Q.index;Et<E.length;Et++){switch(E.charCodeAt(Et)){case 34:Q="&quot;";break;case 38:Q="&amp;";break;case 39:Q="&#x27;";break;case 60:Q="&lt;";break;case 62:Q="&gt;";break;default:continue}ne!==Et&&(bt+=E.substring(ne,Et)),ne=Et+1,bt+=Q}E=ne!==Et?bt+E.substring(ne,Et):bt}return E}var nt=/([A-Z])/g,vt=/^ms-/,at=Array.isArray;function et(E,Q){return{insertionMode:E,selectedValue:Q}}function yt(E,Q,bt){switch(Q){case"select":return et(1,bt.value!=null?bt.value:bt.defaultValue);case"svg":return et(2,null);case"math":return et(3,null);case"foreignObject":return et(1,null);case"table":return et(4,null);case"thead":case"tbody":case"tfoot":return et(5,null);case"colgroup":return et(7,null);case"tr":return et(6,null)}return 4<=E.insertionMode||E.insertionMode===0?et(1,null):E}var rt=new Map;function ct(E,Q,bt){if(typeof bt!="object")throw Error(Z(62));Q=!0;for(var Et in bt)if(I.call(bt,Et)){var ne=bt[Et];if(ne!=null&&typeof ne!="boolean"&&ne!==""){if(Et.indexOf("--")===0){var qt=it(Et);ne=it((""+ne).trim())}else{qt=Et;var he=rt.get(qt);he!==void 0||(he=it(qt.replace(nt,"-$1").toLowerCase().replace(vt,"-ms-")),rt.set(qt,he)),qt=he,ne=typeof ne=="number"?ne===0||I.call(q,Et)?""+ne:ne+"px":it((""+ne).trim())}Q?(Q=!1,E.push(' style="',qt,":",ne)):E.push(";",qt,":",ne)}}Q||E.push('"')}function G(E,Q,bt,Et){switch(bt){case"style":ct(E,Q,Et);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<bt.length)||bt[0]!=="o"&&bt[0]!=="O"||bt[1]!=="n"&&bt[1]!=="N"){if(Q=S.hasOwnProperty(bt)?S[bt]:null,Q!==null){switch(typeof Et){case"function":case"symbol":return;case"boolean":if(!Q.acceptsBooleans)return}switch(bt=Q.attributeName,Q.type){case 3:Et&&E.push(" ",bt,'=""');break;case 4:Et===!0?E.push(" ",bt,'=""'):Et!==!1&&E.push(" ",bt,'="',it(Et),'"');break;case 5:isNaN(Et)||E.push(" ",bt,'="',it(Et),'"');break;case 6:!isNaN(Et)&&1<=Et&&E.push(" ",bt,'="',it(Et),'"');break;default:Q.sanitizeURL&&(Et=""+Et),E.push(" ",bt,'="',it(Et),'"')}}else if(ht(bt)){switch(typeof Et){case"function":case"symbol":return;case"boolean":if(Q=bt.toLowerCase().slice(0,5),Q!=="data-"&&Q!=="aria-")return}E.push(" ",bt,'="',it(Et),'"')}}}function B(E,Q,bt){if(Q!=null){if(bt!=null)throw Error(Z(60));if(typeof Q!="object"||!("__html"in Q))throw Error(Z(61));Q=Q.__html,Q!=null&&E.push(""+Q)}}function W(E){var Q="";return F.Children.forEach(E,function(bt){bt!=null&&(Q+=bt)}),Q}function ut(E,Q,bt,Et){E.push(Y(bt));var ne=bt=null,qt;for(qt in Q)if(I.call(Q,qt)){var he=Q[qt];if(he!=null)switch(qt){case"children":bt=he;break;case"dangerouslySetInnerHTML":ne=he;break;default:G(E,Et,qt,he)}}return E.push(">"),B(E,ne,bt),typeof bt=="string"?(E.push(it(bt)),null):bt}var H=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,N=new Map;function Y(E){var Q=N.get(E);if(Q===void 0){if(!H.test(E))throw Error(Z(65,E));Q="<"+E,N.set(E,Q)}return Q}function gt(E,Q,bt,Et,ne){switch(Q){case"select":E.push(Y("select"));var qt=null,he=null;for(ir in bt)if(I.call(bt,ir)){var Ae=bt[ir];if(Ae!=null)switch(ir){case"children":qt=Ae;break;case"dangerouslySetInnerHTML":he=Ae;break;case"defaultValue":case"value":break;default:G(E,Et,ir,Ae)}}return E.push(">"),B(E,he,qt),qt;case"option":he=ne.selectedValue,E.push(Y("option"));var $e=Ae=null,er=null,ir=null;for(qt in bt)if(I.call(bt,qt)){var Kr=bt[qt];if(Kr!=null)switch(qt){case"children":Ae=Kr;break;case"selected":er=Kr;break;case"dangerouslySetInnerHTML":ir=Kr;break;case"value":$e=Kr;default:G(E,Et,qt,Kr)}}if(he!=null)if(bt=$e!==null?""+$e:W(Ae),at(he)){for(Et=0;Et<he.length;Et++)if(""+he[Et]===bt){E.push(' selected=""');break}}else""+he===bt&&E.push(' selected=""');else er&&E.push(' selected=""');return E.push(">"),B(E,ir,Ae),Ae;case"textarea":E.push(Y("textarea")),ir=he=qt=null;for(Ae in bt)if(I.call(bt,Ae)&&($e=bt[Ae],$e!=null))switch(Ae){case"children":ir=$e;break;case"value":qt=$e;break;case"defaultValue":he=$e;break;case"dangerouslySetInnerHTML":throw Error(Z(91));default:G(E,Et,Ae,$e)}if(qt===null&&he!==null&&(qt=he),E.push(">"),ir!=null){if(qt!=null)throw Error(Z(92));if(at(ir)&&1<ir.length)throw Error(Z(93));qt=""+ir}return typeof qt=="string"&&qt[0]==="\n"&&E.push("\n"),qt!==null&&E.push(it(""+qt)),null;case"input":E.push(Y("input")),$e=ir=Ae=qt=null;for(he in bt)if(I.call(bt,he)&&(er=bt[he],er!=null))switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(Z(399,"input"));case"defaultChecked":$e=er;break;case"defaultValue":Ae=er;break;case"checked":ir=er;break;case"value":qt=er;break;default:G(E,Et,he,er)}return ir!==null?G(E,Et,"checked",ir):$e!==null&&G(E,Et,"checked",$e),qt!==null?G(E,Et,"value",qt):Ae!==null&&G(E,Et,"value",Ae),E.push("/>"),null;case"menuitem":E.push(Y("menuitem"));for(var mi in bt)if(I.call(bt,mi)&&(qt=bt[mi],qt!=null))switch(mi){case"children":case"dangerouslySetInnerHTML":throw Error(Z(400));default:G(E,Et,mi,qt)}return E.push(">"),null;case"title":E.push(Y("title")),qt=null;for(Kr in bt)if(I.call(bt,Kr)&&(he=bt[Kr],he!=null))switch(Kr){case"children":qt=he;break;case"dangerouslySetInnerHTML":throw Error(Z(434));default:G(E,Et,Kr,he)}return E.push(">"),qt;case"listing":case"pre":E.push(Y(Q)),he=qt=null;for($e in bt)if(I.call(bt,$e)&&(Ae=bt[$e],Ae!=null))switch($e){case"children":qt=Ae;break;case"dangerouslySetInnerHTML":he=Ae;break;default:G(E,Et,$e,Ae)}if(E.push(">"),he!=null){if(qt!=null)throw Error(Z(60));if(typeof he!="object"||!("__html"in he))throw Error(Z(61));bt=he.__html,bt!=null&&(typeof bt=="string"&&0<bt.length&&bt[0]==="\n"?E.push("\n",bt):E.push(""+bt))}return typeof qt=="string"&&qt[0]==="\n"&&E.push("\n"),qt;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":E.push(Y(Q));for(var yi in bt)if(I.call(bt,yi)&&(qt=bt[yi],qt!=null))switch(yi){case"children":case"dangerouslySetInnerHTML":throw Error(Z(399,Q));default:G(E,Et,yi,qt)}return E.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ut(E,bt,Q,Et);case"html":return ne.insertionMode===0&&E.push("<!DOCTYPE html>"),ut(E,bt,Q,Et);default:if(Q.indexOf("-")===-1&&typeof bt.is!="string")return ut(E,bt,Q,Et);E.push(Y(Q)),he=qt=null;for(er in bt)if(I.call(bt,er)&&(Ae=bt[er],Ae!=null))switch(er){case"children":qt=Ae;break;case"dangerouslySetInnerHTML":he=Ae;break;case"style":ct(E,Et,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ht(er)&&typeof Ae!="function"&&typeof Ae!="symbol"&&E.push(" ",er,'="',it(Ae),'"')}return E.push(">"),B(E,he,qt),qt}}function pt(E,Q,bt){if(E.push('<!--$?--><template id="'),bt===null)throw Error(Z(395));return E.push(bt),E.push('"></template>')}function Tt(E,Q,bt,Et){switch(bt.insertionMode){case 0:case 1:return E.push('<div hidden id="'),E.push(Q.segmentPrefix),Q=Et.toString(16),E.push(Q),E.push('">');case 2:return E.push('<svg aria-hidden="true" style="display:none" id="'),E.push(Q.segmentPrefix),Q=Et.toString(16),E.push(Q),E.push('">');case 3:return E.push('<math aria-hidden="true" style="display:none" id="'),E.push(Q.segmentPrefix),Q=Et.toString(16),E.push(Q),E.push('">');case 4:return E.push('<table hidden id="'),E.push(Q.segmentPrefix),Q=Et.toString(16),E.push(Q),E.push('">');case 5:return E.push('<table hidden><tbody id="'),E.push(Q.segmentPrefix),Q=Et.toString(16),E.push(Q),E.push('">');case 6:return E.push('<table hidden><tr id="'),E.push(Q.segmentPrefix),Q=Et.toString(16),E.push(Q),E.push('">');case 7:return E.push('<table hidden><colgroup id="'),E.push(Q.segmentPrefix),Q=Et.toString(16),E.push(Q),E.push('">');default:throw Error(Z(397))}}function mt(E,Q){switch(Q.insertionMode){case 0:case 1:return E.push("</div>");case 2:return E.push("</svg>");case 3:return E.push("</math>");case 4:return E.push("</table>");case 5:return E.push("</tbody></table>");case 6:return E.push("</tr></table>");case 7:return E.push("</colgroup></table>");default:throw Error(Z(397))}}var lt=/[<\u2028\u2029]/g;function A(E){return JSON.stringify(E).replace(lt,function(Q){switch(Q){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function kt(E,Q){return Q=Q===void 0?"":Q,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:Q+"P:",segmentPrefix:Q+"S:",boundaryPrefix:Q+"B:",idPrefix:Q,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:E}}function _t(E,Q,bt,Et){return bt.generateStaticMarkup?(E.push(it(Q)),!1):(Q===""?E=Et:(Et&&E.push("<!-- -->"),E.push(it(Q)),E=!0),E)}var Mt=Object.assign,At=Symbol.for("react.element"),jt=Symbol.for("react.portal"),Nt=Symbol.for("react.fragment"),Vt=Symbol.for("react.strict_mode"),Wt=Symbol.for("react.profiler"),Ot=Symbol.for("react.provider"),Dt=Symbol.for("react.context"),Ht=Symbol.for("react.forward_ref"),tt=Symbol.for("react.suspense"),Pt=Symbol.for("react.suspense_list"),zt=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),$t=Symbol.for("react.scope"),ae=Symbol.for("react.debug_trace_mode"),Xt=Symbol.for("react.legacy_hidden"),ve=Symbol.for("react.default_value"),Se=Symbol.iterator;function we(E){if(E==null)return null;if(typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case Nt:return"Fragment";case jt:return"Portal";case Wt:return"Profiler";case Vt:return"StrictMode";case tt:return"Suspense";case Pt:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case Dt:return(E.displayName||"Context")+".Consumer";case Ot:return(E._context.displayName||"Context")+".Provider";case Ht:var Q=E.render;return E=E.displayName,E||(E=Q.displayName||Q.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case zt:return Q=E.displayName||null,Q!==null?Q:we(E.type)||"Memo";case te:Q=E._payload,E=E._init;try{return we(E(Q))}catch(bt){}}return null}var Ee={};function ke(E,Q){if(E=E.contextTypes,!E)return Ee;var bt={},Et;for(Et in E)bt[Et]=Q[Et];return bt}var Le=null;function Oe(E,Q){if(E!==Q){E.context._currentValue2=E.parentValue,E=E.parent;var bt=Q.parent;if(E===null){if(bt!==null)throw Error(Z(401))}else{if(bt===null)throw Error(Z(401));Oe(E,bt)}Q.context._currentValue2=Q.value}}function Ke(E){E.context._currentValue2=E.parentValue,E=E.parent,E!==null&&Ke(E)}function Qe(E){var Q=E.parent;Q!==null&&Qe(Q),E.context._currentValue2=E.value}function hr(E,Q){if(E.context._currentValue2=E.parentValue,E=E.parent,E===null)throw Error(Z(402));E.depth===Q.depth?Oe(E,Q):hr(E,Q)}function Fe(E,Q){var bt=Q.parent;if(bt===null)throw Error(Z(402));E.depth===bt.depth?Oe(E,bt):Fe(E,bt),Q.context._currentValue2=Q.value}function yr(E){var Q=Le;Q!==E&&(Q===null?Qe(E):E===null?Ke(Q):Q.depth===E.depth?Oe(Q,E):Q.depth>E.depth?hr(Q,E):Fe(Q,E),Le=E)}var fr={isMounted:function(){return!1},enqueueSetState:function(E,Q){E=E._reactInternals,E.queue!==null&&E.queue.push(Q)},enqueueReplaceState:function(E,Q){E=E._reactInternals,E.replace=!0,E.queue=[Q]},enqueueForceUpdate:function(){}};function Ar(E,Q,bt,Et){var ne=E.state!==void 0?E.state:null;E.updater=fr,E.props=bt,E.state=ne;var qt={queue:[],replace:!1};E._reactInternals=qt;var he=Q.contextType;if(E.context=typeof he=="object"&&he!==null?he._currentValue2:Et,he=Q.getDerivedStateFromProps,typeof he=="function"&&(he=he(bt,ne),ne=he==null?ne:Mt({},ne,he),E.state=ne),typeof Q.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function"))if(Q=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),Q!==E.state&&fr.enqueueReplaceState(E,E.state,null),qt.queue!==null&&0<qt.queue.length)if(Q=qt.queue,he=qt.replace,qt.queue=null,qt.replace=!1,he&&Q.length===1)E.state=Q[0];else{for(qt=he?Q[0]:E.state,ne=!0,he=he?1:0;he<Q.length;he++){var Ae=Q[he];Ae=typeof Ae=="function"?Ae.call(E,qt,bt,Et):Ae,Ae!=null&&(ne?(ne=!1,qt=Mt({},qt,Ae)):Mt(qt,Ae))}E.state=qt}else qt.queue=null}var Tr={id:1,overflow:""};function fn(E,Q,bt){var Et=E.id;E=E.overflow;var ne=32-yn(Et)-1;Et&=~(1<<ne),bt+=1;var qt=32-yn(Q)+ne;if(30<qt){var he=ne-ne%5;return qt=(Et&(1<<he)-1).toString(32),Et>>=he,ne-=he,{id:1<<32-yn(Q)+ne|bt<<ne|Et,overflow:qt+E}}return{id:1<<qt|bt<<ne|Et,overflow:E}}var yn=Math.clz32?Math.clz32:ge,Zi=Math.log,Vn=Math.LN2;function ge(E){return E>>>=0,E===0?32:31-(Zi(E)/Vn|0)|0}function _n(E,Q){return E===Q&&(E!==0||1/E===1/Q)||E!==E&&Q!==Q}var vi=typeof Object.is=="function"?Object.is:_n,zn=null,Po=null,Jr=null,Zt=null,Vr=!1,Hn=!1,Qn=0,xr=null,on=0;function gi(){if(zn===null)throw Error(Z(321));return zn}function bs(){if(0<on)throw Error(Z(312));return{memoizedState:null,queue:null,next:null}}function Xa(){return Zt===null?Jr===null?(Vr=!1,Jr=Zt=bs()):(Vr=!0,Zt=Jr):Zt.next===null?(Vr=!1,Zt=Zt.next=bs()):(Vr=!0,Zt=Zt.next),Zt}function ql(){Po=zn=null,Hn=!1,Jr=null,on=0,Zt=xr=null}function tu(E,Q){return typeof Q=="function"?Q(E):Q}function _s(E,Q,bt){if(zn=gi(),Zt=Xa(),Vr){var Et=Zt.queue;if(Q=Et.dispatch,xr!==null&&(bt=xr.get(Et),bt!==void 0)){xr.delete(Et),Et=Zt.memoizedState;do Et=E(Et,bt.action),bt=bt.next;while(bt!==null);return Zt.memoizedState=Et,[Et,Q]}return[Zt.memoizedState,Q]}return E=E===tu?typeof Q=="function"?Q():Q:bt!==void 0?bt(Q):Q,Zt.memoizedState=E,E=Zt.queue={last:null,dispatch:null},E=E.dispatch=Zh.bind(null,zn,E),[Zt.memoizedState,E]}function eu(E,Q){if(zn=gi(),Zt=Xa(),Q=Q===void 0?null:Q,Zt!==null){var bt=Zt.memoizedState;if(bt!==null&&Q!==null){var Et=bt[1];t:if(Et===null)Et=!1;else{for(var ne=0;ne<Et.length&&ne<Q.length;ne++)if(!vi(Q[ne],Et[ne])){Et=!1;break t}Et=!0}if(Et)return bt[0]}}return E=E(),Zt.memoizedState=[E,Q],E}function Zh(E,Q,bt){if(25<=on)throw Error(Z(301));if(E===zn)if(Hn=!0,E={action:bt,next:null},xr===null&&(xr=new Map),bt=xr.get(Q),bt===void 0)xr.set(Q,E);else{for(Q=bt;Q.next!==null;)Q=Q.next;Q.next=E}}function Pc(){throw Error(Z(394))}function Eo(){}var Ec={readContext:function(E){return E._currentValue2},useContext:function(E){return gi(),E._currentValue2},useMemo:eu,useReducer:_s,useRef:function(E){zn=gi(),Zt=Xa();var Q=Zt.memoizedState;return Q===null?(E={current:E},Zt.memoizedState=E):Q},useState:function(E){return _s(tu,E)},useInsertionEffect:Eo,useLayoutEffect:function(){},useCallback:function(E,Q){return eu(function(){return E},Q)},useImperativeHandle:Eo,useEffect:Eo,useDebugValue:Eo,useDeferredValue:function(E){return gi(),E},useTransition:function(){return gi(),[!1,Pc]},useId:function(){var E=Po.treeContext,Q=E.overflow;E=E.id,E=(E&~(1<<32-yn(E)-1)).toString(32)+Q;var bt=Lo;if(bt===null)throw Error(Z(404));return Q=Qn++,E=":"+bt.idPrefix+"R"+E,0<Q&&(E+="H"+Q.toString(32)),E+":"},useMutableSource:function(E,Q){return gi(),Q(E._source)},useSyncExternalStore:function(E,Q,bt){if(bt===void 0)throw Error(Z(407));return bt()}},Lo=null,Cs=F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function $h(E){return console.error(E),null}function Za(){}function Lc(E,Q,bt,Et,ne,qt,he,Ae,$e){var er=[],ir=new Set;return Q={destination:null,responseState:Q,progressiveChunkSize:Et===void 0?12800:Et,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ir,pingedTasks:er,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ne===void 0?$h:ne,onAllReady:qt===void 0?Za:qt,onShellReady:he===void 0?Za:he,onShellError:Ae===void 0?Za:Ae,onFatalError:$e===void 0?Za:$e},bt=Ro(Q,0,null,bt,!1,!1),bt.parentFlushed=!0,E=ru(Q,E,null,bt,ir,Ee,null,Tr),er.push(E),Q}function ru(E,Q,bt,Et,ne,qt,he,Ae){E.allPendingTasks++,bt===null?E.pendingRootTasks++:bt.pendingTasks++;var $e={node:Q,ping:function(){var er=E.pingedTasks;er.push($e),er.length===1&&iu(E)},blockedBoundary:bt,blockedSegment:Et,abortSet:ne,legacyContext:qt,context:he,treeContext:Ae};return ne.add($e),$e}function Ro(E,Q,bt,Et,ne,qt){return{status:0,id:-1,index:Q,parentFlushed:!1,chunks:[],children:[],formatContext:Et,boundary:bt,lastPushedText:ne,textEmbedded:qt}}function Gr(E,Q){if(E=E.onError(Q),E!=null&&typeof E!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof E+'" instead');return E}function ya(E,Q){var bt=E.onShellError;bt(Q),bt=E.onFatalError,bt(Q),E.destination!==null?(E.status=2,E.destination.destroy(Q)):(E.status=1,E.fatalError=Q)}function Ts(E,Q,bt,Et,ne){for(zn={},Po=Q,Qn=0,E=bt(Et,ne);Hn;)Hn=!1,Qn=0,on+=1,Zt=null,E=bt(Et,ne);return ql(),E}function Ms(E,Q,bt,Et){var ne=bt.render(),qt=Et.childContextTypes;if(qt!=null){var he=Q.legacyContext;if(typeof bt.getChildContext!="function")Et=he;else{bt=bt.getChildContext();for(var Ae in bt)if(!(Ae in qt))throw Error(Z(108,we(Et)||"Unknown",Ae));Et=Mt({},he,bt)}Q.legacyContext=Et,Cn(E,Q,ne),Q.legacyContext=he}else Cn(E,Q,ne)}function Oo(E,Q){if(E&&E.defaultProps){Q=Mt({},Q),E=E.defaultProps;for(var bt in E)Q[bt]===void 0&&(Q[bt]=E[bt]);return Q}return Q}function As(E,Q,bt,Et,ne){if(typeof bt=="function")if(bt.prototype&&bt.prototype.isReactComponent){ne=ke(bt,Q.legacyContext);var qt=bt.contextType;qt=new bt(Et,typeof qt=="object"&&qt!==null?qt._currentValue2:ne),Ar(qt,bt,Et,ne),Ms(E,Q,qt,bt)}else{qt=ke(bt,Q.legacyContext),ne=Ts(E,Q,bt,Et,qt);var he=Qn!==0;if(typeof ne=="object"&&ne!==null&&typeof ne.render=="function"&&ne.$$typeof===void 0)Ar(ne,bt,Et,qt),Ms(E,Q,ne,bt);else if(he){Et=Q.treeContext,Q.treeContext=fn(Et,1,0);try{Cn(E,Q,ne)}finally{Q.treeContext=Et}}else Cn(E,Q,ne)}else if(typeof bt=="string"){switch(ne=Q.blockedSegment,qt=gt(ne.chunks,bt,Et,E.responseState,ne.formatContext),ne.lastPushedText=!1,he=ne.formatContext,ne.formatContext=yt(he,bt,Et),Is(E,Q,qt),ne.formatContext=he,bt){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ne.chunks.push("</",bt,">")}ne.lastPushedText=!1}else{switch(bt){case Xt:case ae:case Vt:case Wt:case Nt:Cn(E,Q,Et.children);return;case Pt:Cn(E,Q,Et.children);return;case $t:throw Error(Z(343));case tt:t:{bt=Q.blockedBoundary,ne=Q.blockedSegment,qt=Et.fallback,Et=Et.children,he=new Set;var Ae={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:he,errorDigest:null},$e=Ro(E,ne.chunks.length,Ae,ne.formatContext,!1,!1);ne.children.push($e),ne.lastPushedText=!1;var er=Ro(E,0,null,ne.formatContext,!1,!1);er.parentFlushed=!0,Q.blockedBoundary=Ae,Q.blockedSegment=er;try{if(Is(E,Q,Et),E.responseState.generateStaticMarkup||er.lastPushedText&&er.textEmbedded&&er.chunks.push("<!-- -->"),er.status=1,xa(Ae,er),Ae.pendingTasks===0)break t}catch(ir){er.status=4,Ae.forceClientRender=!0,Ae.errorDigest=Gr(E,ir)}finally{Q.blockedBoundary=bt,Q.blockedSegment=ne}Q=ru(E,qt,bt,$e,he,Q.legacyContext,Q.context,Q.treeContext),E.pingedTasks.push(Q)}return}if(typeof bt=="object"&&bt!==null)switch(bt.$$typeof){case Ht:if(Et=Ts(E,Q,bt.render,Et,ne),Qn!==0){bt=Q.treeContext,Q.treeContext=fn(bt,1,0);try{Cn(E,Q,Et)}finally{Q.treeContext=bt}}else Cn(E,Q,Et);return;case zt:bt=bt.type,Et=Oo(bt,Et),As(E,Q,bt,Et,ne);return;case Ot:if(ne=Et.children,bt=bt._context,Et=Et.value,qt=bt._currentValue2,bt._currentValue2=Et,he=Le,Le=Et={parent:he,depth:he===null?0:he.depth+1,context:bt,parentValue:qt,value:Et},Q.context=Et,Cn(E,Q,ne),E=Le,E===null)throw Error(Z(403));Et=E.parentValue,E.context._currentValue2=Et===ve?E.context._defaultValue:Et,E=Le=E.parent,Q.context=E;return;case Dt:Et=Et.children,Et=Et(bt._currentValue2),Cn(E,Q,Et);return;case te:ne=bt._init,bt=ne(bt._payload),Et=Oo(bt,Et),As(E,Q,bt,Et,void 0);return}throw Error(Z(130,bt==null?bt:typeof bt,""))}}function Cn(E,Q,bt){if(Q.node=bt,typeof bt=="object"&&bt!==null){switch(bt.$$typeof){case At:As(E,Q,bt.type,bt.props,bt.ref);return;case jt:throw Error(Z(257));case te:var Et=bt._init;bt=Et(bt._payload),Cn(E,Q,bt);return}if(at(bt)){Rc(E,Q,bt);return}if(bt===null||typeof bt!="object"?Et=null:(Et=Se&&bt[Se]||bt["@@iterator"],Et=typeof Et=="function"?Et:null),Et&&(Et=Et.call(bt))){if(bt=Et.next(),!bt.done){var ne=[];do ne.push(bt.value),bt=Et.next();while(!bt.done);Rc(E,Q,ne)}return}throw E=Object.prototype.toString.call(bt),Error(Z(31,E==="[object Object]"?"object with keys {"+Object.keys(bt).join(", ")+"}":E))}typeof bt=="string"?(Et=Q.blockedSegment,Et.lastPushedText=_t(Q.blockedSegment.chunks,bt,E.responseState,Et.lastPushedText)):typeof bt=="number"&&(Et=Q.blockedSegment,Et.lastPushedText=_t(Q.blockedSegment.chunks,""+bt,E.responseState,Et.lastPushedText))}function Rc(E,Q,bt){for(var Et=bt.length,ne=0;ne<Et;ne++){var qt=Q.treeContext;Q.treeContext=fn(qt,Et,ne);try{Is(E,Q,bt[ne])}finally{Q.treeContext=qt}}}function Is(E,Q,bt){var Et=Q.blockedSegment.formatContext,ne=Q.legacyContext,qt=Q.context;try{return Cn(E,Q,bt)}catch($e){if(ql(),typeof $e=="object"&&$e!==null&&typeof $e.then=="function"){bt=$e;var he=Q.blockedSegment,Ae=Ro(E,he.chunks.length,null,he.formatContext,he.lastPushedText,!0);he.children.push(Ae),he.lastPushedText=!1,E=ru(E,Q.node,Q.blockedBoundary,Ae,Q.abortSet,Q.legacyContext,Q.context,Q.treeContext).ping,bt.then(E,E),Q.blockedSegment.formatContext=Et,Q.legacyContext=ne,Q.context=qt,yr(qt)}else throw Q.blockedSegment.formatContext=Et,Q.legacyContext=ne,Q.context=qt,yr(qt),$e}}function No(E){var Q=E.blockedBoundary;E=E.blockedSegment,E.status=3,$a(this,Q,E)}function nu(E,Q,bt){var Et=E.blockedBoundary;E.blockedSegment.status=3,Et===null?(Q.allPendingTasks--,Q.status!==2&&(Q.status=2,Q.destination!==null&&Q.destination.push(null))):(Et.pendingTasks--,Et.forceClientRender||(Et.forceClientRender=!0,E=bt===void 0?Error(Z(432)):bt,Et.errorDigest=Q.onError(E),Et.parentFlushed&&Q.clientRenderedBoundaries.push(Et)),Et.fallbackAbortableTasks.forEach(function(ne){return nu(ne,Q,bt)}),Et.fallbackAbortableTasks.clear(),Q.allPendingTasks--,Q.allPendingTasks===0&&(Et=Q.onAllReady,Et()))}function xa(E,Q){if(Q.chunks.length===0&&Q.children.length===1&&Q.children[0].boundary===null){var bt=Q.children[0];bt.id=Q.id,bt.parentFlushed=!0,bt.status===1&&xa(E,bt)}else E.completedSegments.push(Q)}function $a(E,Q,bt){if(Q===null){if(bt.parentFlushed){if(E.completedRootSegment!==null)throw Error(Z(389));E.completedRootSegment=bt}E.pendingRootTasks--,E.pendingRootTasks===0&&(E.onShellError=Za,Q=E.onShellReady,Q())}else Q.pendingTasks--,Q.forceClientRender||(Q.pendingTasks===0?(bt.parentFlushed&&bt.status===1&&xa(Q,bt),Q.parentFlushed&&E.completedBoundaries.push(Q),Q.fallbackAbortableTasks.forEach(No,E),Q.fallbackAbortableTasks.clear()):bt.parentFlushed&&bt.status===1&&(xa(Q,bt),Q.completedSegments.length===1&&Q.parentFlushed&&E.partialBoundaries.push(Q)));E.allPendingTasks--,E.allPendingTasks===0&&(E=E.onAllReady,E())}function iu(E){if(E.status!==2){var Q=Le,bt=Cs.current;Cs.current=Ec;var Et=Lo;Lo=E.responseState;try{var ne=E.pingedTasks,qt;for(qt=0;qt<ne.length;qt++){var he=ne[qt],Ae=E,$e=he.blockedSegment;if($e.status===0){yr(he.context);try{Cn(Ae,he,he.node),Ae.responseState.generateStaticMarkup||$e.lastPushedText&&$e.textEmbedded&&$e.chunks.push("<!-- -->"),he.abortSet.delete(he),$e.status=1,$a(Ae,he.blockedBoundary,$e)}catch(qn){if(ql(),typeof qn=="object"&&qn!==null&&typeof qn.then=="function"){var er=he.ping;qn.then(er,er)}else{he.abortSet.delete(he),$e.status=4;var ir=he.blockedBoundary,Kr=qn,mi=Gr(Ae,Kr);if(ir===null?ya(Ae,Kr):(ir.pendingTasks--,ir.forceClientRender||(ir.forceClientRender=!0,ir.errorDigest=mi,ir.parentFlushed&&Ae.clientRenderedBoundaries.push(ir))),Ae.allPendingTasks--,Ae.allPendingTasks===0){var yi=Ae.onAllReady;yi()}}}finally{}}}ne.splice(0,qt),E.destination!==null&&zo(E,E.destination)}catch(qn){Gr(E,qn),ya(E,qn)}finally{Lo=Et,Cs.current=bt,bt===Ec&&yr(Q)}}}function Ja(E,Q,bt){switch(bt.parentFlushed=!0,bt.status){case 0:var Et=bt.id=E.nextSegmentId++;return bt.lastPushedText=!1,bt.textEmbedded=!1,E=E.responseState,Q.push('<template id="'),Q.push(E.placeholderPrefix),E=Et.toString(16),Q.push(E),Q.push('"></template>');case 1:bt.status=2;var ne=!0;Et=bt.chunks;var qt=0;bt=bt.children;for(var he=0;he<bt.length;he++){for(ne=bt[he];qt<ne.index;qt++)Q.push(Et[qt]);ne=Bo(E,Q,ne)}for(;qt<Et.length-1;qt++)Q.push(Et[qt]);return qt<Et.length&&(ne=Q.push(Et[qt])),ne;default:throw Error(Z(390))}}function Bo(E,Q,bt){var Et=bt.boundary;if(Et===null)return Ja(E,Q,bt);if(Et.parentFlushed=!0,Et.forceClientRender)return E.responseState.generateStaticMarkup||(Et=Et.errorDigest,Q.push("<!--$!-->"),Q.push("<template"),Et&&(Q.push(' data-dgst="'),Et=it(Et),Q.push(Et),Q.push('"')),Q.push("></template>")),Ja(E,Q,bt),E=E.responseState.generateStaticMarkup?!0:Q.push("<!--/$-->"),E;if(0<Et.pendingTasks){Et.rootSegmentID=E.nextSegmentId++,0<Et.completedSegments.length&&E.partialBoundaries.push(Et);var ne=E.responseState,qt=ne.nextSuspenseID++;return ne=ne.boundaryPrefix+qt.toString(16),Et=Et.id=ne,pt(Q,E.responseState,Et),Ja(E,Q,bt),Q.push("<!--/$-->")}if(Et.byteSize>E.progressiveChunkSize)return Et.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(Et),pt(Q,E.responseState,Et.id),Ja(E,Q,bt),Q.push("<!--/$-->");if(E.responseState.generateStaticMarkup||Q.push("<!--$-->"),bt=Et.completedSegments,bt.length!==1)throw Error(Z(391));return Bo(E,Q,bt[0]),E=E.responseState.generateStaticMarkup?!0:Q.push("<!--/$-->"),E}function Ds(E,Q,bt){return Tt(Q,E.responseState,bt.formatContext,bt.id),Bo(E,Q,bt),mt(Q,bt.formatContext)}function Vo(E,Q,bt){for(var Et=bt.completedSegments,ne=0;ne<Et.length;ne++)ks(E,Q,bt,Et[ne]);if(Et.length=0,E=E.responseState,Et=bt.id,bt=bt.rootSegmentID,Q.push(E.startInlineScript),E.sentCompleteBoundaryFunction?Q.push('$RC("'):(E.sentCompleteBoundaryFunction=!0,Q.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),Et===null)throw Error(Z(395));return bt=bt.toString(16),Q.push(Et),Q.push('","'),Q.push(E.segmentPrefix),Q.push(bt),Q.push('")<\/script>')}function ks(E,Q,bt,Et){if(Et.status===2)return!0;var ne=Et.id;if(ne===-1){if((Et.id=bt.rootSegmentID)===-1)throw Error(Z(392));return Ds(E,Q,Et)}return Ds(E,Q,Et),E=E.responseState,Q.push(E.startInlineScript),E.sentCompleteSegmentFunction?Q.push('$RS("'):(E.sentCompleteSegmentFunction=!0,Q.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),Q.push(E.segmentPrefix),ne=ne.toString(16),Q.push(ne),Q.push('","'),Q.push(E.placeholderPrefix),Q.push(ne),Q.push('")<\/script>')}function zo(E,Q){try{var bt=E.completedRootSegment;if(bt!==null&&E.pendingRootTasks===0){Bo(E,Q,bt),E.completedRootSegment=null;var Et=E.responseState.bootstrapChunks;for(bt=0;bt<Et.length-1;bt++)Q.push(Et[bt]);bt<Et.length&&Q.push(Et[bt])}var ne=E.clientRenderedBoundaries,qt;for(qt=0;qt<ne.length;qt++){var he=ne[qt];Et=Q;var Ae=E.responseState,$e=he.id,er=he.errorDigest,ir=he.errorMessage,Kr=he.errorComponentStack;if(Et.push(Ae.startInlineScript),Ae.sentClientRenderFunction?Et.push('$RX("'):(Ae.sentClientRenderFunction=!0,Et.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),$e===null)throw Error(Z(395));if(Et.push($e),Et.push('"'),er||ir||Kr){Et.push(",");var mi=A(er||"");Et.push(mi)}if(ir||Kr){Et.push(",");var yi=A(ir||"");Et.push(yi)}if(Kr){Et.push(",");var qn=A(Kr);Et.push(qn)}if(!Et.push(")<\/script>")){E.destination=null,qt++,ne.splice(0,qt);return}}ne.splice(0,qt);var Qa=E.completedBoundaries;for(qt=0;qt<Qa.length;qt++)if(!Vo(E,Q,Qa[qt])){E.destination=null,qt++,Qa.splice(0,qt);return}Qa.splice(0,qt);var $i=E.partialBoundaries;for(qt=0;qt<$i.length;qt++){var ou=$i[qt];t:{ne=E,he=Q;var qa=ou.completedSegments;for(Ae=0;Ae<qa.length;Ae++)if(!ks(ne,he,ou,qa[Ae])){Ae++,qa.splice(0,Ae);var su=!1;break t}qa.splice(0,Ae),su=!0}if(!su){E.destination=null,qt++,$i.splice(0,qt);return}}$i.splice(0,qt);var to=E.completedBoundaries;for(qt=0;qt<to.length;qt++)if(!Vo(E,Q,to[qt])){E.destination=null,qt++,to.splice(0,qt);return}to.splice(0,qt)}finally{E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&Q.push(null)}}function Oc(E,Q){try{var bt=E.abortableTasks;bt.forEach(function(Et){return nu(Et,E,Q)}),bt.clear(),E.destination!==null&&zo(E,E.destination)}catch(Et){Gr(E,Et),ya(E,Et)}}function au(){}function Ps(E,Q,bt,Et){var ne=!1,qt=null,he="",Ae={push:function(er){return er!==null&&(he+=er),!0},destroy:function(er){ne=!0,qt=er}},$e=!1;if(E=Lc(E,kt(bt,Q?Q.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,au,void 0,function(){$e=!0},void 0,void 0),iu(E),Oc(E,Et),E.status===1)E.status=2,Ae.destroy(E.fatalError);else if(E.status!==2&&E.destination===null){E.destination=Ae;try{zo(E,Ae)}catch(er){Gr(E,er),ya(E,er)}}if(ne)throw qt;if(!$e)throw Error(Z(426));return he}Ct.renderToNodeStream=function(){throw Error(Z(207))},Ct.renderToStaticMarkup=function(E,Q){return Ps(E,Q,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ct.renderToStaticNodeStream=function(){throw Error(Z(208))},Ct.renderToString=function(E,Q){return Ps(E,Q,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Ct.version="18.3.1"},60312:(oe,Ct,T)=>{"use strict";T.d(Ct,{PD:()=>I,ji:()=>Z,vr:()=>z});var F=T(20089);const Z=D=>D.type===F.x.WMTextInput&&I(D),I=D=>["datetime-local","date","time"].includes(D.textInput.inputTypes),z=D=>{let{textV0:V,textInput:ht}=D;const ot=ht.prefillTextV0==="";return{value:ot?V.text:ht.prefillTextV0,needShowPlaceholder:ot}}},62021:(oe,Ct,T)=>{"use strict";T.d(Ct,{k:()=>F});function F(Z,I){const z=[Z,I];let D,V,ht,ot,S,O,$,q;for(ot=0;ot<z.length;ot++){const ft=z[ot];for(S=0;S<ft.length;S++){const K=(S+1)%ft.length,it=ft[S],nt=ft[K],vt={x:nt.y-it.y,y:it.x-nt.x};for(D=V=void 0,O=0;O<Z.length;O++)ht=vt.x*Z[O].x+vt.y*Z[O].y,(D===void 0||ht<D)&&(D=ht),(V===void 0||ht>V)&&(V=ht);for($=q=void 0,O=0;O<I.length;O++)ht=vt.x*I[O].x+vt.y*I[O].y,($===void 0||ht<$)&&($=ht),(q===void 0||ht>q)&&(q=ht);if(V<$||q<D)return!1}}return!0}},62530:(oe,Ct,T)=>{"use strict";T.d(Ct,{L:()=>F});let F=function(Z){return Z[Z.canvas=0]="canvas",Z[Z.nonCanvas=1]="nonCanvas",Z[Z.code=2]="code",Z}({})},66559:(oe,Ct,T)=>{"use strict";T.d(Ct,{bS:()=>Z,zS:()=>F,zb:()=>I});const F={viewBox:"0 0 16 16",path:'<path fill="#000" fill-rule="evenodd" d="M13.4 12.26a1 1 0 0 0 .05-.3V7.01H2.55v4.95c0 .55.45 1 1 1h8.9a1 1 0 0 0 .95-.7ZM2.55 6.02h10.9v-.5a.99.99 0 0 0-1-.99h-4.5c-.57 0-1.11-.25-1.49-.68l-.4-.46a.99.99 0 0 0-.75-.34H3.54a.99.99 0 0 0-.99.99v1.98Zm11.8 6.53a2 2 0 0 1-1.9 1.4h-8.9c-1.1 0-1.99-.9-1.99-1.99V4.04c0-1.1.89-1.98 1.98-1.98h1.77c.58 0 1.12.25 1.5.68l.4.46c.19.22.46.34.75.34h4.5c1.1 0 1.98.89 1.98 1.98v6.44c0 .2-.03.4-.1.6Z" clip-rule="evenodd"/>'},Z={viewBox:"0 0 16 16",path:'<path fill="#415058" fill-rule="evenodd" d="M12 12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3v2.5c0 1.1.9 2 2 2h2V12Zm0-5.5a.2.2 0 0 0-.06-.15L9 3.41V5.5a1 1 0 0 0 1 1h2ZM3 4c0-1.1.9-2 2-2h3.17a2 2 0 0 1 1.42.59l3.06 3.06c.22.22.35.53.35.85V12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4Z" clip-rule="evenodd"/>'},I={viewBox:"0 0 16 16",path:'<path fill="#000" fillRule="evenodd" d="M12.97 7.1v4.52c0 .5-.4.9-.9.9H3.93a.9.9 0 0 1-.9-.9V7.1H12.97Zm.9-.9v-.46c0-1-.8-1.8-1.8-1.8h-4.1a.9.9 0 0 1-.7-.32l-.36-.42a1.8 1.8 0 0 0-1.36-.62H3.93c-1 0-1.8.8-1.8 1.8v7.24a1.8 1.8 0 0 0 1.8 1.8h8.14c1 0 1.8-.8 1.8-1.8V6.2Zm-.9 0H3.03V4.37c0-.5.4-.9.9-.9h1.62a.9.9 0 0 1 .68.31l.36.42c.35.4.85.63 1.37.63h4.1c.5 0 .91.4.91.9v.45Z" clipRule="evenodd"/>'}},68370:(oe,Ct,T)=>{"use strict";T.d(Ct,{J:()=>F,b:()=>Z});const F=(I,z)=>{const D=[];I=I.slice();for(let V=0;V<I.length;V++){const ht=V+1>I.length-1?(V+1)%I.length:V+1,ot=V+2>I.length-1?(V+2)%I.length:V+2,S=I[V],O=I[ht],$=I[ot],q=Math.sqrt(Math.pow(S.x-O.x,2)+Math.pow(S.y-O.y,2)),ft=(q-z)/q<.5?.5:(q-z)/q,K=[(1-ft)*S.x+ft*O.x,(1-ft)*S.y+ft*O.y],it=Math.sqrt(Math.pow(O.x-$.x,2)+Math.pow(O.y-$.y,2)),nt=z/it>.5?.5:z/it,vt=[(1-nt)*O.x+nt*$.x,(1-nt)*O.y+nt*$.y];V===I.length-1&&D.unshift("M"+vt.join(",")),D.push("L"+K.join(",")),D.push("Q"+O.x+","+O.y+","+vt.join(","))}return D.push("Z"),D.join(" ")},Z=I=>{let{width:z,height:D,sides:V,borderWidth:ht}=I;const ot=[];let S=0;const O=2*Math.PI/V,$=z-ht,q=D-ht,ft=Math.min($,q),K=ft/2,it=K,nt=K;for(let vt=0;vt<V;vt++){const at=(V%2?it+K*Math.sin(S):it+K*Math.cos(S))/ft,et=(V%2?nt-K*Math.cos(S):nt-K*Math.sin(S))/ft;ot.push({x:at*$,y:et*q}),S+=O}return ot}},69212:(oe,Ct,T)=>{"use strict";T.d(Ct,{f:()=>I,i:()=>Z});var F=T(38502);const Z=(0,F.createContext)(null),I=()=>(0,F.useContext)(Z)},69405:(oe,Ct,T)=>{"use strict";T.d(Ct,{O:()=>ot});var F=T(76805);const Z="A",I="B",z="C",D="D",V="E",ht=function(S,O){return S===void 0&&(S=0),O===void 0&&(O=!0),{[Z]:()=>S,[I]:()=>++S,[z]:()=>--S,[D]:()=>O,[V]:()=>O=!1}},ot=()=>{let S=ht(),O=Promise.resolve();return{getLength:()=>S.A(),getTailPromise:()=>O,reset:()=>{S.E(),S=ht(),O=Promise.resolve()},push:$=>{const{promise:q,resolve:ft}=(0,F.wT)();S.B();const K=S,it=()=>{K.C(),K.D()&&ft()},nt=O.then($);return nt.then(it,it),O=q,nt}}}},70043:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>Yot});var F={};T.r(F),T.d(F,{Arc:()=>dy,BezierCurve:()=>Ip,BoundingRect:()=>Xe,Circle:()=>yo,CompoundPath:()=>Dp,Ellipse:()=>uy,Group:()=>ze,Image:()=>Mn,IncrementalDisplayable:()=>hH,Line:()=>wn,LinearGradient:()=>Bd,OrientedBoundingRect:()=>Ep,Path:()=>rr,Point:()=>Ye,Polygon:()=>si,Polyline:()=>li,RadialGradient:()=>IM,Rect:()=>or,Ring:()=>Ap,Sector:()=>oi,Text:()=>ar,applyTransform:()=>sa,clipPointsByRect:()=>RM,clipRectByRect:()=>mH,createIcon:()=>zd,extendPath:()=>pH,extendShape:()=>DM,getShapeClass:()=>fy,getTransform:()=>yl,groupTransition:()=>Vd,initProps:()=>Fr,isElementRemoved:()=>Ru,lineLineIntersect:()=>OM,linePolygonIntersect:()=>Hd,makeImage:()=>kM,makePath:()=>$u,mergePath:()=>zi,registerShape:()=>oa,removeElement:()=>ts,removeElementWithFadeOut:()=>bd,resizePath:()=>EM,setTooltipConfig:()=>Qu,subPixelOptimize:()=>Op,subPixelOptimizeLine:()=>Ju,subPixelOptimizeRect:()=>vH,transformDirection:()=>Np,traverseElements:()=>as,updateProps:()=>lr});var Z={};T.r(Z),T.d(Z,{parse:()=>art});var I=T(38502),z=T(20089),D=T(53732),V=T.n(D),ht=T(70248),ot=T(51561),S=T(72214);const O="rgba(207, 207, 207, 0.3)",$="rgba(186, 186, 186, 0.5)",ft=r=>{let{gridSize:t}=r;const e="M "+t+" 0 L 0 0 0 "+t,n="M "+t*5+" 0 L 0 0 0 "+t*5;return(0,S.jsxs)("svg",{width:"100%",height:"100%",style:{position:"absolute",verticalAlign:"top",zIndex:2},xmlns:"http://www.w3.org/2000/svg",children:[(0,S.jsxs)("defs",{children:[(0,S.jsx)("pattern",{id:"smallGrid",width:t,height:t,patternUnits:"userSpaceOnUse",children:(0,S.jsx)("path",{d:e,fill:"none",stroke:O,strokeWidth:"1"})}),(0,S.jsxs)("pattern",{id:"grid",width:t*5,height:t*5,patternUnits:"userSpaceOnUse",children:[(0,S.jsx)("rect",{width:t*5,height:t*5,fill:"url(#smallGrid)"}),(0,S.jsx)("path",{d:n,fill:"none",stroke:$,strokeWidth:"1"})]})]}),(0,S.jsx)("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})};var K=T(67787),it=T(53940);const nt=K.Ay.div.withConfig({displayName:"RowOrColLayout__StyledLayout",componentId:"sc-98mjrl-0"})(["pointer-events:none;position:absolute;bottom:0;right:0;z-index:2;"]),at=r=>{let{widget:t}=r;const{w:e,layoutGrid:{isRowLayout:n,rowHeight:i,rowGutter:a,isColLayout:o,colCount:s,colGutter:l},zIndex:u}=t,c=i,d=Math.round((e-2*it.nt.h-(s-1)*l)/s),h={backgroundImage:"repeating-linear-gradient(\n to bottom,\n "+it.bG+", "+it.bG+" "+c+"px,\n transparent "+c+"px, transparent "+(c+a)+"px)",width:"100%",height:"calc(100% - "+it.nt.v+"px)",top:it.nt.v+"px",zIndex:u+2},f={backgroundImage:"repeating-linear-gradient(\n to right,\n "+it.bG+", "+it.bG+" "+d+"px,\n transparent "+d+"px, transparent "+(d+l)+"px)",height:"100%",width:"calc(100% - "+it.nt.h+"px)",left:it.nt.h+"px",zIndex:u+2};return(0,S.jsxs)(S.Fragment,{children:[n&&(0,S.jsx)(nt,{style:h}),o&&(0,S.jsx)(nt,{style:f})]})};var et=T(15186);const yt=r=>{let{size:t}=r;return(0,S.jsxs)("pattern",{x:"0",y:"0",width:""+t*2,height:""+t*2,patternUnits:"userSpaceOnUse",id:"transparent",viewBox:"0 -"+t*2+" "+t*2+" "+t*2,overflow:"visible",children:[(0,S.jsx)("polygon",{fill:"#FFFFFF",points:"0,-"+t*2+" "+t*2+",-"+t*2+" "+t*2+",0 0,0"}),(0,S.jsx)("polygon",{fill:"#F2F2F2",points:t+",-"+t+" 0,-"+t+" 0,-"+t*2+" "+t+",-"+t*2}),(0,S.jsx)("polygon",{fill:"#FFFFFF",points:t*2+",-"+t+" "+t+",-"+t+" "+t+",-"+t*2+" "+t*2+",-"+t*2}),(0,S.jsx)("polygon",{fill:"#F2F2F2",points:t+",0 "+t*2+",0 "+t*2+",-"+t+" "+t+",-"+t}),(0,S.jsx)("polygon",{fill:"#FFFFFF",points:"0,0 "+t+",0 "+t+",-"+t+" 0,-"+t})]})},ct=r=>{const{widget:{fill:t}}=r;return t?(0,S.jsxs)("svg",{width:"100%",height:"100%",style:{position:"absolute",verticalAlign:"top",zIndex:1},children:[(0,S.jsxs)("defs",{children:[(0,S.jsx)(yt,{size:5}),(0,S.jsxs)("mask",{id:"mask",x:"0",y:"0",children:[(0,S.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,S.jsx)("rect",{width:"100%",height:"100%",x:0,y:0,fill:"black"})]})]}),(0,S.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(31,41,46,.3)",mask:"url(#mask)"}),(0,S.jsxs)("g",{children:[(0,S.jsx)("rect",{width:"100%",height:"100%",display:"inline",fill:"url(#transparent)",style:{opacity:.95}}),(0,S.jsx)("rect",{width:"100%",height:"100%",fill:t.fillIsVisible?(0,et.t0)(t.solidColor):"transparent"})]})]}):null},G=K.Ay.div.withConfig({displayName:"styles__StyledChildrenWrap",componentId:"sc-eitibl-0"})(["position:absolute;width:100%;height:100%;background-color:transparent;&.isClipContent{overflow:hidden;}"]),B=K.Ay.div.withConfig({displayName:"styles__StyledLayout",componentId:"sc-eitibl-1"})(["pointer-events:none;position:absolute;bottom:0;right:0;z-index:2;"]),ut=r=>{let{widget:t,treeData:e,mode:n,children:i}=r;const{key:a,hotAttr:o}=t,{isClipContent:s,zIndex:l,asOverlay:u,layoutGrid:c,border:d}=o;let h;if(n==="design"){const{editingPanelRefPage:v,editingPanelCid:g}=e,m=(g||v)&&!(0,ht.OO)(a);h=(0,S.jsxs)(S.Fragment,{children:[m&&(0,S.jsx)(ct,{widget:o}),(c==null?void 0:c.isGridLayout)&&(0,S.jsx)(ft,{gridSize:c.gridSize}),((c==null?void 0:c.isRowLayout)||(c==null?void 0:c.isColLayout))&&(0,S.jsx)(at,{widget:o})]})}let f;if(u){var p;f=(0,ot.Nb)(o),((p=f)==null?void 0:p.borderRadius)!==void 0&&s&&n==="design"&&(f.maskImage="-webkit-radial-gradient(center center, circle cover, white, black)")}return(0,S.jsxs)(S.Fragment,{children:[h,u&&d.bdrIsVisible&&(0,S.jsx)("div",{style:{position:"absolute",width:"100%",height:"100%",...(0,ot.Nb)(o),...(0,ot.Um)(o),zIndex:l+2,pointerEvents:"none"}}),(0,S.jsx)(G,{className:V()({isClipContent:s}),style:{zIndex:n==="preview"?void 0:l+1,...f},children:i})]})};var H=T(62587),N=T(69815),Y=T(10549),gt=T(59025);const pt=K.Ay.div.withConfig({displayName:"styles__StyledRichText",componentId:"sc-1oyzpol-0"})(["white-space:pre-wrap;word-break:break-word;word-wrap:break-word;&.h-right{ul,ol{&.listRTL{li.listRTL{justify-content:flex-end;}}}}&.h-center{ul,ol{&.listRTL{li.listRTL{justify-content:center;}}}}&.h-left,&.h-justify{ul,ol{&.listRTL{li.listRTL{justify-content:flex-start;}}}}a{pointer-events:auto;cursor:inherit;color:",";}"],r=>r.style.color),Tt=K.Ay.div.withConfig({displayName:"styles__StyledTextView",componentId:"sc-1oyzpol-1"})(['&:after{content:"";position:absolute;width:100%;height:100%;top:0;left:0;background-color:',";}"],r=>r.background),mt=r=>{const{richTextV1:t}=r,{fontSize:e,textColor:n,lineHeight:i,paddingTuple:a,fontDirection:o,fontFamily:s,underline:l,strikethrough:u,italic:c,bold:d,verticalAlign:h,horizontalAlign:f,letterSpacing:p,isClipText:v}=t||{},g=(0,ot.Nb)(r),m=d?700:400;let y="";return l&&(y="underline"),u&&(y+=(y?" ":"")+"line-through"),y===""&&(y="none"),{width:"100%",height:"100%",fontFamily:s,fontWeight:m,fontSize:e+"px",fontStyle:c?"italic":"normal",letterSpacing:p+"px",justifyContent:h,alignItems:lt(f),textAlign:f,boxShadow:"none",color:n,lineHeight:i+"px",...(0,gt.N3)(a),textDecoration:y,display:"flex",flexDirection:"column",writingMode:o,overflow:v||v===void 0?"hidden":"visible",...g}},lt=r=>{let t="flex-start";return r==="center"&&(t="center"),r==="right"&&(t="flex-end"),t},A=(0,I.memo)(r=>{let{widget:t}=r;const{hotAttr:e,key:n}=t,{textV1:i,richTextV1:a}=e;if((0,Y.SD)(i.blocks))return null;const s=(0,N.d0)(e,n),l=!s||s==="<p>&nbsp;</p>"||s==='<p style="opacity: 0;">&nbsp;</p>';return(0,S.jsx)(pt,{id:"text-dom-"+n,className:"rich-text h-"+a.horizontalAlign,style:mt(e),dangerouslySetInnerHTML:l?void 0:{__html:s}})}),kt=r=>({background:getWidgetFillCss(r)}),_t=A;var Mt=T(68033),At=T(48892);const jt=(0,K.Ay)(At.W).withConfig({displayName:"styles__StyledPanelScroll",componentId:"sc-13mo03b-0"})(["position:absolute;width:100%;height:100%;top:0;left:0;z-index:",";.handler{left:10%;width:80%;}.y-handler{top:10%;height:80%;}.x-track{.handler{.thumb{height:6px;background:#d2d2d8;}}}.y-track{.handler{.thumb{width:6px;background:#d2d2d8;}}}.track{z-index:",";}"],r=>r.zIndex,r=>r.zIndex+1),Nt=K.Ay.div.withConfig({displayName:"styles__StyledBasketRunner",componentId:"sc-13mo03b-1"})(["position:absolute;width:100%;height:100%;z-index:5;.state{position:absolute;width:100%;height:100%;z-index:5;background-size:100% auto;&.active{z-index:6;}}&.overFlowHide{overflow:hidden;}&.overFlowAuto{overflow:auto;overflow:overlay;}&.overFlowX{overflow-x:auto;overflow-x:overlay;overflow-y:hidden;}&.overFlowY{overflow-y:auto;overflow-y:overlay;overflow-x:hidden;}"]);var Vt=T(35639);const Ot=r=>{var t;let{widget:e,treeData:n}=r;const{key:i,hotAttr:a,sub:o}=e,{w:s,h:l,scroll:u}=a,{sdkStore:c,basketCanvasMap:d}=n,{activeCanvas:h=o[0],transition:f}=(d==null?void 0:d.get(i))||{};if(!h||!c.isActiveKey(i)||!c.isActiveKey(h))return null;const p=c.getHotItem(h),{hotAttr:{w:v,h:g}}=p,m=s>=v&&l>=g?"none":"auto",y=!!((t=c.getHotItem(c.locUpColdCanvasKey(i)||""))!=null&&t.hotAttr.asOverlay);return(0,S.jsx)(Nt,{className:u?"widget wBasket "+Mt.M5[u]+" panel":"overFlowHide panel",style:{...(0,ot.Ky)(a),pointerEvents:m},children:(0,S.jsx)(Vt.A,{pageKey:i,canvasKey:h,transition:f,onTransitionEnd:f==null?void 0:f.callback,isActive:!0,isShow:!0,inOverlay:y})})},Dt=K.Ay.div.withConfig({displayName:"styles__StyledInvalidStatePanel",componentId:"sc-1a90ytu-0"})(["width:100%;height:100%;padding:6px 8px;.box{display:flex;flex-direction:column;width:100%;height:100%;align-items:center;justify-content:space-evenly;background:#ededed;border-radius:2px;.tips{color:#e84030;}}"]),Ht=()=>(0,S.jsx)(Dt,{children:(0,S.jsxs)("div",{className:"box",children:[(0,S.jsx)("div",{className:"tips",children:I18N.InvalidStatePanel.re_select}),(0,S.jsx)(tt,{})]})}),tt=()=>(0,S.jsx)("svg",{width:"24",height:"30",viewBox:"0 0 24 30",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,S.jsx)("path",{d:"M7.09 30c-.297 0-.595-.04-.893-.16-.795-.317-1.242-1.033-1.044-1.749l2.683-9.942-6.458-1.83c-.596-.158-1.093-.556-1.292-1.073-.198-.517-.05-1.034.398-1.432L14.344.572c.596-.557 1.54-.716 2.335-.438.795.279 1.291.994 1.142 1.71l-2.086 10.34 6.657 1.113c.695.12 1.242.517 1.49 1.034.248.557.1 1.114-.397 1.551L8.58 29.443c-.347.358-.944.557-1.49.557z",fill:"#B7C0C6"}),(0,S.jsx)("path",{fill:"#EDEDED",fillRule:"nonzero",d:"M7.325 14.353l5.276 3.517 1.412 10.824 2.974-.388L15.4 16.13l-3.724-2.483 3.382-4.349-8.575-7.432-1.964 2.268 6.425 5.568z"})]})}),Pt=Ht,te=r=>{const{zIndex:t,scroll:e,showScrollBar:n}=r;if(!e||e===Mt.Ci.hide)return null;const i=(e===Mt.Ci.horizontal||e===Mt.Ci.auto)&&n===Mt.zJ.show,a=(e===Mt.Ci.vertical||e===Mt.Ci.auto)&&n===Mt.zJ.show;return(0,S.jsxs)(jt,{zIndex:t,children:[i&&(0,S.jsx)("div",{"data-axis":"x",className:"track x-track",children:(0,S.jsx)("div",{className:"handler","data-axis":"x",children:(0,S.jsx)("div",{className:"thumb"})})}),a&&(0,S.jsx)("div",{"data-axis":"y",className:"track y-track",children:(0,S.jsx)("div",{className:"handler y-handler","data-axis":"y",children:(0,S.jsx)("div",{className:"thumb"})})})]})},ae=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n,children:i}=r;const{editingPanelCid:a,sdkStore:o}=e,{key:s,hotAttr:l,sub:u}=t,{zIndex:c,scroll:d,showScrollBar:h}=l;if(n==="design"){var f;if(a===s)return null;const p=(u[0]&&((f=o.getHotItem(u[0]))==null?void 0:f.hotAttr.zIndex)||c)+1;return(0,S.jsxs)(S.Fragment,{children:[l._isInValid?(0,S.jsx)(Pt,{}):(0,S.jsx)(te,{zIndex:p,scroll:d,showScrollBar:h}),i]})}return n==="preview"?(0,S.jsx)(Ot,{treeData:e,widget:t}):i});var Xt=T(95106);const Se=r=>{let{widget:t,treeData:e,mode:n,children:i}=r,a;if(n==="preview"){const{sdkStore:o,isEditingCombo:s,editingPanelRefPage:l}=e,{key:u}=t;if((0,Xt.Xr)(o,u,s,l).filter(d=>d.interactive).length>0){const{w:d,h}=o.getCCSBound2308(u);a={position:"absolute",left:0,top:0,width:d,height:h,pointerEvents:"auto"}}}return(0,S.jsxs)(S.Fragment,{children:[a&&(0,S.jsx)("div",{style:a}),i]})};var we=T(18381),Ee=T(95657),ke=T(7018);const Le=K.Ay.div.withConfig({displayName:"styles__StyledCode",componentId:"sc-iqto3t-0"})(["display:flex;justify-content:inherit;align-items:inherit;position:absolute;height:100%;width:100%;pointer-events:none;&.is-allow{pointer-events:auto;}&.code-wrapper{position:relative;width:100%;height:100%;iframe{width:100%;height:100%;border:none;position:absolute;top:0;left:0;transition:opacity 0.3s ease;&.visible{opacity:1;z-index:1;}&.hidden{opacity:0;z-index:0;}}}"]),Oe=K.Ay.div.withConfig({displayName:"styles__StyledCodePlaceHolder",componentId:"sc-iqto3t-1"})(["width:100%;height:100%;background:",";display:flex;flex-direction:column;justify-content:center;align-items:center;.name{font-size:14px;font-weight:500px;margin-top:14px;}"],r=>r.theme.color_bg_card);var Ke=T(69594);const Qe="\n <style>\n html, body {\n margin: 0;\n width: 100%;\n height: 100%;\n user-select: none;\n }\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n \n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n ::-webkit-scrollbar-thumb {\n background-color: rgb(219, 219, 219);\n border-radius: 4px;\n }\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n </style>\n <script>\n // \u8BBE\u7F6Eiframe\u7684\u5BBD\u9AD8\u4E3A100%\n document.addEventListener('DOMContentLoaded', () => {\n document.documentElement.style.setProperty('--uiWidth', `100%`);\n document.documentElement.style.setProperty('--uiHeight', `100%`);\n }, true);\n <\/script>\n",hr="\n <style>\n * {\n cursor: "+Ke.M.default+" !important;\n }\n </style>\n",Fe="\n <script>\n // \u7981\u7528 event \u4E8B\u4EF6\n const events = ['contextmenu', 'mousedown', 'mouseup', 'mousemove', 'mouseenter', 'mouseleave', 'keydown', 'keyup', 'keypress' ]\n events.forEach(event => {\n document.addEventListener(event, (e) => {\n e.preventDefault();\n e.stopImmediatePropagation();\n }, true);\n })\n // \u7981\u7528\u5C4F\u5E55\u7F29\u653E\n document.addEventListener('wheel', function (e) {\n if (e.ctrlKey) {\n e.preventDefault();\n e.stopPropagation()\n }\n }, { passive: false })\n <\/script>\n",yr="\n<script>\nconst selectedElementSet = new Set()\nconst elementOutlineMap = new WeakMap()\nconst HOVER_OUTLINE = '2px solid rgba(128, 188, 255, 1)'\nconst SELECT_OUTLINE = '2px solid rgba(22, 132, 252, 1)'\n\nfunction stopPropagation(e) {\n e.stopPropagation()\n e.preventDefault()\n e.stopImmediatePropagation()\n}\n\nfunction setOutline(targetElement, outline) {\n const originOutline = targetElement.style.outline\n const originOutlineOffset = targetElement.style.outlineOffset\n \n // \u53EA\u6709\u7B2C\u4E00\u6B21\u8BBE\u7F6Eoutline\u65F6\u624D\u8BB0\u5F55\u539F\u59CBoutline\n if(!elementOutlineMap.has(targetElement)) elementOutlineMap.set(targetElement, { originOutline, originOutlineOffset })\n\n targetElement.style.outline = outline\n targetElement.style.outlineOffset = '-2px'\n}\n\nfunction restoringOutline(targetElement) {\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(targetElement) || { originOutline: '', originOutlineOffset: ''}\n targetElement.style.outline = originOutline\n targetElement.style.outlineOffset = originOutlineOffset\n}\n\nfunction mouseOverHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, HOVER_OUTLINE)\n}\n\nfunction mouseOutHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n restoringOutline(targetElement)\n}\n\nfunction clickHandler(event) {\n stopPropagation(event)\n commonSelectElement(event)\n const element = event.target\n\n const cloneElement = element.cloneNode(true)\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(element) || { originOutline: '', originOutlineOffset: ''}\n cloneElement.style.outline = originOutline\n cloneElement.style.outlineOffset = originOutlineOffset\n const selectedElement = cloneElement.outerHTML\n const selectedElementBounds = element.getBoundingClientRect()\n\n window.parent.postMessage({type: 'updateSelectedElement', selectedElement, selectedElementBounds}, '*')\n}\n\nfunction clearSelectedElement() {\n selectedElementSet.forEach(element => { restoringOutline(element) })\n selectedElementSet.clear()\n}\n\nfunction commonSelectElement(event) {\n clearSelectedElement()\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n}\n\nfunction shiftKeySelectElement(event) {\n const targetElement = event.target\n if(!selectedElementSet.has(targetElement)) {\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n } else {\n restoringOutline(targetElement)\n selectedElementSet.delete(targetElement)\n }\n}\n\n\ndocument.addEventListener('mouseover', mouseOverHandler, true);\ndocument.addEventListener('mouseout', mouseOutHandler, true);\ndocument.addEventListener('click', clickHandler, true);\n\nwindow.addEventListener('message', (e) => {\n if(e.data.type === 'clearSelectedElement') {\n clearSelectedElement();\n }\n});\n<\/script>\n",fr="\n<script>\n window.addEventListener('message', function (e) {\n if (e.data.type === 'reloadWidget') {\n window.location.reload()\n }\n })\n<\/script>\n",Ar=(r,t,e)=>{const n=(0,I.useRef)(null),i=(0,I.useRef)(null),a=(0,I.useRef)(!1),o=(0,I.useRef)(),s=(0,I.useRef)(!1),l=(0,I.useRef)(),u=(0,I.useRef)(new AbortController),c=(0,I.useCallback)(h=>{u.current.signal.aborted&&(u.current=new AbortController),o.current&&(clearTimeout(o.current),o.current=void 0),s.current=!1;const f=a.current?n.current:i.current,p=a.current?i.current:n.current;!p||!f||(p.srcdoc=h,p.onload=()=>{if(s.current){s.current=!1;return}if(u.current.signal.aborted){o.current=window.setTimeout(()=>{s.current=!0,p.srcdoc=""},1e4);return}f.classList.remove("visible"),f.classList.add("hidden"),p.classList.remove("hidden"),p.classList.add("visible"),a.current=!a.current,o.current=window.setTimeout(()=>{s.current=!0,f.srcdoc=""},1e4)})},[]),d=(0,I.useCallback)(h=>{u.current.abort();const f=a.current?n.current:i.current;f&&(e(),f.onload=null,f.srcdoc=h)},[e]);return(0,I.useEffect)(()=>{if(l.current!==r){if(l.current=r,!t){c(r);return}d(r)}},[r,t,c,d]),{iframeMain:n,iframeShadow:i}},Tr=(0,I.memo)(r=>{const{injection:t,treeData:e,mode:n,isEditing:i,selectedElementList:a,isWithoutStreaming:o}=r,s=n==="design",l=(0,I.useRef)(a==null?void 0:a.length),u=a==null?void 0:a.length,c=(0,I.useRef)(i);c.current=i;const d=(0,I.useMemo)(()=>(0,ke.f)(t).replace("<head>",Qe+hr+Fe+"<head>").replace("</body>",yr+"</body>"),[t]),{iframeMain:h,iframeShadow:f}=Ar(d,o,()=>{e.actions.clearWithoutStreamingKeyList(r.widgetKey)});return(0,I.useEffect)(()=>{d&&(h.current.srcdoc=d)},[]),(0,I.useEffect)(()=>{var p,v;(p=h.current)==null||(p=p.contentWindow)==null||p.postMessage({type:"clearSelectedElement"},"*"),(v=f.current)==null||(v=v.contentWindow)==null||v.postMessage({type:"clearSelectedElement"},"*"),e.actions.clearSelectedElementInfo(r.widgetKey);const g=m=>{var y,x;if(m.source!==((y=h.current)==null?void 0:y.contentWindow)&&m.source!==((x=f.current)==null?void 0:x.contentWindow)||m.data.type!=="updateSelectedElement")return;const{selectedElement:w,selectedElementBounds:_}=m.data;e.actions.selectedElementInfo(r.widgetKey,[w],_)};return window.addEventListener("message",g),()=>{window.removeEventListener("message",g),c.current&&e.actions.quitEditAI(r.widgetKey)}},[]),(0,I.useEffect)(()=>{const p=v=>{v.target.closest(".draft-inline-toolbar")||v.target.closest("#ai-component-input-container")||v.target.closest(".context-menu-mask")||e.actions.quitEditAI(r.widgetKey)};return document.addEventListener("mousedown",p,{capture:!0}),()=>{document.removeEventListener("mousedown",p,{capture:!0})}},[i]),(0,I.useEffect)(()=>{if(s&&l&&!u){var p,v;(p=h.current)==null||(p=p.contentWindow)==null||p.postMessage({type:"clearSelectedElement"},"*"),(v=f.current)==null||(v=v.contentWindow)==null||v.postMessage({type:"clearSelectedElement"},"*")}},[s,u]),(0,S.jsx)(Le,{className:V()("code-wrapper",{"is-allow":i}),children:d&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("iframe",{className:"visible",ref:h,sandbox:"allow-scripts",loading:"lazy"}),(0,S.jsx)("iframe",{className:"hidden",ref:f,sandbox:"allow-scripts",loading:"lazy"})]})})}),yn=(0,we.Ng)((r,t)=>{let{widgetKey:e,mode:n}=t;const i=(0,Ee.Bq)(r),a=n==="design"&&i===e,o=(0,Ee.qr)(r)[e]||{},s=a?o.selectedElementList||[]:null,u=(0,Ee.rU)(r).includes(e);return{isEditing:a,selectedElementList:s,isWithoutStreaming:u}})(Tr),Vn=r=>{const{widget:{key:t,hotAttr:e}}=r,n=(0,ke.f)(e.injection).replace("<head>",Qe+"<head>").replace("</body>",fr+"</body>");return(0,S.jsx)(Le,{className:V()("code-wrapper",{"is-allow":!0}),children:n&&(0,S.jsx)("iframe",{sandbox:"allow-scripts",srcDoc:n},t+"-"+n)})};var ge=T(95549);class _n extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"getPlaceHolderStatus",(t,e)=>{const n=Math.min(t,e);return n<96?{imgWidth:Math.floor(n/2),isShowName:!1}:{imgWidth:Math.floor(n/3),isShowName:!0}})}render(){const{widget:{hotAttr:t}}=this.props,{w:e,h:n,name:i}=t,{imgWidth:a,isShowName:o}=this.getPlaceHolderStatus(e,n);return(0,S.jsxs)(Oe,{children:[(0,S.jsx)("img",{style:{width:a},src:"/mb-proto2/images/widget/code_widget_placeholder_2508.png",alt:"code-widget-placeholder"}),o&&(0,S.jsx)("div",{className:"name",children:i})]})}}const vi=_n,Po=r=>{const{mode:t,treeData:e,widget:{key:n,hotAttr:i}}=r;return t==="preview"?(0,S.jsx)(Vn,{...r}):t==="snapshot"?(0,S.jsx)(vi,{...r}):(0,S.jsx)(yn,{mode:t,widgetKey:n,injection:i.injection,treeData:e})};var Jr=T(39182);const Zt=K.Ay.div.withConfig({displayName:"styles__StyledMTooltip",componentId:"sc-babkug-0"})([".text{width:100%;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;p{padding:0;margin-bottom:5px;white-space:pre-wrap;&:last-child{margin-bottom:0;}}}.rich-text{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;}.arrow,.arrow2{position:absolute;background-image:none;&.top,&.bottom{border-left:10px solid transparent;border-right:10px solid transparent;}&.top{border-bottom-color:#aaa;border-bottom-style:solid;}&.bottom{bottom:0;border-top-color:#aaa;border-top-style:solid;}&.left,&.right{border-top:10px solid transparent;border-bottom:10px solid transparent;}&.left{border-right-color:#aaa;border-right-style:solid;}&.right{right:0;border-left-color:#aaa;border-left-style:solid;}}"]),Vr=r=>{const{widget:t}=r,{hotAttr:e}=t,{tooltip:n,border:i,fill:a}=e,{arrowSize:o,offset:s,placement:l}=n,c={top:"borderBottomColor",bottom:"borderTopColor",left:"borderRightColor",right:"borderLeftColor"}[l],d=l==="top"||l==="bottom",h={borderWidth:o,left:d?s:"",top:d?"":s},f={...h,[l]:1,[c]:i.bdrIsVisible?(0,et.t0)(i.bdrColor):"transparent"},p={...h,[l]:0+i.bdrWidth+1,[c]:(0,et.t0)(a.solidColor)},v=Hn(e);return(0,S.jsxs)(Zt,{style:v,children:[(0,S.jsx)("div",{className:"arrow1 arrow "+l,style:f}),(0,S.jsx)("div",{className:"arrow2 arrow "+l,style:p}),(0,S.jsx)(Jr.Ay,{widget:t})]})};function Hn(r){const{w:t,h:e,tooltip:n,border:i,zIndex:a}=r,{placement:o,arrowSize:s}=n;let l=e,u=t;o==="top"||o==="bottom"?l-=s:u-=s;const c=["top","right","bottom","left"].map(d=>d===o?s+"px":0);return{zIndex:a,width:u,height:l,display:"flex",margin:c.join(" "),background:(0,H.n7)(r),opacity:r.opacity,overflow:"hidden",...(0,ot.Um)(r,!0),...(0,ot.Ky)(r),...(0,ot.Nb)(r),...(0,ot.Zv)(r)}}const Qn=Vr;var xr=T(17307),on=T(92272);const gi=K.Ay.div.withConfig({displayName:"style__StyledImageWrapper",componentId:"sc-19t79un-0"})([".image-container{position:relative;overflow:hidden;width:100%;height:100%;transition:inherit;transition-property:filter;border-radius:inherit;&.is-default-image{display:flex;align-items:center;justify-content:center;i{font-size:26px;}.icon{color:#8d9ea7;}.default-image{width:28px;height:22px;}}}"]),Xa=r=>{let{widget:t}=r;const{hotAttr:e}=t,{w:n,h:i,fill:a,border:{bdrIsVisible:o,bdrColor:s,bdrStyle:l,bdrWidth:u},image:c}=e,{imageRef:d,imageFilter:h,imageRectWidth:f,imageRectHeight:p,imageRectCenterX:v,imageRectCenterY:g,imageRectR:m}=c,y=(0,I.useRef)(null),[x,w]=(0,I.useState)(!1);(0,I.useEffect)(()=>{setTimeout(()=>{y.current&&/\.(gif|GIF)$/.test(y.current.src)&&(y.current.src=(0,on.Kf)(t.hotAttr.image.imageRef))})},[]),(0,I.useEffect)(()=>{w(!1)},[d]);const _=j=>{w(!0)},b={width:"100%",height:"100%",...o?{borderColor:(0,et.t0)(s),borderWidth:u+"px",borderStyle:l}:{borderStyle:"none"},borderRadius:"inherit",overflow:"hidden",...(0,ot.Ky)(e)},C={...o?{top:-u+"px",left:-u+"px",width:n+u,height:i+u}:{}},M={width:f,height:p,display:"block",transform:"translate("+(v-f*.5)+"px,"+(g-p*.5)+"px) rotate("+m+"deg) "+(0,ot.xc)(e),filter:h.trim()},k=(0,on.Kf)(d),P=k&&!x,R={backgroundColor:P||a!=null&&a.fillIsVisible?"inherit":"rgb(229, 229, 229)"};return(0,S.jsx)(gi,{className:"image-wrapper",style:b,children:(0,S.jsx)("div",{className:V()("image-container",{"is-default-image":!P}),style:{...C,...R},children:P?(0,S.jsx)("img",{ref:y,className:"img",src:k,draggable:!1,style:M,onError:_,alt:"image"}):(0,S.jsx)(xr.C,{name:"right_panel/image/place_holder",className:"default-image"})})})},tu=r=>{let{widget:t,mode:e,children:n}=r;return e!=="snapshot"?null:n};function _s(r){const{isThumbVisible:t,thumbColor:e,isCheckedThumbVisible:n,checkedThumbColor:i,isTrackVisible:a,trackColor:o,isCheckedTrackVisible:s,checkedTrackColor:l}=r,u=n?(0,et.t0)(i):"#00000000",c=s?(0,et.t0)(l):"#00000000",d=t?(0,et.t0)(e):"#00000000",h=a?(0,et.t0)(o):"#00000000";return{thumbCheckedBg:u,thumbUncheckedBg:d,trackCheckedBg:c,trackUncheckedBg:h}}const eu=K.Ay.label.withConfig({displayName:"style__StyledIOSSwitch",componentId:"sc-12s9n6t-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;overflow:hidden;border-radius:",";pointer-events:"," !important;cursor:"," !important;input{position:absolute;width:0;height:0;left:0;top:0;opacity:0;cursor:inherit;}.CheckState-Switches{display:flex;align-items:center;width:100%;height:100%;color:transparent;justify-content:flex-start;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;}input:checked + .CheckState-Switches{color:#fff;svg{opacity:1;}}input:not(:checked) + .CheckState-Switches{svg{opacity:0;}}&.iOS-Switches{z-index:5;.CheckState-Switches{text-align:center;color:#333;background-color:",";&::after{content:'';position:relative;display:block;margin:0;padding:",";width:",";height:",";border:",";box-sizing:border-box;background-color:",";border-radius:50%;box-shadow:",";transition:",";transform:",";}}input:checked + .CheckState-Switches{background-color:",";border-color:transparent;&::after{transform:",";background-color:",";box-shadow:",";border:",";}}}&.Switches-Disabled{cursor:pointer !important;&::after{content:'';position:absolute;display:block;width:100%;height:100%;opacity:",";top:0;z-index:1;background:#fff;}&.iOS-Switches .CheckState-Switches{&::before{content:'';position:absolute;display:block;margin:0;opacity:",";z-index:1;padding:",";width:",";height:",";box-sizing:border-box;background-color:#fff;border-radius:50%;transform:",";}}input:checked + .CheckState-Switches{&::before{transform:",";opacity:",";}}}"],r=>r.trackBorderRadius,r=>r.editable?"auto":"none",r=>r.editable?"pointer":"inherit",r=>r.trackUncheckedBg,r=>r.thumbIOSPadding,r=>r.thumbIOSWidth,r=>r.thumbIOSWidth,r=>r.thumbUncheckedBg!=="#00000000"?"0.5px solid rgba(0, 0, 0, 0.04)":"none",r=>r.thumbUncheckedBg,r=>r.thumbUncheckedBg!=="#00000000"?"0 3px 1px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.15)":"none",r=>r.editable?"transform 0.25s ease-in-out":"none",r=>r.thumbIOSUncheckedPosition,r=>r.trackCheckedBg,r=>r.thumbIOSCheckedPosition,r=>r.thumbCheckedBg,r=>r.thumbCheckedBg!=="#00000000"?"0 3px 1px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.15)":"none",r=>r.thumbCheckedBg!=="#00000000"?"0.5px solid rgba(0, 0, 0, 0.04)":"none",r=>r.isChecked?r.trackCheckedBg==="#00000000"?"0":"0.6":r.trackUncheckedBg==="#00000000"?"0":"0.6",r=>r.thumbUncheckedBg==="#00000000"||r.trackUncheckedBg!=="#00000000"?"0":"0.6",r=>r.thumbIOSPadding,r=>r.thumbIOSWidth,r=>r.thumbIOSWidth,r=>r.thumbIOSUncheckedPosition,r=>r.thumbIOSCheckedPosition,r=>r.thumbCheckedBg==="#00000000"||r.trackCheckedBg!=="#00000000"?"0":"0.6"),Pc=r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{switch:{checked:o,isDisabled:s},w:l,h:u,refVars:c}=a,{editingEditableWidgetCid:d,actions:h,sdkStore:f}=e,[p,v]=(0,I.useState)(o),g=n==="preview"||d===i,{thumbCheckedBg:m,thumbUncheckedBg:y,trackCheckedBg:x,trackUncheckedBg:w}=_s(a.switch),_=u*.8,b=_+"px",C="0 0 0 "+(_-2)+"px",M="translate("+(l-_-u*.1)+"px, 0)",k="translate("+u*.1+"px, 0)",P=u*.5+"px";(0,I.useEffect)(()=>{v(o)},[o]);const R=j=>{var X;if(j.stopPropagation(),s)return j.preventDefault();const st=!p,dt=c==null||(X=c.switch)==null?void 0:X.checked;if(n==="design"){const wt={switch:{...a.switch,checked:st}};if(dt){var xt;wt.refVars={...a.refVars,switch:{...(xt=a.refVars)==null?void 0:xt.switch,checked:void 0}}}h.updateWidget([{key:i,hotAttr:wt}])}if(n==="preview")if(dt){var Rt;(Rt=MB.runnerController)==null||Rt.updateVariable(dt,st)}else f.overwriteItem({key:i,hotAttr:{switch:{...a.switch,checked:st}}});v(st)};return(0,S.jsxs)(eu,{className:V()("iOS-Switches","canClickableHighWidget",s&&"Switches-Disabled"),editable:g,isChecked:p,thumbCheckedBg:m,thumbUncheckedBg:y,thumbIOSCheckedPosition:M,thumbIOSUncheckedPosition:k,thumbIOSPadding:C,trackCheckedBg:x,trackUncheckedBg:w,thumbIOSWidth:b,trackBorderRadius:P,children:[(0,S.jsx)("input",{onClick:R,type:"checkbox",checked:p},i+p),(0,S.jsx)("span",{className:"CheckState-Switches"})]})},Eo=K.Ay.div.withConfig({displayName:"styles__StyledIPhoneXStatusBar",componentId:"sc-5ip0ya-0"})(["display:flex;justify-content:center;height:100%;padding:0 14px;.StatusBarTime{justify-content:center;margin-right:auto;margin-left:7px;width:54px;font-size:14px;font-weight:600;}.StatusBarSignal{margin-left:auto;}.StatusBarSignal,.StatusBarWifi{margin-right:0.4em;}"]),Lo=r=>{let{widget:t}=r;const{textV0:{textColor:e},fill:n}=t.hotAttr,i=n.fillIsVisible?(0,et.t0)(n.solidColor):"";return(0,S.jsxs)(Eo,{className:"iPhoneX-StatusBar",style:{color:(0,et.t0)(e),background:i,alignItems:"center"},children:[(0,S.jsx)("div",{className:"StatusBarTime",children:"12:00"}),(0,S.jsx)("div",{className:"StatusBarSignal",children:(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"12",fill:"currentColor",children:(0,S.jsx)("path",{d:"M1.25 6.5h1a1 1 0 0 1 1 1V10a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V7.5a1 1 0 0 1 1-1zM5.75 5h1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z",fillRule:"evenodd",fill:"currentColor"})})}),(0,S.jsx)("div",{className:"StatusBarWifi",children:(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",fill:"currentColor",children:(0,S.jsx)("path",{d:"M8.007 2.787a8.64 8.64 0 0 1 5.953 2.379c.12.118.314.116.433-.004l1.156-1.166a.322.322 0 0 0-.003-.456 10.897 10.897 0 0 0-15.08 0 .322.322 0 0 0-.003.456L1.62 5.162c.119.12.312.122.433.004a8.641 8.641 0 0 1 5.954-2.379zm0 3.796c1.217 0 2.391.452 3.294 1.27a.31.31 0 0 0 .433-.006l1.155-1.167a.322.322 0 0 0-.005-.459 7.16 7.16 0 0 0-9.752 0 .322.322 0 0 0-.005.46l1.155 1.166a.31.31 0 0 0 .433.006 4.907 4.907 0 0 1 3.292-1.27zm2.219 2.784a.314.314 0 0 0-.01-.457 3.422 3.422 0 0 0-4.42 0 .314.314 0 0 0-.009.457l1.998 2.016a.312.312 0 0 0 .443 0l1.998-2.016z",fill:"currentColor",fillRule:"nonzero"})})}),(0,S.jsx)("div",{className:"StatusBarBattery",children:(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"12",fill:"currentColor",children:[(0,S.jsx)("path",{d:"M2.667 1.333C1.747 1.333 1 2.08 1 3v6c0 .92.746 1.667 1.667 1.667h16.666C20.253 10.667 21 9.92 21 9V3c0-.92-.746-1.667-1.667-1.667H2.667zm0-1h16.666A2.667 2.667 0 0 1 22 3v6a2.667 2.667 0 0 1-2.667 2.667H2.667A2.667 2.667 0 0 1 0 9V3A2.667 2.667 0 0 1 2.667.333z",opacity:".35"}),(0,S.jsx)("path",{d:"M23 4v4a2.17 2.17 0 0 0 0-4",fill:"currentColor",opacity:".4"}),(0,S.jsx)("rect",{fill:"currentColor",x:"2",y:"2.333",width:"18",height:"7.333",rx:"1.333"})]})})]})},Cs=K.Ay.div.withConfig({displayName:"styles__StyledIOSStatusBar",componentId:"sc-1wslh8k-0"})(["position:relative;display:flex;justify-content:center;align-items:center;padding:0 0.5em;width:100%;height:100%;.StatusBarSignal{margin-right:0.25em;}.StatusBarWifi{margin-left:0.25em;margin-right:auto;}.StatusBarBattery{margin-left:auto;}.StatusBarTime{position:absolute;left:50%;transform:translateX(-50%);}"]),Za=I.memo(r=>{let{widget:t}=r;const{textV0:{textColor:e},fill:n}=t.hotAttr,i=n.fillIsVisible?(0,et.t0)(n.solidColor):"";return(0,S.jsxs)(Cs,{className:"iOS-StatusBar",style:{color:(0,et.t0)(e),background:i,alignItems:"center"},children:[(0,S.jsx)("div",{className:"StatusBarSignal",children:(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"12",children:(0,S.jsx)("path",{d:"M1.25 6.5h1a1 1 0 0 1 1 1V10a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V7.5a1 1 0 0 1 1-1zM5.75 5h1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z",fillRule:"evenodd",fill:"currentColor"})})}),(0,S.jsx)("div",{className:"StatusBarWifi",children:(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",children:(0,S.jsx)("path",{d:"M8.007 2.787a8.64 8.64 0 0 1 5.953 2.379c.12.118.314.116.433-.004l1.156-1.166a.322.322 0 0 0-.003-.456 10.897 10.897 0 0 0-15.08 0 .322.322 0 0 0-.003.456L1.62 5.162c.119.12.312.122.433.004a8.641 8.641 0 0 1 5.954-2.379zm0 3.796c1.217 0 2.391.452 3.294 1.27a.31.31 0 0 0 .433-.006l1.155-1.167a.322.322 0 0 0-.005-.459 7.16 7.16 0 0 0-9.752 0 .322.322 0 0 0-.005.46l1.155 1.166a.31.31 0 0 0 .433.006 4.907 4.907 0 0 1 3.292-1.27zm2.219 2.784a.314.314 0 0 0-.01-.457 3.422 3.422 0 0 0-4.42 0 .314.314 0 0 0-.009.457l1.998 2.016a.312.312 0 0 0 .443 0l1.998-2.016z",fillRule:"nonzero",fill:"currentColor"})})}),(0,S.jsx)("div",{className:"StatusBarTime",children:"12:00"}),(0,S.jsx)("div",{className:"StatusBarBattery",children:(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"12",children:[(0,S.jsx)("path",{d:"M2.667 1.333C1.747 1.333 1 2.08 1 3v6c0 .92.746 1.667 1.667 1.667h16.666C20.253 10.667 21 9.92 21 9V3c0-.92-.746-1.667-1.667-1.667H2.667zm0-1h16.666A2.667 2.667 0 0 1 22 3v6a2.667 2.667 0 0 1-2.667 2.667H2.667A2.667 2.667 0 0 1 0 9V3A2.667 2.667 0 0 1 2.667.333z",opacity:".35",fill:"currentColor"}),(0,S.jsx)("path",{d:"M23 4v4a2.17 2.17 0 0 0 0-4",opacity:".4",fill:"currentColor"}),(0,S.jsx)("rect",{fill:"currentColor",x:"2",y:"2.333",width:"18",height:"7.333",rx:"1.333"})]})})]})}),Lc=K.Ay.div.withConfig({displayName:"styles__StyledAndroidStatusBar",componentId:"sc-spz4be-0"})(["display:flex;justify-content:flex-end;padding:0 10px;height:100%;font-size:16px;.StatusBarBattery{font-size:18px;margin:0 6px;}.StatusBarTime{font-size:13px;}"]),Ro=r=>{let{widget:t}=r;const{textV0:{textColor:e},fill:n}=t.hotAttr,i=n.fillIsVisible?(0,et.t0)(n.solidColor):"";return(0,S.jsxs)(Lc,{className:"Android-StatusBar",style:{color:(0,et.t0)(e),background:i,alignItems:"center"},children:[(0,S.jsx)("div",{className:"StatusBarWifi",children:(0,S.jsx)("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M0.0507812 3.54971C4.39709 0.111033 10.5736 0.111033 14.9199 3.54971L7.48533 12.9707L0.0507812 3.54971Z",fill:"currentColor"})})}),(0,S.jsx)("div",{className:"StatusBarSignal",children:(0,S.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M13 0V13H0L13 0Z",fill:"currentColor"})})}),(0,S.jsx)("div",{className:"StatusBarBattery",children:(0,S.jsxs)("svg",{width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,S.jsx)("path",{d:"M0 3C0 2.44772 0.447715 2 1 2H7C7.55228 2 8 2.44772 8 3V14C8 14.5523 7.55228 15 7 15H1C0.447715 15 0 14.5523 0 14V3Z",fill:"currentColor"}),(0,S.jsx)("path",{d:"M2.5 0H5.5V3H2.5V0Z",fill:"currentColor"})]})}),(0,S.jsx)("div",{className:"StatusBarTime",children:"12:00"})]})};var Gr=T(39e3),ya=T(45709);const Ts=K.Ay.input.withConfig({displayName:"styles__StyledInput",componentId:"sc-wfjbxf-0"})(["padding:0 8px;display:block;position:absolute;left:0;width:100%;height:100%;font-size:inherit;font-weight:inherit;font-style:inherit;color:inherit;border:none;border-radius:inherit;outline:none;background:inherit;text-align:inherit;line-height:inherit;resize:none;&::-webkit-input-placeholder{color:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;line-height:inherit;word-break:break-all;}&[type=date],&[type=time],&[type=datetime-local]{-webkit-appearance:none;}"]),Ms=(0,I.memo)(r=>{let{mode:t,widget:e,needShowPlaceholder:n,value:i,onInput:a,inputStyle:o,onFocus:s,onBlur:l,onKeydown:u}=r;const c=(0,I.useRef)(null),d=e.hotAttr,{textInput:h,textV0:f}=d,v={padding:"0 8px",color:(0,et.t0)(n?f.textColor:h.prefillTextColorV0),position:"relative",fontFamily:f.fontFamily,fontWeight:(0,ya._y)(f.fontWeight,f.bold),textAlign:f.horizontalAlign,letterSpacing:f.letterSpacing,...o},g=(0,I.useMemo)(()=>{const x=i&&i.toString().replace(/\n/g," "),w=n?{placeholder:x,value:""}:{value:x};return s&&(w.onFocus=()=>s(c)),l&&(w.onBlur=()=>l(c)),u&&(w.onKeyDown=_=>u(c,_.key)),w},[i,n,s,l,u]);let m=h.inputTypes;h.inputTypes==="password"&&n&&(m="text");const y=(0,I.useCallback)(x=>{c.current&&(t==="preview"?document.activeElement===c.current&&!c.current.contains(x.target)&&(["date","time","datetime-local"].includes(m)&&c.current.focus(),c.current.blur()):c.current.blur())},[t,m]);return(0,S.jsxs)("form",{style:{width:"100%",height:"100%"},onSubmit:x=>x.preventDefault(),children:[(0,S.jsx)(Ts,{ref:c,style:v,type:m,...g,autoComplete:"off",onInput:a}),(0,S.jsx)(Gr.A,{target:document,onMouseDown:(0,Gr.t)(y,{capture:!0})})]})});var Oo=T(60312);class As extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"onInput",t=>{const{widget:e,isEditing:n,treeData:i}=this.props;if(!n)return;const{textInput:a}=e.hotAttr;i.actions.updateWidget([{key:e.key,hotAttr:{textInput:{...a,prefillTextV0:t.target.value}}}])})}render(){const{widget:t,isEditing:e}=this.props,n=t.hotAttr,{textV0:i,textInput:a}=n,{needShowPlaceholder:o,value:s}=(0,Oo.vr)(n),l=(0,et.t0)(o?i.textColor:a.prefillTextColorV0),u=s&&s.toString().replace(/\n/g," "),c={padding:"0 8px",textAlign:i.horizontalAlign,letterSpacing:i.letterSpacing,position:"relative",color:l,pointerEvents:e?"auto":"none",fontFamily:i.fontFamily,fontWeight:(0,ya._y)(i.fontWeight,i.bold)};let d=a.inputTypes;return a.inputTypes==="password"&&o&&(d="text"),(0,S.jsx)("form",{style:{width:"100%",height:"100%"},onSubmit:h=>h.preventDefault(),children:(0,S.jsx)(Ts,{style:c,type:d,value:u,autoComplete:"off",onInput:this.onInput})})}}function Cn(r){var t;let{widget:e,treeData:{sdkStore:n}}=r;const{key:i,hotAttr:a}=e,{textV0:{text:o},textInput:s,refVars:l}=a,[u,c]=(0,I.useState)(s.prefillTextV0),d=String(u)==="",h=l==null||(t=l.textInput)==null?void 0:t.prefillTextV0,f=String(d?o:u),p=(0,I.useRef)("blur"),v=x=>{const w=x.target.value;if(c(w),h){var _;(_=MB.runnerController)==null||_.updateVariable(h,w)}else n.overwriteItem({key:i,hotAttr:{textInput:{...s,prefillTextV0:w}}})},g=x=>{if(p.current="focus",x.current){var w;(w=MB.runnerController)==null||w.eventHandler.inputEventHandle(x.current,"focus")}},m=x=>{if(p.current="blur",x.current){var w;(w=MB.runnerController)==null||w.eventHandler.inputEventHandle(x.current,"blur")}},y=(x,w)=>{if(x.current&&w==="Enter"&&p.current==="focus"){var _;(_=MB.runnerController)==null||_.eventHandler.inputEventHandle(x.current,"focusEnter")}};return(0,I.useEffect)(()=>{c(s.prefillTextV0)},[s.prefillTextV0]),(0,S.jsx)(Ms,{mode:"preview",widget:e,needShowPlaceholder:d,value:f,onInput:v,onFocus:g,onBlur:m,onKeydown:y})}const Is=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i}=t,a=t.hotAttr,{needShowPlaceholder:o,value:s}=(0,I.useMemo)(()=>(0,Oo.vr)(a),[a]);if(n==="design"){const{editingEditableWidgetCid:l}=e;return(0,S.jsx)(As,{widget:t,treeData:e,isEditing:l===i})}if(n==="preview")return(0,S.jsx)(Cn,{widget:t,treeData:e});if(n==="snapshot")return(0,S.jsx)(Ms,{widget:t,needShowPlaceholder:o,value:s})}),No=K.Ay.div.withConfig({displayName:"styles__StyledMTextarea",componentId:"sc-dsksle-0"})(["width:100%;height:100%;position:absolute;overflow:hidden;textarea{left:0;width:100%;height:100%;display:block;position:absolute;font-size:inherit;font-weight:inherit;font-style:inherit;color:inherit;border:none;border-radius:inherit;outline:none;background:inherit;text-align:inherit;line-height:inherit;resize:none;&::-webkit-input-placeholder{color:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;line-height:inherit;word-break:break-all;}}"]),nu=r=>{const{widget:{hotAttr:t},onlyView:e}=r,{textV0:n,textInput:i}=t,{needShowPlaceholder:a,value:o}=(0,Oo.vr)(t),s=(0,et.t0)(a?n.textColor:i.prefillTextColorV0),l=Math.round(n.padding);let u=Math.round(l-(n.lineHeight-n.fontSize)/2);u<0&&(u=0);const c=o,d={padding:u+"px "+l+"px",...(0,ot.Zv)(t),textAlign:n.horizontalAlign,color:s};let h={placeholder:c};return e&&(h={value:o}),(0,S.jsx)(No,{children:(0,S.jsx)("textarea",{style:d,...h})})},xa=r=>{var t;const{widget:{key:e,hotAttr:n},treeData:{sdkStore:i}}=r,{textV0:a,textInput:o,refVars:s}=n,[l,u]=(0,I.useState)(o.prefillTextV0),c=(0,I.useRef)(null),{text:d,padding:h,lineHeight:f,fontSize:p}=a,v=String(l)==="",g=Math.max(Math.round(h-(f-p)/2),0),m=(0,et.t0)(v?a.textColor:o.prefillTextColorV0),y=s==null||(t=s.textInput)==null?void 0:t.prefillTextV0,x=(0,I.useRef)("blur"),w=P=>{const R=P.target.value;if(u(R),y){var j;(j=MB.runnerController)==null||j.updateVariable(y,R)}else i.overwriteItem({key:e,hotAttr:{textInput:{...o,prefillTextV0:R}}})};(0,I.useEffect)(()=>{u(o.prefillTextV0)},[o.prefillTextV0]);const _={...(0,ot.Zv)(n),padding:g+"px "+Math.round(h)+"px",color:m},b=P=>{c.current&&!c.current.contains(P.target)&&c.current.blur()},C=()=>{if(x.current="focus",c.current){var P;(P=MB.runnerController)==null||P.eventHandler.inputEventHandle(c.current,"focus")}},M=()=>{if(x.current="blur",c.current){var P;(P=MB.runnerController)==null||P.eventHandler.inputEventHandle(c.current,"blur")}},k=P=>{if(P.stopPropagation(),c.current&&P.key==="Enter"&&x.current==="focus"){var R;(R=MB.runnerController)==null||R.eventHandler.inputEventHandle(c.current,"focusEnter")}};return(0,S.jsxs)(No,{children:[(0,S.jsx)("textarea",{ref:c,style:_,placeholder:d,value:String(l),onInput:w,onFocus:C,onBlur:M,onKeyDown:k}),(0,S.jsx)(Gr.A,{target:document,onMouseDown:(0,Gr.t)(b,{capture:!0})})]})},iu=r=>{let{widget:t,mode:e,treeData:n}=r;const{onlyView:i}=n;return e==="design"||e==="snapshot"?(0,S.jsx)(nu,{widget:t,onlyView:i}):(0,S.jsx)(xa,{widget:t,treeData:n})},Ja=K.Ay.input.withConfig({displayName:"styles__StyledMFileInput",componentId:"sc-j04a87-0"})(["position:absolute;line-height:1ex;width:100%;outline:none;top:50%;transform:translateY(-50%);color:#5b6b73;"]),Ds=()=>(0,S.jsx)(Ja,{type:"file"}),Vo=r=>'\n width: 100%;\n height: 100%;\n display: block;\n font-size: inherit;\n color: inherit;\n border: none;\n border-radius: inherit;\n outline: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background-color: inherit;\n background-image: url("data:image/svg+xml,%20%20%3Csvg%0A%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20%20%20class%3D%22svg-icon%20icon%20arrow-icon%22%0A%20%20%20%20viewBox%3D%220%200%208%208%22%0A%20%20%3E%0A%20%20%20%20%3Cpath%0A%20%20%20%20%20%20fill-rule%3D%22evenodd%22%0A%20%20%20%20%20%20clip-rule%3D%22evenodd%22%0A%20%20%20%20%20%20d%3D%22M7.18198%202.64658C7.37724%202.84184%207.37724%203.15842%207.18198%203.35369L4.35355%206.18211C4.15829%206.37738%203.84171%206.37738%203.64645%206.18211L0.81802%203.35369C0.622757%203.15842%200.622757%202.84184%200.81802%202.64658C1.01328%202.45132%201.32986%202.45132%201.52513%202.64658L4%205.12145L6.47487%202.64658C6.67014%202.45132%206.98672%202.45132%207.18198%202.64658Z%22%0A%20%20%20%20%20%20fill%3D%22%23888%22%0A%20%20%20%20%3E%3C%2Fpath%3E%0A%20%20%3C%2Fsvg%3E");\n background-repeat: no-repeat, repeat;\n background-position: right 4px top 50%, 0 0;\n background-size: '+r.backgroundSize+"px auto, 100%;\n line-height: initial;\n",ks=K.Ay.select.withConfig({displayName:"styles__StyledMSelect",componentId:"sc-5w9hjh-0"})(["",""],Vo),zo=K.Ay.div.withConfig({displayName:"styles__StyledOnlyViewMSelect",componentId:"sc-5w9hjh-1"})([""," display:flex;align-items:center;"],Vo),au=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const i=t.hotAttr,{textV0:a}=i,o=0,s=n==="preview"?{defaultValue:MB.runnerController.resetHandler.getWStatus(t.key,"selectedIndex")||o}:{value:o},l=a.text.split(/\n/),u=(0,ot.Zv)(i),c={...u,justifyContent:"flex-start",...(0,gt.JG)(a.paddingTuple)},d=h=>{n==="preview"&&MB.runnerController.resetHandler.updateWStatusMap(t.key,{selectedIndex:Number(h.target.value)})};return e.onlyView?(0,S.jsx)(zo,{backgroundSize:u.fontSize,style:c,className:"text",children:l[0]}):(0,S.jsx)(ks,{backgroundSize:u.fontSize,style:c,className:"text",onChange:d,...s,children:l.map((h,f)=>(0,S.jsx)("option",{value:f,children:h},h+f))})}),Ps=K.Ay.label.withConfig({displayName:"style__StyledAndroidSwitch",componentId:"sc-1kc9q68-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;pointer-events:"," !important;cursor:"," !important;input{position:absolute;width:0;height:0;left:0;top:0;opacity:0;cursor:inherit;}.CheckState-Switches{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;}input:checked + .CheckState-Switches{color:#fff;svg{opacity:1;}}input:not(:checked) + .CheckState-Switches{svg{opacity:0;}}&.Android-Switches{display:flex;align-items:center;.CheckState-Switches{position:relative;height:70%;justify-content:flex-start;background-color:",";border-radius:",";transition:background 0.25s ease-in-out;&::after{content:'';position:relative;display:block;width:",";padding-bottom:",";background-color:",";border-radius:50%;box-shadow:",";transition:",";transform:translate(0,0);}}input:checked + .CheckState-Switches{background-color:",";&::after{background-color:",";box-shadow:",";transform:",";}}}&.Switches-Disabled{cursor:pointer !important;.CheckState-Switches{&::before{content:'';position:absolute;display:block;width:",";padding-bottom:",";background:#fff;opacity:",";border-radius:50%;transition:transform 0.25s ease-in-out;transform:translate(0,0);z-index:1;}}input:checked + .CheckState-Switches{&::before{background:#fff;opacity:",";transform:",";}}}.disable-layer{width:100%;height:100%;top:0;position:absolute;background:#fff;opacity:",";border-radius:",";}"],r=>r.editable?"auto":"none",r=>r.editable?"pointer":"inherit",r=>r.trackUncheckedBg,r=>r.trackBorderRadius,r=>r.thumbAndroidWidth,r=>r.thumbAndroidWidth,r=>r.thumbUncheckedBg,r=>r.thumbUncheckedBg==="#00000000"||r.switchDisabled?"none":"0 0 1px 0 rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.24)",r=>r.editable?"transform 0.25s ease-in-out":"none",r=>r.trackCheckedBg,r=>r.thumbCheckedBg,r=>r.thumbCheckedBg==="#00000000"||r.switchDisabled?"none":"0 0 1px 0 rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.24)",r=>r.thumbAndroidCheckedPosition,r=>r.thumbAndroidWidth,r=>r.thumbAndroidWidth,r=>r.thumbUncheckedBg==="#00000000"?"0":"0.6",r=>r.thumbCheckedBg==="#00000000"?"0":"0.6",r=>r.thumbAndroidCheckedPosition,r=>r.isChecked?r.trackCheckedBg==="#00000000"?"0":"0.6":r.trackUncheckedBg==="#00000000"?"0":"0.6",r=>r.trackBorderRadius),Q=r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{editingEditableWidgetCid:o,actions:s,sdkStore:l}=e,{switch:{checked:u,isDisabled:c},w:d,h,refVars:f}=a,p=n==="preview"||o===i,[v,g]=(0,I.useState)(u),{thumbCheckedBg:m,thumbUncheckedBg:y,trackCheckedBg:x,trackUncheckedBg:w}=_s(a.switch),_=h*.7*1.42,b=_+"px";let C="translate("+(d-_)+"px, 0)";const M=h*.5+"px";_>=d&&(C="translate(0, 0)"),(0,I.useEffect)(()=>{g(u)},[u]);const k=P=>{var R;if(P.stopPropagation(),c)return P.preventDefault();const j=!v,X=f==null||(R=f.switch)==null?void 0:R.checked;if(n==="design"){const xt={switch:{...a.switch,checked:j}};if(X){var st;xt.refVars={...a.refVars,switch:{...(st=a.refVars)==null?void 0:st.switch,checked:void 0}}}s.updateWidget([{key:i,hotAttr:xt}])}if(n==="preview")if(X){var dt;(dt=MB.runnerController)==null||dt.updateVariable(X,j)}else l.overwriteItem({key:i,hotAttr:{switch:{...a.switch,checked:j}}});g(j)};return(0,S.jsxs)(Ps,{className:V()("Android-Switches","canClickableHighWidget",c&&"Switches-Disabled"),editable:p,isChecked:v,switchDisabled:c,thumbCheckedBg:m,thumbUncheckedBg:y,trackCheckedBg:x,trackUncheckedBg:w,thumbAndroidWidth:b,thumbAndroidCheckedPosition:C,trackBorderRadius:M,children:[(0,S.jsx)("input",{onClick:k,type:"checkbox",checked:v},i+v),(0,S.jsx)("span",{className:"CheckState-Switches",children:c&&(0,S.jsx)("div",{className:"disable-layer"})})]})};var bt=T(10393),Et=T(20315),ne=T(73658),qt=T(11619),he=T(89002);const Ae=r=>{const{key:t,hotAttr:{"!stickyPointVersion":e,refWCKey:n,sticky:i}}=r;if(!((0,ht.OO)(t)&&!(0,he.K)(t))&&e!==2)if(!n||!sdkStore.getHotItem(n))sdkStore.updateHotAttrMerge(t,{"!stickyPointVersion":2});else{const a=sdkStore.getHotBound(n),{point:o}=i,s=[(o[0]||0)+a.w/2,(o[1]||0)+a.h/2];sdkStore.updateHotAttrMerge(t,{"!stickyPointVersion":2,sticky:{point:s}})}},$e=(0,I.memo)(r=>{let{widget:t,treeData:e,fakeBindingInfo:n,fakePointToDir:i}=r;const{key:a,hotAttr:o}=t,{refWCKey:s,sticky:l,sticky:{point:u},pointToDir:c,"!stickyPointVersion":d}=o,{sdkStore:h,onlyView:f}=e;(0,I.useEffect)(()=>{!f&&d!==2&&Ae(t)},[]);const p=g=>{g.stopPropagation();const m=MB.getScale(),{clientX:y,clientY:x}=g,w=u==null?void 0:u.length;let _=w?u:null,b;if(s){b=h.getHotBound(s);const[R,j]=(0,qt.OH)({stickyPointVersion:d,getV1Offset:()=>[b.x,b.y],getV2Offset:()=>[b.x-b.w/2,b.y-b.h/2]}),[X=0,st=0]=u||[];_=[R+X,j+st]}if(!w){const[R,j,X]=h.getHotAABB(a);let st=R-35,dt=j+8;c==="r"?(st=X+35,dt=j+8):(st=R-35,dt=j+8),_=[st,dt]}let C=[..._||[]],M=!1;h.combineMergeMark("sticky-drag-point");const k=R=>{const j=R.clientX-y,X=R.clientY-x;if(M=M||Math.abs(j)>1||Math.abs(X)>1,!M)return;MB.action("artboard:update:state",{isDragAnnotationBindingPoint:!0,draggingStickyKey:t.key});const st=j/m*100,dt=X/m*100,[xt=0,Rt=0]=_||[];C=[Math.round(xt+st),Math.round(Rt+dt)],MB.action("entry:widget:change",{flatChgList:[{key:a,hotAttr:{sticky:{...l,point:C}}}]});const wt=(0,ne.Cu)({x:C[0],y:C[1]},a,R);MB.action("ST:update",{fakeBindingInfo:wt})},P=R=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",P),M&&(MB.action("artboard:update:state",{isDragAnnotationBindingPoint:!1,draggingStickyKey:""}),MB.action("entry:sticky:bind",{widget:{key:a,hotAttr:{...o,"!stickyPointVersion":2,sticky:{...l,point:C}}},event:R}),MB.action("ST:clear:fake-related"),h.combineMerge("sticky-drag-point"))};document.addEventListener("mousemove",k),document.addEventListener("mouseup",P)},v=()=>h.updateHotAttrMerge(a,{refWCKey:"",sticky:{point:[]}});return(0,S.jsx)(bt.l,{type:"design",onlyView:f,widget:t,sdk:h,onMouseDown:f?null:p,onDoubleClick:f?null:v,fakeBindingInfo:n,fakePointToDir:i})}),er=(r,t)=>{let{widget:e}=t;const n=(0,Et.LS)(r);if((n==null?void 0:n.stickyKey)!==e.key)return{};const i=(0,Et.sL)(r);return{fakeBindingInfo:n,fakePointToDir:i}},ir=(0,we.Ng)(er)($e),mi=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;if(n==="preview")return null;const i=e.sdkStore;return n==="design"?(0,S.jsx)(ir,{widget:t,treeData:e}):(0,S.jsx)(bt.l,{type:"snapshot",widget:t,sdk:i,aabb:i.getHotAABB(t.key),...e})}),yi=K.Ay.div.withConfig({displayName:"styles__StyledMapView",componentId:"sc-xfax0-0"})(['overflow:hidden;width:100%;height:100%;background:#eeece4;position:relative;img{width:100%;height:100%;object-fit:cover;pointer-events:none;}&::after{content:"\\00a0";position:absolute;bottom:-1px;left:0;height:1px;width:100%;border-top:1px solid #bbb;display:block;}']),Qa=r=>{let{widget:t}=r;const{map:e}=t.hotAttr,n=(0,on.Kf)(e.mapImageSrc);return(0,S.jsx)(yi,{className:"image",children:(0,S.jsx)("img",{draggable:!1,src:n,alt:"map_view"})})},$i=K.Ay.label.withConfig({displayName:"styles__StyledAndroidCheck",componentId:"sc-19iri5o-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;cursor:inherit;input{position:absolute;left:0;top:0;opacity:0;cursor:pointer;}.CheckState{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;background-color:#fff;border:2px solid #ccc;border-radius:11%;}svg{display:block;transition:all 0.1s ease-in-out;width:78%;height:56%;fill:currentColor;stroke:none;}input:checked + .CheckState{color:#fff;background-color:#5677fc;border-color:transparent;svg{opacity:1;}}input:not(:checked) + .CheckState{svg{opacity:0;}}&.is-preview{pointer-events:auto;cursor:pointer;}"]),qa=r=>{let{widget:t,mode:e}=r;const n=e==="preview",{key:i,hotAttr:a}=t,{isChecked:o}=a;let s;return n?s={defaultChecked:o}:s={checked:o},(0,S.jsxs)($i,{className:V()("Android-Check",{"is-preview":n}),children:[(0,S.jsx)("input",{type:"checkbox",...s},i+o),(0,S.jsx)("span",{className:"CheckState",children:(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10",viewBox:"0 0 14 10",children:(0,S.jsx)("path",{d:"M5 10L0 5.192l1.4-1.346L5 7.308 12.6 0 14 1.346"})})})]})},su=K.Ay.label.withConfig({displayName:"styles__StyledAndroidRadio",componentId:"sc-167fc54-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;cursor:inherit;input{position:absolute;left:0;top:0;opacity:0;cursor:pointer;}.CheckState{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;padding:15%;background-color:transparent;background-clip:content-box;border:2px solid #ccc;border-radius:50%;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;}input:checked + .CheckState{color:#fff;background-color:#5677fc;border-color:#5677fc;svg{opacity:1;}}input:not(:checked) + .CheckState{svg{opacity:0;}}&.is-preview{pointer-events:auto;cursor:pointer;}"]),lu=r=>{const{widget:t,mode:e}=r,n=e==="preview",i=t.hotAttr.isChecked,[a,o]=(0,I.useState)(i);(0,I.useEffect)(()=>{o(i)},[i]);const s=()=>{o(!a)};return(0,S.jsxs)(su,{className:V()("Android-Radio",{"is-preview":n}),children:[(0,S.jsx)("input",{type:"radio",checked:a,onClick:s}),(0,S.jsx)("span",{className:"CheckState"})]})};var Ag=T(44628);const Jh=K.Ay.div.withConfig({displayName:"styles__StyledWebpage",componentId:"sc-1jeau3s-0"})(["display:flex;flex-direction:column;width:100%;height:100%;-webkit-overflow-scrolling:touch;pointer-events:auto;&::-webkit-scrollbar{width:0;height:0;}.webpage-position{width:100%;height:100%;}.webpage-header{display:flex;background-color:#ededed;padding:0 12px;align-items:center;min-height:40px;.dot,.dot2{height:22px;width:22px;border-radius:50%;background-color:#dbdbdb;}.dot2{margin:0 8px 0 8px;}.oval{min-width:0;flex:1;border-radius:11px;height:22px;line-height:22px;background:#dbdbdb;.text{font-size:12px;padding-left:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7d8694;}}}.content{height:calc(100% - 40px);padding:12px;background-color:#f7f7f7;margin-top:-1px;.webpage-url{background-color:#ebebeb;height:100%;display:flex;align-items:center;justify-content:center;.desc{font-size:16px;color:#8d9ea7;}}}span{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;line-height:30px !important;margin:10px;text-align:center;text-shadow:0 0 10px rgba(0,0,0,0.31);}.notice{position:absolute;top:60px;text-align:left;color:red;left:0;width:100%;line-height:22px;}.iframe{width:100%;height:100%;border:none;}"]);var cn=T(56202);const Qh=r=>{let{widget:t}=r;const e=t.webpage.url;return(0,S.jsx)(Jh,{children:(0,S.jsxs)("div",{className:"webpage-position",children:[(0,S.jsxs)("div",{className:"webpage-header",children:[(0,S.jsx)("div",{className:"dot"}),(0,S.jsx)("div",{className:"dot2"}),(0,S.jsx)("div",{className:"oval",children:(0,S.jsx)("p",{className:"text",children:e||I18N.Common.https_only})})]}),(0,S.jsx)("div",{className:"content",children:(0,S.jsx)("div",{className:"webpage-url",children:(0,S.jsx)("p",{className:"desc",children:"Web Page"})})})]})})};class Ig extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"setElemRef",t=>this.$elem=t),(0,ge.A)(this,"updateIframeSrc",t=>{try{this.$elem.contentWindow.location.replace(t)}catch(e){console.error(e)}})}componentDidMount(){const{src:t}=this.props;this.updateIframeSrc(t)}componentDidUpdate(t){const{src:e}=this.props;e!==t.src&&this.updateIframeSrc(e)}render(){const t={position:"absolute",top:"-9999em",visibility:"hidden"},e=()=>{this.$elem.style.position="relative",this.$elem.style.top="0",this.$elem.style.visibility="visible"};return(0,S.jsx)(Jh,{children:!(0,cn.vq)()&&(0,S.jsx)("iframe",{style:t,onLoad:e,ref:this.setElemRef,className:"iframe"})})}}const Nc=r=>{var t;let{widget:e,mode:n}=r;const i=e.hotAttr;if(n==="design"||n==="snapshot")return(0,S.jsx)(Qh,{widget:i});const a=((t=i.webpage.url)==null?void 0:t.replace(/&amp;/g,"&"))||"";return Ag.Bs.test(a)?(0,S.jsx)(Ig,{src:a}):(0,S.jsx)(Qh,{widget:i})};var uu=T(93093),zr=T(13235),eo=T(41818),ti=T(54801),xi=T(18488),Mi=T(95956);const cu=K.Ay.svg.withConfig({displayName:"styles__StyledSVGIconPathComponent",componentId:"sc-i3aj97-0"})(["vertical-align:top;&.fill{g{[fill]{fill:",";stroke:none;}[stroke]{stroke:",";fill:none;}[fill='none']{fill:none;}[fill='none'][stroke]{stroke:",";}[stroke='none']{stroke:none;}[stroke='none'][fill]{fill:",";}}&:not([fill]){fill:",";}&:not([stroke]){fill:",";}}"],r=>r.gradientId?"url(#"+r.gradientId+")":r.solidColor,r=>r.gradientId?"url(#"+r.gradientId+")":r.solidColor,r=>r.gradientId?"url(#"+r.gradientId+")":r.solidColor,r=>r.gradientId?"url(#"+r.gradientId+")":r.solidColor,r=>r.gradientId?"url(#"+r.gradientId+")":r.solidColor,r=>r.gradientId?"url(#"+r.gradientId+")":r.solidColor),ro=/^(fa5|md|mb|ci)-/;function Dg(r){const{shadow:{shadowIsVisible:t,offsetX:e,offsetY:n,blurRadius:i,shadowColor:a}}=r,o="drop-shadow("+e+"px "+n+"px "+i+"px "+toRGBACSS(a)+")";return{filter:t?o:"none",backgroundColor:"transparent",...getBorderStyle(r),...getBorderRadius(r),display:"flex",alignItems:"center",justifyContent:"center"}}const du=r=>{const{widget:t,noNeed100:e}=r,{key:n,hotAttr:i}=t,{fill:a,w:o,h:s,iconData:l}=i,u=(0,I.useRef)(l),{viewBox:c,svgAttr:d,iconColor:h,iconName:f,iconSize:p,isMultiColorIcon:v,path:g}=l,m=(f||"").replace(ro,""),y=f.split("-")[0],x=y+"-"+m,w="svg-"+y+" svg-"+x,_=p,b=typeof h=="number"?(0,zr._o)(h):h,C={position:"relative",display:"block",width:e?"":"100%",height:"100%",minWidth:_,minHeight:_,transform:""+(0,ot.xc)(i)},M=d&&d.fill?{fill:d.fill}:d&&d.stroke?{stroke:d.stroke}:{},k=(0,H.$8)(a,{w:o,h:s}),P=c?c.split(" ").map(Rt=>Number(Rt)):[0,0,o,s];c||(0,uu.Cp)(new Error("DEBUG Widget icon viewBox is undefined"),{level:"debug",fingerprint:["debug-widget-icon-viewBox-is-undefined"],extra:{key:n,iconData:l}});const R=(0,xi.rM)(k,{minX:P[0],minY:P[1],width:P[2],height:P[3]}),j=(0,xi.Q)(k),X=""+n+k.type,st=k.type===ti.LA.Solid;(0,I.useEffect)(()=>{u.current!==l&&(u.current.iconName!==f||u.current.path!==g)&&xt((0,Mi.RY)(t)),u.current=l},[l]);const[dt,xt]=(0,I.useState)((0,Mi.RY)(t));return(0,S.jsx)("span",{className:"icon svg-icon-wrap "+w+"-wrap",style:C,children:(0,S.jsxs)(cu,{xmlns:"http://www.w3.org/2000/svg",className:V()("svg-icon-path-icon",{fill:b!=="unset"&&!v}),viewBox:c,width:o,height:s,solidColor:st&&eo.Q.toRGBAStr(k.color),gradientId:!st&&X,...M,children:[(0,S.jsx)("defs",{children:k.type===ti.LA.LinearGradient?(0,S.jsx)("linearGradient",{id:X,x1:0,x2:"100%",y1:0,y2:0,gradientTransform:R,gradientUnits:"userSpaceOnUse",children:j.sort((Rt,wt)=>Rt.point-wt.point).map((Rt,wt)=>(0,S.jsx)("stop",{stopColor:Rt.hex,stopOpacity:Rt.alpha,offset:Rt.point},wt))}):k.type===ti.LA.RadialGradient?(0,S.jsx)("radialGradient",{id:X,cx:0,cy:0,r:"100%",gradientTransform:R,gradientUnits:"userSpaceOnUse",children:j.map((Rt,wt)=>(0,S.jsx)("stop",{stopColor:Rt.hex,stopOpacity:Rt.alpha,offset:Rt.point},wt))}):null}),(0,S.jsx)("g",{dangerouslySetInnerHTML:{__html:(dt==null?void 0:dt.innerHTML)||""}})]})})},tf=K.Ay.div.withConfig({displayName:"styles__StyledTabItemWrapper",componentId:"sc-3hc2y-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;.text{white-space:nowrap;margin-top:2px;line-height:1;}"]),ef=r=>{const{widget:t}=r,{hotAttr:e}=t,n=(0,et.t0)(e.textV0.textColor);return(0,S.jsxs)(tf,{className:"wrapper",children:[(0,S.jsx)(du,{noNeed100:!0,widget:t}),(0,S.jsx)("span",{className:"text",style:{color:n},children:e.textV0.text})]})},rf=/^(fa|md|mb|ci|fa5|antOutline|antFill)-/,hu=r=>{let{widget:t}=r;const{w:e,icon:n}=t.hotAttr,i=rf.test(n),a=(n||"").replace(rf,""),o=i?n.split("-")[0]:"fa";return(0,S.jsx)("span",{className:"icon "+o+" "+(o==="mb"?"icon":o)+"-"+a,style:{fontSize:e+"px"},children:o==="md"?a:null})};var fu=T(55135),Es=T(16454);const Bc=(r,t,e,n,i,a)=>{let o;const s=e?!0:i;if(r.hostname==="youtu.be")o="https://www.youtube.com/embed/"+r.pathname.replace("/","")+"?autoplay="+(e?1:0)+"&loop="+(n?1:0)+"&controls="+(a?0:1)+"&mute="+(s?1:0);else if(r.hostname==="www.youtube.com")o="https://www.youtube.com/embed/"+r.searchParams.get("v")+"?autoplay="+(e?1:0)+"&loop="+(n?1:0)+"&controls="+(a?0:1)+"&mute="+(s?1:0);else if(r.hostname==="v.qq.com")o="https://v.qq.com/txp/iframe/player.html?vid="+r.pathname.split("/").slice(-1).join().replace(".html","")+"&autoplay="+e+(s?"&volume=0":"");else if(r.hostname==="vimeo.com")o="https://player.vimeo.com/video/"+r.href.split("/").slice(-1).join()+"?autoplay="+(e?1:0)+"&loop="+(n?1:0)+"&controls="+(a?0:1)+"&mute="+(s?1:0);else if(r.hostname==="www.bilibili.com")o="https://player.bilibili.com/player.html?bvid="+r.pathname.split("/")[2]+"&autoplay="+(e?1:0)+"&t="+(e?.1:0)+"}";else if(r.hostname==="v.youku.com"){var l;o="https://player.youku.com/embed/"+((l=r.pathname.split("/")[2])==null?void 0:l.replace("id_","").replace(".html",""))}return{iframeSrc:o,iframeHtml:"<iframe id="+t+" src="+o+' style="border: unset" type="text/html" width="100%" height="100%" allow="autoplay" allowfullscreen></iframe>'}},nf=K.Ay.div.withConfig({displayName:"styles__StyledVideo",componentId:"sc-eyjxi6-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;video{width:100%;height:100%;&:focus{outline:none;}}.iframe-container{width:100%;height:100%;}.status-indicator{margin:auto;text-align:center;color:#dbdbdb;}.controls-container{width:100%;display:flex;flex-direction:column;justify-content:flex-end;.progress-bar{background-color:#f2f4f5;margin:0 16px;border-radius:100px;width:auto;height:3px;opacity:0.2;}.controls{display:flex;align-items:center;margin-top:8px;margin-bottom:12px;svg{path{fill:#f7f7f7;}}.play-button{min-width:12px;min-height:15px;margin-left:18px;}.progress{color:#f7f7f7;margin-left:14px;margin-right:auto;font-size:14px;white-space:nowrap;}.mute-control{min-width:18px;min-height:14px;margin-left:14px;margin-right:22px;opacity:0.4;}.full-screen{min-width:17px;min-height:15px;margin-right:20px;opacity:0.4;}}}"]),Ho=(r,t)=>({background:"linear-gradient(to top, #151515 6.56%, rgba(21, 21, 21, 0) 50%), "+(t?"#595a5c":"#454647"),...(0,ot.Ky)(r),...(0,ot.Nb)(r)}),Pg=r=>{const{widget:{hotAttr:t}}=r,{is_muted:e,is_hide_controls:n,video:{videoSrc:i}}=t,a=(0,fu.dB)(i),o=Ho(t,a),s={opacity:a?1:.4};return(0,S.jsxs)(nf,{className:"video",style:o,children:[(0,S.jsx)("div",{className:"status-indicator",children:a?I18N.w.video_will_play_on_preview:I18N.w.insert_video_on_the_right_panel}),(0,S.jsx)("div",{className:"controls-container",children:!n&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"progress-bar"}),(0,S.jsxs)("div",{className:"controls",children:[(0,S.jsx)(xr.C,{className:"play-button",name:"design/audio/play",style:s}),(0,S.jsx)("div",{className:"progress",style:s,children:"0:00 / 0:00"}),(0,S.jsx)(xr.C,{className:"mute-control",name:e?"design/video/mute":"design/audio/mute-control"}),(0,S.jsx)(xr.C,{className:"full-screen",name:"design/video/full-screen"})]})]})})]},i)},Vc=r=>{const{widget:{key:t,hotAttr:e},runnerCacheTag:n,activeCanvasKey:i,overlayStack:a}=r,{w:o,h:s,video:{isAutoplay:l,isLoop:u,isMuted:c,isHideControls:d,videoSrc:h},isVisible:f}=e,p=(0,I.useRef)(null),v=(0,fu.dB)(h),g={...Ho(e,v),pointerEvents:f?"auto":"none"},m=sdkStore.locUpColdCanvasKey(t),y=sdkStore.locUpCanvasKey(t),x=[m,y],w=x.includes(i)||(a==null?void 0:a.some(C=>x.includes(C.targetOverlayKey))),_=v?Bc(new URL(h),t,l&&w,u,c,d).iframeHtml:"",b=f&&l&&w;return(0,I.useEffect)(()=>{var C;(C=p.current)==null||C.load()},[n]),(0,I.useEffect)(()=>{const C=p.current;if(C&&f&&w){const{videoPaused:k,videoMuted:P,videoVolume:R,videoCurrentTime:j,videoPlaybackRate:X}=MB.runnerController.resetHandler.getWStatus(t);k!==void 0&&(k?C.pause():C.play().catch(()=>{})),P!==void 0&&(C.muted=P),R!==void 0&&(C.volume=R),j!==void 0&&(C.currentTime=j),X!==void 0&&(C.playbackRate=X),MB.runnerController.resetHandler.updateWStatusMap(t,{videoRef:p})}},[w,f,t]),(0,S.jsx)(nf,{className:"video",style:g,children:v&&(0,fu.Je)(new URL(h))?(0,S.jsx)("div",{className:"iframe-container",dangerouslySetInnerHTML:{__html:_}}):(0,S.jsxs)("video",{id:t,width:o,height:s,playsInline:!0,autoPlay:b,loop:f&&u,controls:!d,muted:b?!0:c,disablePictureInPicture:!0,controlsList:"nodownload",ref:p,children:[(0,S.jsx)("source",{src:h}),"Video element is not supported in this browser."]})},h)},pu=(r,t)=>{const e=(0,Es.mf)(r),{widget:{key:n}}=t,{videoList:i,runnerCacheTag:a,activeCanvasKey:o,overlayStack:s}=e;return{video:i.find(u=>u.key===n),runnerCacheTag:a,activeCanvasKey:o,overlayStack:s}},Ls=(0,we.Ng)(pu)(Vc),af=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;return n==="preview"?(0,S.jsx)(Ls,{widget:t}):(0,S.jsx)(Pg,{widget:t})});var of=T(19952);const sf=K.Ay.div.withConfig({displayName:"styles__StyledQRCode",componentId:"sc-35h3gw-0"})(["overflow:hidden;.behavior{position:absolute;top:50%;left:50%;margin-left:-54px;margin-top:-16px;line-height:32px;height:32px;width:108px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0);border-radius:2px;pointer-events:none;&:lang(en){width:100px;margin-left:-50px;height:50px;margin-top:-25px;line-height:16px;}&:lang(ja){width:150px;margin-left:-75px;}span{color:#fff;opacity:0;}}&:hover{.behavior{background-color:rgba(31,41,46,0.9);span{opacity:1;}}}"]),Fn=r=>{let{widget:t,mode:e}=r;const{w:n,h:i,qrCode:a}=t.hotAttr,{isBackgroundVisible:o,backgroundColor:s,isForegroundVisible:l,foregroundColor:u,content:c}=a,h=(0,of.j)({height:i,width:n,text:c||I18N.link.link_qrcode_default,foreground:l?(0,et.t0)(u):"",background:o?(0,et.t0)(s):""}).toDataURL();return e==="design"?(0,S.jsx)(sf,{children:(0,S.jsx)("img",{width:n,height:i,src:h,alt:"QR code",style:{pointerEvents:"none"}})}):(0,S.jsx)("img",{width:n,height:i,src:h,alt:"QR code",style:{pointerEvents:"none"}})};var uf=T(63986),Yr=T.n(uf);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Hc=function(r,t){return Hc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Hc(r,t)};function Yt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hc(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Rs=function(){return Rs=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Rs.apply(this,arguments)};function Eg(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e}function Lg(r,t,e,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,n);else for(var s=r.length-1;s>=0;s--)(o=r[s])&&(a=(i<3?o(a):i>3?o(t,e,a):o(t,e))||a);return i>3&&a&&Object.defineProperty(t,e,a),a}function Fc(r,t){return function(e,n){t(e,n,r)}}function Wc(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}function Rg(r,t,e,n){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(r,t||[])).next())})}function Og(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,i=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(r,e)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var jc=Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]};function cf(r,t){for(var e in r)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&jc(t,r,e)}function Gc(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function L(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return a}function J(){for(var r=[],t=0;t<arguments.length;t++)r=r.concat(L(arguments[t]));return r}function St(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var n=Array(r),i=0,t=0;t<e;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function It(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return r.concat(a||t)}function ee(r){return this instanceof ee?(this.v=r,this):new ee(r)}function Jt(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(h){n[h]&&(i[h]=function(f){return new Promise(function(p,v){a.push([h,f,p,v])>1||s(h,f)})})}function s(h,f){try{l(n[h](f))}catch(p){d(a[0][3],p)}}function l(h){h.value instanceof ee?Promise.resolve(h.value.v).then(u,c):d(a[0][2],h)}function u(h){s("next",h)}function c(h){s("throw",h)}function d(h,f){h(f),a.shift(),a.length&&s(a[0][0],a[0][1])}}function pe(r){var t,e;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=r[i]?function(o){return(e=!e)?{value:ee(r[i](o)),done:i==="return"}:a?a(o):o}:a}}function Ce(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof Gc=="function"?Gc(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(a){e[a]=r[a]&&function(o){return new Promise(function(s,l){o=r[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function qe(r,t){return Object.defineProperty?Object.defineProperty(r,"raw",{value:t}):r.raw=t,r}var ur=Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t};function sr(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&jc(t,r,e);return ur(t,r),t}function Ur(r){return r&&r.__esModule?r:{default:r}}function Wn(r,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!n:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(r):n?n.value:t.get(r)}function Ai(r,t,e,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?r!==t||!i:!t.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,e):i?i.value=e:t.set(r,e),e}var Si=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),vu=function(){function r(){this.browser=new Si,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),wa=new vu;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(wa.wxa=!0,wa.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?wa.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(wa.node=!0,wa.svgSupported=!0):gu(navigator.userAgent,wa);function gu(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const pr=wa;var Ng=12,Xw="sans-serif",Fo=Ng+"px "+Xw,y5=20,x5=100,S5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function w5(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-y5)/x5;t[n]=i}return t}var b5=w5(S5),Ji={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=Ji.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Fo),r.measureText(e);e=e||"",n=n||Fo;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Ng,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=b5[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}};function Xot(r){for(var t in Ji)r[t]&&(Ji[t]=r[t])}var Zw=ba(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),$w=ba(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),mu=Object.prototype.toString,df=Array.prototype,_5=df.forEach,C5=df.filter,Bg=df.slice,T5=df.map,Jw=(function(){}).constructor,hf=Jw?Jw.prototype:null,Vg="__proto__",M5=2311;function Qw(){return M5++}function zg(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Ve(r){if(r==null||typeof r!="object")return r;var t=r,e=mu.call(r);if(e==="[object Array]"){if(!Kc(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=Ve(r[n])}}else if($w[e]){if(!Kc(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!Zw[e]&&!Kc(r)&&!yu(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Vg&&(t[o]=Ve(r[o]))}return t}function Je(r,t,e){if(!Be(t)||!Be(r))return e?Ve(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Vg){var i=r[n],a=t[n];Be(a)&&Be(i)&&!ce(a)&&!ce(i)&&!yu(a)&&!yu(i)&&!qw(a)&&!qw(i)&&!Kc(a)&&!Kc(i)?Je(i,a,e):(e||!(n in r))&&(r[n]=Ve(t[n]))}return r}function Hg(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=Je(e,r[n],t);return e}function ie(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Vg&&(r[e]=t[e]);return r}function Ne(r,t,e){for(var n=nr(t),i=0;i<n.length;i++){var a=n[i];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}var Zot=Ji.createCanvas;function tr(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function A5(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function en(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else Ne(r,t,e)}function En(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function U(r,t,e){if(r&&t)if(r.forEach&&r.forEach===_5)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function de(r,t,e){if(!r)return[];if(!t)return Wg(r);if(r.map&&r.map===T5)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function ba(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function Ir(r,t,e){if(!r)return[];if(!t)return Wg(r);if(r.filter&&r.filter===C5)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function I5(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function nr(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function D5(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Bg.call(arguments)))}}var Te=hf&&Re(hf.bind)?hf.call.bind(hf.bind):D5;function je(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Bg.call(arguments)))}}function ce(r){return Array.isArray?Array.isArray(r):mu.call(r)==="[object Array]"}function Re(r){return typeof r=="function"}function _e(r){return typeof r=="string"}function Fg(r){return mu.call(r)==="[object String]"}function vr(r){return typeof r=="number"}function Be(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function qw(r){return!!Zw[mu.call(r)]}function ei(r){return!!$w[mu.call(r)]}function yu(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ff(r){return r.colorStops!=null}function k5(r){return r.image!=null}function P5(r){return mu.call(r)==="[object RegExp]"}function Uc(r){return r!==r}function xn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function We(r,t){return r!=null?r:t}function _a(r,t,e){return r!=null?r:t!=null?t:e}function Wg(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Bg.apply(r,t)}function jg(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function jn(r,t){if(!r)throw new Error(t)}function Qi(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tb="__ec_primitive__";function pf(r){r[tb]=!0}function Kc(r){return r[tb]}var E5=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return nr(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),eb=typeof Map=="function";function L5(){return eb?new Map:new E5}var R5=function(){function r(t){var e=ce(t);this.data=L5();var n=this;t instanceof r?t.each(i):t&&U(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return eb?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function Pe(r){return new R5(r)}function vf(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function gf(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&ie(e,t),e}function rb(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function De(r,t){return r.hasOwnProperty(t)}function rn(){}var mf=180/Math.PI;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Gg=function(r,t){return Gg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Gg(r,t)};function Hr(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gg(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var nb=function(){return nb=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},nb.apply(this,arguments)};function $ot(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e}function Jot(r,t,e,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,n);else for(var s=r.length-1;s>=0;s--)(o=r[s])&&(a=(i<3?o(a):i>3?o(t,e,a):o(t,e))||a);return i>3&&a&&Object.defineProperty(t,e,a),a}function Qot(r,t){return function(e,n){t(e,n,r)}}function qot(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}function tst(r,t,e,n){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(r,t||[])).next())})}function est(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,i=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(r,e)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var ib=Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]};function rst(r,t){for(var e in r)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&ib(t,r,e)}function ab(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O5(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return a}function nst(){for(var r=[],t=0;t<arguments.length;t++)r=r.concat(O5(arguments[t]));return r}function ist(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var n=Array(r),i=0,t=0;t<e;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function ast(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return r.concat(a||t)}function yf(r){return this instanceof yf?(this.v=r,this):new yf(r)}function ost(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(h){n[h]&&(i[h]=function(f){return new Promise(function(p,v){a.push([h,f,p,v])>1||s(h,f)})})}function s(h,f){try{l(n[h](f))}catch(p){d(a[0][3],p)}}function l(h){h.value instanceof yf?Promise.resolve(h.value.v).then(u,c):d(a[0][2],h)}function u(h){s("next",h)}function c(h){s("throw",h)}function d(h,f){h(f),a.shift(),a.length&&s(a[0][0],a[0][1])}}function sst(r){var t,e;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=r[i]?function(o){return(e=!e)?{value:yf(r[i](o)),done:i==="return"}:a?a(o):o}:a}}function lst(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof ab=="function"?ab(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(a){e[a]=r[a]&&function(o){return new Promise(function(s,l){o=r[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function ust(r,t){return Object.defineProperty?Object.defineProperty(r,"raw",{value:t}):r.raw=t,r}var N5=Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t};function cst(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&ib(t,r,e);return N5(t,r),t}function dst(r){return r&&r.__esModule?r:{default:r}}function hst(r,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!n:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(r):n?n.value:t.get(r)}function fst(r,t,e,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?r!==t||!i:!t.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,e):i?i.value=e:t.set(r,e),e}function Os(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Gn(r,t){return r[0]=t[0],r[1]=t[1],r}function no(r){return[r[0],r[1]]}function B5(r,t,e){return r[0]=t,r[1]=e,r}function ob(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Ug(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Ns(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Kg(r){return Math.sqrt(V5(r))}var pst=null;function V5(r){return r[0]*r[0]+r[1]*r[1]}var vst=null;function gst(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function mst(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function yst(r,t){return r[0]*t[0]+r[1]*t[1]}function xf(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function xu(r,t){var e=Kg(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Yg(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Wo=Yg;function z5(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Bs=z5;function xst(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Sf(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Tn(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function jo(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Go(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Su=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),H5=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Su(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Su(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Su(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Su(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Su(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Su(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const F5=H5;var W5=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,e[0]);break;case 2:c.h.call(s,e[0],e[1]);break;default:c.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}();const Ii=W5;var j5=Math.log(2);function Xg(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/j5);return r[e][l]}for(var u=n|1<<e,c=e+1;n&1<<c;)c++;for(var d=0,h=0,f=0;h<s;h++){var p=1<<h;p&i||(d+=(f%2?-1:1)*r[e][h]*Xg(r,t-1,c,u,i|p,a),f++)}return a[o]=d,d}function sb(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=Xg(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Xg(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var d=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/d,l[1]=(u*a[3]+c*a[4]+a[5])/d}}}var lb="___zrEVENTSAVED",Zg=[];function G5(r,t,e,n,i){return $g(Zg,t,n,i,!0)&&$g(r,e,Zg[0],Zg[1])}function $g(r,t,e,n,i){if(t.getBoundingClientRect&&pr.domSupported&&!ub(t)){var a=t[lb]||(t[lb]={}),o=U5(t,a),s=K5(o,a,i);if(s)return s(r,e,n),!0}return!1}function U5(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function K5(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),d=2*u,h=c.left,f=c.top;o.push(h,f),l=l&&a&&h===a[d]&&f===a[d+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?sb(s,o):sb(o,s))}function ub(r){return r.nodeName.toUpperCase()==="CANVAS"}var Y5=/([&<>"'])/g,X5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ri(r){return r==null?"":(r+"").replace(Y5,function(t,e){return X5[e]})}var Z5=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jg=[],$5=pr.browser.firefox&&+pr.browser.version.split(".")[0]<39;function Qg(r,t,e,n){return e=e||{},n?cb(r,t,e):$5&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):cb(r,t,e),e}function cb(r,t,e){if(pr.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(ub(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if($g(Jg,r,n,i)){e.zrX=Jg[0],e.zrY=Jg[1];return}}e.zrX=e.zrY=0}function qg(r){return r||window.event}function Di(r,t,e){if(t=qg(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Qg(r,o,t,e)}else{Qg(r,t,t,e);var a=J5(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Z5.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function J5(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function t0(r,t,e,n){r.addEventListener(t,e,n)}function Q5(r,t,e,n){r.removeEventListener(t,e,n)}var io=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function db(r){return r.which===2||r.which===3}var q5=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Qg(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in e0)if(e0.hasOwnProperty(e)){var n=e0[e](this._track,t);if(n)return n}},r}();function hb(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function tB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var e0={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=hb(n)/hb(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=tB(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function wi(){return[1,0,0,1,0,0]}function wf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function r0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ao(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Ca(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Vs(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(e),d=Math.cos(e);return r[0]=i*d+s*c,r[1]=-i*c+s*d,r[2]=a*d+l*c,r[3]=-a*c+d*l,r[4]=d*(o-n[0])+c*(u-n[1])+n[0],r[5]=d*(u-n[1])-c*(o-n[0])+n[1],r}function n0(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function wu(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function eB(r){var t=wi();return r0(t,r),t}var rB=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const Ye=rB;var bf=Math.min,_f=Math.max,zs=new Ye,Hs=new Ye,Fs=new Ye,Ws=new Ye,Yc=new Ye,Xc=new Ye,nB=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=bf(t.x,this.x),n=bf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=_f(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=_f(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=wi();return Ca(a,a,[-e.x,-e.y]),n0(a,a,[n,i]),Ca(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(a<l||u<i||s<c||d<o);if(e){var f=1/0,p=0,v=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(d-o),x=Math.min(v,g),w=Math.min(m,y);a<l||u<i?x>p&&(p=x,v<g?Ye.set(Xc,-v,0):Ye.set(Xc,g,0)):x<f&&(f=x,v<g?Ye.set(Yc,v,0):Ye.set(Yc,-g,0)),s<c||d<o?w>p&&(p=w,m<y?Ye.set(Xc,0,-m):Ye.set(Xc,0,y)):x<f&&(f=x,m<y?Ye.set(Yc,0,m):Ye.set(Yc,0,-y))}return e&&Ye.copy(e,h?Yc:Xc),h},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}zs.x=Fs.x=e.x,zs.y=Ws.y=e.y,Hs.x=Ws.x=e.x+e.width,Hs.y=Fs.y=e.y+e.height,zs.transform(n),Ws.transform(n),Hs.transform(n),Fs.transform(n),t.x=bf(zs.x,Hs.x,Fs.x,Ws.x),t.y=bf(zs.y,Hs.y,Fs.y,Ws.y);var l=_f(zs.x,Hs.x,Fs.x,Ws.x),u=_f(zs.y,Hs.y,Fs.y,Ws.y);t.width=l-t.x,t.height=u-t.y},r}();const Xe=nB;var fb="silent";function iB(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:aB}}function aB(){io(this.event)}var oB=function(r){Hr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ii),Zc=function(){function r(t,e){this.x=t,this.y=e}return r}(),sB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],i0=new Xe(0,0,0,0),pb=function(r){Hr(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Zc(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new oB,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new F5(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(U(sB,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=gb(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Zc(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Zc(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=iB(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Zc(e,n);if(vb(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Xe(e-u,n-u,l,l),d=a.length-1;d>=0;d--){var h=a[d];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(i0.copy(h.getBoundingRect()),h.transform&&i0.applyTransform(h.transform),i0.intersect(c)&&s.push(h))}if(s.length)for(var f=4,p=Math.PI/12,v=Math.PI*2,g=0;g<u;g+=f)for(var m=0;m<v;m+=p){var y=e+g*Math.cos(m),x=n+g*Math.sin(m);if(vb(s,o,y,x,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new q5);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Zc;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Ii);U(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){pb.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=gb(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function lB(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?fb:!0}return!1}function vb(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=lB(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==fb)){t.target=o;break}}}function gb(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const uB=pb;var mb=32,$c=7;function cB(r){for(var t=0;r>=mb;)t|=r&1,r>>=1;return r+t}function yb(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;dB(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function dB(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function xb(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function a0(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(r,t[e+c])>0?o=c+1:l=c}return l}function o0(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(r,t[e+c])<0?l=c:o=c+1}return l}function hB(r,t){var e=$c,n,i,a=0,o=[];n=[],i=[];function s(f,p){n[a]=f,i[a]=p,a+=1}function l(){for(;a>1;){var f=a-2;if(f>=1&&i[f-1]<=i[f]+i[f+1]||f>=2&&i[f-2]<=i[f]+i[f-1])i[f-1]<i[f+1]&&f--;else if(i[f]>i[f+1])break;c(f)}}function u(){for(;a>1;){var f=a-2;f>0&&i[f-1]<i[f+1]&&f--,c(f)}}function c(f){var p=n[f],v=i[f],g=n[f+1],m=i[f+1];i[f]=v+m,f===a-3&&(n[f+1]=n[f+2],i[f+1]=i[f+2]),a--;var y=o0(r[g],r,p,v,0,t);p+=y,v-=y,v!==0&&(m=a0(r[p+v-1],r,g,m,m-1,t),m!==0&&(v<=m?d(p,v,g,m):h(p,v,g,m)))}function d(f,p,v,g){var m=0;for(m=0;m<p;m++)o[m]=r[f+m];var y=0,x=v,w=f;if(r[w++]=r[x++],--g===0){for(m=0;m<p;m++)r[w+m]=o[y+m];return}if(p===1){for(m=0;m<g;m++)r[w+m]=r[x+m];r[w+g]=o[y];return}for(var _=e,b,C,M;;){b=0,C=0,M=!1;do if(t(r[x],o[y])<0){if(r[w++]=r[x++],C++,b=0,--g===0){M=!0;break}}else if(r[w++]=o[y++],b++,C=0,--p===1){M=!0;break}while((b|C)<_);if(M)break;do{if(b=o0(r[x],o,y,p,0,t),b!==0){for(m=0;m<b;m++)r[w+m]=o[y+m];if(w+=b,y+=b,p-=b,p<=1){M=!0;break}}if(r[w++]=r[x++],--g===0){M=!0;break}if(C=a0(o[y],r,x,g,0,t),C!==0){for(m=0;m<C;m++)r[w+m]=r[x+m];if(w+=C,x+=C,g-=C,g===0){M=!0;break}}if(r[w++]=o[y++],--p===1){M=!0;break}_--}while(b>=$c||C>=$c);if(M)break;_<0&&(_=0),_+=2}if(e=_,e<1&&(e=1),p===1){for(m=0;m<g;m++)r[w+m]=r[x+m];r[w+g]=o[y]}else{if(p===0)throw new Error;for(m=0;m<p;m++)r[w+m]=o[y+m]}}function h(f,p,v,g){var m=0;for(m=0;m<g;m++)o[m]=r[v+m];var y=f+p-1,x=g-1,w=v+g-1,_=0,b=0;if(r[w--]=r[y--],--p===0){for(_=w-(g-1),m=0;m<g;m++)r[_+m]=o[m];return}if(g===1){for(w-=p,y-=p,b=w+1,_=y+1,m=p-1;m>=0;m--)r[b+m]=r[_+m];r[w]=o[x];return}for(var C=e;;){var M=0,k=0,P=!1;do if(t(o[x],r[y])<0){if(r[w--]=r[y--],M++,k=0,--p===0){P=!0;break}}else if(r[w--]=o[x--],k++,M=0,--g===1){P=!0;break}while((M|k)<C);if(P)break;do{if(M=p-o0(o[x],r,f,p,p-1,t),M!==0){for(w-=M,y-=M,p-=M,b=w+1,_=y+1,m=M-1;m>=0;m--)r[b+m]=r[_+m];if(p===0){P=!0;break}}if(r[w--]=o[x--],--g===1){P=!0;break}if(k=g-a0(r[y],o,0,g,g-1,t),k!==0){for(w-=k,x-=k,g-=k,b=w+1,_=x+1,m=0;m<k;m++)r[b+m]=o[_+m];if(g<=1){P=!0;break}}if(r[w--]=r[y--],--p===0){P=!0;break}C--}while(M>=$c||k>=$c);if(P)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),g===1){for(w-=p,y-=p,b=w+1,_=y+1,m=p-1;m>=0;m--)r[b+m]=r[_+m];r[w]=o[x]}else{if(g===0)throw new Error;for(_=w-(g-1),m=0;m<g;m++)r[_+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Cf(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<mb){a=yb(r,e,n,t),xb(r,e,n,e+a,t);return}var o=hB(r,t),s=cB(i);do{if(a=yb(r,e,n,t),a<s){var l=i;l>s&&(l=s),xb(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var bi=1,Jc=2,bu=4,Sb=!1;function s0(){Sb||(Sb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function wb(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var fB=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wb}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Cf(n,wb)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=bi),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var c=t;e&&e.length?c.__clipPaths=e:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(s0(),c.z=0),isNaN(c.z2)&&(s0(),c.z2=0),isNaN(c.zlevel)&&(s0(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=tr(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const pB=fB;var bb;bb=pr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const l0=bb;var Tf={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Tf.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Tf.bounceIn(r*2)*.5:Tf.bounceOut(r*2-1)*.5+.5}};const _b=Tf;var Mf=Math.pow,Uo=Math.sqrt,Af=1e-8,Cb=1e-4,Tb=Uo(3),If=1/3,Ta=Os(),ki=Os(),_u=Os();function Ko(r){return r>-Af&&r<Af}function Mb(r){return r>Af||r<-Af}function pn(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Ab(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Df(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,c=s*s-3*o*l,d=s*l-9*o*u,h=l*l-3*s*u,f=0;if(Ko(c)&&Ko(d))if(Ko(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[f++]=p)}else{var v=d*d-4*c*h;if(Ko(v)){var g=d/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(a[f++]=p),m>=0&&m<=1&&(a[f++]=m)}else if(v>0){var y=Uo(v),x=c*s+1.5*o*(-d+y),w=c*s+1.5*o*(-d-y);x<0?x=-Mf(-x,If):x=Mf(x,If),w<0?w=-Mf(-w,If):w=Mf(w,If);var p=(-s-(x+w))/(3*o);p>=0&&p<=1&&(a[f++]=p)}else{var _=(2*c*s-3*o*d)/(2*Uo(c*c*c)),b=Math.acos(_)/3,C=Uo(c),M=Math.cos(b),p=(-s-2*C*M)/(3*o),m=(-s+C*(M+Tb*Math.sin(b)))/(3*o),k=(-s+C*(M-Tb*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[f++]=p),m>=0&&m<=1&&(a[f++]=m),k>=0&&k<=1&&(a[f++]=k)}}return f}function Ib(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Ko(o)){if(Mb(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ko(c))i[0]=-a/(2*o);else if(c>0){var d=Uo(c),u=(-a+d)/(2*o),h=(-a-d)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Yo(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=n}function Db(r,t,e,n,i,a,o,s,l,u,c){var d,h=.005,f=1/0,p,v,g,m;Ta[0]=l,Ta[1]=u;for(var y=0;y<1;y+=.05)ki[0]=pn(r,e,i,o,y),ki[1]=pn(t,n,a,s,y),g=Bs(Ta,ki),g<f&&(d=y,f=g);f=1/0;for(var x=0;x<32&&!(h<Cb);x++)p=d-h,v=d+h,ki[0]=pn(r,e,i,o,p),ki[1]=pn(t,n,a,s,p),g=Bs(ki,Ta),p>=0&&g<f?(d=p,f=g):(_u[0]=pn(r,e,i,o,v),_u[1]=pn(t,n,a,s,v),m=Bs(_u,Ta),v<=1&&m<f?(d=v,f=m):h*=.5);return c&&(c[0]=pn(r,e,i,o,d),c[1]=pn(t,n,a,s,d)),Uo(f)}function vB(r,t,e,n,i,a,o,s,l){for(var u=r,c=t,d=0,h=1/l,f=1;f<=l;f++){var p=f*h,v=pn(r,e,i,o,p),g=pn(t,n,a,s,p),m=v-u,y=g-c;d+=Math.sqrt(m*m+y*y),u=v,c=g}return d}function Sn(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function u0(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function gB(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Ko(a)){if(Mb(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ko(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var d=Uo(c),u=(-o+d)/(2*a),h=(-o-d)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function kb(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Qc(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Pb(r,t,e,n,i,a,o,s,l){var u,c=.005,d=1/0;Ta[0]=o,Ta[1]=s;for(var h=0;h<1;h+=.05){ki[0]=Sn(r,e,i,h),ki[1]=Sn(t,n,a,h);var f=Bs(Ta,ki);f<d&&(u=h,d=f)}d=1/0;for(var p=0;p<32&&!(c<Cb);p++){var v=u-c,g=u+c;ki[0]=Sn(r,e,i,v),ki[1]=Sn(t,n,a,v);var f=Bs(ki,Ta);if(v>=0&&f<d)u=v,d=f;else{_u[0]=Sn(r,e,i,g),_u[1]=Sn(t,n,a,g);var m=Bs(_u,Ta);g<=1&&m<d?(u=g,d=m):c*=.5}}return l&&(l[0]=Sn(r,e,i,u),l[1]=Sn(t,n,a,u)),Uo(d)}function mB(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,c=1/o,d=1;d<=o;d++){var h=d*c,f=Sn(r,e,i,h),p=Sn(t,n,a,h),v=f-s,g=p-l;u+=Math.sqrt(v*v+g*g),s=f,l=p}return u}var yB=/cubic-bezier\(([0-9,\.e ]+)\)/;function c0(r){var t=r&&yB.exec(r);if(t){var e=t[1].split(","),n=+Qi(e[0]),i=+Qi(e[1]),a=+Qi(e[2]),o=+Qi(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Df(0,n,a,1,l,s)&&pn(0,i,o,1,s[0])}}}var xB=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||rn,this.ondestroy=t.ondestroy||rn,this.onrestart=t.onrestart||rn,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Re(t)?t:_b[t]||c0(t)},r}();const SB=xB;var Eb=function(){function r(t){this.value=t}return r}(),wB=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Eb(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),bB=function(){function r(t){this._list=new wB,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Eb(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const qc=bB;var Lb={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 qi(r){return r=Math.round(r),r<0?0:r>255?255:r}function _B(r){return r=Math.round(r),r<0?0:r>360?360:r}function td(r){return r<0?0:r>1?1:r}function d0(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qi(parseFloat(t)/100*255):qi(parseInt(t,10))}function js(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?td(parseFloat(t)/100):td(parseFloat(t))}function h0(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Xo(r,t,e){return r+(t-r)*e}function Pi(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function f0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Rb=new qc(20),kf=null;function Cu(r,t){kf&&f0(kf,t),kf=Rb.put(r,kf||t.slice())}function ni(r,t){if(r){t=t||[];var e=Rb.get(r);if(e)return f0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Lb)return f0(t,Lb[n]),Cu(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Pi(t,0,0,0,1);return}return Pi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Cu(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Pi(t,0,0,0,1);return}return Pi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Cu(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Pi(t,+u[0],+u[1],+u[2],1):Pi(t,0,0,0,1);c=js(u.pop());case"rgb":if(u.length>=3)return Pi(t,d0(u[0]),d0(u[1]),d0(u[2]),u.length===3?c:js(u[3])),Cu(r,t),t;Pi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Pi(t,0,0,0,1);return}return u[3]=js(u[3]),p0(u,t),Cu(r,t),t;case"hsl":if(u.length!==3){Pi(t,0,0,0,1);return}return p0(u,t),Cu(r,t),t;default:return}}Pi(t,0,0,0,1)}}function p0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=js(r[1]),i=js(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Pi(t,qi(h0(o,a,e+1/3)*255),qi(h0(o,a,e)*255),qi(h0(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function CB(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,d=((a-e)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-d:e===a?l=1/3+c-h:n===a&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,u,s];return r[3]!=null&&f.push(r[3]),f}}function v0(r,t){var e=ni(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Ma(e,e.length===4?"rgba":"rgb")}}function Sst(r){var t=ni(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function g0(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=qi(Xo(o[0],s[0],l)),e[1]=qi(Xo(o[1],s[1],l)),e[2]=qi(Xo(o[2],s[2],l)),e[3]=td(Xo(o[3],s[3],l)),e}}var wst=null;function TB(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=ni(t[i]),s=ni(t[a]),l=n-i,u=Ma([qi(Xo(o[0],s[0],l)),qi(Xo(o[1],s[1],l)),qi(Xo(o[2],s[2],l)),td(Xo(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var bst=null;function ed(r,t,e,n){var i=ni(r);if(r)return i=CB(i),t!=null&&(i[0]=_B(t)),e!=null&&(i[1]=js(e)),n!=null&&(i[2]=js(n)),Ma(p0(i),"rgba")}function Pf(r,t){var e=ni(r);if(e&&t!=null)return e[3]=td(t),Ma(e,"rgba")}function Ma(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ef(r,t){var e=ni(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function _st(){return Ma([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Ob=new qc(100);function m0(r){if(_e(r)){var t=Ob.get(r);return t||(t=v0(r,-.1),Ob.put(r,t)),t}else if(ff(r)){var e=ie({},r);return e.colorStops=de(r.colorStops,function(n){return{offset:n.offset,color:v0(n.color,-.1)}}),e}return r}var rd=Math.round;function nd(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ni(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var Nb=1e-4;function Zo(r){return r<Nb&&r>-Nb}function Lf(r){return rd(r*1e3)/1e3}function y0(r){return rd(r*1e4)/1e4}function Cst(r){return rd(r*10)/10}function AB(r){return"matrix("+Lf(r[0])+","+Lf(r[1])+","+Lf(r[2])+","+Lf(r[3])+","+y0(r[4])+","+y0(r[5])+")"}var IB={left:"start",right:"end",center:"middle",middle:"middle"};function DB(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function kB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function PB(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function Tst(r){var t=[];if(r)for(var e=0;e<r.length;e++){var n=r[e];t.push(n.id)}return t.join(",")}function Bb(r){return r&&!!r.image}function EB(r){return r&&!!r.svgElement}function x0(r){return Bb(r)||EB(r)}function Vb(r){return r.type==="linear"}function zb(r){return r.type==="radial"}function Hb(r){return r&&(r.type==="linear"||r.type==="radial")}function Rf(r){return"url(#"+r+")"}function Fb(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function Wb(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*mf,i=We(r.scaleX,1),a=We(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+rd(o*mf)+"deg, "+rd(s*mf)+"deg)"),l.join(" ")}var LB=function(){return pr.hasGlobalWindow&&Re(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),S0=Array.prototype.slice;function oo(r,t,e){return(t-r)*e+r}function w0(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=oo(t[a],e[a],n);return r}function RB(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=oo(t[o][s],e[o][s],n)}return r}function Of(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function jb(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function OB(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function NB(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(e===1?i[l]:S0.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function id(r){if(En(r)){var t=r.length;if(En(r[0])){for(var e=[],n=0;n<t;n++)e.push(S0.call(r[n]));return e}return S0.call(r)}return r}function Nf(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function BB(r){return En(r&&r[0])?2:1}var Bf=0,Vf=1,Gb=2,ad=3,b0=4,_0=5,Ub=6;function Kb(r){return r===b0||r===_0}function zf(r){return r===Vf||r===Gb}var od=[0,0,0,0],VB=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ub,l=e;if(En(e)){var u=BB(e);s=u,(u===1&&!vr(e[0])||u===2&&!vr(e[0][0]))&&(o=!0)}else if(vr(e)&&!Uc(e))s=Bf;else if(_e(e))if(!isNaN(+e))s=Bf;else{var c=ni(e);c&&(l=c,s=ad)}else if(ff(e)){var d=ie({},l);d.colorStops=de(e.colorStops,function(f){return{offset:f.offset,color:ni(f.color)}}),Vb(e)?s=b0:zb(e)&&(s=_0),l=d}a===0?this.valType=s:(s!==this.valType||s===Ub)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Re(n)?n:_b[n]||c0(n)),i.push(h),h},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=zf(i),u=Kb(i),c=0;c<a;c++){var d=n[c],h=d.value,f=o.value;d.percent=d.time/t,s||(l&&c!==a-1?NB(h,f,i):u&&OB(h.colorStops,f.colorStops))}if(!s&&i!==_0&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var p=n[0].value,c=0;c<a;c++)i===Bf?n[c].additiveValue=n[c].value-p:i===ad?n[c].additiveValue=Of([],n[c].value,p,-1):zf(i)&&(n[c].additiveValue=i===Vf?Of([],n[c].value,p,-1):jb([],n[c].value,p,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ad,c,d=this._lastFr,h=Math.min,f,p;if(s===1)f=p=o[0];else{if(e<0)c=0;else if(e<this._lastFrP){var v=h(d+1,s-1);for(c=v;c>=0&&!(o[c].percent<=e);c--);c=h(c,s-2)}else{for(c=d;c<s&&!(o[c].percent>e);c++);c=h(c-1,s-2)}p=o[c+1],f=o[c]}if(f&&p){this._lastFr=c,this._lastFrP=e;var g=p.percent-f.percent,m=g===0?1:h((e-f.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var y=n?this._additiveValue:u?od:t[l];if((zf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?f.rawValue:p.rawValue;else if(zf(a))a===Vf?w0(y,f[i],p[i],m):RB(y,f[i],p[i],m);else if(Kb(a)){var x=f[i],w=p[i],_=a===b0;t[l]={type:_?"linear":"radial",x:oo(x.x,w.x,m),y:oo(x.y,w.y,m),colorStops:de(x.colorStops,function(C,M){var k=w.colorStops[M];return{offset:oo(C.offset,k.offset,m),color:Nf(w0([],C.color,k.color,m))}}),global:w.global},_?(t[l].x2=oo(x.x2,w.x2,m),t[l].y2=oo(x.y2,w.y2,m)):t[l].r=oo(x.r,w.r,m)}else if(u)w0(y,f[i],p[i],m),n||(t[l]=Nf(y));else{var b=oo(f[i],p[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Bf?t[n]=t[n]+i:e===ad?(ni(t[n],od),Of(od,od,i,1),t[n]=Nf(od)):e===Vf?Of(t[n],t[n],i,1):e===Gb&&jb(t[n],t[n],i,1)},r}(),zB=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){zg("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,nr(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new VB(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,h=d[d.length-1];u=h&&h.value,c.valType===ad&&u&&(u=Nf(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,id(u),i),this._trackKeys.push(s)}l.addKeyframe(t,id(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(e._target[s.propName]=d.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new SB({life:i,loop:this._loop,delay:this._delay||0,onframe:function(f){e._started=2;var p=e._additiveAnimators;if(p){for(var v=!1,g=0;g<p.length;g++)if(p[g]._clip){v=!0;break}v||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,f);var m=e._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](e._target,f)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return de(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=id(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||nr(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const C0=zB;function Tu(){return new Date().getTime()}var HB=function(r){Hr(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Tu()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(l0(n),!e._paused&&e.update())}l0(n)},t.prototype.start=function(){this._running||(this._time=Tu(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Tu(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Tu()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new C0(e,n.loop);return this.addAnimator(i),i},t}(Ii);const FB=HB;var WB=300,T0=pr.domSupported,M0=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=de(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Yb={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Xb=!1;function A0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function jB(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function I0(r){r&&(r.zrByTouch=!0)}function GB(r,t){return Di(r.dom,new UB(r,t),!0)}function Zb(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var UB=function(){function r(t,e){this.stopPropagation=rn,this.stopImmediatePropagation=rn,this.preventDefault=rn,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ta={mousedown:function(r){r=Di(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Di(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Di(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Di(this.dom,r);var t=r.toElement||r.relatedTarget;Zb(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Xb=!0,r=Di(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Xb||(r=Di(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Di(this.dom,r),I0(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ta.mousemove.call(this,r),ta.mousedown.call(this,r)},touchmove:function(r){r=Di(this.dom,r),I0(r),this.handler.processGesture(r,"change"),ta.mousemove.call(this,r)},touchend:function(r){r=Di(this.dom,r),I0(r),this.handler.processGesture(r,"end"),ta.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<WB&&ta.click.call(this,r)},pointerdown:function(r){ta.mousedown.call(this,r)},pointermove:function(r){A0(r)||ta.mousemove.call(this,r)},pointerup:function(r){ta.mouseup.call(this,r)},pointerout:function(r){A0(r)||ta.mouseout.call(this,r)}};U(["click","dblclick","contextmenu"],function(r){ta[r]=function(t){t=Di(this.dom,t),this.trigger(r,t)}});var D0={pointermove:function(r){A0(r)||D0.mousemove.call(this,r)},pointerup:function(r){D0.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function KB(r,t){var e=t.domHandlers;pr.pointerEventsSupported?U(M0.pointer,function(n){Hf(t,n,function(i){e[n].call(r,i)})}):(pr.touchEventsSupported&&U(M0.touch,function(n){Hf(t,n,function(i){e[n].call(r,i),jB(t)})}),U(M0.mouse,function(n){Hf(t,n,function(i){i=qg(i),t.touching||e[n].call(r,i)})}))}function YB(r,t){pr.pointerEventsSupported?U(Yb.pointer,e):pr.touchEventsSupported||U(Yb.mouse,e);function e(n){function i(a){a=qg(a),Zb(r,a.target)||(a=GB(r,a),t.domHandlers[n].call(r,a))}Hf(t,n,i,{capture:!0})}}function Hf(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,t0(r.domTarget,t,e,n)}function k0(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Q5(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var $b=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),XB=function(r){Hr(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new $b(e,ta),T0&&(i._globalHandlerScope=new $b(document,D0)),KB(i,i._localHandlerScope),i}return t.prototype.dispose=function(){k0(this._localHandlerScope),T0&&k0(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,T0&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?YB(this,n):k0(n)}},t}(Ii);const ZB=XB;var Jb=1;pr.hasGlobalWindow&&(Jb=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Mst=0,Ff=Jb,P0=.4,E0="#333",L0="#ccc",$B="#eee",Qb=wf,qb=5e-5;function Gs(r){return r>qb||r<-qb}var Us=[],Mu=[],R0=wi(),O0=Math.abs,JB=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Gs(this.rotation)||Gs(this.x)||Gs(this.y)||Gs(this.scaleX-1)||Gs(this.scaleY-1)||Gs(this.skewX)||Gs(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Qb(n),this.invTransform=null);return}n=n||wi(),e?this.getLocalTransform(n):Qb(n),t&&(e?ao(n,t,n):r0(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Us);var n=Us[0]<0?-1:1,i=Us[1]<0?-1:1,a=((Us[0]-n)*e+n)/Us[0]||0,o=((Us[1]-i)*e+i)/Us[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||wi(),wu(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||wi(),ao(Mu,t.invTransform,e),e=Mu);var n=this.originX,i=this.originY;(n||i)&&(R0[4]=n,R0[5]=i,ao(Mu,e,R0),Mu[4]-=n,Mu[5]-=i,e=Mu),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Tn(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Tn(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&O0(t[0]-1)>1e-10&&O0(t[3]-1)>1e-10?Math.sqrt(O0(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){t_(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,d=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;e[4]=-p*a-h*v*o,e[5]=-v*o-f*p*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=f*a,e[2]=h*o,u&&Vs(e,e,u),e[4]+=n+c,e[5]+=i+d,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Aa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function t_(r,t){for(var e=0;e<Aa.length;e++){var n=Aa[e];r[n]=t[n]}}const so=JB;var e_={};function _i(r,t){t=t||Fo;var e=e_[t];e||(e=e_[t]=new qc(500));var n=e.get(r);return n==null&&(n=Ji.measureText(r,t).width,e.put(r,n)),n}function r_(r,t,e,n){var i=_i(r,t),a=Wf(t),o=ld(0,i,e),s=Au(0,a,n),l=new Xe(o,s,i,a);return l}function sd(r,t,e,n){var i=((r||"")+"").split("\n"),a=i.length;if(a===1)return r_(i[0],t,e,n);for(var o=new Xe(0,0,0,0),s=0;s<i.length;s++){var l=r_(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function ld(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Au(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Wf(r){return _i("\u56FD",r)}function Ast(r,t){return platformApi.measureText(r,t)}function ea(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function jf(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,c="left",d="top";if(n instanceof Array)l+=ea(n[0],e.width),u+=ea(n[1],e.height),c=null,d=null;else switch(n){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=d,r}var N0="__zr_normal__",B0=Aa.concat(["ignore"]),QB=ba(Aa,function(r,t){return r[t]=!0,r},{ignore:!1}),Iu={},qB=new Xe(0,0,0,0),V0=function(){function r(t){this.id=Qw(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var c=qB;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Iu,n,c):jf(Iu,n,c),a.x=Iu.x,a.y=Iu.y,o=Iu.align,s=Iu.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var h=void 0,f=void 0;d==="center"?(h=c.width*.5,f=c.height*.5):(h=ea(d[0],c.width),f=ea(d[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+f+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;v&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=bi,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?L0:E0},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&ni(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ma(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},ie(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Be(t))for(var n=t,i=nr(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==N0)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,B0)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(N0,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===N0,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(tr(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){zg("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,h=this._textGuide;return d&&d.useState(t,e,n,c),h&&h.useState(t,e,n,c),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var d=i[o-1],h=!!(d&&d.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=tr(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=tr(i,t),o=tr(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];ie(e,a),a.textConfig&&(n=n||{},ie(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=ie({},i?this.textConfig:n.textConfig),ie(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<B0.length;c++){var d=B0[c],h=a&&QB[d];e&&e[d]!=null?h?(u=!0,l[d]=e[d]):this[d]=e[d]:s&&n[d]!=null&&(h?(u=!0,l[d]=n[d]):this[d]=n[d])}if(!a)for(var c=0;c<this.animators.length;c++){var f=this.animators[c],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(e||n)[p]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new so,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),ie(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=bi;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new C0(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=tr(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){z0(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){z0(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=z0(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=bi;var e={};function n(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,d){Object.defineProperty(d,0,{get:function(){return c[s]},set:function(h){c[s]=h}}),Object.defineProperty(d,1,{get:function(){return c[l]},set:function(h){c[l]=h}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();en(V0,Ii),en(V0,so);function z0(r,t,e,n,i){e=e||{};var a=[];n_(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},d=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(p,v){e.during(v)});for(var h=0;h<a.length;h++){var f=a[h];c&&f.done(c),d&&f.aborted(d),e.force&&f.duration(e.duration),f.start(e.easing)}return a}function H0(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function t3(r){return En(r[0])}function e3(r,t,e){if(En(t[e]))if(En(r[e])||(r[e]=[]),ei(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),H0(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(t3(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?H0(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else H0(a,i,o);a.length=i.length}else r[e]=t[e]}function r3(r,t){return r===t||En(r)&&En(t)&&n3(r,t)}function n3(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function n_(r,t,e,n,i,a,o,s){for(var l=nr(n),u=i.duration,c=i.delay,d=i.additive,h=i.setToFinal,f=!Be(a),p=r.animators,v=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&e[m]!=null&&(f||a[m]))if(Be(y)&&!En(y)&&!ff(y)){if(t){s||(e[m]=y,r.updateDuringAnimation(t));continue}n_(r,m,e[m],y,i,a&&a[m],o,s)}else v.push(m);else s||(e[m]=y,r.updateDuringAnimation(t),v.push(m))}var x=v.length;if(!d&&x)for(var w=0;w<p.length;w++){var _=p[w];if(_.targetName===t){var b=_.stopTracks(v);if(b){var C=tr(p,_);p.splice(C,1)}}}if(i.force||(v=Ir(v,function(R){return!r3(n[R],e[R])}),x=v.length),x>0||i.force&&!o.length){var M=void 0,k=void 0,P=void 0;if(s){k={},h&&(M={});for(var w=0;w<x;w++){var m=v[w];k[m]=e[m],h?M[m]=n[m]:e[m]=n[m]}}else if(h){P={};for(var w=0;w<x;w++){var m=v[w];P[m]=id(e[m]),e3(e,n,m)}}var _=new C0(e,!1,!1,d?Ir(p,function(j){return j.targetName===t}):null);_.targetName=t,i.scope&&(_.scope=i.scope),h&&M&&_.whenWithKeys(0,M,v),P&&_.whenWithKeys(0,P,v),_.whenWithKeys(u==null?500:u,s?k:n,v).delay(c||0),r.addAnimator(_,t),o.push(_)}}const i_=V0;var a_=function(r){Hr(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=tr(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=tr(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new Xe(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(Xe.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(i_);a_.prototype.type="group";const ze=a_;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Gf={},Ks={};function i3(r){delete Ks[r]}function a3(r){if(!r)return!1;if(typeof r=="string")return Ef(r,1)<P0;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=Ef(t[i].color,1);return e/=n,e<P0}return!1}var o3=function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new pB,o=n.renderer||"canvas";Gf[o]||(o=nr(Gf)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Gf[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!pr.node&&!pr.worker&&!l?new ZB(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,d=c==null||c==="auto"?pr.touchEventsSupported:!!c,h=44,f;d&&(f=We(n.pointerSize,h)),this.handler=new uB(a,s,u,s.root,f),this.animation=new FB({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=a3(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=Tu();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Tu();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ze&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,i3(this.id))},r}();function o_(r,t){var e=new o3(Qw(),r,t);return Ks[e.id]=e,e}function Ist(r){r.dispose()}function Dst(){for(var r in Ks)Ks.hasOwnProperty(r)&&Ks[r].dispose();Ks={}}function kst(r){return Ks[r]}function s3(r,t){Gf[r]=t}var F0;function l3(r){if(typeof F0=="function")return F0(r)}function u3(r){F0=r}var Pst="5.5.0",s_=1e-4,l_=20;function c3(r){return r.replace(/^\s+|\s+$/g,"")}function Cr(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function xe(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return _e(r)?c3(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Qr(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),l_),r=(+r).toFixed(t),e?r:+r}function Ei(r){return r.sort(function(t,e){return t-e}),r}function Ia(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return d3(r)}function d3(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function u_(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Est(r,t,e){if(!r[t])return 0;var n=c_(r,e);return n[t]||0}function c_(r,t){var e=ba(r,function(f,p){return f+(isNaN(p)?0:p)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=de(r,function(f){return(isNaN(f)?0:f)/e*n*100}),a=n*100,o=de(i,function(f){return Math.floor(f)}),s=ba(o,function(f,p){return f+p},0),l=de(i,function(f,p){return f-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,h=l.length;d<h;++d)l[d]>u&&(u=l[d],c=d);++o[c],l[c]=0,++s}return de(o,function(f){return f/n})}function h3(r,t){var e=Math.max(Ia(r),Ia(t)),n=r+t;return e>l_?n:Qr(n,e)}var d_=9007199254740991;function h_(r){var t=Math.PI*2;return(r%t+t)%t}function ud(r){return r>-s_&&r<s_}var f3=/^(?:(\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 ra(r){if(r instanceof Date)return r;if(_e(r)){var t=f3.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function p3(r){return Math.pow(10,W0(r))}function W0(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function f_(r,t){var e=W0(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function j0(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function p_(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function lo(r){var t=parseFloat(r);return t==r&&(t!==0||!_e(r)||r.indexOf("x")<=0)?t:NaN}function v_(r){return!isNaN(lo(r))}function g_(){return Math.round(Math.random()*9)}function m_(r,t){return t===0?r:m_(t,r%t)}function y_(r,t){return r==null?t:t==null?r:r*t/m_(r,t)}function x_(r,t,e){return(t-r)*e+r}var S_="series\0",w_="\0_ec_\0";function kr(r){return r instanceof Array?r:r==null?[]:[r]}function Ys(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var b_=["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 Du(r){return Be(r)&&!ce(r)&&!(r instanceof Date)?r.value:r}function v3(r){return Be(r)&&!(r instanceof Array)}function __(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Pe();U(t,function(l,u){if(!Be(l)){t[u]=null;return}});var s=g3(r,o,e);return(n||i)&&m3(s,r,o,t),n&&y3(s,t),n||i?x3(s,t,i):a&&S3(s,t),w3(s),s}function g3(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||dd(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function m3(r,t,e,n){U(n,function(i,a){if(!(!i||i.id==null)){var o=cd(i.id),s=e.get(o);if(s!=null){var l=r[s];jn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function y3(r,t){U(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!dd(e)&&!dd(a)&&C_("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function x3(r,t,e){U(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||dd(i.existing)||i.existing&&n.id!=null&&!C_("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function S3(r,t){U(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function w3(r){var t=Pe();U(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),U(r,function(e){var n=e.newOption;jn(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),U(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(Be(a)){if(o.name=a.name!=null?cd(a.name):i?i.name:S_+n,i)o.id=cd(i.id);else if(a.id!=null)o.id=cd(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function C_(r,t,e){var n=dn(t[r],null),i=dn(e[r],null);return n!=null&&i!=null&&n===i}function cd(r){return dn(r,"")}function dn(r,t){return r==null?t:_e(r)?r:vr(r)||Fg(r)?r+"":t}function Lst(r){}function Rst(r){return isStringSafe(r)||isNumeric(r)}function G0(r){var t=r.name;return!!(t&&t.indexOf(S_))}function dd(r){return r&&r.id!=null&&cd(r.id).indexOf(w_)===0}function b3(r){return w_+r}function _3(r,t,e){U(r,function(n){var i=n.newOption;Be(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=C3(t,i,n.existing,e))})}function C3(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function T3(r,t){var e={},n={};return i(r||[],e),i(t||[],n,e),[a(e),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var d=dn(o[u].seriesId,null);if(d==null)return;for(var h=kr(o[u].dataIndex),f=l&&l[d],p=0,v=h.length;p<v;p++){var g=h[p];f&&f[g]?f[g]=null:(s[d]||(s[d]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Xs(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ce(t.dataIndex)?de(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ce(t.name)?de(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function cr(){var r="__ec_inner_"+M3++;return function(t){return t[r]||(t[r]={})}}var M3=g_();function hd(r,t,e){var n=U0(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var d=fd(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=d.models,s[c+"Model"]=d.models[0]}),s}function U0(r,t){var e;if(_e(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=Pe(),a={},o=!1;return U(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],d=(u[2]||"").toLowerCase();if(!(!c||!d||t&&t.includeMainTypes&&tr(t.includeMainTypes,c)<0)){o=o||!!c;var h=i.get(c)||i.set(c,{});h[d]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var sn={useDefault:!0,enableAll:!1,enableNone:!1},A3={useDefault:!1,enableAll:!0,enableNone:!0};function fd(r,t,e,n){n=n||sn;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(jn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(jn(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function T_(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function I3(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function D3(r){return r==="auto"?pr.domSupported?"html":"richText":r||"html"}function K0(r,t){var e=Pe(),n=[];return U(r,function(i){var a=t(i);(e.get(a)||(n.push(a),e.set(a,[]))).push(i)}),{keys:n,buckets:e}}function M_(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(vr(n)){var o=x_(e||0,n,i);return Qr(o,a?Math.max(Ia(e||0),Ia(n)):t)}else{if(_e(n))return i<1?e:n;for(var s=[],l=e,u=n,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var h=r.getDimensionInfo(d);if(h&&h.type==="ordinal")s[d]=(i<1&&l?l:u)[d];else{var f=l&&l[d]?l[d]:0,p=u[d],o=x_(f,p,i);s[d]=Qr(o,a?Math.max(Ia(f),Ia(p)):t)}}return s}}var k3=".",Zs="___EC__COMPONENT__CONTAINER___",A_="___EC__EXTENDED_CLASS___";function Da(r){var t={main:"",sub:""};if(r){var e=r.split(k3);t.main=e[0]||"",t.sub=e[1]||""}return t}function P3(r){jn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function E3(r){return!!(r&&r[A_])}function Y0(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return L3(n)?i=function(a){Yt(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},A5(i,this)),ie(i.prototype,e),i[A_]=!0,i.extend=this.extend,i.superCall=N3,i.superApply=B3,i.superClass=n,i}}function L3(r){return Re(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function I_(r,t){r.extend=t.extend}var R3=Math.round(Math.random()*10);function O3(r){var t=["__\0is_clz",R3++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function N3(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function B3(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Uf(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){P3(i),n.prototype.type=i;var a=Da(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Zs){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[Zs]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=Da(n),a=[],o=t[i.main];return o&&o[Zs]?U(o,function(s,l){l!==Zs&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Da(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return U(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Da(n),a=t[i.main];return a&&a[Zs]};function e(n){var i=t[n.main];return(!i||!i[Zs])&&(i=t[n.main]={},i[Zs]=!0),i}}function $s(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&tr(i,l)>=0||a&&tr(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var V3=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],z3=$s(V3),H3=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return z3(this,t,e)},r}(),X0=new qc(50);function F3(r){if(typeof r=="string"){var t=X0.get(r);return t&&t.image}else return r}function Z0(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=X0.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Kf(t)&&a.pending.push(o)):(t=Ji.loadImage(r,D_,D_),t.__zrImageSrc=r,X0.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function D_(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Kf(r){return r&&r.width&&r.height}var $0=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function W3(r,t,e,n,i){if(!t)return"";var a=(r+"").split("\n");i=k_(t,e,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=P_(a[o],i);return a.join("\n")}function k_(r,t,e,n){n=n||{};var i=ie({},n);i.font=t,e=We(e,"..."),i.maxIterations=We(n.maxIterations,2);var a=i.minChar=We(n.minChar,0);i.cnCharWidth=_i("\u56FD",t);var o=i.ascCharWidth=_i("a",t);i.placeholder=We(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=_i(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function P_(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=_i(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?j3(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=_i(r,n)}return r===""&&(r=t.placeholder),r}function j3(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function G3(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=Wf(i),s=We(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,d;c!=null&&(e==="break"||e==="breakAll")?d=r?L_(r,t.font,c,e==="breakAll",0).lines:[]:d=r?r.split("\n"):[];var h=d.length*s,f=We(t.height,h);if(h>f&&u){var p=Math.floor(f/s);d=d.slice(0,p)}if(r&&a&&c!=null)for(var v=k_(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<d.length;g++)d[g]=P_(d[g],v);for(var m=f,y=0,g=0;g<d.length;g++)y=Math.max(_i(d[g],i),y);c==null&&(c=y);var x=y;return n&&(m+=n[0]+n[2],x+=n[1]+n[3],c+=n[1]+n[3]),l&&(x=c),{lines:d,height:f,outerWidth:x,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:h,width:c}}var U3=function(){function r(){}return r}(),E_=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),K3=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function Y3(r,t){var e=new K3;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=$0.lastIndex=0,l;(l=$0.exec(r))!=null;){var u=l.index;u>s&&J0(e,r.substring(s,u),t,o),J0(e,l[2],t,o,l[1]),s=$0.lastIndex}s<r.length&&J0(e,r.substring(s,r.length),t,o);var c=[],d=0,h=0,f=t.padding,p=a==="truncate",v=t.lineOverflow==="truncate";function g(wt,Lt,Ft){wt.width=Lt,wt.lineHeight=Ft,d+=Ft,h=Math.max(h,Lt)}t:for(var m=0;m<e.lines.length;m++){for(var y=e.lines[m],x=0,w=0,_=0;_<y.tokens.length;_++){var b=y.tokens[_],C=b.styleName&&t.rich[b.styleName]||{},M=b.textPadding=C.padding,k=M?M[1]+M[3]:0,P=b.font=C.font||t.font;b.contentHeight=Wf(P);var R=We(C.height,b.contentHeight);if(b.innerHeight=R,M&&(R+=M[0]+M[2]),b.height=R,b.lineHeight=_a(C.lineHeight,t.lineHeight,R),b.align=C&&C.align||t.align,b.verticalAlign=C&&C.verticalAlign||"middle",v&&i!=null&&d+b.lineHeight>i){_>0?(y.tokens=y.tokens.slice(0,_),g(y,w,x),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m);break t}var j=C.width,X=j==null||j==="auto";if(typeof j=="string"&&j.charAt(j.length-1)==="%")b.percentWidth=j,c.push(b),b.contentWidth=_i(b.text,P);else{if(X){var st=C.backgroundColor,dt=st&&st.image;dt&&(dt=F3(dt),Kf(dt)&&(b.width=Math.max(b.width,dt.width*R/dt.height)))}var xt=p&&n!=null?n-w:null;xt!=null&&xt<b.width?!X||xt<k?(b.text="",b.width=b.contentWidth=0):(b.text=W3(b.text,xt-k,P,t.ellipsis,{minChar:t.truncateMinChar}),b.width=b.contentWidth=_i(b.text,P)):b.contentWidth=_i(b.text,P)}b.width+=k,w+=b.width,C&&(x=Math.max(x,b.lineHeight))}g(y,w,x)}e.outerWidth=e.width=We(n,h),e.outerHeight=e.height=We(i,d),e.contentHeight=d,e.contentWidth=h,f&&(e.outerWidth+=f[1]+f[3],e.outerHeight+=f[0]+f[2]);for(var m=0;m<c.length;m++){var b=c[m],Rt=b.percentWidth;b.width=parseInt(Rt,10)/100*e.width}return e}function J0(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,c,d;if(n){var h=o.padding,f=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var p=ea(o.width,n.width)+f;s.length>0&&p+n.accumWidth>n.width&&(c=t.split("\n"),u=!0),n.accumWidth=p}else{var v=L_(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+f,d=v.linesWidths,c=v.lines}}else c=t.split("\n");for(var g=0;g<c.length;g++){var m=c[g],y=new U3;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=d?d[g]:_i(m,l),!g&&!u){var x=(s[s.length-1]||(s[0]=new E_)).tokens,w=x.length;w===1&&x[0].isLineHolder?x[0]=y:(m||!w||a)&&x.push(y)}else s.push(new E_([y]))}}function X3(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Z3=ba(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function $3(r){return X3(r)?!!Z3[r]:!0}function L_(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<r.length;d++){var h=r.charAt(d);if(h==="\n"){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var f=_i(h,t),p=n?!1:!$3(h);if(a.length?c+f>e:i+c+f>e){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=f)):p?(a.push(l),o.push(u),l=h,u=f):(a.push(h),o.push(f));continue}c+=f,p?(l+=h,u+=f):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Q0="__zr_style_"+Math.round(Math.random()*10),Js={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Yf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Js[Q0]=!0;var R_=["z","z2","invisible"],J3=["invisible"],Q3=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=nr(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&q3(this,e,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Xe(0,0,0,0)),n?Xe.applyTransform(e,i,n):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Xe(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:ie(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Jc,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Jc)},t.prototype.styleUpdated=function(){this.__dirty&=~Jc},t.prototype.createStyle=function(e){return gf(Js,e)},t.prototype.useStyle=function(e){e[Q0]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Q0]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,R_)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=nr(c),h=0;h<d.length;h++){var f=d[h];f in u&&(u[f]=u[f],this.style[f]=c[f])}for(var p=nr(u),h=0;h<p.length;h++){var f=p[h];this.style[f]=this.style[f]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?J3:R_,h=0;h<v.length;h++){var f=v[h];n&&n[f]!=null?this[f]=n[f]:l&&i[f]!=null&&(this[f]=i[f])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return ie(e,n),e},t.prototype.getAnimationStyleProps=function(){return Yf},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=bi|Jc}(),t}(i_),q0=new Xe(0,0,0,0),tm=new Xe(0,0,0,0);function q3(r,t,e){return q0.copy(r.getBoundingRect()),r.transform&&q0.applyTransform(r.transform),tm.width=t,tm.height=e,!q0.intersect(tm)}const Li=Q3;var ii=Math.min,ai=Math.max,em=Math.sin,rm=Math.cos,Qs=Math.PI*2,Xf=Os(),Zf=Os(),$f=Os();function Jf(r,t,e){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],i=ii(i,n[0]),a=ai(a,n[0]),o=ii(o,n[1]),s=ai(s,n[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function O_(r,t,e,n,i,a){i[0]=ii(r,e),i[1]=ii(t,n),a[0]=ai(r,e),a[1]=ai(t,n)}var N_=[],B_=[];function t4(r,t,e,n,i,a,o,s,l,u){var c=Ib,d=pn,h=c(r,e,i,o,N_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<h;f++){var p=d(r,e,i,o,N_[f]);l[0]=ii(p,l[0]),u[0]=ai(p,u[0])}h=c(t,n,a,s,B_);for(var f=0;f<h;f++){var v=d(t,n,a,s,B_[f]);l[1]=ii(v,l[1]),u[1]=ai(v,u[1])}l[0]=ii(r,l[0]),u[0]=ai(r,u[0]),l[0]=ii(o,l[0]),u[0]=ai(o,u[0]),l[1]=ii(t,l[1]),u[1]=ai(t,u[1]),l[1]=ii(s,l[1]),u[1]=ai(s,u[1])}function e4(r,t,e,n,i,a,o,s){var l=kb,u=Sn,c=ai(ii(l(r,e,i),1),0),d=ai(ii(l(t,n,a),1),0),h=u(r,e,i,c),f=u(t,n,a,d);o[0]=ii(r,i,h),o[1]=ii(t,a,f),s[0]=ai(r,i,h),s[1]=ai(t,a,f)}function r4(r,t,e,n,i,a,o,s,l){var u=jo,c=Go,d=Math.abs(i-a);if(d%Qs<1e-4&&d>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Xf[0]=rm(i)*e+r,Xf[1]=em(i)*n+t,Zf[0]=rm(a)*e+r,Zf[1]=em(a)*n+t,u(s,Xf,Zf),c(l,Xf,Zf),i=i%Qs,i<0&&(i=i+Qs),a=a%Qs,a<0&&(a=a+Qs),i>a&&!o?a+=Qs:i<a&&o&&(i+=Qs),o){var h=a;a=i,i=h}for(var f=0;f<a;f+=Math.PI/2)f>i&&($f[0]=rm(f)*e+r,$f[1]=em(f)*n+t,u(s,$f,s),c(l,$f,l))}var Rr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qs=[],tl=[],ka=[],$o=[],Pa=[],Ea=[],nm=Math.min,im=Math.max,el=Math.cos,rl=Math.sin,uo=Math.abs,am=Math.PI,Jo=am*2,om=typeof Float32Array<"u",pd=[];function sm(r){var t=Math.round(r/am*1e8)/1e8;return t%2*am}function lm(r,t){var e=sm(r[0]);e<0&&(e+=Jo);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Jo?i=e+Jo:t&&e-i>=Jo?i=e-Jo:!t&&e>i?i=e+(Jo-sm(e-i)):t&&e<i&&(i=e-(Jo-sm(i-e))),r[0]=e,r[1]=i}var n4=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=uo(n/Ff/t)||0,this._uy=uo(n/Ff/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Rr.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=uo(t-this._xi),i=uo(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Rr.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(Rr.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Rr.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),pd[0]=i,pd[1]=a,lm(pd,o),i=pd[0],a=pd[1];var s=a-i;return this.addData(Rr.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=el(a)*n+t,this._yi=rl(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Rr.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Rr.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&om&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();om&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var d=0;d<arguments.length;d++)c[this._len++]=arguments[d]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,om&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ka[0]=ka[1]=Pa[0]=Pa[1]=Number.MAX_VALUE,$o[0]=$o[1]=Ea[0]=Ea[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case Rr.M:e=i=t[o++],n=a=t[o++],Pa[0]=i,Pa[1]=a,Ea[0]=i,Ea[1]=a;break;case Rr.L:O_(e,n,t[o],t[o+1],Pa,Ea),e=t[o++],n=t[o++];break;case Rr.C:t4(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Pa,Ea),e=t[o++],n=t[o++];break;case Rr.Q:e4(e,n,t[o++],t[o++],t[o],t[o+1],Pa,Ea),e=t[o++],n=t[o++];break;case Rr.A:var u=t[o++],c=t[o++],d=t[o++],h=t[o++],f=t[o++],p=t[o++]+f;o+=1;var v=!t[o++];l&&(i=el(f)*d+u,a=rl(f)*h+c),r4(u,c,d,h,f,p,v,Pa,Ea),e=el(p)*d+u,n=rl(p)*h+c;break;case Rr.R:i=e=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];O_(i,a,i+g,a+m,Pa,Ea);break;case Rr.Z:e=i,n=a;break}jo(ka,ka,Pa),Go($o,$o,Ea)}return o===0&&(ka[0]=ka[1]=$o[0]=$o[1]=0),new Xe(ka[0],ka[1],$o[0]-ka[0],$o[1]-ka[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,d=0,h=0;h<e;){var f=t[h++],p=h===1;p&&(a=t[h],o=t[h+1],s=a,l=o);var v=-1;switch(f){case Rr.M:a=s=t[h++],o=l=t[h++];break;case Rr.L:{var g=t[h++],m=t[h++],y=g-a,x=m-o;(uo(y)>n||uo(x)>i||h===e-1)&&(v=Math.sqrt(y*y+x*x),a=g,o=m);break}case Rr.C:{var w=t[h++],_=t[h++],g=t[h++],m=t[h++],b=t[h++],C=t[h++];v=vB(a,o,w,_,g,m,b,C,10),a=b,o=C;break}case Rr.Q:{var w=t[h++],_=t[h++],g=t[h++],m=t[h++];v=mB(a,o,w,_,g,m,10),a=g,o=m;break}case Rr.A:var M=t[h++],k=t[h++],P=t[h++],R=t[h++],j=t[h++],X=t[h++],st=X+j;h+=1,p&&(s=el(j)*P+M,l=rl(j)*R+k),v=im(P,R)*nm(Jo,Math.abs(X)),a=el(st)*P+M,o=rl(st)*R+k;break;case Rr.R:{s=a=t[h++],l=o=t[h++];var dt=t[h++],xt=t[h++];v=dt*2+xt*2;break}case Rr.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[d++]=v,c+=v)}return this._pathLen=c,c},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,d,h,f=e<1,p,v,g=0,m=0,y,x=0,w,_;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=e*v,!y)))t:for(var b=0;b<o;){var C=n[b++],M=b===1;switch(M&&(u=n[b],c=n[b+1],s=u,l=c),C!==Rr.L&&x>0&&(t.lineTo(w,_),x=0),C){case Rr.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case Rr.L:{d=n[b++],h=n[b++];var k=uo(d-u),P=uo(h-c);if(k>i||P>a){if(f){var R=p[m++];if(g+R>y){var j=(y-g)/R;t.lineTo(u*(1-j)+d*j,c*(1-j)+h*j);break t}g+=R}t.lineTo(d,h),u=d,c=h,x=0}else{var X=k*k+P*P;X>x&&(w=d,_=h,x=X)}break}case Rr.C:{var st=n[b++],dt=n[b++],xt=n[b++],Rt=n[b++],wt=n[b++],Lt=n[b++];if(f){var R=p[m++];if(g+R>y){var j=(y-g)/R;Yo(u,st,xt,wt,j,qs),Yo(c,dt,Rt,Lt,j,tl),t.bezierCurveTo(qs[1],tl[1],qs[2],tl[2],qs[3],tl[3]);break t}g+=R}t.bezierCurveTo(st,dt,xt,Rt,wt,Lt),u=wt,c=Lt;break}case Rr.Q:{var st=n[b++],dt=n[b++],xt=n[b++],Rt=n[b++];if(f){var R=p[m++];if(g+R>y){var j=(y-g)/R;Qc(u,st,xt,j,qs),Qc(c,dt,Rt,j,tl),t.quadraticCurveTo(qs[1],tl[1],qs[2],tl[2]);break t}g+=R}t.quadraticCurveTo(st,dt,xt,Rt),u=xt,c=Rt;break}case Rr.A:var Ft=n[b++],Kt=n[b++],Ut=n[b++],Bt=n[b++],Gt=n[b++],Qt=n[b++],re=n[b++],se=!n[b++],le=Ut>Bt?Ut:Bt,me=uo(Ut-Bt)>.001,ye=Gt+Qt,ue=!1;if(f){var R=p[m++];g+R>y&&(ye=Gt+Qt*(y-g)/R,ue=!0),g+=R}if(me&&t.ellipse?t.ellipse(Ft,Kt,Ut,Bt,re,Gt,ye,se):t.arc(Ft,Kt,le,Gt,ye,se),ue)break t;M&&(s=el(Gt)*Ut+Ft,l=rl(Gt)*Bt+Kt),u=el(ye)*Ut+Ft,c=rl(ye)*Bt+Kt;break;case Rr.R:s=u=n[b],l=c=n[b+1],d=n[b++],h=n[b++];var fe=n[b++],Ie=n[b++];if(f){var R=p[m++];if(g+R>y){var Me=y-g;t.moveTo(d,h),t.lineTo(d+nm(Me,fe),h),Me-=fe,Me>0&&t.lineTo(d+fe,h+nm(Me,Ie)),Me-=Ie,Me>0&&t.lineTo(d+im(fe-Me,0),h+Ie),Me-=fe,Me>0&&t.lineTo(d,h+im(Ie-Me,0));break t}g+=R}t.rect(d,h,fe,Ie);break;case Rr.Z:if(f){var R=p[m++];if(g+R>y){var j=(y-g)/R;t.lineTo(u*(1-j)+s*j,c*(1-j)+l*j);break t}g+=R}t.closePath(),u=s,c=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Rr,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const La=n4;function Qo(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var c=l*a-o+u,d=c*c/(l*l+1);return d<=s/2*s/2}function i4(r,t,e,n,i,a,o,s,l,u,c){if(l===0)return!1;var d=l;if(c>t+d&&c>n+d&&c>a+d&&c>s+d||c<t-d&&c<n-d&&c<a-d&&c<s-d||u>r+d&&u>e+d&&u>i+d&&u>o+d||u<r-d&&u<e-d&&u<i-d&&u<o-d)return!1;var h=Db(r,t,e,n,i,a,o,s,u,c,null);return h<=d/2}function V_(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var c=Pb(r,t,e,n,i,a,s,l,null);return c<=u/2}var z_=Math.PI*2;function Ci(r){return r%=z_,r<0&&(r+=z_),r}var vd=Math.PI*2;function a4(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>e||c+u<e)return!1;if(Math.abs(n-i)%vd<1e-4)return!0;if(a){var d=n;n=Ci(i),i=Ci(d)}else n=Ci(n),i=Ci(i);n>i&&(i+=vd);var h=Math.atan2(l,s);return h<0&&(h+=vd),h>=n&&h<=i||h+vd>=n&&h+vd<=i}function co(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var qo=La.CMD,nl=Math.PI*2,o4=1e-4;function s4(r,t){return Math.abs(r-t)<o4}var Un=[-1,-1,-1],Ri=[-1,-1];function l4(){var r=Ri[0];Ri[0]=Ri[1],Ri[1]=r}function u4(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=Df(t,n,a,s,u,Un);if(c===0)return 0;for(var d=0,h=-1,f=void 0,p=void 0,v=0;v<c;v++){var g=Un[v],m=g===0||g===1?.5:1,y=pn(r,e,i,o,g);y<l||(h<0&&(h=Ib(t,n,a,s,Ri),Ri[1]<Ri[0]&&h>1&&l4(),f=pn(t,n,a,s,Ri[0]),h>1&&(p=pn(t,n,a,s,Ri[1]))),h===2?g<Ri[0]?d+=f<t?m:-m:g<Ri[1]?d+=p<f?m:-m:d+=s<p?m:-m:g<Ri[0]?d+=f<t?m:-m:d+=s<f?m:-m)}return d}function c4(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=gB(t,n,a,s,Un);if(l===0)return 0;var u=kb(t,n,a);if(u>=0&&u<=1){for(var c=0,d=Sn(t,n,a,u),h=0;h<l;h++){var f=Un[h]===0||Un[h]===1?.5:1,p=Sn(r,e,i,Un[h]);p<o||(Un[h]<u?c+=d<t?f:-f:c+=a<d?f:-f)}return c}else{var f=Un[0]===0||Un[0]===1?.5:1,p=Sn(r,e,i,Un[0]);return p<o?0:a<t?f:-f}}function d4(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Un[0]=-l,Un[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=nl-1e-4){n=0,i=nl;var c=a?1:-1;return o>=Un[0]+r&&o<=Un[1]+r?c:0}if(n>i){var d=n;n=i,i=d}n<0&&(n+=nl,i+=nl);for(var h=0,f=0;f<2;f++){var p=Un[f];if(p+r>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=nl+v),(v>=n&&v<=i||v+nl>=n&&v+nl<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),h+=c)}}return h}function H_(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,c=0,d=0,h,f,p=0;p<o;){var v=a[p++],g=p===1;switch(v===qo.M&&p>1&&(e||(s+=co(l,u,c,d,n,i))),g&&(l=a[p],u=a[p+1],c=l,d=u),v){case qo.M:c=a[p++],d=a[p++],l=c,u=d;break;case qo.L:if(e){if(Qo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=co(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qo.C:if(e){if(i4(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=u4(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qo.Q:if(e){if(V_(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=c4(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qo.A:var m=a[p++],y=a[p++],x=a[p++],w=a[p++],_=a[p++],b=a[p++];p+=1;var C=!!(1-a[p++]);h=Math.cos(_)*x+m,f=Math.sin(_)*w+y,g?(c=h,d=f):s+=co(l,u,h,f,n,i);var M=(n-m)*w/x+m;if(e){if(a4(m,y,w,_,_+b,C,t,M,i))return!0}else s+=d4(m,y,w,_,_+b,C,M,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*w+y;break;case qo.R:c=l=a[p++],d=u=a[p++];var k=a[p++],P=a[p++];if(h=c+k,f=d+P,e){if(Qo(c,d,h,d,t,n,i)||Qo(h,d,h,f,t,n,i)||Qo(h,f,c,f,t,n,i)||Qo(c,f,c,d,t,n,i))return!0}else s+=co(h,d,h,f,n,i),s+=co(c,f,c,d,n,i);break;case qo.Z:if(e){if(Qo(l,u,c,d,t,n,i))return!0}else s+=co(l,u,c,d,n,i);l=c,u=d;break}}return!e&&!s4(u,d)&&(s+=co(l,u,c,d,n,i)||0),s!==0}function h4(r,t,e){return H_(r,0,!1,t,e)}function f4(r,t,e,n){return H_(r,t,!0,e,n)}var Qf=Ne({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Js),p4={style:Ne({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Yf.style)},um=Aa.concat(["invisible","culling","z","z2","zlevel","parent"]),v4=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<um.length;++s)i[um[s]]=this[um[s]];i.__dirty|=bi}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=nr(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=e[o];o==="style"?this.style?ie(this.style,s):this.useStyle(s):o==="shape"?ie(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(_e(e)){var n=Ef(e,0);return n>.5?E0:n>.2?$B:L0}else if(e)return L0}return E0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(_e(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ef(e,0)<P0;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~bu},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new La(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&bu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,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)),f4(s,l/u,e,n)))return!0}if(this.hasFill())return h4(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:ie(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bu)},t.prototype.createStyle=function(e){return gf(Qf,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=ie({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=ie({},i.shape),ie(u,n.shape)):(u=ie({},a?this.shape:i.shape),ie(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=ie({},this.shape);for(var c={},d=nr(u),h=0;h<d.length;h++){var f=d[h];typeof u[f]=="object"?this.shape[f]=u[f]:c[f]=u[f]}this._transitionState(e,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return p4},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){Hr(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ve(e.style)},o.prototype.getDefaultShape=function(){return Ve(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=bi|Jc|bu}(),t}(Li);const rr=v4;var g4=Ne({strokeFirst:!0,font:Fo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Qf),F_=function(r){Hr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return gf(g4,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=sd(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Li);F_.prototype.type="tspan";const gd=F_;var m4=Ne({x:0,y:0},Js),y4={style:Ne({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Yf.style)};function x4(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var W_=function(r){Hr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return gf(m4,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=x4(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return y4},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Xe(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Li);W_.prototype.type="image";const Mn=W_;function S4(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>i&&(d=s+l,s*=i/d,l*=i/d),u+c>i&&(d=u+c,u*=i/d,c*=i/d),l+u>a&&(d=l+u,l*=a/d,u*=a/d),s+c>a&&(d=s+c,s*=a/d,c*=a/d),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+c,n+a),c!==0&&r.arc(e+c,n+a-c,c,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var ku=Math.round;function j_(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(ku(n*2)===ku(i*2)&&(r.x1=r.x2=il(n,s,!0)),ku(a*2)===ku(o*2)&&(r.y1=r.y2=il(a,s,!0))),r}}function G_(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=il(n,s,!0),r.y=il(i,s,!0),r.width=Math.max(il(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(il(i+o,s,!1)-r.y,o===0?0:1)),r}}function il(r,t,e){if(!t)return r;var n=ku(r*2);return(n+ku(t))%2===0?n/2:(n+(e?1:-1))/2}var w4=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),b4={},U_=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new w4},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=G_(b4,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?S4(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(rr);U_.prototype.type="rect";const or=U_;var K_={fill:"#000"},Y_=2,_4={style:Ne({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},Yf.style)},X_=function(r){Hr(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=K_,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,M4(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Xe(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||K_},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return ie(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=nr(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},ie(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return _4},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||Fo,i=e.padding,a=nC(e),o=G3(a,e),s=cm(e),l=!!e.backgroundColor,u=o.outerHeight,c=o.outerWidth,d=o.contentWidth,h=o.lines,f=o.lineHeight,p=this._defaultStyle,v=e.x||0,g=e.y||0,m=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",x=v,w=Au(g,o.contentHeight,y);if(s||i){var _=ld(v,c,m),b=Au(g,u,y);s&&this._renderBackground(e,e,_,b,c,u)}w+=f/2,i&&(x=rC(v,m,i),y==="top"?w+=i[0]:y==="bottom"&&(w-=i[2]));for(var C=0,M=!1,k=eC("fill"in e?e.fill:(M=!0,p.fill)),P=tC("stroke"in e?e.stroke:!l&&(!p.autoStroke||M)?(C=Y_,p.stroke):null),R=e.textShadowBlur>0,j=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),X=o.calculatedLineHeight,st=0;st<h.length;st++){var dt=this._getOrCreateChild(gd),xt=dt.createStyle();dt.useStyle(xt),xt.text=h[st],xt.x=x,xt.y=w,m&&(xt.textAlign=m),xt.textBaseline="middle",xt.opacity=e.opacity,xt.strokeFirst=!0,R&&(xt.shadowBlur=e.textShadowBlur||0,xt.shadowColor=e.textShadowColor||"transparent",xt.shadowOffsetX=e.textShadowOffsetX||0,xt.shadowOffsetY=e.textShadowOffsetY||0),xt.stroke=P,xt.fill=k,P&&(xt.lineWidth=e.lineWidth||C,xt.lineDash=e.lineDash,xt.lineDashOffset=e.lineDashOffset||0),xt.font=n,J_(xt,e),w+=f,j&&dt.setBoundingRect(new Xe(ld(xt.x,e.width,xt.textAlign),Au(xt.y,X,xt.textBaseline),d,X))}},t.prototype._updateRichTexts=function(){var e=this.style,n=nC(e),i=Y3(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,c=e.y||0,d=this._defaultStyle,h=e.align||d.align,f=e.verticalAlign||d.verticalAlign,p=ld(u,o,h),v=Au(c,s,f),g=p,m=v;l&&(g+=l[3],m+=l[0]);var y=g+a;cm(e)&&this._renderBackground(e,e,p,v,o,s);for(var x=!!e.backgroundColor,w=0;w<i.lines.length;w++){for(var _=i.lines[w],b=_.tokens,C=b.length,M=_.lineHeight,k=_.width,P=0,R=g,j=y,X=C-1,st=void 0;P<C&&(st=b[P],!st.align||st.align==="left");)this._placeToken(st,e,M,m,R,"left",x),k-=st.width,R+=st.width,P++;for(;X>=0&&(st=b[X],st.align==="right");)this._placeToken(st,e,M,m,j,"right",x),k-=st.width,j-=st.width,X--;for(R+=(a-(R-g)-(y-j)-k)/2;P<=X;)st=b[P],this._placeToken(st,e,M,m,R+st.width/2,"center",x),R+=st.width,P++;m+=M}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var c=e.verticalAlign,d=a+i/2;c==="top"?d=a+e.height/2:c==="bottom"&&(d=a+i-e.height/2);var h=!e.isLineHolder&&cm(u);h&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,d-e.height/2,e.width,e.height);var f=!!u.backgroundColor,p=e.textPadding;p&&(o=rC(o,s,p),d-=e.height/2-p[0]-e.innerHeight/2);var v=this._getOrCreateChild(gd),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,w=eC("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=tC("stroke"in u?u.stroke:"stroke"in n?n.stroke:!f&&!l&&(!m.autoStroke||y)?(x=Y_,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=d,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=e.font||Fo,g.opacity=_a(u.opacity,n.opacity,1),J_(g,u),_&&(g.lineWidth=_a(u.lineWidth,n.lineWidth,x),g.lineDash=We(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=_),w&&(g.fill=w);var C=e.contentWidth,M=e.contentHeight;v.setBoundingRect(new Xe(ld(g.x,C,g.textAlign),Au(g.y,M,g.textBaseline),C,M))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,f=e.borderRadius,p=this,v,g;if(h||e.lineHeight||u&&c){v=this._getOrCreateChild(or),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=f,v.dirtyShape()}if(h){var y=v.style;y.fill=l||null,y.fillOpacity=We(e.fillOpacity,1)}else if(d){g=this._getOrCreateChild(Mn),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=We(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(v||g).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=_a(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return Q_(e)&&(n=[e.fontStyle,e.fontWeight,$_(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Qi(n)||e.textFont||e.font},t}(Li),C4={left:!0,right:1,center:1},T4={top:1,bottom:1,middle:1},Z_=["fontStyle","fontWeight","fontSize","fontFamily"];function $_(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Ng+"px":r+"px"}function J_(r,t){for(var e=0;e<Z_.length;e++){var n=Z_[e],i=t[n];i!=null&&(r[n]=i)}}function Q_(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function M4(r){return q_(r),U(r.rich,q_),r}function q_(r){if(r){r.font=X_.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||C4[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||T4[e]?e:"top";var n=r.padding;n&&(r.padding=jg(r.padding))}}function tC(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function eC(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function rC(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function nC(r){var t=r.text;return t!=null&&(t+=""),t}function cm(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const ar=X_;var He=cr(),dm=function(r,t,e,n){if(n){var i=He(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=He(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},iC=1,aC={},oC=cr(),hm=cr(),fm=0,md=1,qf=2,Kn=["emphasis","blur","select"],yd=["normal","emphasis","blur","select"],Pu=10,A4=9,al="highlight",tp="downplay",xd="select",ep="unselect",Sd="toggleSelect";function Eu(r){return r!=null&&r!=="none"}function rp(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function sC(r){rp(r,"emphasis",qf)}function lC(r){r.hoverState===qf&&rp(r,"normal",fm)}function pm(r){rp(r,"blur",md)}function uC(r){r.hoverState===md&&rp(r,"normal",fm)}function I4(r){r.selected=!0}function D4(r){r.selected=!1}function cC(r,t,e){t(r,e)}function ho(r,t,e){cC(r,t,e),r.isGroup&&r.traverse(function(n){cC(n,t,e)})}function np(r,t){switch(t){case"emphasis":r.hoverState=qf;break;case"normal":r.hoverState=fm;break;case"blur":r.hoverState=md;break;case"select":r.selected=!0}}function Ost(r){r.isGroup?r.traverse(function(t){t.clearStates()}):r.clearStates()}function k4(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function P4(r,t,e,n){var i=e&&tr(e,"select")>=0,a=!1;if(r instanceof rr){var o=oC(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Eu(s)||Eu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=ie({},n),u=ie({},u),u.fill=s):!Eu(u.fill)&&Eu(s)?(a=!0,n=ie({},n),u=ie({},u),u.fill=m0(s)):!Eu(u.stroke)&&Eu(l)&&(a||(n=ie({},n),u=ie({},u)),u.stroke=m0(l)),n.style=u}}if(n&&n.z2==null){a||(n=ie({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c!=null?c:Pu)}return n}function E4(r,t,e){if(e&&e.z2==null){e=ie({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:A4)}return e}function L4(r,t,e){var n=tr(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:k4(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=ie({},e),o=ie({opacity:n?i:a.opacity*.1},o),e.style=o),e}function vm(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return P4(this,r,t,e);if(r==="blur")return L4(this,r,e);if(r==="select")return E4(this,r,e)}return e}function ol(r){r.stateProxy=vm;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=vm),e&&(e.stateProxy=vm)}function dC(r,t){!gC(r,t)&&!r.__highByOuter&&ho(r,sC)}function hC(r,t){!gC(r,t)&&!r.__highByOuter&&ho(r,lC)}function fo(r,t){r.__highByOuter|=1<<(t||0),ho(r,sC)}function po(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ho(r,lC)}function fC(r){ho(r,pm)}function gm(r){ho(r,uC)}function pC(r){ho(r,I4)}function vC(r){ho(r,D4)}function gC(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function mC(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=hm(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){uC(u)}),s&&e.push(a)),o.isBlured=!1}),U(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function mm(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,c){for(var d=0;d<c.length;d++){var h=u.getItemGraphicEl(c[d]);h&&gm(h)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,d=u.coordinateSystem;d&&d.master&&(d=d.master);var h=d&&s?d===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!h||t==="series"&&c)){var f=n.getViewOfSeriesModel(u);if(f.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||pm(g)}),En(t))a(u.getData(),t);else if(Be(t))for(var p=nr(t),v=0;v<p.length;v++)a(u.getData(p[v]),t[p[v]]);l.push(u),hm(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var d=n.getViewOfComponentModel(c);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,i)}})}}function ym(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){hm(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){pm(a)})}}}function R4(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=Xs(i,t);a=(ce(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=He(o);mm(n,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),d=r.get(["emphasis","blurScope"]);c!=null&&mm(n,c,d,e)}}}function xm(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(He(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function O4(r,t,e){var n=He(r),i=xm(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&ym(n.componentMainType,n.componentIndex,e),U(a,function(s){return dC(s,t)})):(mm(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&ym(n.componentMainType,n.componentIndex,e),dC(r,t))}function N4(r,t,e){mC(e);var n=He(r),i=xm(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?U(i,function(a){return hC(a,t)}):hC(r,t)}function B4(r,t,e){if(wm(t)){var n=t.dataType,i=r.getData(n),a=Xs(i,t);ce(a)||(a=[a]),r[t.type===Sd?"toggleSelect":t.type===xd?"select":"unselect"](a,n)}}function yC(r){var t=r.getAllData();U(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?pC(a):vC(a)})})}function V4(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();U(n,function(i){var a=i.data,o=i.type,s=e.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:e.seriesIndex};o!=null&&(l.dataType=o),t.push(l)}})}),t}function vo(r,t,e){sl(r,!0),ho(r,ol),Sm(r,t,e)}function z4(r){sl(r,!1)}function Xr(r,t,e,n){n?z4(r):vo(r,t,e)}function Sm(r,t,e){var n=He(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var xC=["emphasis","blur","select"],H4={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function An(r,t,e,n){e=e||"itemStyle";for(var i=0;i<xC.length;i++){var a=xC[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[H4[e]]()}}function sl(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function wd(r){return!!(r&&r.__highDownDispatcher)}function F4(r,t,e){var n=He(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function W4(r){var t=aC[r];return t==null&&iC<=32&&(t=aC[r]=iC++),t}function wm(r){var t=r.type;return t===xd||t===ep||t===Sd}function SC(r){var t=r.type;return t===al||t===tp}function j4(r){var t=oC(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var wC=cr();function Lu(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,d=void 0;n?(u=We(n.duration,200),c=We(n.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(d=a.delay)),Re(d)&&(d=d(e,i)),Re(u)&&(u=u(e));var h={duration:u||0,delay:d,easing:c};return h}else return null}function bm(r,t,e,n,i,a,o){var s=!1,l;Re(i)?(o=a,a=i,i=null):Be(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var c=Lu(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d=c.duration,h=c.delay,f=c.easing,p={duration:d,delay:h||0,easing:f,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function lr(r,t,e,n,i,a){bm("update",r,t,e,n,i,a)}function Fr(r,t,e,n,i,a){bm("enter",r,t,e,n,i,a)}function Ru(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function ts(r,t,e,n,i,a){Ru(r)||bm("leave",r,t,e,n,i,a)}function bC(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),ts(r,{style:{opacity:0}},t,e,n)}function bd(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||bC(i,t,e,n)}):bC(r,t,e,n)}function na(r){wC(r).oldStyle=r.style}function G4(r){return wC(r).oldStyle}var ip={};function _C(r,t){for(var e=0;e<Kn.length;e++){var n=Kn[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function _m(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=Re(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<Kn.length;u++){var c=Kn[u],d=t[c];l[c]=We(n?n.getFormattedLabel(i,c,null,a,d&&d.get("formatter")):null,s)}return l}function In(r,t,e,n){e=e||ip;for(var i=r instanceof ar,a=!1,o=0;o<yd.length;o++){var s=t[yd[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new ar,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=_m(e,t),c=t.normal,d=!!c.getShallow("show"),h=Or(c,n&&n.normal,e,!1,!i);h.text=u.normal,i||r.setTextConfig(ap(c,e,!1));for(var o=0;o<Kn.length;o++){var f=Kn[o],s=t[f];if(s){var p=l.ensureState(f),v=!!We(s.getShallow("show"),d);if(v!==d&&(p.ignore=!v),p.style=Or(s,n&&n[f],e,!0,!i),p.style.text=u[f],!i){var g=r.ensureState(f);g.textConfig=ap(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!d,l.useStyle(h),l.dirty(),e.enableTextSetter&&(Ou(l).setLabelText=function(m){var y=_m(e,t,m);_C(l,y)})}else l&&(l.ignore=!0);r.dirty()}function vn(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<Kn.length;n++){var i=Kn[n];e[i]=r.getModel([i,t])}return e}function Or(r,t,e,n,i){var a={};return U4(a,r,e,n,i),t&&ie(a,t),a}function ap(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=We(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function U4(r,t,e,n,i){e=e||ip;var a=t.ecModel,o=a&&a.option.textStyle,s=K4(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);AC(l[u]={},c,o,e,n,i,!1,!0)}}l&&(r.rich=l);var d=t.get("overflow");d&&(r.overflow=d);var h=t.get("minMargin");h!=null&&(r.margin=h),AC(r,t,o,e,n,i,!0,!1)}function K4(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ip).rich;if(e){t=t||{};for(var n=nr(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var CC=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TC=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],MC=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function AC(r,t,e,n,i,a,o,s){e=!i&&e||ip;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=We(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var h=We(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var f=We(t.getShallow("textBorderType"),e.textBorderType);f!=null&&(r.lineDash=f);var p=We(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!i&&d==null&&!s&&(d=n&&n.defaultOpacity),d!=null&&(r.opacity=d),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var v=0;v<CC.length;v++){var g=CC[v],m=We(t.getShallow(g),e[g]);m!=null&&(r[g]=m)}for(var v=0;v<TC.length;v++){var g=TC[v],m=t.getShallow(g);m!=null&&(r[g]=m)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!n.disableBox){for(var v=0;v<MC.length;v++){var g=MC[v],m=t.getShallow(g);m!=null&&(r[g]=m)}var x=t.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function Cm(r,t){var e=t&&t.getModel("textStyle");return Qi([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ou=cr();function IC(r,t,e,n){if(r){var i=Ou(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function DC(r,t,e,n,i){var a=Ou(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=We(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var d=M_(e,a.precision,s,l,c);a.interpolatedValue=c===1?null:d;var h=_m({labelDataIndex:t,labelFetcher:i,defaultText:o?o(d):d+""},a.statesModels,d);_C(r,h)}r.percent=0,(a.prevValue==null?Fr:lr)(r,{percent:1},n,t,null,u)}var Y4=["textStyle","color"],Tm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Mm=new ar,X4=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Y4):null)},r.prototype.getFont=function(){return Cm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Tm.length;n++)e[Tm[n]]=this.getShallow(Tm[n]);return Mm.useStyle(e),Mm.update(),Mm.getBoundingRect()},r}();const Z4=X4;var kC=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$4=$s(kC),J4=function(){function r(){}return r.prototype.getLineStyle=function(t){return $4(this,t)},r}(),PC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Q4=$s(PC),q4=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return Q4(this,t,e)},r}(),ll=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},r.prototype.mergeOption=function(t,e){Je(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(Ve(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!pr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();Y0(ll),O3(ll),en(ll,J4),en(ll,q4),en(ll,H3),en(ll,Z4);const Er=ll;var tV=Math.round(Math.random()*10);function Nu(r){return[r||"",tV++].join("_")}function eV(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=Da(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=Da(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function rV(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),c=u.graph,d=u.noEntryList,h={};for(U(a,function(y){h[y]=!0});d.length;){var f=d.pop(),p=c[f],v=!!h[f];v&&(s.call(l,f,p.originalDeps.slice()),delete h[f]),U(p.successor,v?m:g)}U(h,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&d.push(y)}function m(y){h[y]=!0,g(y)}};function e(a){var o={},s=[];return U(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),d=i(c,a);u.entryCount=d.length,u.entryCount===0&&s.push(l),U(d,function(h){tr(u.predecessor,h)<0&&u.predecessor.push(h);var f=n(o,h);tr(f.successor,h)<0&&f.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return U(a,function(l){tr(o,l)>=0&&s.push(l)}),s}}function es(r,t){return Je(Je({},r,!0),t,!0)}const nV={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},iV={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var op="ZH",Am="EN",Bu=Am,sp={},Im={},EC=pr.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bu).toUpperCase();return r.indexOf(op)>-1?op:Bu}():Bu;function LC(r,t){r=r.toUpperCase(),Im[r]=new Er(t),sp[r]=t}function aV(r){if(_e(r)){var t=sp[r.toUpperCase()]||{};return r===op||r===Am?Ve(t):Je(Ve(t),Ve(sp[Bu]),!1)}else return Je(Ve(r),Ve(sp[Bu]),!1)}function Dm(r){return Im[r]}function oV(){return Im[Bu]}LC(Am,nV),LC(op,iV);var km=1e3,Pm=km*60,_d=Pm*60,Oi=_d*24,RC=Oi*365,Cd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},lp="{yyyy}-{MM}-{dd}",OC={year:"{yyyy}",month:"{yyyy}-{MM}",day:lp,hour:lp+" "+Cd.hour,minute:lp+" "+Cd.minute,second:lp+" "+Cd.second,millisecond:Cd.none},Em=["year","month","day","hour","minute","second","millisecond"],NC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Yn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Vu(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function sV(r){return r===Vu(r)}function lV(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function up(r,t,e,n){var i=ra(r),a=i[Lm(e)](),o=i[zu(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[cp(e)](),u=i["get"+(e?"UTC":"")+"Day"](),c=i[Td(e)](),d=(c-1)%12+1,h=i[dp(e)](),f=i[hp(e)](),p=i[fp(e)](),v=n instanceof Er?n:Dm(n||EC)||oV(),g=v.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),x=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Yn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Yn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Yn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Yn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Yn(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Yn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Yn(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Yn(p,3)).replace(/{S}/g,p+"")}function uV(r,t,e,n,i){var a=null;if(_e(e))a=e;else if(Re(e))a=e(r.value,t,{level:r.level});else{var o=ie({},Cd);if(r.level>0)for(var s=0;s<Em.length;++s)o[Em[s]]="{primary|"+o[Em[s]]+"}";var l=e?e.inherit===!1?e:Ne(e,o):o,u=BC(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=NC.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ce(a)){var d=r.level==null?0:r.level>=0?r.level:a.length+r.level;d=Math.min(d,a.length-1),a=a[d]}}return up(new Date(r.value),a,i,n)}function BC(r,t){var e=ra(r),n=e[zu(t)]()+1,i=e[cp(t)](),a=e[Td(t)](),o=e[dp(t)](),s=e[hp(t)](),l=e[fp(t)](),u=l===0,c=u&&s===0,d=c&&o===0,h=d&&a===0,f=h&&i===1,p=f&&n===1;return p?"year":f?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function VC(r,t,e){var n=vr(r)?ra(r):r;switch(t=t||BC(r,e),t){case"year":return n[Lm(e)]();case"half-year":return n[zu(e)]()>=6?1:0;case"quarter":return Math.floor((n[zu(e)]()+1)/4);case"month":return n[zu(e)]();case"day":return n[cp(e)]();case"half-day":return n[Td(e)]()/24;case"hour":return n[Td(e)]();case"minute":return n[dp(e)]();case"second":return n[hp(e)]();case"millisecond":return n[fp(e)]()}}function Lm(r){return r?"getUTCFullYear":"getFullYear"}function zu(r){return r?"getUTCMonth":"getMonth"}function cp(r){return r?"getUTCDate":"getDate"}function Td(r){return r?"getUTCHours":"getHours"}function dp(r){return r?"getUTCMinutes":"getMinutes"}function hp(r){return r?"getUTCSeconds":"getSeconds"}function fp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function cV(r){return r?"setUTCFullYear":"setFullYear"}function zC(r){return r?"setUTCMonth":"setMonth"}function HC(r){return r?"setUTCDate":"setDate"}function FC(r){return r?"setUTCHours":"setHours"}function WC(r){return r?"setUTCMinutes":"setMinutes"}function jC(r){return r?"setUTCSeconds":"setSeconds"}function GC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function UC(r){if(!v_(r))return _e(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function KC(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Hu=jg;function Rm(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Qi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ra(r):r;if(isNaN(+l)){if(s)return"-"}else return up(l,n,e)}if(t==="ordinal")return Fg(r)?i(r):vr(r)&&a(r)?r+"":"-";var u=lo(r);return a(u)?UC(u):Fg(r)?i(r):typeof r=="boolean"?r+"":"-"}var YC=["a","b","c","d","e","f","g"],Om=function(r,t){return"{"+r+(t==null?"":t)+"}"};function XC(r,t,e){ce(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=YC[a];r=r.replace(Om(o),Om(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Om(YC[l],s),e?ri(u):u)}return r}function dV(r,t,e){return U(t,function(n,i){r=r.replace("{"+i+"}",e?ri(n):n)}),r}function hV(r,t){var e=_e(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ri(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ri(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Nst(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r="MM-dd\nyyyy");var n=ra(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),d=n[i+"Milliseconds"]();return r=r.replace("MM",Yn(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Yn(a%100+"",2)).replace("dd",Yn(s,2)).replace("d",s).replace("hh",Yn(l,2)).replace("h",l).replace("mm",Yn(u,2)).replace("m",u).replace("ss",Yn(c,2)).replace("s",c).replace("SSS",Yn(d,3)),r}function fV(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function ul(r,t){return t=t||"transparent",_e(r)?r:Be(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function pp(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var vp=U,ZC=["left","right","top","bottom","width","height"],cl=[["width","left","right"],["height","top","bottom"]];function Nm(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),d=t.childAt(u+1),h=d&&d.getBoundingRect(),f,p;if(r==="horizontal"){var v=c.width+(h?-h.x+c.x:0);f=a+v,f>n||l.newline?(a=0,f=v,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+e,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=f+e:o=p+e)})}var dl=Nm,Bst=je(Nm,"vertical"),Vst=je(Nm,"horizontal");function pV(r,t,e){var n=t.width,i=t.height,a=xe(r.left,n),o=xe(r.top,i),s=xe(r.right,n),l=xe(r.bottom,i);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),e=Hu(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ln(r,t,e){e=Hu(e||0);var n=t.width,i=t.height,a=xe(r.left,n),o=xe(r.top,i),s=xe(r.right,n),l=xe(r.bottom,i),u=xe(r.width,n),c=xe(r.height,i),d=e[2]+e[0],h=e[1]+e[3],f=r.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-d-o),f!=null&&(isNaN(u)&&isNaN(c)&&(f>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-d),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-c/2-e[0];break;case"bottom":o=i-c-d;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-d-o-(l||0));var p=new Xe(a+e[3],o+e[0],u,c);return p.margin=e,p}function gp(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Xe(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=ln(Ne({width:u.width,height:u.height},t),e,n),h=o?d.x-u.x:0,f=s?d.y-u.y:0;return l==="raw"?(a.x=h,a.y=f):(a.x+=h,a.y+=f),a===r&&r.markRedraw(),!0}function vV(r,t){return r[cl[t][0]]!=null||r[cl[t][1]]!=null&&r[cl[t][2]]!=null}function Md(r){var t=r.layoutMode||r.constructor.layoutMode;return Be(t)?t:t?{type:t}:null}function rs(r,t,e){var n=e&&e.ignoreSize;!ce(n)&&(n=[n,n]);var i=o(cl[0],0),a=o(cl[1],1);u(cl[0],r,i),u(cl[1],r,a);function o(c,d){var h={},f=0,p={},v=0,g=2;if(vp(c,function(x){p[x]=r[x]}),vp(c,function(x){s(t,x)&&(h[x]=p[x]=t[x]),l(h,x)&&f++,l(p,x)&&v++}),n[d])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!f)return p;if(f>=g)return h;for(var m=0;m<c.length;m++){var y=c[m];if(!s(h,y)&&s(r,y)){h[y]=r[y];break}}return h}function s(c,d){return c.hasOwnProperty(d)}function l(c,d){return c[d]!=null&&c[d]!=="auto"}function u(c,d,h){vp(c,function(f){d[f]=h[f]})}}function Fu(r){return $C({},r)}function $C(r,t){return t&&r&&vp(ZC,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var gV=cr(),Wu=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Nu("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Md(this),a=i?Fu(e):{},o=n.getTheme();Je(e,o.get(this.mainType)),Je(e,this.getDefaultOption()),i&&rs(e,a,i)},t.prototype.mergeOption=function(e,n){Je(this.option,e,!0);var i=Md(this);i&&rs(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!E3(e))return e.defaultOption;var n=gV(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Je(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return fd(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Er);I_(Wu,Er),Uf(Wu),eV(Wu),rV(Wu,mV);function mV(r){var t=[];return U(Wu.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=de(t,function(e){return Da(e).main}),r!=="dataset"&&tr(t,"dataset")<=0&&t.unshift("dataset"),t}const gr=Wu;var JC="";typeof navigator<"u"&&(JC=navigator.platform||"");var ju="rgba(0, 0, 0, 0.2)";const yV={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ju,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ju,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ju,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ju,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ju,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ju,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:JC.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 QC=Pe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ni="original",Ln="arrayRows",Bi="objectRows",Ra="keyedColumns",go="typedArray",qC="unknown",Oa="column",Gu="row",Dn={Must:1,Might:2,Not:3},tT=cr();function xV(r){tT(r).datasetMap=Pe()}function eT(r,t,e){var n={},i=Vm(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=tT(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,c,d;r=r.slice(),U(r,function(v,g){var m=Be(v)?v:r[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,d=p(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});U(r,function(v,g){var m=v.name,y=p(v);if(c==null){var x=h.valueWayDim;f(n[m],x,y),f(o,x,y),h.valueWayDim+=y}else if(c===g)f(n[m],0,y),f(a,0,y);else{var x=h.categoryWayDim;f(n[m],x,y),f(o,x,y),h.categoryWayDim+=y}});function f(v,g,m){for(var y=0;y<m;y++)v.push(g+y)}function p(v){var g=v.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Bm(r,t,e){var n={},i=Vm(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Bi||a===Ra)&&U(o,function(c,d){(Be(c)?c.name:c)==="name"&&(s=d)});var l=function(){for(var c={},d={},h=[],f=0,p=Math.min(5,e);f<p;f++){var v=nT(t.data,a,t.seriesLayoutBy,o,t.startIndex,f);h.push(v);var g=v===Dn.Not;if(g&&c.v==null&&f!==s&&(c.v=f),(c.n==null||c.n===c.v||!g&&h[c.n]===Dn.Not)&&(c.n=f),m(c)&&h[c.n]!==Dn.Not)return c;g||(v===Dn.Might&&d.v==null&&f!==s&&(d.v=f),(d.n==null||d.n===d.v)&&(d.n=f))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(d)?d:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function Vm(r){var t=r.get("data",!0);if(!t)return fd(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},sn).models[0]}function SV(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:fd(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},sn).models}function rT(r,t){return nT(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function nT(r,t,e,n,i,a){var o,s=5;if(ei(r))return Dn.Not;var l,u;if(n){var c=n[a];Be(c)?(l=c.name,u=c.type):_e(c)&&(l=c)}if(u!=null)return u==="ordinal"?Dn.Must:Dn.Not;if(t===Ln){var d=r;if(e===Gu){for(var h=d[a],f=0;f<(h||[]).length&&f<s;f++)if((o=w(h[i+f]))!=null)return o}else for(var f=0;f<d.length&&f<s;f++){var p=d[i+f];if(p&&(o=w(p[a]))!=null)return o}}else if(t===Bi){var v=r;if(!l)return Dn.Not;for(var f=0;f<v.length&&f<s;f++){var g=v[f];if(g&&(o=w(g[l]))!=null)return o}}else if(t===Ra){var m=r;if(!l)return Dn.Not;var h=m[l];if(!h||ei(h))return Dn.Not;for(var f=0;f<h.length&&f<s;f++)if((o=w(h[f]))!=null)return o}else if(t===Ni)for(var y=r,f=0;f<y.length&&f<s;f++){var g=y[f],x=Du(g);if(!ce(x))return Dn.Not;if((o=w(x[a]))!=null)return o}function w(_){var b=_e(_);if(_!=null&&isFinite(_)&&_!=="")return b?Dn.Might:Dn.Not;if(b&&_!=="-")return Dn.Must}return Dn.Not}var zm=Pe();function wV(r,t){jn(zm.get(r)==null&&t),zm.set(r,t)}function bV(r,t,e){var n=zm.get(t);if(!n)return e;var i=n(r);if(!i)return e;if(0)var a;return e.concat(i)}var iT=cr(),_V=cr(),Hm=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=kr(this.get("color",!0)),a=this.get("colorLayer",!0);return aT(this,iT,i,a,t,e,n)},r.prototype.clearColorPalette=function(){TV(this,iT)},r}();function Fm(r,t,e,n){var i=kr(r.get(["aria","decal","decals"]));return aT(r,_V,i,null,t,e,n)}function CV(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function aT(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?e:CV(n,o);if(c=c||e,!(!c||!c.length)){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}function TV(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var mp,Ad,oT,sT="\0_ec_inner",MV=1,AV={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},zst={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},lT={};function Hst(r){each(r,function(t,e){if(!ComponentModel.hasClass(e)){var n=AV[e];n&&!lT[n]&&(error("Component "+e+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),lT[n]=!0)}})}var uT=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Er(a),this._locale=new Er(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=hT(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,hT(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?oT(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&U(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Pe(),u=n&&n.replaceMergeMainTypeMap;xV(this),U(e,function(d,h){d!=null&&(gr.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Ve(d):Je(i[h],d,!0))}),u&&u.each(function(d,h){gr.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),gr.topologicalTravel(s,gr.getAllClassMainTypes(),c,this);function c(d){var h=bV(this,d,kr(e[d])),f=a.get(d),p=f?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",v=__(f,h,p);_3(v,d,gr),i[d]=null,a.set(d,null),o.set(d,0);var g=[],m=[],y=0,x,w;U(v,function(_,b){var C=_.existing,M=_.newOption;if(!M)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var k=d==="series",P=gr.getClass(d,_.keyInfo.subType,!k);if(!P){if(0)var R,j;return}if(d==="tooltip"){if(x)return;x=!0}if(C&&C.constructor===P)C.name=_.keyInfo.name,C.mergeOption(M,this),C.optionUpdated(M,!1);else{var X=ie({componentIndex:b},_.keyInfo);C=new P(M,this,this,X),ie(C,X),_.brandNew&&(C.__requireNewView=!0),C.init(M,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),m.push(C),y++):(g.push(void 0),m.push(void 0))},this),i[d]=g,a.set(d,m),o.set(d,y),d==="series"&&mp(this)}this._seriesIndices||mp(this)},t.prototype.getOption=function(){var e=Ve(this.option);return U(e,function(n,i){if(gr.hasClass(i)){for(var a=kr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!dd(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[sT],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],U(kr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=cT("id",a,s):o!=null?l=cT("name",o,s):l=Ir(s,function(u){return!!u}),dT(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):Ir(this._componentsMap.get(i),function(u){return!!u});return l(dT(o,e));function s(u){var c=i+"Index",d=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[d]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[d],name:u[h]}:null}function l(u){return e.filter?Ir(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(Re(e)){var o=n,s=e;a.each(function(d,h){for(var f=0;d&&f<d.length;f++){var p=d[f];p&&s.call(o,h,p,p.componentIndex)}})}else for(var l=_e(e)?a.get(e):Be(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=dn(e,null);return Ir(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ir(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return Ir(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Ad(this),U(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){U(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){Ad(this),U(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return U(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return Ad(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Ad(this);var i=[];U(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Pe(i)},t.prototype.restoreData=function(e){mp(this);var n=this._componentsMap,i=[];n.each(function(a,o){gr.hasClass(o)&&i.push(o)}),gr.topologicalTravel(i,gr.getAllClassMainTypes(),function(a){U(n.get(a),function(o){o&&(a!=="series"||!IV(o,e))&&o.restoreData()})})},t.internalField=function(){mp=function(e){var n=e._seriesIndices=[];U(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=Pe(n)},Ad=function(e){},oT=function(e,n){e.option={},e.option[sT]=MV,e._componentsMap=Pe({series:[]}),e._componentsCount=Pe();var i=n.aria;Be(i)&&i.enabled==null&&(i.enabled=!0),DV(n,e._theme.option),Je(n,yV,!1),e._mergeOption(n,null)}}(),t}(Er);function IV(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function DV(r,t){var e=r.color&&!r.colorLayer;U(t,function(n,i){i==="colorLayer"&&e||gr.hasClass(i)||(typeof n=="object"?r[i]=r[i]?Je(r[i],n,!1):Ve(n):r[i]==null&&(r[i]=n))})}function cT(r,t,e){if(ce(t)){var n=Pe();return U(t,function(a){if(a!=null){var o=dn(a,null);o!=null&&n.set(a,!0)}}),Ir(e,function(a){return a&&n.get(a[r])})}else{var i=dn(t,null);return Ir(e,function(a){return a&&i!=null&&a[r]===i})}}function dT(r,t){return t.hasOwnProperty("subType")?Ir(r,function(e){return e&&e.subType===t.subType}):r}function hT(r){var t=Pe();return r&&U(kr(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}en(uT,Hm);const fT=uT;var kV=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],PV=function(){function r(t){U(kV,function(e){this[e]=Te(t[e],t)},this)}return r}();const pT=PV;var Wm={},EV=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];U(Wm,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){U(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Wm[t]=e},r.get=function(t){return Wm[t]},r}();const Id=EV;var LV=/^(min|max)?(.+)$/,RV=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(U(kr(t.series),function(o){o&&o.data&&ei(o.data)&&pf(o.data)}),U(kr(t.dataset),function(o){o&&o.source&&ei(o.source)&&pf(o.source)})),t=Ve(t);var i=this._optionBackup,a=OV(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Ve(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Ve(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)NV(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!VV(o,this._currentMediaIndices)&&(s=de(o,function(c){return Ve(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},r}();function OV(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,d=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||c)&&(r.options=r.media=null),a=r),c&&ce(u)&&U(u,function(f){f&&f.option&&(f.query?n.push(f):i||(i=f))}),h(a),U(l,function(f){return h(f)}),U(n,function(f){return h(f.option)});function h(f){U(t,function(p){p(f,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function NV(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return U(r,function(a,o){var s=o.match(LV);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();BV(n[u],a,l)||(i=!1)}}),i}function BV(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function VV(r,t){return r.join(",")===t.join(",")}const zV=RV;var ia=U,Dd=Be,vT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jm(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=vT.length;e<n;e++){var i=vT[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?Je(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?Je(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Rn(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,Ne(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function kd(r){Rn(r,"itemStyle"),Rn(r,"lineStyle"),Rn(r,"areaStyle"),Rn(r,"label"),Rn(r,"labelLine"),Rn(r,"upperLabel"),Rn(r,"edgeLabel")}function un(r,t){var e=Dd(r)&&r[t],n=Dd(e)&&e.textStyle;if(n)for(var i=0,a=b_.length;i<a;i++){var o=b_[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function Vi(r){r&&(kd(r),un(r,"label"),r.emphasis&&un(r.emphasis,"label"))}function HV(r){if(Dd(r)){jm(r),kd(r),un(r,"label"),un(r,"upperLabel"),un(r,"edgeLabel"),r.emphasis&&(un(r.emphasis,"label"),un(r.emphasis,"upperLabel"),un(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(jm(t),Vi(t));var e=r.markLine;e&&(jm(e),Vi(e));var n=r.markArea;n&&Vi(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!ei(a))for(var o=0;o<a.length;o++)Vi(a[o]);U(r.categories,function(u){kd(u)})}if(i&&!ei(i))for(var o=0;o<i.length;o++)Vi(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Vi(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)ce(l[o])?(Vi(l[o][0]),Vi(l[o][1])):Vi(l[o]);r.type==="gauge"?(un(r,"axisLabel"),un(r,"title"),un(r,"detail")):r.type==="treemap"?(Rn(r.breadcrumb,"itemStyle"),U(r.levels,function(u){kd(u)})):r.type==="tree"&&kd(r.leaves)}}function mo(r){return ce(r)?r:r?[r]:[]}function gT(r){return(ce(r)?r[0]:r)||{}}function FV(r,t){ia(mo(r.series),function(n){Dd(n)&&HV(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ia(e,function(n){ia(mo(r[n]),function(i){i&&(un(i,"axisLabel"),un(i.axisPointer,"label"))})}),ia(mo(r.parallel),function(n){var i=n&&n.parallelAxisDefault;un(i,"axisLabel"),un(i&&i.axisPointer,"label")}),ia(mo(r.calendar),function(n){Rn(n,"itemStyle"),un(n,"dayLabel"),un(n,"monthLabel"),un(n,"yearLabel")}),ia(mo(r.radar),function(n){un(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)}),ia(mo(r.geo),function(n){Dd(n)&&(Vi(n),ia(mo(n.regions),function(i){Vi(i)}))}),ia(mo(r.timeline),function(n){Vi(n),Rn(n,"label"),Rn(n,"itemStyle"),Rn(n,"controlStyle",!0);var i=n.data;ce(i)&&U(i,function(a){Be(a)&&(Rn(a,"label"),Rn(a,"itemStyle"))})}),ia(mo(r.toolbox),function(n){Rn(n,"iconStyle"),ia(n.feature,function(i){Rn(i,"iconStyle")})}),un(gT(r.axisPointer),"label"),un(gT(r.tooltip).axisPointer,"label")}function WV(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function jV(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=e)}function mT(r){r&&U(GV,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var GV=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],UV=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Gm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Pd(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Gm.length;e++){var n=Gm[e][1],i=Gm[e][0];t[n]!=null&&(t[i]=t[n])}}function yT(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function xT(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function KV(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function ST(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&ST(r[e].children,t)}function wT(r,t){FV(r,t),r.series=kr(r.series),U(r.series,function(e){if(Be(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),yT(e.label);var i=e.data;if(i&&!ei(i))for(var a=0;a<i.length;a++)yT(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=WV(e,"pointer.color");o!=null&&jV(e,"itemStyle.color",o)}else if(n==="bar"){Pd(e),Pd(e.backgroundStyle),Pd(e.emphasis);var i=e.data;if(i&&!ei(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Pd(i[a]),Pd(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),xT(e),ST(e.data,xT)}else n==="graph"||n==="sankey"?KV(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Ne(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),mT(e)}}),r.dataRange&&(r.visualMap=r.dataRange),U(UV,function(e){var n=r[e];n&&(ce(n)||(n=[n]),U(n,function(i){mT(i)}))})}function YV(r){var t=Pe();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(XV)}function XV(r){U(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,d){var h=o.get(t.stackedDimension,d);if(isNaN(h))return i;var f,p;s?p=o.getRawIndex(d):f=o.get(t.stackedByDimension,d);for(var v=NaN,g=e-1;g>=0;g--){var m=r[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,f)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=h3(h,y),v=y;break}}}return n[0]=h,n[1]=v,n})})}var yp=function(){function r(t){this.data=t.data||(t.sourceFormat===Ra?{}:[]),this.sourceFormat=t.sourceFormat||qC,this.seriesLayoutBy=t.seriesLayoutBy||Oa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&rT(this,n)===Dn.Must&&(i.type="ordinal")}}return r}();function Um(r){return r instanceof yp}function Km(r,t,e){e=e||bT(r);var n=t.seriesLayoutBy,i=$V(r,e,n,t.sourceHeader,t.dimensions),a=new yp({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ve(t)});return a}function Ym(r){return new yp({data:r,sourceFormat:ei(r)?go:Ni})}function ZV(r){return new yp({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Ve(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function bT(r){var t=qC;if(ei(r))t=go;else if(ce(r)){r.length===0&&(t=Ln);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(ce(i)||ei(i)){t=Ln;break}else if(Be(i)){t=Bi;break}}}}else if(Be(r)){for(var a in r)if(De(r,a)&&En(r[a])){t=Ra;break}}return t}function $V(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:_T(i),startIndex:o,dimensionsDetectedCount:a};if(t===Ln){var s=r;n==="auto"||n==null?CT(function(u){u!=null&&u!=="-"&&(_e(u)?o==null&&(o=1):o=0)},e,s,10):o=vr(n)?n:n?1:0,!i&&o===1&&(i=[],CT(function(u,c){i[c]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===Gu?s.length:s[0]?s[0].length:null}else if(t===Bi)i||(i=JV(r));else if(t===Ra)i||(i=[],U(r,function(u,c){i.push(c)}));else if(t===Ni){var l=Du(r[0]);a=ce(l)&&l.length||1}return{startIndex:o,dimensionsDefine:_T(i),dimensionsDetectedCount:a}}function JV(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return nr(e)}function _T(r){if(r){var t=Pe();return de(r,function(e,n){e=Be(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function CT(r,t,e,n){if(t===Gu)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function TT(r){var t=r.sourceFormat;return t===Bi||t===Ra}var hl,fl,pl,MT,AT,IT=function(){function r(t,e){var n=Um(t)?t:Ym(t);this._source=n;var i=this._data=n.data;n.sourceFormat===go&&(this._offset=0,this._dimSize=e,this._data=i),AT(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;AT=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,d=l.startIndex,h=l.dimensionsDefine,f=MT[Zm(u,c)];if(ie(o,f),u===go)o.getItem=e,o.count=i,o.fillStorage=n;else{var p=kT(u,c);o.getItem=Te(p,null,s,d,h);var v=ET(u,c);o.count=Te(v,null,s,d,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,d=0;d<u;d++)s[d]=l[c+d];return s},n=function(o,s,l,u){for(var c=this._data,d=this._dimSize,h=0;h<d;h++){for(var f=u[h],p=f[0]==null?1/0:f[0],v=f[1]==null?-1/0:f[1],g=s-o,m=l[h],y=0;y<g;y++){var x=c[y*d+h];m[o+y]=x,x<p&&(p=x),x>v&&(v=x)}f[0]=p,f[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};MT=(t={},t[Ln+"_"+Oa]={pure:!0,appendData:a},t[Ln+"_"+Gu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Bi]={pure:!0,appendData:a},t[Ra]={pure:!0,appendData:function(o){var s=this._data;U(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},t[Ni]={appendData:a},t[go]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),DT=function(r,t,e,n){return r[n]},QV=(hl={},hl[Ln+"_"+Oa]=function(r,t,e,n){return r[n+t]},hl[Ln+"_"+Gu]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},hl[Bi]=DT,hl[Ra]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[n]:null}return a},hl[Ni]=DT,hl);function kT(r,t){var e=QV[Zm(r,t)];return e}var PT=function(r,t,e){return r.length},qV=(fl={},fl[Ln+"_"+Oa]=function(r,t,e){return Math.max(0,r.length-t)},fl[Ln+"_"+Gu]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},fl[Bi]=PT,fl[Ra]=function(r,t,e){var n=e[0].name,i=r[n];return i?i.length:0},fl[Ni]=PT,fl);function ET(r,t){var e=qV[Zm(r,t)];return e}var Xm=function(r,t,e){return r[t]},tz=(pl={},pl[Ln]=Xm,pl[Bi]=function(r,t,e){return r[e]},pl[Ra]=Xm,pl[Ni]=function(r,t,e){var n=Du(r);return n instanceof Array?n[t]:n},pl[go]=Xm,pl);function LT(r){var t=tz[r];return t}function Zm(r,t){return r===Ln?r+"_"+t:r}function Uu(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return LT(a)(n,o,s)}else{var l=n;return a===Ni&&(l=Du(n)),l}}}}function Fst(r,t,e){if(r){var n=r.getStore().getSource().sourceFormat;if(!(n!==SOURCE_FORMAT_ORIGINAL&&n!==SOURCE_FORMAT_OBJECT_ROWS)){var i=r.getRawDataItem(t);if(n===SOURCE_FORMAT_ORIGINAL&&!isObject(i)&&(i=null),i)return i[e]}}}var ez=/\{@(.+?)\}/g,$m=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,d=this.mainType,h=d==="series",f=n.userOutput&&n.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:u,borderColor:c,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ce(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Re(a))return l.status=e,l.dimensionIndex=i,a(l);if(_e(a)){var c=XC(a,l);return c.replace(ez,function(d,h){var f=h.length,p=h;p.charAt(0)==="["&&p.charAt(f-1)==="]"&&(p=+p.slice(1,f-1));var v=Uu(s,t,p);if(o&&ce(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},r.prototype.getRawValue=function(t,e){return Uu(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function RT(r){var t,e;return Be(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Ed(r){return new rz(r)}var rz=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var d;(this._dirty||a==="reset")&&(this._dirty=!1,d=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(d||f<p)){var v=this._progress;if(ce(v))for(var g=0;g<v.length;g++)this._doProgress(v[g],f,p,l,u);else this._doProgress(v,f,p,l,u)}this._dueIndex=p;var m=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){OT.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:OT.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),ce(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),OT=function(){var r,t,e,n,i,a={reset:function(l,u,c,d){t=l,r=u,e=c,n=d,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}(),nz="[ECharts] ",NT={},iz=typeof console<"u"&&console.warn&&console.log;function Jm(r,t,e){if(iz){if(e){if(NT[t])return;NT[t]=!0}console[r](nz+t)}}function Wst(r,t){Jm("log",r,t)}function az(r,t){Jm("warn",r,t)}function jst(r,t){Jm("error",r,t)}function Gst(r){}function Ust(r,t,e){}function Kst(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";if(0)var n;return e}function _r(r){throw new Error(r)}function ns(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!vr(r)&&r!=null&&r!=="-"&&(r=+ra(r)),r==null||r===""?NaN:+r)}var oz=Pe({number:function(r){return parseFloat(r)},time:function(r){return+ra(r)},trim:function(r){return _e(r)?Qi(r):r}});function BT(r){return oz.get(r)}var VT={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},sz=function(){function r(t,e){if(!vr(e)){var n="";_r(n)}this._opFn=VT[t],this._rvalFloat=lo(e)}return r.prototype.evaluate=function(t){return vr(t)?this._opFn(t,this._rvalFloat):this._opFn(lo(t),this._rvalFloat)},r}(),zT=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=vr(t)?t:lo(t),i=vr(e)?e:lo(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=_e(t),l=_e(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),lz=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=lo(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=lo(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function uz(r,t){return r==="eq"||r==="ne"?new lz(r==="eq",t):De(VT,r)?new sz(r,t):null}var cz=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ns(t,e)},r}();function dz(r,t){var e=new cz,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Oa&&_r(o);var s=[],l={},u=r.dimensionsDefine;if(u)U(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";De(l,m)&&_r(x),l[m]=y}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var d=kT(i,Oa);t.__isBuiltIn&&(e.getRawDataItem=function(v){return d(n,a,s,v)},e.getRawData=Te(hz,null,r)),e.cloneRawData=Te(fz,null,r);var h=ET(i,Oa);e.count=Te(h,null,n,a,s);var f=LT(i);e.retrieveValue=function(v,g){var m=d(n,a,s,v);return p(m,g)};var p=e.retrieveValueFromItem=function(v,g){if(v!=null){var m=s[g];if(m)return f(v,g,m.name)}};return e.getDimensionInfo=Te(pz,null,s,l),e.cloneAllDimensionInfo=Te(vz,null,s),e}function hz(r){var t=r.sourceFormat;if(!Qm(t)){var e="";_r(e)}return r.data}function fz(r){var t=r.sourceFormat,e=r.data;if(!Qm(t)){var n="";_r(n)}if(t===Ln){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===Bi){for(var i=[],a=0,o=e.length;a<o;a++)i.push(ie({},e[a]));return i}}function pz(r,t,e){if(e!=null){if(vr(e)||!isNaN(e)&&!De(t,e))return r[e];if(De(t,e))return t[e]}}function vz(r){return Ve(r)}var HT=Pe();function gz(r){r=Ve(r);var t=r.type,e="";t||_r(e);var n=t.split(":");n.length!==2&&_r(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,HT.set(t,r)}function mz(r,t,e){var n=kr(r),i=n.length,a="";i||_r(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=yz(l,t,e,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function yz(r,t,e,n){var i="";t.length||_r(i),Be(r)||_r(i);var a=r.type,o=HT.get(a);o||_r(i);var s=de(t,function(c){return dz(c,o)}),l=kr(o.transform({upstream:s[0],upstreamList:s,config:Ve(r.config)}));if(0)var u;return de(l,function(c,d){var h="";Be(c)||_r(h),c.data||_r(h);var f=bT(c.data);Qm(f)||_r(h);var p,v=t[0];if(v&&d===0&&!c.dimensions){var g=v.startIndex;g&&(c.data=v.data.slice(0,g).concat(c.data)),p={seriesLayoutBy:Oa,sourceHeader:g,dimensions:v.metaRawOption.dimensions}}else p={seriesLayoutBy:Oa,sourceHeader:0,dimensions:c.dimensions};return Km(c.data,p,null)})}function Qm(r){return r===Ln||r===Bi}var xp="undefined",xz=typeof Uint32Array===xp?Array:Uint32Array,Sz=typeof Uint16Array===xp?Array:Uint16Array,FT=typeof Int32Array===xp?Array:Int32Array,WT=typeof Float64Array===xp?Array:Float64Array,jT={float:WT,int:FT,ordinal:Array,number:Array,time:WT},qm;function Ld(r){return r>65535?xz:Sz}function Ku(){return[1/0,-1/0]}function wz(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function GT(r,t,e,n,i){var a=jT[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var bz=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Pe()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=qm[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=TT(i);this._dimensions=de(e,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new jT[e||"float"](this._rawCount),this._rawExtent[a]=Ku(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Ku());for(var l=a[t],u=o;u<s;u++){var c=n[u]=e.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var c=i[u];GT(n,u,c.type,l,!0)}for(var d=[],h=s;h<l;h++)for(var f=h-s,p=0;p<a;p++){var c=i[p],v=qm.arrayRows.call(this,t[f]||d,c.property,f,p);n[p][h]=v;var g=o[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=de(o,function(y){return y.property}),c=0;c<s;c++){var d=o[c];l[c]||(l[c]=Ku()),GT(a,c,d.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var h=[],f=t;f<e;f++){h=i.getItem(f,h);for(var p=0;p<s;p++){var v=a[p],g=this._dimValueGetter(h,u[p],f,p);v[f]=g;var m=l[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c<d;c++){var h=this.getRawIndex(c),f=e-a[h],p=Math.abs(f);p<=n&&((p<s||p===s&&f>=0&&l<0)&&(s=p,l=f,u=0),f===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=Ld(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Ld(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],d=n._chunks,h=0;h<i;h++){var f=void 0,p=n.getRawIndex(h);if(l===0)f=e(h);else if(l===1){var v=d[c][p];f=e(v,h)}else{for(var g=0;g<l;g++)s[g]=d[t[g]][p];s[g]=h,f=e.apply(null,s)}f&&(o[u++]=p)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=nr(t),a=i.length;if(!a)return this;var o=e.count(),s=Ld(e._rawCount),l=new s(o),u=0,c=i[0],d=t[c][0],h=t[c][1],f=e._chunks,p=!1;if(!e._indices){var v=0;if(a===1){for(var g=f[i[0]],m=0;m<n;m++){var y=g[m];(y>=d&&y<=h||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=f[i[0]],x=f[i[1]],w=t[i[1]][0],_=t[i[1]][1],m=0;m<n;m++){var y=g[m],b=x[m];(y>=d&&y<=h||isNaN(y))&&(b>=w&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m<o;m++){var C=e.getRawIndex(m),y=f[i[0]][C];(y>=d&&y<=h||isNaN(y))&&(l[u++]=C)}else for(var m=0;m<o;m++){for(var M=!0,C=e.getRawIndex(m),k=0;k<a;k++){var P=i[k],y=f[P][C];(y<t[P][0]||y>t[P][1])&&(M=!1)}M&&(l[u++]=e.getRawIndex(m))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=Ku();for(var d=0;d<s;d++){for(var h=t.getRawIndex(d),f=0;f<o;f++)l[f]=i[e[f]][h];l[o]=d;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var c=0;c<p.length;c++){var v=e[c],g=p[c],m=u[v],y=i[v];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,d,h,f=new(Ld(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));f[s++]=u;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),g=Math.min(p+l*2,o),m=(g+v)/2,y=0,x=v;x<g;x++){var w=this.getRawIndex(x),_=a[w];isNaN(_)||(y+=_)}y/=g-v;var b=p,C=Math.min(p+l,o),M=p-1,k=a[u];c=-1,h=b;for(var P=-1,R=0,x=b;x<C;x++){var w=this.getRawIndex(x),_=a[w];if(isNaN(_)){R++,P<0&&(P=w);continue}d=Math.abs((M-m)*(_-k)-(M-x)*(y-k)),d>c&&(c=d,h=w)}R>0&&R<C-b&&(f[s++]=Math.min(P,h),h=Math.max(P,h)),f[s++]=h,u=h}return f[s++]=this.getRawIndex(o-1),n._count=s,n._indices=f,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),d=a._rawExtent[t]=Ku(),h=new(Ld(this._rawCount))(Math.ceil(c/l)),f=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var v=0;v<l;v++){var g=this.getRawIndex(p+v);s[v]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(p+i(s,m)||0,c-1));u[y]=m,m<d[0]&&(d[0]=m),m>d[1]&&(d[1]=m),h[f++]=y}return a._count=f,a._indices=h,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Ku();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),d=e[c];d<s&&(s=d),d>l&&(l=d)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&ba(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?wz(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Ve(this._extent),t._rawExtent=Ve(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ns(e[a],this._dimensions[a])}qm={arrayRows:t,objectRows:function(e,n,i,a){return ns(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ns(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}();const ty=bz;var UT=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(Sp(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=ei(s)?go:Ni,a=[];var d=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},f=We(d.seriesLayoutBy,h.seriesLayoutBy)||null,p=We(d.sourceHeader,h.sourceHeader),v=We(d.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||v;i=g?[Km(s,{seriesLayoutBy:f,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[Km(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&YT(a)}var o,s=[],l=[];return U(t,function(u){u.prepareSource();var c=u.getSource(i||0),d="";i!=null&&!c&&YT(d),s.push(c),l.push(u._getVersionSign())}),n?o=mz(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[ZV(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Sp(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new ty,s.initData(new IT(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Sp(t)){var e=Vm(t);return e?[e.getSourceManager()]:[]}else return de(SV(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(Sp(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function KT(r){var t=r.option.transform;t&&pf(r.option.transform)}function Sp(r){return r.mainType==="series"}function YT(r){throw new Error(r)}var XT="line-height:1";function ZT(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ri(n+"")+"px;color:"+ri(e)+";font-weight:"+ri(i+""),valueStyle:"font-size:"+ri(o+"")+"px;color:"+ri(a)+";font-weight:"+ri(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var _z=[0,10,20,30],Cz=["","\n","\n\n","\n\n\n"];function gn(r,t){return t.type=r,t}function ey(r){return r.type==="section"}function $T(r){return ey(r)?Tz:Mz}function JT(r){if(ey(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return U(r.blocks,function(i){var a=JT(i);a>=t&&(t=a+ +(n&&(!a||ey(i)&&!i.noHeader)))}),t}return 0}function Tz(r,t,e,n){var i=t.noHeader,a=Az(JT(t)),o=[],s=t.blocks||[];jn(!s||ce(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(De(u,l)){var c=new zT(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}U(s,function(p,v){var g=t.valueFormatter,m=$T(p)(g?ie(ie({},r),{valueFormatter:g}):r,p,v>0?a.html:0,n);m!=null&&o.push(m)});var d=r.renderMode==="richText"?o.join(a.richText):ry(o.join(""),i?e:a.html);if(i)return d;var h=Rm(t.header,"ordinal",r.useUTC),f=ZT(n,r.renderMode).nameStyle;return r.renderMode==="richText"?qT(r,h,f)+a.richText+d:ry('<div style="'+f+";"+XT+';">'+ri(h)+"</div>"+d,e)}function Mz(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(w){return w=ce(w)?w:[w],de(w,function(_,b){return Rm(_,ce(f)?f[b]:f,u)})};if(!(a&&o)){var d=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":Rm(l,"ordinal",u),f=t.valueType,p=o?[]:c(t.value,t.dataIndex),v=!s||!a,g=!s&&a,m=ZT(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":d)+(a?"":qT(r,h,y))+(o?"":kz(r,p,v,g,x)):ry((s?"":d)+(a?"":Iz(h,!s,y))+(o?"":Dz(p,v,g,x)),e)}}function QT(r,t,e,n,i,a){if(r){var o=$T(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Az(r){return{html:_z[r],richText:Cz[r]}}function ry(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+XT+';">'+r+e+"</div>"}function Iz(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+ri(r)+"</span>"}function Dz(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=ce(r)?r:[r],'<span style="'+a+";"+n+'">'+de(r,function(o){return ri(o)}).join("&nbsp;&nbsp;")+"</span>"}function qT(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function kz(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(ce(t)?t.join(" "):t,a)}function tM(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return ul(n)}function eM(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var ny=function(){function r(){this.richTextStyles={},this._nextStyleNameId=g_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=hV({color:e,type:t,renderMode:n,markerId:i});return _e(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};ce(e)?U(e,function(a){return ie(n,a)}):ie(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function rM(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=ce(s),u=tM(t,e),c,d,h,f;if(o>1||l&&!o){var p=Pz(s,t,e,a,u);c=p.inlineValues,d=p.inlineValueTypes,h=p.blocks,f=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);f=c=Uu(i,e,a[0]),d=v.type}else f=c=l?s[0]:s;var g=G0(t),m=g&&t.name||"",y=i.getName(e),x=n?m:y;return gn("section",{header:m,noHeader:n||!g,sortParam:f,blocks:[gn("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Qi(x),value:c,valueType:d,dataIndex:e})].concat(h||[])})}function Pz(r,t,e,n,i){var a=t.getData(),o=ba(r,function(d,h,f){var p=a.getDimensionInfo(f);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?U(n,function(d){c(Uu(a,e,d),d)}):U(r,c);function c(d,h){var f=a.getDimensionInfo(h);!f||f.otherDims.tooltip===!1||(o?u.push(gn("nameValue",{markerType:"subItem",markerColor:i,name:f.displayName,value:d,valueType:f.type})):(s.push(d),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var is=cr();function wp(r,t){return r.getName(t)||r.getId(t)}var bp="__universalTransitionEnabled",_p=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ed({count:Lz,reset:Rz}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=is(this).sourceManager=new UT(this);a.prepareSource();var o=this.getInitialData(e,i);iM(o,this),this.dataTask.context.data=o,is(this).dataBeforeProcessed=o,nM(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Md(this),a=i?Fu(e):{},o=this.subType;gr.hasClass(o)&&(o+="Series"),Je(e,n.getTheme().get(this.subType)),Je(e,this.getDefaultOption()),Ys(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&rs(e,a,i)},t.prototype.mergeOption=function(e,n){e=Je(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Md(this);i&&rs(this.option,e,i);var a=is(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);iM(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,is(this).dataBeforeProcessed=o,nM(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ei(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Ys(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=iy(this);if(n){var i=n.context.data;return e==null?i:i.getLinkedData(e)}else return is(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=iy(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}is(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Pe(e)},t.prototype.getSourceManager=function(){return is(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return is(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return rM({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(pr.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=Hm.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=wp(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=nr(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[wp(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[bp])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Be(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var d=n[c],h=wp(e,d);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(d)}}else if(s==="single"||s===!0){var f=n[l-1],h=wp(e,f);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=e.getRawIndex(f),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return gr.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(gr);en(_p,$m),en(_p,Hm),I_(_p,gr);function nM(r){var t=r.name;G0(r)||(r.name=Ez(r)||t)}function Ez(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return U(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Lz(r){return r.model.getRawData().count()}function Rz(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Oz}function Oz(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function iM(r,t){U(vf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,je(Nz,t))})}function Nz(r,t){var e=iy(r);return e&&e.setOutputEnd((t||this).count()),t}function iy(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const Wr=_p;var ay=function(){function r(){this.group=new ze,this.uid=Nu("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Y0(ay),Uf(ay);const Zr=ay;function Yu(){var r=cr();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Xu=La.CMD,Bz=[[],[],[]],aM=Math.sqrt,Vz=Math.atan2;function oM(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,c=Xu.M,d=Xu.C,h=Xu.L,f=Xu.R,p=Xu.A,v=Xu.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case c:a=1;break;case h:a=1;break;case d:a=3;break;case v:a=2;break;case p:var g=t[4],m=t[5],y=aM(t[0]*t[0]+t[1]*t[1]),x=aM(t[2]*t[2]+t[3]*t[3]),w=Vz(-t[1]/x,t[0]/y);e[o]*=y,e[o++]+=g,e[o]*=x,e[o++]+=m,e[o++]*=y,e[o++]*=x,e[o++]+=w,e[o++]+=w,o+=2,s=o;break;case f:u[0]=e[o++],u[1]=e[o++],Tn(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Tn(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var _=Bz[l];_[0]=e[o++],_[1]=e[o++],Tn(_,_,t),e[s++]=_[0],e[s++]=_[1]}}r.increaseVersion()}}var oy=Math.sqrt,Cp=Math.sin,Tp=Math.cos,Rd=Math.PI;function sM(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function sy(r,t){return(r[0]*t[0]+r[1]*t[1])/(sM(r)*sM(t))}function lM(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(sy(r,t))}function uM(r,t,e,n,i,a,o,s,l,u,c){var d=l*(Rd/180),h=Tp(d)*(r-e)/2+Cp(d)*(t-n)/2,f=-1*Cp(d)*(r-e)/2+Tp(d)*(t-n)/2,p=h*h/(o*o)+f*f/(s*s);p>1&&(o*=oy(p),s*=oy(p));var v=(i===a?-1:1)*oy((o*o*(s*s)-o*o*(f*f)-s*s*(h*h))/(o*o*(f*f)+s*s*(h*h)))||0,g=v*o*f/s,m=v*-s*h/o,y=(r+e)/2+Tp(d)*g-Cp(d)*m,x=(t+n)/2+Cp(d)*g+Tp(d)*m,w=lM([1,0],[(h-g)/o,(f-m)/s]),_=[(h-g)/o,(f-m)/s],b=[(-1*h-g)/o,(-1*f-m)/s],C=lM(_,b);if(sy(_,b)<=-1&&(C=Rd),sy(_,b)>=1&&(C=0),C<0){var M=Math.round(C/Rd*1e6)/1e6;C=Rd*2+M%2*Rd}c.addData(u,y,x,o,s,w,C,d,a)}var zz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Hz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Fz(r){var t=new La;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=La.CMD,l=r.match(zz);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,f=c.match(Hz)||[],p=f.length,v=0;v<p;v++)f[v]=parseFloat(f[v]);for(var g=0;g<p;){var m=void 0,y=void 0,x=void 0,w=void 0,_=void 0,b=void 0,C=void 0,M=e,k=n,P=void 0,R=void 0;switch(d){case"l":e+=f[g++],n+=f[g++],h=s.L,t.addData(h,e,n);break;case"L":e=f[g++],n=f[g++],h=s.L,t.addData(h,e,n);break;case"m":e+=f[g++],n+=f[g++],h=s.M,t.addData(h,e,n),i=e,a=n,d="l";break;case"M":e=f[g++],n=f[g++],h=s.M,t.addData(h,e,n),i=e,a=n,d="L";break;case"h":e+=f[g++],h=s.L,t.addData(h,e,n);break;case"H":e=f[g++],h=s.L,t.addData(h,e,n);break;case"v":n+=f[g++],h=s.L,t.addData(h,e,n);break;case"V":n=f[g++],h=s.L,t.addData(h,e,n);break;case"C":h=s.C,t.addData(h,f[g++],f[g++],f[g++],f[g++],f[g++],f[g++]),e=f[g-2],n=f[g-1];break;case"c":h=s.C,t.addData(h,f[g++]+e,f[g++]+n,f[g++]+e,f[g++]+n,f[g++]+e,f[g++]+n),e+=f[g-2],n+=f[g-1];break;case"S":m=e,y=n,P=t.len(),R=t.data,o===s.C&&(m+=e-R[P-4],y+=n-R[P-3]),h=s.C,M=f[g++],k=f[g++],e=f[g++],n=f[g++],t.addData(h,m,y,M,k,e,n);break;case"s":m=e,y=n,P=t.len(),R=t.data,o===s.C&&(m+=e-R[P-4],y+=n-R[P-3]),h=s.C,M=e+f[g++],k=n+f[g++],e+=f[g++],n+=f[g++],t.addData(h,m,y,M,k,e,n);break;case"Q":M=f[g++],k=f[g++],e=f[g++],n=f[g++],h=s.Q,t.addData(h,M,k,e,n);break;case"q":M=f[g++]+e,k=f[g++]+n,e+=f[g++],n+=f[g++],h=s.Q,t.addData(h,M,k,e,n);break;case"T":m=e,y=n,P=t.len(),R=t.data,o===s.Q&&(m+=e-R[P-4],y+=n-R[P-3]),e=f[g++],n=f[g++],h=s.Q,t.addData(h,m,y,e,n);break;case"t":m=e,y=n,P=t.len(),R=t.data,o===s.Q&&(m+=e-R[P-4],y+=n-R[P-3]),e+=f[g++],n+=f[g++],h=s.Q,t.addData(h,m,y,e,n);break;case"A":x=f[g++],w=f[g++],_=f[g++],b=f[g++],C=f[g++],M=e,k=n,e=f[g++],n=f[g++],h=s.A,uM(M,k,e,n,b,C,x,w,_,h,t);break;case"a":x=f[g++],w=f[g++],_=f[g++],b=f[g++],C=f[g++],M=e,k=n,e+=f[g++],n+=f[g++],h=s.A,uM(M,k,e,n,b,C,x,w,_,h,t);break}}(d==="z"||d==="Z")&&(h=s.Z,t.addData(h),e=i,n=a),o=h}return t.toStatic(),t}var cM=function(r){Hr(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(rr);function dM(r){return r.setData!=null}function hM(r,t){var e=Fz(r),n=ie({},t);return n.buildPath=function(i){if(dM(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){oM(e,i),this.dirtyShape()},n}function fM(r,t){return new cM(hM(r,t))}function Wz(r,t){var e=hM(r,t),n=function(i){Hr(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(cM);return n}function jz(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new rr(t);return o.createPathProxy(),o.buildPath=function(s){if(dM(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function ly(r,t){t=t||{};var e=new rr;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?oM(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var Gz=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),pM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Gz},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(rr);pM.prototype.type="circle";const yo=pM;var Uz=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),vM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Uz},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),e.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),e.closePath()},t}(rr);vM.prototype.type="ellipse";const uy=vM;var gM=Math.PI,cy=gM*2,vl=Math.sin,Zu=Math.cos,Kz=Math.acos,On=Math.atan2,mM=Math.abs,Od=Math.sqrt,Nd=Math.max,Na=Math.min,aa=1e-4;function Yz(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,c=o-i,d=s-a,h=d*l-c*u;if(!(h*h<aa))return h=(c*(t-a)-d*(r-i))/h,[r+h*l,t+h*u]}function Mp(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/Od(s*s+l*l),c=u*l,d=-u*s,h=r+c,f=t+d,p=e+c,v=n+d,g=(h+p)/2,m=(f+v)/2,y=p-h,x=v-f,w=y*y+x*x,_=i-a,b=h*v-p*f,C=(x<0?-1:1)*Od(Nd(0,_*_*w-b*b)),M=(b*x-y*C)/w,k=(-b*y-x*C)/w,P=(b*x+y*C)/w,R=(-b*y+x*C)/w,j=M-g,X=k-m,st=P-g,dt=R-m;return j*j+X*X>st*st+dt*dt&&(M=P,k=R),{cx:M,cy:k,x0:-c,y0:-d,x1:M*(i/_-1),y1:k*(i/_-1)}}function Xz(r){var t;if(ce(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Zz(r,t){var e,n=Nd(t.r,0),i=Nd(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,h=!!t.clockwise,f=mM(u-l),p=f>cy&&f%cy;if(p>aa&&(f=p),!(n>aa))r.moveTo(c,d);else if(f>cy-aa)r.moveTo(c+n*Zu(l),d+n*vl(l)),r.arc(c,d,n,l,u,!h),i>aa&&(r.moveTo(c+i*Zu(u),d+i*vl(u)),r.arc(c,d,i,u,l,h));else{var v=void 0,g=void 0,m=void 0,y=void 0,x=void 0,w=void 0,_=void 0,b=void 0,C=void 0,M=void 0,k=void 0,P=void 0,R=void 0,j=void 0,X=void 0,st=void 0,dt=n*Zu(l),xt=n*vl(l),Rt=i*Zu(u),wt=i*vl(u),Lt=f>aa;if(Lt){var Ft=t.cornerRadius;Ft&&(e=Xz(Ft),v=e[0],g=e[1],m=e[2],y=e[3]);var Kt=mM(n-i)/2;if(x=Na(Kt,m),w=Na(Kt,y),_=Na(Kt,v),b=Na(Kt,g),k=C=Nd(x,w),P=M=Nd(_,b),(C>aa||M>aa)&&(R=n*Zu(u),j=n*vl(u),X=i*Zu(l),st=i*vl(l),f<gM)){var Ut=Yz(dt,xt,X,st,R,j,Rt,wt);if(Ut){var Bt=dt-Ut[0],Gt=xt-Ut[1],Qt=R-Ut[0],re=j-Ut[1],se=1/vl(Kz((Bt*Qt+Gt*re)/(Od(Bt*Bt+Gt*Gt)*Od(Qt*Qt+re*re)))/2),le=Od(Ut[0]*Ut[0]+Ut[1]*Ut[1]);k=Na(C,(n-le)/(se+1)),P=Na(M,(i-le)/(se-1))}}}if(!Lt)r.moveTo(c+dt,d+xt);else if(k>aa){var me=Na(m,k),ye=Na(y,k),ue=Mp(X,st,dt,xt,n,me,h),fe=Mp(R,j,Rt,wt,n,ye,h);r.moveTo(c+ue.cx+ue.x0,d+ue.cy+ue.y0),k<C&&me===ye?r.arc(c+ue.cx,d+ue.cy,k,On(ue.y0,ue.x0),On(fe.y0,fe.x0),!h):(me>0&&r.arc(c+ue.cx,d+ue.cy,me,On(ue.y0,ue.x0),On(ue.y1,ue.x1),!h),r.arc(c,d,n,On(ue.cy+ue.y1,ue.cx+ue.x1),On(fe.cy+fe.y1,fe.cx+fe.x1),!h),ye>0&&r.arc(c+fe.cx,d+fe.cy,ye,On(fe.y1,fe.x1),On(fe.y0,fe.x0),!h))}else r.moveTo(c+dt,d+xt),r.arc(c,d,n,l,u,!h);if(!(i>aa)||!Lt)r.lineTo(c+Rt,d+wt);else if(P>aa){var me=Na(v,P),ye=Na(g,P),ue=Mp(Rt,wt,R,j,i,-ye,h),fe=Mp(dt,xt,X,st,i,-me,h);r.lineTo(c+ue.cx+ue.x0,d+ue.cy+ue.y0),P<M&&me===ye?r.arc(c+ue.cx,d+ue.cy,P,On(ue.y0,ue.x0),On(fe.y0,fe.x0),!h):(ye>0&&r.arc(c+ue.cx,d+ue.cy,ye,On(ue.y0,ue.x0),On(ue.y1,ue.x1),!h),r.arc(c,d,i,On(ue.cy+ue.y1,ue.cx+ue.x1),On(fe.cy+fe.y1,fe.cx+fe.x1),h),me>0&&r.arc(c+fe.cx,d+fe.cy,me,On(fe.y1,fe.x1),On(fe.y0,fe.x0),!h))}else r.lineTo(c+Rt,d+wt),r.arc(c,d,i,u,l,h)}r.closePath()}}}var $z=function(){function r(){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 r}(),yM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $z},t.prototype.buildPath=function(e,n){Zz(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(rr);yM.prototype.type="sector";const oi=yM;var Jz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),xM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Jz},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(rr);xM.prototype.type="ring";const Ap=xM;function Qz(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,c,d;if(n){c=[1/0,1/0],d=[-1/0,-1/0];for(var h=0,f=r.length;h<f;h++)jo(c,c,r[h]),Go(d,d,r[h]);jo(c,c,n[0]),Go(d,d,n[1])}for(var h=0,f=r.length;h<f;h++){var p=r[h];if(e)l=r[h?h-1:f-1],u=r[(h+1)%f];else if(h===0||h===f-1){i.push(no(r[h]));continue}else l=r[h-1],u=r[h+1];Ns(a,u,l),xf(a,a,t);var v=Yg(p,l),g=Yg(p,u),m=v+g;m!==0&&(v/=m,g/=m),xf(o,a,-v),xf(s,a,g);var y=ob([],p,o),x=ob([],p,s);n&&(Go(y,y,c),jo(y,y,d),Go(x,x,c),jo(x,x,d)),i.push(y),i.push(x)}return e&&i.push(i.shift()),i}function SM(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=Qz(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var qz=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),wM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new qz},t.prototype.buildPath=function(e,n){SM(e,n,!0)},t}(rr);wM.prototype.type="polygon";const si=wM;var tH=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),bM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tH},t.prototype.buildPath=function(e,n){SM(e,n,!1)},t}(rr);bM.prototype.type="polyline";const li=bM;var eH={},rH=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),_M=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rH},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=j_(eH,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(rr);_M.prototype.type="line";const wn=_M;var ui=[],nH=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function CM(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Ab:pn)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Ab:pn)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?u0:Sn)(r.x1,r.cpx1,r.x2,t),(e?u0:Sn)(r.y1,r.cpy1,r.y2,t)]}var TM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nH},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,d=n.cpy2,h=n.percent;h!==0&&(e.moveTo(i,a),c==null||d==null?(h<1&&(Qc(i,l,o,h,ui),l=ui[1],o=ui[2],Qc(a,u,s,h,ui),u=ui[1],s=ui[2]),e.quadraticCurveTo(l,u,o,s)):(h<1&&(Yo(i,l,c,o,h,ui),l=ui[1],c=ui[2],o=ui[3],Yo(a,u,d,s,h,ui),u=ui[1],d=ui[2],s=ui[3]),e.bezierCurveTo(l,u,c,d,o,s)))},t.prototype.pointAt=function(e){return CM(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=CM(this.shape,e,!0);return xu(n,n)},t}(rr);TM.prototype.type="bezier-curve";const Ip=TM;var iH=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),MM=function(r){Hr(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iH},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),d=Math.sin(s);e.moveTo(c*o+i,d*o+a),e.arc(i,a,o,s,l,!u)},t}(rr);MM.prototype.type="arc";const dy=MM;var aH=function(r){Hr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),rr.prototype.getBoundingRect.call(this)},t}(rr);const Dp=aH;var oH=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const AM=oH;var sH=function(r){Hr(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(AM);const Bd=sH;var lH=function(r){Hr(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e==null?.5:e,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(AM);const IM=lH;var gl=[0,0],ml=[0,0],kp=new Ye,Pp=new Ye,uH=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ye;for(var n=0;n<2;n++)this._axes[n]=new Ye;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);Ye.sub(i[0],n[1],n[0]),Ye.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return kp.set(1/0,1/0),Pp.set(0,0),!this._intersectCheckOneSide(this,t,kp,Pp,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,kp,Pp,i,-1)&&(n=!1,i)||i||Ye.copy(e,n?kp:Pp),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,gl),this._getProjMinMaxOnAxis(l,e._corners,ml),gl[1]<ml[0]||gl[0]>ml[1]){if(s=!1,a)return s;var c=Math.abs(ml[0]-gl[1]),d=Math.abs(gl[0]-ml[1]);Math.min(c,d)>i.len()&&(c<d?Ye.scale(i,u,-c*o):Ye.scale(i,u,d*o))}else if(n){var c=Math.abs(ml[0]-gl[1]),d=Math.abs(gl[0]-ml[1]);Math.min(c,d)<n.len()&&(c<d?Ye.scale(n,u,c*o):Ye.scale(n,u,-d*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var c=e[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},r}();const Ep=uH;var cH=[],dH=function(r){Hr(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Xe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(cH)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(Li);const hH=dH;var Lp=Math.max,Rp=Math.min,hy={};function DM(r){return rr.extend(r)}var fH=Wz;function pH(r,t){return fH(r,t)}function oa(r,t){hy[r]=t}function fy(r){if(hy.hasOwnProperty(r))return hy[r]}function $u(r,t,e,n){var i=fM(r,t);return e&&(n==="center"&&(e=PM(e,i.getBoundingRect())),EM(i,e)),i}function kM(r,t,e){var n=new Mn({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(PM(t,a))}}});return n}function PM(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var zi=jz;function EM(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Ju(r,t){return j_(r,r,{lineWidth:t}),r}function vH(r){return G_(r.shape,r.shape,r.style),r}var Op=il;function yl(r,t){for(var e=wf([]);r&&r!==t;)ao(e,r.getLocalTransform(),e),r=r.parent;return e}function sa(r,t,e){return t&&!En(t)&&(t=so.getLocalTransform(t)),e&&(t=wu([],t)),Tn([],r,t)}function Np(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=sa(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function LM(r){return!r.isGroup}function gH(r){return r.shape!=null}function Vd(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){LM(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return gH(o)&&(s.shape=ie({},o.shape)),s}var a=n(r);t.traverse(function(o){if(LM(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),lr(o,l,e,He(o).dataIndex)}}})}function RM(r,t){return de(r,function(e){var n=e[0];n=Lp(n,t.x),n=Rp(n,t.x+t.width);var i=e[1];return i=Lp(i,t.y),i=Rp(i,t.y+t.height),[n,i]})}function mH(r,t){var e=Lp(r.x,t.x),n=Rp(r.x+r.width,t.x+t.width),i=Lp(r.y,t.y),a=Rp(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function zd(r,t,e){var n=ie({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),Ne(i,e),new Mn(n)):$u(r.replace("path://",""),n,e,"center")}function Hd(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(OM(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function OM(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,c=o-i,d=s-a,h=py(c,d,l,u);if(yH(h))return!1;var f=r-i,p=t-a,v=py(f,p,l,u)/h;if(v<0||v>1)return!1;var g=py(f,p,c,d)/h;return!(g<0||g>1)}function py(r,t,e,n){return r*n-e*t}function yH(r){return r<=1e-6&&r>=-1e-6}function Qu(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=_e(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&U(nr(l),function(c){De(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=He(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ne({content:n,formatterParams:s},i)}}function NM(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function as(r,t){if(r)if(ce(r))for(var e=0;e<r.length;e++)NM(r[e],t);else NM(r,t)}oa("circle",yo),oa("ellipse",uy),oa("sector",oi),oa("ring",Ap),oa("polygon",si),oa("polyline",li),oa("rect",or),oa("line",wn),oa("bezierCurve",Ip),oa("arc",dy);var BM=cr(),xH=Yu(),vy=function(){function r(){this.group=new ze,this.uid=Nu("viewChart"),this.renderTask=Ed({plan:SH,reset:wH}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&zM(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&zM(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){as(this.group,t)},r.markUpdateMethod=function(t,e){BM(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function VM(r,t,e){r&&wd(r)&&(t==="emphasis"?fo:po)(r,e)}function zM(r,t,e){var n=Xs(r,t),i=t&&t.highlightKey!=null?W4(t.highlightKey):null;n!=null?U(kr(n),function(a){VM(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){VM(a,e,i)})}Y0(vy,["dispose"]),Uf(vy);function SH(r){return xH(r.model)}function wH(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&BM(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),bH[l]}var bH={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Lr=vy;var Bp="\0__throttleOriginMethod",HM="\0__throttleRate",FM="\0__throttleType";function gy(r,t,e){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function d(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];n=new Date().getTime(),l=this,u=f;var v=c||t,g=c||e;c=null,s=n-(g?i:a)-v,clearTimeout(o),g?o=setTimeout(d,v):s>=0?d():o=setTimeout(d,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(f){c=f},h}function qu(r,t,e,n){var i=r[t];if(i){var a=i[Bp]||i,o=i[FM],s=i[HM];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=gy(a,e,n==="debounce"),i[Bp]=a,i[FM]=n,i[HM]=e}return i}}function Fd(r,t){var e=r[t];e&&e[Bp]&&(e.clear&&e.clear(),r[t]=e[Bp])}var WM=cr(),jM={itemStyle:$s(PC,!0),lineStyle:$s(kC,!0)},_H={lineStyle:"stroke",itemStyle:"fill"};function GM(r,t){var e=r.visualStyleMapper||jM[t];return e||(console.warn("Unknown style type '"+t+"'."),jM.itemStyle)}function UM(r,t){var e=r.visualDrawType||_H[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var CH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=GM(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=UM(r,n),u=o[l],c=Re(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Re(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Re(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(f,p){var v=r.getDataParams(p),g=ie({},o);g[l]=c(v),f.setItemVisual(p,"style",g)}}}},Wd=new Er,TH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=GM(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Wd.option=l[n];var u=i(Wd),c=o.ensureUniqueItemVisual(s,"style");ie(c,u),Wd.option.decal&&(o.setItemVisual(s,"decal",Wd.option.decal),Wd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},MH={performRawSeries:!0,overallReset:function(r){var t=Pe();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),WM(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=WM(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=UM(e,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],d=a.getItemVisual(c,"colorFromPalette");if(d){var h=a.ensureUniqueItemVisual(c,"style"),f=n.getName(u)||u+"",p=n.count();h[l]=e.getColorFromPalette(f,o,p)}})}})}},Vp=Math.PI;function AH(r,t){t=t||{},Ne(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ze,n=new or({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new ar({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new or({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new dy({shape:{startAngle:-Vp/2,endAngle:-Vp/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Vp*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Vp*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var IH=function(){function r(t,e,n,i){this._stageTaskMap=Pe(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Pe();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;U(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";jn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;U(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,h=c.overallTask;if(h){var f,p=h.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),f=!0)}),f&&h.dirty(),o.updatePayload(h,n);var v=o.getPerformArgs(h,i.block);p.each(function(g){g.perform(v)}),h.perform(v)&&(a=!0)}else d&&d.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Pe(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(d){var h=d.uid,f=s.set(h,o&&o.get(h)||Ed({plan:LH,reset:RH,count:NH}));f.context={model:d,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(d,f)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||Ed({reset:DH});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Pe(),u=t.seriesType,c=t.getTargetSeries,d=!0,h=!1,f="";jn(!t.createOnAllSeries,f),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(d=!1,U(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(h=!0,Ed({reset:kH,onDirty:EH})));m.context={model:v,overallProgress:d},m.agent=o,m.__block=d,a._pipe(v,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return Re(t)&&(t={overallReset:t,seriesType:BH(t)}),t.uid=Nu("stageHandler"),e&&(t.visualType=e),t},r}();function DH(r){r.overallReset(r.ecModel,r.api,r.payload)}function kH(r){return r.overallProgress&&PH}function PH(){this.agent.dirty(),this.getDownstream().dirty()}function EH(){this.agent&&this.agent.dirty()}function LH(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function RH(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=kr(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?de(t,function(e,n){return KM(n)}):OH}var OH=KM(0);function KM(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function NH(r){return r.data.count()}function BH(r){zp=null;try{r(jd,YM)}catch(t){}return zp}var jd={},YM={},zp;XM(jd,fT),XM(YM,pT),jd.eachSeriesByType=jd.eachRawSeriesByType=function(r){zp=r},jd.eachComponent=function(r){r.mainType==="series"&&r.subType&&(zp=r.subType)};function XM(r,t){for(var e in t.prototype)r[e]=rn}const ZM=IH;var $M=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const VH={color:$M,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$M]};var Xn="#B9B8CE",JM="#100C2A",Hp=function(){return{axisLine:{lineStyle:{color:Xn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},QM=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],qM={darkMode:!0,color:QM,backgroundColor:JM,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Xn}},textStyle:{color:Xn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Xn}},dataZoom:{borderColor:"#71708A",textStyle:{color:Xn},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Xn}},timeline:{lineStyle:{color:Xn},label:{color:Xn},controlStyle:{color:Xn,borderColor:Xn}},calendar:{itemStyle:{color:JM},dayLabel:{color:Xn},monthLabel:{color:Xn},yearLabel:{color:Xn}},timeAxis:Hp(),logAxis:Hp(),valueAxis:Hp(),categoryAxis:Hp(),line:{symbol:"circle"},graph:{color:QM},gauge:{title:{color:Xn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Xn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};qM.categoryAxis.splitLine.show=!1;const zH=qM;var HH=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(_e(t)){var a=Da(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};U(t,function(l,u){for(var c=!1,d=0;d<o.length;d++){var h=o[d],f=u.lastIndexOf(h);if(f>0&&f===u.length-h.length){var p=u.slice(0,f);p!=="data"&&(e.mainType=p,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function c(d,h,f,p){return d[f]==null||h[p||f]===d[f]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),my=["symbol","symbolSize","symbolRotate","symbolOffset"],tA=my.concat(["symbolKeepAspect"]),FH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<my.length;o++){var s=my[o],l=r.get(s);Re(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(ie({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=nr(i);function c(d,h){for(var f=r.getRawValue(h),p=r.getDataParams(h),v=0;v<u.length;v++){var g=u[v];d.setItemVisual(h,g,i[g](f,p))}}return{dataEach:a?c:null}}},WH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<tA.length;s++){var l=tA[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function yy(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:}}function Gd(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:}}function eA(r,t,e,n){switch(e){case"color":var i=r.ensureUniqueItemVisual(t,"style");i[r.getVisual("drawType")]=n,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,n);break;default:}}function rA(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}U([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=ie({},i),o.dispatchAction(ie(i,{type:n[1],seriesIndex:e(a,i)}))})})}function tc(r,t,e,n,i){var a=r+t;e.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var d=o.getData(),h=Xs(d,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:ce(h)?d.getName(h[0]):d.getName(h),selected:_e(l)?l:ie({},l)})}})}function jH(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(tc("map","selectchanged",t,i,n),tc("pie","selectchanged",t,i,n)):n.fromAction==="select"?(tc("map","selected",t,i,n),tc("pie","selected",t,i,n)):n.fromAction==="unselect"&&(tc("map","unselected",t,i,n),tc("pie","unselected",t,i,n))})}function xl(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var GH=Math.round(Math.random()*9),UH=typeof Object.defineProperty=="function",KH=function(){function r(){this._id="__ec_inner_"+GH++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return UH?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const YH=KH;var XH=rr.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),ZH=rr.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),$H=rr.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),h=Math.cos(u),f=o*.6,p=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-d*f,l+s+h*f,e,n-p,e,n),r.bezierCurveTo(e,n-p,e-c+d*f,l+s+h*f,e-c,l+s),r.closePath()}}),JH=rr.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),QH={line:wn,rect:or,roundRect:or,square:or,circle:yo,diamond:ZH,pin:$H,arrow:JH,triangle:XH},qH={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},Fp={};U(QH,function(r,t){Fp[t]=new r});var t6=rr.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=jf(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=Fp[n];i||(n="rect",i=Fp[n]),qH[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function e6(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function qr(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=kM(r.slice(8),new Xe(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=$u(r.slice(7),{},new Xe(t,e,n,i),o?"center":"cover"):l=new t6({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=e6,a&&l.setColor(a),l}function ec(r){return ce(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Sl(r,t){if(r!=null)return ce(r)||(r=[r,r]),[xe(r[0],t[0])||0,xe(We(r[1],r[0]),t[1])||0]}function wl(r){return isFinite(r)}function r6(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=wl(n)?n:0,i=wl(i)?i:1,a=wl(a)?a:0,o=wl(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function n6(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*i+e.y,l=l*a),o=wl(o)?o:.5,s=wl(s)?s:.5,l=l>=0&&wl(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function xy(r,t,e){for(var n=t.type==="radial"?n6(r,t,e):r6(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function i6(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Wp(r){return parseInt(r,10)}function rc(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Wp(s[n])||Wp(r.style[n]))-(Wp(s[a])||0)-(Wp(s[o])||0)|0}function a6(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:vr(r)?[r]:ce(r)?r:null}function Sy(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&a6(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=de(e,function(a){return a/i}),n/=i)}return[e,n]}var o6=new La(!0);function jp(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function nA(r){return typeof r=="string"&&r!=="none"}function Gp(r){var t=r.fill;return t!=null&&t!=="none"}function iA(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function aA(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function wy(r,t,e){var n=Z0(t.image,t.__image,e);if(Kf(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*mf),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function s6(r,t,e,n){var i,a=jp(e),o=Gp(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||o6,d=t.__dirty;if(!n){var h=e.fill,f=e.stroke,p=o&&!!h.colorStops,v=a&&!!f.colorStops,g=o&&!!h.image,m=a&&!!f.image,y=void 0,x=void 0,w=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(y=d?xy(r,h,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=d?xy(r,f,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(w=d||!t.__canvasFillPattern?wy(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(_=d||!t.__canvasStrokePattern?wy(r,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),p?r.fillStyle=y:g&&(w?r.fillStyle=w:o=!1),v?r.strokeStyle=x:m&&(_?r.strokeStyle=_:a=!1)}var C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold);var M,k;r.setLineDash&&e.lineDash&&(i=Sy(t),M=i[0],k=i[1]);var P=!0;(u||d&bu)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),P=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),P&&c.rebuildPath(r,l?s:1),M&&(r.setLineDash(M),r.lineDashOffset=k),n||(e.strokeFirst?(a&&aA(r,e),o&&iA(r,e)):(o&&iA(r,e),a&&aA(r,e))),M&&r.setLineDash([])}function l6(r,t,e){var n=t.__image=Z0(e.image,t.__image,t,t.onload);if(!(!n||!Kf(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.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),e.sWidth&&e.sHeight){var u=e.sx||0,c=e.sy||0;r.drawImage(n,u,c,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,c=e.sy,d=o-u,h=s-c;r.drawImage(n,u,c,d,h,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function u6(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Fo,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=Sy(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(jp(e)&&r.strokeText(i,e.x,e.y),Gp(e)&&r.fillText(i,e.x,e.y)):(Gp(e)&&r.fillText(i,e.x,e.y),jp(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var oA=["shadowBlur","shadowOffsetX","shadowOffsetY"],sA=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lA(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){ci(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Js.opacity:o}(n||t.blend!==e.blend)&&(a||(ci(r,i),a=!0),r.globalCompositeOperation=t.blend||Js.blend);for(var s=0;s<oA.length;s++){var l=oA[s];(n||t[l]!==e[l])&&(a||(ci(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(ci(r,i),a=!0),r.shadowColor=t.shadowColor||Js.shadowColor),a}function uA(r,t,e,n,i){var a=Ud(t,i.inHover),o=n?null:e&&Ud(e,i.inHover)||{};if(a===o)return!1;var s=lA(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ci(r,i),s=!0),nA(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ci(r,i),s=!0),nA(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ci(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(ci(r,i),s=!0),r.lineWidth=u)}for(var c=0;c<sA.length;c++){var d=sA[c],h=d[0];(n||a[h]!==o[h])&&(s||(ci(r,i),s=!0),r[h]=a[h]||d[1])}return s}function c6(r,t,e,n,i){return lA(r,Ud(t,i.inHover),e&&Ud(e,i.inHover),n,i)}function cA(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function d6(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),cA(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function h6(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var dA=1,hA=2,fA=3,pA=4;function f6(r){var t=Gp(r),e=jp(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function ci(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Ud(r,t){return t&&r.__hoverStyle||r.style}function vA(r,t){bl(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function bl(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~bi,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||i6(a,o))&&(o&&o.length&&(ci(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(ci(r,e),r.save(),d6(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var c=t instanceof rr&&t.autoBatch&&f6(t.style);s||h6(i,u.transform)?(ci(r,e),cA(r,t)):c||ci(r,e);var d=Ud(t,e.inHover);t instanceof rr?(e.lastDrawType!==dA&&(l=!0,e.lastDrawType=dA),uA(r,t,u,l,e),(!c||!e.batchFill&&!e.batchStroke)&&r.beginPath(),s6(r,t,d,c),c&&(e.batchFill=d.fill||"",e.batchStroke=d.stroke||"")):t instanceof gd?(e.lastDrawType!==fA&&(l=!0,e.lastDrawType=fA),uA(r,t,u,l,e),u6(r,t,d)):t instanceof Mn?(e.lastDrawType!==hA&&(l=!0,e.lastDrawType=hA),c6(r,t,u,l,e),l6(r,t,d)):t.getTemporalDisplayables&&(e.lastDrawType!==pA&&(l=!0,e.lastDrawType=pA),p6(r,t,e)),c&&n&&ci(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function p6(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bl(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bl(r,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var by=new YH,gA=new qc(100),mA=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nc(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&by.delete(r);var a=by.get(r);if(a)return a;var o=Ne(r,{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=i?1:1/e,by.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],d=!0,h=0;h<mA.length;++h){var f=o[mA[h]];if(f!=null&&!ce(f)&&!_e(f)&&!vr(f)&&typeof f!="boolean"){d=!1;break}c.push(f)}var p;if(d){p=c.join(",")+(i?"-svg":"");var v=gA.get(p);v&&(i?u.svgElement=v:u.image=v)}var g=xA(o.dashArrayX),m=v6(o.dashArrayY),y=yA(o.symbol),x=g6(g),w=SA(m),_=!i&&Ji.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},C=k(),M;_&&(_.width=C.width*e,_.height=C.height*e,M=_.getContext("2d")),P(),d&&gA.put(p,_||b),u.image=_,u.svgElement=b,u.svgWidth=C.width,u.svgHeight=C.height;function k(){for(var R=1,j=0,X=x.length;j<X;++j)R=y_(R,x[j]);for(var st=1,j=0,X=y.length;j<X;++j)st=y_(st,y[j].length);R*=st;var dt=w*x.length*y.length;if(0)var xt;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min(dt,o.maxTileHeight))}}function P(){M&&(M.clearRect(0,0,_.width,_.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,_.width,_.height)));for(var R=0,j=0;j<m.length;++j)R+=m[j];if(R<=0)return;for(var X=-w,st=0,dt=0,xt=0;X<C.height;){if(st%2===0){for(var Rt=dt/2%y.length,wt=0,Lt=0,Ft=0;wt<C.width*2;){for(var Kt=0,j=0;j<g[xt].length;++j)Kt+=g[xt][j];if(Kt<=0)break;if(Lt%2===0){var Ut=(1-o.symbolSize)*.5,Bt=wt+g[xt][Lt]*Ut,Gt=X+m[st]*Ut,Qt=g[xt][Lt]*o.symbolSize,re=m[st]*o.symbolSize,se=Ft/2%y[Rt].length;le(Bt,Gt,Qt,re,y[Rt][se])}wt+=g[xt][Lt],++Ft,++Lt,Lt===g[xt].length&&(Lt=0)}++xt,xt===g.length&&(xt=0)}X+=m[st],++dt,++st,st===m.length&&(st=0)}function le(me,ye,ue,fe,Ie){var Me=i?1:e,Ue=qr(Ie,me*Me,ye*Me,ue*Me,fe*Me,o.color,o.symbolKeepAspect);if(i){var Ge=n.painter.renderOneToVNode(Ue);Ge&&b.children.push(Ge)}else vA(M,Ue)}}}}function yA(r){if(!r||r.length===0)return[["rect"]];if(_e(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!_e(r[e])){t=!1;break}if(t)return yA([r]);for(var n=[],e=0;e<r.length;++e)_e(r[e])?n.push([r[e]]):n.push(r[e]);return n}function xA(r){if(!r||r.length===0)return[[0,0]];if(vr(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!vr(r[n])){e=!1;break}if(e)return xA([r]);for(var i=[],n=0;n<r.length;++n)if(vr(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=de(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function v6(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(vr(r)){var t=Math.ceil(r);return[t,t]}var e=de(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function g6(r){return de(r,function(t){return SA(t)})}function SA(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function m6(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=nc(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=nc(i,t)}}})}var y6=new Ii;const la=y6;var wA={};function x6(r,t){wA[r]=t}function S6(r){return wA[r]}var Yst="5.5.0",Xst={zrender:"5.5.0"},w6=1,b6=800,_6=900,C6=1e3,T6=2e3,M6=5e3,bA=1e3,A6=1100,_y=2e3,_A=3e3,I6=4e3,Up=4500,D6=4600,k6=5e3,P6=6e3,CA=7e3,E6={PROCESSOR:{FILTER:C6,SERIES_FILTER:b6,STATISTIC:M6},VISUAL:{LAYOUT:bA,PROGRESSIVE_LAYOUT:A6,GLOBAL:_y,CHART:_A,POST_CHART_LAYOUT:D6,COMPONENT:I6,BRUSH:k6,CHART_ITEM:Up,ARIA:P6,DECAL:CA}},Nn="__flagInMainProcess",di="__pendingUpdate",Cy="__needsUpdateStatus",TA=/^[a-zA-Z0-9_]+$/,Ty="__connectUpdateStatus",MA=0,L6=1,R6=2;function AA(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return DA(this,r,t)}}function IA(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return DA(this,r,t)}}function DA(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ii.prototype[t].apply(r,e)}var kA=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ii),PA=kA.prototype;PA.on=IA("on"),PA.off=IA("off");var ic,My,Kp,os,Ay,Iy,Dy,Kd,Yd,EA,LA,ky,RA,Yp,OA,NA,Hi,BA,Xp=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this,new HH)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},_e(n)&&(n=VA[n]),a._dom=e;var o="canvas",s="auto",l=!1;if(0)var u;i.ssr&&u3(function(f){var p=He(f),v=p.dataIndex;if(v!=null){var g=Pe();return g.set("series_index",p.seriesIndex),g.set("data_index",v),p.ssrType&&g.set("ssr_type",p.ssrType),g}});var c=a._zr=o_(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:We(i.useDirtyRect,l),useCoarsePointer:We(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=gy(Te(c.flush,c),17),n=Ve(n),n&&wT(n,!0),a._theme=n,a._locale=aV(i.locale||EC),a._coordSysMgr=new Id;var d=a._api=OA(a);function h(f,p){return f.__prio-p.__prio}return Cf($p,h),Cf(Ey,h),a._scheduler=new ZM(a,d,Ey,$p),a._messageCenter=new kA,a._initEvents(),a.resize=Te(a.resize,a),c.animation.on("frame",a._onframe,a),EA(c,a),LA(c,a),pf(a),a}return t.prototype._onframe=function(){if(!this._disposed){BA(this);var e=this._scheduler;if(this[di]){var n=this[di].silent;this[Nn]=!0;try{ic(this),os.update.call(this,null,this[di].updateParams)}catch(l){throw this[Nn]=!1,this[di]=null,l}this._zr.flush(),this[Nn]=!1,this[di]=null,Kd.call(this,n),Yd.call(this,n)}else if(e.unfinished){var i=w6,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Iy(this,a),e.performVisualTasks(a),Yp(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Nn]){if(this._disposed){this.id;return}var a,o,s;if(Be(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Nn]=!0,!this._model||n){var l=new zV(this._api),u=this._theme,c=this._model=new fT;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Ly);var d={seriesTransition:s,optionChanged:!0};if(i)this[di]={silent:a,updateParams:d},this[Nn]=!1,this.getZr().wakeUp();else{try{ic(this),os.update.call(this,null,d)}catch(h){throw this[di]=null,this[Nn]=!1,h}this._ssr||this._zr.flush(),this[di]=null,this[Nn]=!1,Kd.call(this,a),Yd.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||pr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(pr.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return U(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;U(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return U(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Jp[i]){var l=s,u=s,c=-s,d=-s,h=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();U(_l,function(x,w){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Ve(e)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),d=o(b.bottom,d),h.push({dom:_,left:b.left,top:b.top})}}),l*=f,u*=f,c*=f,d*=f;var p=c-l,v=d-u,g=Ji.createCanvas(),m=o_(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return U(h,function(x){var w=x.left-l,_=x.top-u;y+='<g transform="translate('+w+","+_+')">'+x.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new or({shape:{x:0,y:0,width:p,height:v},style:{fill:e.connectedBackgroundColor}})),U(h,function(x){var w=new Mn({style:{x:x.left*f-l,y:x.top*f-u,image:x.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Ay(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Ay(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=hd(i,e);return U(o,function(s,l){l.indexOf("Models")>=0&&U(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(a=a||d.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=hd(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?yy(s,l,n):Gd(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;U(O6,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&xl(s,function(p){var v=He(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=ie({},v.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var h=c&&d!=null&&o.getComponent(c,d),f=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:f},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),U(Xd,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),U(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),jH(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&T_(this.getDom(),Oy,"");var n=this,i=n._api,a=n._model;U(n._componentsViews,function(o){o.dispose(a,i)}),U(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete _l[n.id]},t.prototype.resize=function(e){if(!this[Nn]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[di]&&(a==null&&(a=this[di].silent),i=!0,this[di]=null),this[Nn]=!0;try{i&&ic(this),os.update.call(this,{type:"resize",animation:ie({duration:0},e&&e.animation)})}catch(o){throw this[Nn]=!1,o}this[Nn]=!1,Kd.call(this,a),Yd.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Be(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Ry[e]){var i=Ry[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=ie({},e);return n.type=Xd[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Be(n)||(n={silent:!!n}),!!Zp[e.type]&&this._model){if(this[Nn]){this._pendingActions.push(e);return}var i=n.silent;Dy.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&pr.browser.weChat&&this._throttledZrFlush(),Kd.call(this,i),Yd.call(this,i)}},t.prototype.updateLabelLayout=function(){la.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ic=function(d){var h=d._scheduler;h.restorePipelines(d._model),h.prepareStageTasks(),My(d,!0),My(d,!1),h.plan()},My=function(d,h){for(var f=d._model,p=d._scheduler,v=h?d._componentsViews:d._chartsViews,g=h?d._componentsMap:d._chartsMap,m=d._zr,y=d._api,x=0;x<v.length;x++)v[x].__alive=!1;h?f.eachComponent(function(b,C){b!=="series"&&w(C)}):f.eachSeries(w);function w(b){var C=b.__requireNewView;b.__requireNewView=!1;var M="_ec_"+b.id+"_"+b.type,k=!C&&g[M];if(!k){var P=Da(b.type),R=h?Zr.getClass(P.main,P.sub):Lr.getClass(P.sub);k=new R,k.init(f,y),g[M]=k,v.push(k),m.add(k.group)}b.__viewId=k.__id=M,k.__alive=!0,k.__model=b,k.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&p.prepareView(k,b,f,y)}for(var x=0;x<v.length;){var _=v[x];_.__alive?x++:(!h&&_.renderTask.dispose(),m.remove(_.group),_.dispose(f,y),v.splice(x,1),g[_.__id]===_&&delete g[_.__id],_.__id=_.group.__ecComponentInfo=null)}},Kp=function(d,h,f,p,v){var g=d._model;if(g.setUpdatePayload(f),!p){U([].concat(d._componentsViews).concat(d._chartsViews),_);return}var m={};m[p+"Id"]=f[p+"Id"],m[p+"Index"]=f[p+"Index"],m[p+"Name"]=f[p+"Name"];var y={mainType:p,query:m};v&&(y.subType=v);var x=f.excludeSeriesId,w;x!=null&&(w=Pe(),U(kr(x),function(b){var C=dn(b,null);C!=null&&w.set(C,!0)})),g&&g.eachComponent(y,function(b){var C=w&&w.get(b.id)!=null;if(!C)if(SC(f))if(b instanceof Wr)f.type===al&&!f.notBlur&&!b.get(["emphasis","disabled"])&&R4(b,f,d._api);else{var M=xm(b.mainType,b.componentIndex,f.name,d._api),k=M.focusSelf,P=M.dispatchers;f.type===al&&k&&!f.notBlur&&ym(b.mainType,b.componentIndex,d._api),P&&U(P,function(R){f.type===al?fo(R):po(R)})}else wm(f)&&b instanceof Wr&&(B4(b,f,d._api),yC(b),Hi(d))},d),g&&g.eachComponent(y,function(b){var C=w&&w.get(b.id)!=null;C||_(d[p==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},d);function _(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,d._api,f)}},os={prepareAndUpdate:function(d){ic(this),os.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,h){var f=this._model,p=this._api,v=this._zr,g=this._coordSysMgr,m=this._scheduler;if(f){f.setUpdatePayload(d),m.restoreData(f,d),m.performSeriesTasks(f),g.create(f,p),m.performDataProcessorTasks(f,d),Iy(this,f),g.update(f,p),e(f),m.performVisualTasks(f,d),ky(this,f,p,d,h);var y=f.get("backgroundColor")||"transparent",x=f.get("darkMode");v.setBackgroundColor(y),x!=null&&x!=="auto"&&v.setDarkMode(x),la.trigger("afterupdate",f,p)}},updateTransform:function(d){var h=this,f=this._model,p=this._api;if(f){f.setUpdatePayload(d);var v=[];f.eachComponent(function(m,y){if(m!=="series"){var x=h.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var w=x.updateTransform(y,f,p,d);w&&w.update&&v.push(x)}else v.push(x)}});var g=Pe();f.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var x=y.updateTransform(m,f,p,d);x&&x.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),e(f),this._scheduler.performVisualTasks(f,d,{setDirty:!0,dirtyMap:g}),Yp(this,f,p,d,{},g),la.trigger("afterupdate",f,p)}},updateView:function(d){var h=this._model;h&&(h.setUpdatePayload(d),Lr.markUpdateMethod(d,"updateView"),e(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0}),ky(this,h,this._api,d,{}),la.trigger("afterupdate",h,this._api))},updateVisual:function(d){var h=this,f=this._model;f&&(f.setUpdatePayload(d),f.eachSeries(function(p){p.getData().clearAllVisual()}),Lr.markUpdateMethod(d,"updateVisual"),e(f),this._scheduler.performVisualTasks(f,d,{visualType:"visual",setDirty:!0}),f.eachComponent(function(p,v){if(p!=="series"){var g=h.getViewOfComponentModel(v);g&&g.__alive&&g.updateVisual(v,f,h._api,d)}}),f.eachSeries(function(p){var v=h._chartsMap[p.__viewId];v.updateVisual(p,f,h._api,d)}),la.trigger("afterupdate",f,this._api))},updateLayout:function(d){os.update.call(this,d)}},Ay=function(d,h,f,p){if(d._disposed){d.id;return}for(var v=d._model,g=d._coordSysMgr.getCoordinateSystems(),m,y=hd(v,f),x=0;x<g.length;x++){var w=g[x];if(w[h]&&(m=w[h](v,y,p))!=null)return m}},Iy=function(d,h){var f=d._chartsMap,p=d._scheduler;h.eachSeries(function(v){p.updateStreamModes(v,f[v.__viewId])})},Dy=function(d,h){var f=this,p=this.getModel(),v=d.type,g=d.escapeConnect,m=Zp[v],y=m.actionInfo,x=(y.update||"update").split(":"),w=x.pop(),_=x[0]!=null&&Da(x[0]);this[Nn]=!0;var b=[d],C=!1;d.batch&&(C=!0,b=de(d.batch,function(st){return st=Ne(ie({},st),d),st.batch=null,st}));var M=[],k,P=wm(d),R=SC(d);if(R&&mC(this._api),U(b,function(st){if(k=m.action(st,f._model,f._api),k=k||ie({},st),k.type=y.event||k.type,M.push(k),R){var dt=U0(d),xt=dt.queryOptionMap,Rt=dt.mainTypeSpecified,wt=Rt?xt.keys()[0]:"series";Kp(f,w,st,wt),Hi(f)}else P?(Kp(f,w,st,"series"),Hi(f)):_&&Kp(f,w,st,_.main,_.sub)}),w!=="none"&&!R&&!P&&!_)try{this[di]?(ic(this),os.update.call(this,d),this[di]=null):os[w].call(this,d)}catch(st){throw this[Nn]=!1,st}if(C?k={type:y.event||v,escapeConnect:g,batch:M}:k=M[0],this[Nn]=!1,!h){var j=this._messageCenter;if(j.trigger(k.type,k),P){var X={type:"selectchanged",escapeConnect:g,selected:V4(p),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};j.trigger(X.type,X)}}},Kd=function(d){for(var h=this._pendingActions;h.length;){var f=h.shift();Dy.call(this,f,d)}},Yd=function(d){!d&&this.trigger("updated")},EA=function(d,h){d.on("rendered",function(f){h.trigger("rendered",f),d.animation.isFinished()&&!h[di]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},LA=function(d,h){d.on("mouseover",function(f){var p=f.target,v=xl(p,wd);v&&(O4(v,f,h._api),Hi(h))}).on("mouseout",function(f){var p=f.target,v=xl(p,wd);v&&(N4(v,f,h._api),Hi(h))}).on("click",function(f){var p=f.target,v=xl(p,function(y){return He(y).dataIndex!=null},!0);if(v){var g=v.selected?"unselect":"select",m=He(v);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(d){d.clearColorPalette(),d.eachSeries(function(h){h.clearColorPalette()})}function n(d){var h=[],f=[],p=!1;if(d.eachComponent(function(y,x){var w=x.get("zlevel")||0,_=x.get("z")||0,b=x.getZLevelKey();p=p||!!b,(y==="series"?f:h).push({zlevel:w,z:_,idx:x.componentIndex,type:y,key:b})}),p){var v=h.concat(f),g,m;Cf(v,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),U(v,function(y){var x=d.getComponent(y.type,y.idx),w=y.zlevel,_=y.key;g!=null&&(w=Math.max(g,w)),_?(w===g&&_!==m&&w++,m=_):m&&(w===g&&w++,m=""),g=w,x.setZLevel(w)})}}ky=function(d,h,f,p,v){n(h),RA(d,h,f,p,v),U(d._chartsViews,function(g){g.__alive=!1}),Yp(d,h,f,p,v),U(d._chartsViews,function(g){g.__alive||g.remove(h,f)})},RA=function(d,h,f,p,v,g){U(g||d._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,f,p),s(y,m),c(y,m)})},Yp=function(d,h,f,p,v,g){var m=d._scheduler;v=ie(v||{},{updatedSeries:h.getSeries()}),la.trigger("series:beforeupdate",h,f,v);var y=!1;h.eachSeries(function(x){var w=d._chartsMap[x.__viewId];w.__alive=!0;var _=w.renderTask;m.updatePayload(_,p),u(x,w),g&&g.get(x.uid)&&_.dirty(),_.perform(m.getPerformArgs(_))&&(y=!0),w.group.silent=!!x.get("silent"),o(x,w),yC(x)}),m.unfinished=y||m.unfinished,la.trigger("series:layoutlabels",h,f,v),la.trigger("series:transition",h,f,v),h.eachSeries(function(x){var w=d._chartsMap[x.__viewId];s(x,w),c(x,w)}),a(d,h),la.trigger("series:afterupdate",h,f,v)},Hi=function(d){d[Cy]=!0,d.getZr().wakeUp()},BA=function(d){d[Cy]&&(d.getZr().storage.traverse(function(h){Ru(h)||i(h)}),d[Cy]=!1)};function i(d){for(var h=[],f=d.currentStates,p=0;p<f.length;p++){var v=f[p];v==="emphasis"||v==="blur"||v==="select"||h.push(v)}d.selected&&d.states.select&&h.push("select"),d.hoverState===qf&&d.states.emphasis?h.push("emphasis"):d.hoverState===md&&d.states.blur&&h.push("blur"),d.useStates(h)}function a(d,h){var f=d._zr,p=f.storage,v=0;p.traverse(function(g){g.isGroup||v++}),v>h.get("hoverLayerThreshold")&&!pr.node&&!pr.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=d._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(d,h){var f=d.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=f)})}function s(d,h){if(!d.preventAutoZ){var f=d.get("z")||0,p=d.get("zlevel")||0;h.eachRendered(function(v){return l(v,f,p,-1/0),!0})}}function l(d,h,f,p){var v=d.getTextContent(),g=d.getTextGuideLine(),m=d.isGroup;if(m)for(var y=d.childrenRef(),x=0;x<y.length;x++)p=Math.max(l(y[x],h,f,p),p);else d.z=h,d.zlevel=f,p=Math.max(d.z2,p);if(v&&(v.z=h,v.zlevel=f,isFinite(p)&&(v.z2=p+2)),g){var w=d.textGuideLineConfig;g.z=h,g.zlevel=f,isFinite(p)&&(g.z2=p+(w&&w.showAbove?1:-1))}return p}function u(d,h){h.eachRendered(function(f){if(!Ru(f)){var p=f.getTextContent(),v=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function c(d,h){var f=d.getModel("stateAnimation"),p=d.isAnimationEnabled(),v=f.get("duration"),g=v>0?{duration:v,delay:f.get("delay"),easing:f.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ru(m))return;if(m instanceof rr&&j4(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),w=m.getTextGuideLine();x&&(x.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&i(m)}})}OA=function(d){return new(function(h){Yt(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return d._model.getComponent(v.mainType,v.index);p=p.parent}},f.prototype.enterEmphasis=function(p,v){fo(p,v),Hi(d)},f.prototype.leaveEmphasis=function(p,v){po(p,v),Hi(d)},f.prototype.enterBlur=function(p){fC(p),Hi(d)},f.prototype.leaveBlur=function(p){gm(p),Hi(d)},f.prototype.enterSelect=function(p){pC(p),Hi(d)},f.prototype.leaveSelect=function(p){vC(p),Hi(d)},f.prototype.getModel=function(){return d.getModel()},f.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},f.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},f}(pT))(d)},NA=function(d){function h(f,p){for(var v=0;v<f.length;v++){var g=f[v];g[Ty]=p}}U(Xd,function(f,p){d._messageCenter.on(p,function(v){if(Jp[d.group]&&d[Ty]!==MA){if(v&&v.escapeConnect)return;var g=d.makeActionFromEvent(v),m=[];U(_l,function(y){y!==d&&y.group===d.group&&m.push(y)}),h(m,MA),U(m,function(y){y[Ty]!==L6&&y.dispatchAction(g)}),h(m,R6)}})})}}(),t}(Ii),Py=Xp.prototype;Py.on=AA("on"),Py.off=AA("off"),Py.one=function(r,t,e){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var O6=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Zst(r){}var Zp={},Xd={},Ey=[],Ly=[],$p=[],VA={},Ry={},_l={},Jp={},N6=+new Date-0,B6=+new Date-0,Oy="_echarts_instance_";function Ny(r,t,e){var n=!(e&&e.ssr);if(n){var i=zA(r);if(i)return i}var a=new Xp(r,t,e);return a.id="ec_"+N6++,_l[a.id]=a,n&&T_(r,Oy,a.id),NA(a),la.trigger("afterinit",a),a}function $st(r){if(isArray(r)){var t=r;r=null,each(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+B6++,each(t,function(e){e.group=r})}return Jp[r]=!0,r}function Jst(r){Jp[r]=!1}var Qst=null;function qst(r){isString(r)?r=_l[r]:r instanceof Xp||(r=zA(r)),r instanceof Xp&&!r.isDisposed()&&r.dispose()}function zA(r){return _l[I3(r,Oy)]}function tlt(r){return _l[r]}function HA(r,t){VA[r]=t}function By(r){tr(Ly,r)<0&&Ly.push(r)}function FA(r,t){zy(Ey,r,t,T6)}function V6(r){Vy("afterinit",r)}function z6(r){Vy("afterupdate",r)}function Vy(r,t){la.on(r,t)}function Ba(r,t,e){Re(t)&&(e=t,t="");var n=Be(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!Xd[t]&&(jn(TA.test(n)&&TA.test(t)),Zp[n]||(Zp[n]={action:e,actionInfo:r}),Xd[t]=n)}function H6(r,t){Id.register(r,t)}function elt(r){var t=CoordinateSystemManager.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function WA(r,t){zy($p,r,t,bA,"layout")}function Cl(r,t){zy($p,r,t,_A,"visual")}var jA=[];function zy(r,t,e,n,i){if((Re(t)||Be(t))&&(e=t,t=n),!(tr(jA,e)>=0)){jA.push(e);var a=ZM.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function GA(r,t){Ry[r]=t}function rlt(r){setPlatformAPI({createCanvas:r})}function Qp(r,t,e){var n=S6("registerMap");n&&n(r,t,e)}function nlt(r){var t=getImpl("getMap");return t&&t(r)}var F6=gz;Cl(_y,CH),Cl(Up,TH),Cl(Up,MH),Cl(_y,FH),Cl(Up,WH),Cl(CA,m6),By(wT),FA(_6,YV),GA("default",AH),Ba({type:al,event:al,update:al},rn),Ba({type:tp,event:tp,update:tp},rn),Ba({type:xd,event:xd,update:xd},rn),Ba({type:ep,event:ep,update:ep},rn),Ba({type:Sd,event:Sd,update:Sd},rn),HA("light",VH),HA("dark",zH);var qp={},UA=[],W6={registerPreprocessor:By,registerProcessor:FA,registerPostInit:V6,registerPostUpdate:z6,registerUpdateLifecycle:Vy,registerAction:Ba,registerCoordinateSystem:H6,registerLayout:WA,registerVisual:Cl,registerTransform:F6,registerLoading:GA,registerMap:Qp,registerImpl:x6,PRIORITY:E6,ComponentModel:gr,ComponentView:Zr,SeriesModel:Wr,ChartView:Lr,registerComponentModel:function(r){gr.registerClass(r)},registerComponentView:function(r){Zr.registerClass(r)},registerSeriesModel:function(r){Wr.registerClass(r)},registerChartView:function(r){Lr.registerClass(r)},registerSubTypeDefaulter:function(r,t){gr.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){s3(r,t)}};function Ze(r){if(ce(r)){U(r,function(t){Ze(t)});return}tr(UA,r)>=0||(UA.push(r),Re(r)&&(r={install:r}),r.install(W6))}function Zd(r){return r==null?0:r.length||1}function KA(r){return r}var j6=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||KA,this._newKeyGetter=i||KA,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Zd(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],d=Zd(u),h=Zd(c);if(d>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(d===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(d===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(d>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(d>1)for(var f=0;f<d;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=Zd(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var l=e[s],u=Zd(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const xo=j6;var G6=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function U6(r,t){var e={},n=e.encode={},i=Pe(),a=[],o=[],s={};U(r.dimensions,function(h){var f=r.getDimensionInfo(h),p=f.coordDim;if(p){var v=f.coordDimIndex;Hy(n,p)[v]=h,f.isExtraCoord||(i.set(p,1),K6(f.type)&&(a[0]=h),Hy(s,p)[v]=r.getDimensionIndex(f.name)),f.defaultTooltip&&o.push(h)}QC.each(function(g,m){var y=Hy(n,m),x=f.otherDims[m];x!=null&&x!==!1&&(y[x]=f.name)})});var l=[],u={};i.each(function(h,f){var p=n[f];u[f]=p[0],l=l.concat(p)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=de(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var d=n.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new G6(s,t),e}function Hy(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function tv(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function K6(r){return!(r==="ordinal"||r==="time")}var Y6=function(){function r(t){this.otherDims={},t!=null&&ie(this,t)}return r}();const ev=Y6;var X6=cr(),Z6={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},YA=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=$A(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return We(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=TT(this.source),n=!JA(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===o)l=e?d.name:null,u=d.type,c=d.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!d||!d.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Z6[u]||"f",c&&(i+=c.uid),i+="$"}var f=this.source,p=[f.seriesLayoutBy,f.startIndex,i].join("$$");return{dimensions:a,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function XA(r){return r instanceof YA}function ZA(r){for(var t=Pe(),e=0;e<(r||[]).length;e++){var n=r[e],i=Be(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function $A(r){var t=X6(r);return t.dimNameMap||(t.dimNameMap=ZA(r.dimensionsDefine))}function JA(r){return r>30}var $d=Be,ss=de,$6=typeof Int32Array>"u"?Array:Int32Array,J6="e\0\0",QA=-1,Q6=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],q6=["_approximateExtent"],qA,rv,Jd,Qd,Fy,nv,Wy,tF=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;XA(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var d=n[c],h=_e(d)?new ev({name:d}):d instanceof ev?d:new ev(d),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(f),a[f]=h,u[f]!=null&&(l=!0),h.createInvertedIndices&&(s[f]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),i&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=Pe();U(o,function(g){v.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(vr(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof ty&&(a=t),!a){var o=this.dimensions,s=Um(t)||En(t)?new IT(t,o.length):t;a=new ty;var l=ss(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=U6(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&Wy(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==go&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ni;if(l&&!i.pure)for(var u=[],c=t;c<e;c++){var d=i.getItem(c,u);if(!this.hasItemOption&&v3(d)&&(this.hasItemOption=!0),d){var h=d.name;a[c]==null&&h!=null&&(a[c]=dn(h,null));var f=d.id;o[c]==null&&f!=null&&(o[c]=dn(f,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)Wy(this,c);qA(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){$d(t)?ie(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=Jd(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return rv(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return ce(t)?i.getValues(ss(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return i==null||isNaN(i)?QA:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){"use strict";Re(t)&&(n=e,e=t,t=[]);var i=n||this,a=ss(Qd(t),this._getStoreDimIndex,this);this._store.each(a,i?Te(e,i):e)},r.prototype.filterSelf=function(t,e,n){"use strict";Re(t)&&(n=e,e=t,t=[]);var i=n||this,a=ss(Qd(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Te(e,i):e),this},r.prototype.selectRange=function(t){"use strict";var e=this,n={},i=nr(t),a=[];return U(i,function(o){var s=e._getStoreDimIndex(o);n[s]=t[o],a.push(s)}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){"use strict";Re(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){"use strict";var a=n||i||this,o=ss(Qd(t),this._getStoreDimIndex,this),s=nv(this);return s._store=this._store.map(o,a?Te(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=this,o=n||i||this,s=ss(Qd(t),this._getStoreDimIndex,this);this._store.modify(s,o?Te(e,o):e)},r.prototype.downSample=function(t,e,n,i){var a=nv(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.lttbDownSample=function(t,e){var n=nv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Er(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new xo(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return rv(t,n)},function(n){return rv(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},$d(t)?ie(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i==null?this.getVisual(e):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),ce(a)?a=a.slice():$d(a)&&(a=ie({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,$d(e)?ie(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){$d(t)?ie(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?ie(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;dm(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){U(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ss(this.dimensions,this._getDimInfo,this),this.hostModel)),Fy(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];Re(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Wg(arguments)))})},r.internalField=function(){qA=function(t){var e=t._invertedIndicesMap;U(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new $6(o.categories.length);for(var l=0;l<n.length;l++)n[l]=QA;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Jd=function(t,e,n){return dn(t._getCategory(e,n),null)},rv=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Jd(t,t._idDimIdx,e)),n==null&&(n=J6+e),n},Qd=function(t){return ce(t)||(t=t!=null?[t]:[]),t},nv=function(t){var e=new r(t._schema?t._schema:ss(t.dimensions,t._getDimInfo,t),t.hostModel);return Fy(e,t),e},Fy=function(t,e){U(Q6.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,U(q6,function(n){t[n]=Ve(e[n])}),t._calculationInfo=ie({},e._calculationInfo)},Wy=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=Jd(t,a,e)),l==null&&o!=null&&(i[e]=l=Jd(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[e]=l}}}(),r}();const kn=tF;function t2(r,t){return ac(r,t).dimensions}function ac(r,t){Um(r)||(r=Ym(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=Pe(),a=[],o=rF(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&JA(o),l=n===r.dimensionsDefine,u=l?$A(r):ZA(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var d=Pe(c),h=new FT(o),f=0;f<h.length;f++)h[f]=-1;function p(k){var P=h[k];if(P<0){var R=n[k],j=Be(R)?R:{name:R},X=new ev,st=j.name;st!=null&&u.get(st)!=null&&(X.name=X.displayName=st),j.type!=null&&(X.type=j.type),j.displayName!=null&&(X.displayName=j.displayName);var dt=a.length;return h[k]=dt,X.storeDimIndex=k,a.push(X),X}return a[P]}if(!s)for(var f=0;f<o;f++)p(f);d.each(function(k,P){var R=kr(k).slice();if(R.length===1&&!_e(R[0])&&R[0]<0){d.set(P,!1);return}var j=d.set(P,[]);U(R,function(X,st){var dt=_e(X)?u.get(X):X;dt!=null&&dt<o&&(j[st]=dt,g(p(dt),P,st))})});var v=0;U(e,function(k){var P,R,j,X;if(_e(k))P=k,X={};else{X=k,P=X.name;var st=X.ordinalMeta;X.ordinalMeta=null,X=ie({},X),X.ordinalMeta=st,R=X.dimsDef,j=X.otherDims,X.name=X.coordDim=X.coordDimIndex=X.dimsDef=X.otherDims=null}var dt=d.get(P);if(dt!==!1){if(dt=kr(dt),!dt.length)for(var xt=0;xt<(R&&R.length||1);xt++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&dt.push(v++)}U(dt,function(Rt,wt){var Lt=p(Rt);if(l&&X.type!=null&&(Lt.type=X.type),g(Ne(Lt,X),P,wt),Lt.name==null&&R){var Ft=R[wt];!Be(Ft)&&(Ft={name:Ft}),Lt.name=Lt.displayName=Ft.name,Lt.defaultTooltip=Ft.defaultTooltip}j&&Ne(Lt.otherDims,j)})}});function g(k,P,R){QC.get(P)!=null?k.otherDims[P]=R:(k.coordDim=P,k.coordDimIndex=R,i.set(P,!0))}var m=t.generateCoord,y=t.generateCoordCount,x=y!=null;y=m?y||1:0;var w=m||"value";function _(k){k.name==null&&(k.name=k.coordDim)}if(s)U(a,function(k){_(k)}),a.sort(function(k,P){return k.storeDimIndex-P.storeDimIndex});else for(var b=0;b<o;b++){var C=p(b),M=C.coordDim;M==null&&(C.coordDim=nF(w,i,x),C.coordDimIndex=0,(!m||y<=0)&&(C.isExtraCoord=!0),y--),_(C),C.type==null&&(rT(r,b)===Dn.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return eF(a),new YA({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function eF(r){for(var t=Pe(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function rF(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return U(t,function(a){var o;Be(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function nF(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var iF=function(){function r(t){this.coordSysDims=[],this.axisMap=Pe(),this.categoryAxisMap=Pe(),this.coordSysName=t}return r}();function aF(r){var t=r.get("coordinateSystem"),e=new iF(t),n=oF[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var oF={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",sn).models[0],a=r.getReferringComponents("yAxis",sn).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),oc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),oc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",sn).models[0];t.coordSysDims=["single"],e.set("single",i),oc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",sn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),oc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),oc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();U(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];e.set(c,u),oc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function oc(r){return r.get("type")==="category"}function e2(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;sF(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,d,h;if(U(a,function(y,x){_e(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){d="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var f=c.coordDim,p=c.type,v=0;U(a,function(y){y.coordDim===f&&v++});var g={name:d,coordDim:f,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,p),m.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:d}}function sF(r){return!XA(r.schema)}function So(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function jy(r,t){return So(r,t)?r.getCalculationInfo("stackResultDimension"):t}function lF(r,t){var e=r.get("coordinateSystem"),n=Id.get(e),i;return t&&t.coordSysDims&&(i=de(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=tv(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function uF(r,t,e){var n,i;return e&&U(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function cF(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Ym(r)):(i=n.getSource(),a=i.sourceFormat===Ni);var o=aF(t),s=lF(t,o),l=e.useEncodeDefaulter,u=Re(l)?l:l?je(eT,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},d=ac(i,c),h=uF(d.dimensions,e.createInvertedIndices,o),f=a?null:n.getSharedDataStore(d),p=e2(t,{schema:d,store:f}),v=new kn(d,t);v.setCalculationInfo(p);var g=h!=null&&dF(i)?function(m,y,x,w){return w===h?x:this.defaultDimValueGetter(m,y,x,w)}:null;return v.hasItemOption=!1,v.initData(a?i:f,null,g),v}function dF(r){if(r.sourceFormat===Ni){var t=hF(r.data||[]);return!ce(Du(t))}}function hF(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}const Va=cF;var r2=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Uf(r2);const wo=r2;var fF=0,pF=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++fF}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&de(n,vF);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!_e(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Pe(this.categories))},r}();function vF(r){return Be(r)&&r.value!=null?r.value:r+""}const Gy=pF;function ilt(r){var t=Math.pow(10,quantityExponent(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function Uy(r){return r.type==="interval"||r.type==="log"}function gF(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=f_(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=n2(o),l=i.niceTickExtent=[Qr(Math.ceil(r[0]/o)*o,s),Qr(Math.floor(r[1]/o)*o,s)];return mF(l,r),i}function Ky(r){var t=Math.pow(10,W0(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Qr(e*t)}function n2(r){return Ia(r)+2}function i2(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function mF(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),i2(r,0,t),i2(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function iv(r,t){return r>=t[0]&&r<=t[1]}function av(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function ov(r,t){return r*(t[1]-t[0])+t[0]}var a2=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Gy({})),ce(i)&&(i=new Gy({categories:de(i,function(a){return Be(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:_e(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),iv(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),av(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(ov(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wo);wo.registerClass(a2);const Yy=a2;var Tl=Qr,o2=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return iv(e,this._extent)},t.prototype.normalize=function(e){return av(e,this._extent)},t.prototype.scale=function(e){return ov(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=n2(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:Tl(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Tl(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(e?s.push({value:Tl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],d=s.value-l.value,h=d/e;u<e-1;){var f=Tl(l.value+(u+1)*h);f>a[0]&&f<a[1]&&c.push(f),u++}i.push(c)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=Ia(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Tl(e.value,i,!0);return UC(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=gF(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=Tl(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=Tl(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(wo);wo.registerClass(o2);const ls=o2;var s2=typeof Float32Array<"u",yF=s2?Float32Array:Array;function za(r){return ce(r)?s2?new Float32Array(r):r:new yF(r)}var Xy="__ec_stack_";function Zy(r){return r.get("stack")||Xy+r.seriesIndex}function $y(r){return r.dim+r.index}function xF(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var i=e.getBandWidth(),a=0;a<r.count;a++)t.push(Ne({bandWidth:i,axisKey:n,stackId:Xy+a},r));for(var o=c2(t),s=[],a=0;a<r.count;a++){var l=o[n][Xy+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function l2(r,t){var e=[];return t.eachSeriesByType(r,function(n){f2(n)&&e.push(n)}),e}function SF(r){var t={};U(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var d=l.getData(),h=c.dim+"_"+c.index,f=d.getDimensionIndex(d.mapDimension(c.dim)),p=d.getStore(),v=0,g=p.count();v<g;++v){var m=p.get(f,v);t[h]?t[h].push(m):t[h]=[m]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function u2(r){var t=SF(r),e=[];return U(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),h=Math.abs(d[1]-d[0]);s=u?c/h*u:c}else{var f=n.getData();s=Math.abs(o[1]-o[0])/f.count()}var p=xe(n.get("barWidth"),s),v=xe(n.get("barMaxWidth"),s),g=xe(n.get("barMinWidth")||(p2(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:$y(a),stackId:Zy(n)})}),c2(e)}function c2(r){var t={};U(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=n.barMaxWidth;d&&(l[u].maxWidth=d);var h=n.barMinWidth;h&&(l[u].minWidth=h);var f=n.barGap;f!=null&&(s.gap=f);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var e={};return U(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=nr(a).length;s=Math.max(35-l*4,15)+"%"}var u=xe(s,o),c=xe(n.gap,1),d=n.remainedWidth,h=n.autoWidthCount,f=(d-u)/(h+(h-1)*c);f=Math.max(f,0),U(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var w=m.width;y&&(w=Math.min(w,y)),x&&(w=Math.max(w,x)),m.width=w,d-=w+c*w,h--}else{var w=f;y&&y<w&&(w=Math.min(y,d)),x&&x>w&&(w=x),w!==f&&(m.width=w,d-=w+c*w,h--)}}),f=(d-u)/(h+(h-1)*c),f=Math.max(f,0);var p=0,v;U(a,function(m,y){m.width||(m.width=f),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;U(a,function(m,y){e[i][y]=e[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),e}function wF(r,t,e){if(r&&t){var n=r[$y(t)];return n!=null&&e!=null?n[Zy(e)]:n}}function d2(r,t){var e=l2(r,t),n=u2(e);U(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Zy(i),u=n[$y(s)][l],c=u.offset,d=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function h2(r){return{seriesType:r,plan:Yu(),reset:function(t){if(f2(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),c=e.getCalculationInfo("stackResultDimension"),d=So(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),f=bF(i,a),p=p2(t),v=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(x,w){for(var _=x.count,b=p&&za(_*3),C=p&&l&&za(_*3),M=p&&za(_),k=n.master.getRect(),P=h?k.width:k.height,R,j=w.getStore(),X=0;(R=x.next())!=null;){var st=j.get(d?g:o,R),dt=j.get(s,R),xt=f,Rt=void 0;d&&(Rt=+st-j.get(o,R));var wt=void 0,Lt=void 0,Ft=void 0,Kt=void 0;if(h){var Ut=n.dataToPoint([st,dt]);if(d){var Bt=n.dataToPoint([Rt,dt]);xt=Bt[0]}wt=xt,Lt=Ut[1]+y,Ft=Ut[0]-xt,Kt=m,Math.abs(Ft)<v&&(Ft=(Ft<0?-1:1)*v)}else{var Ut=n.dataToPoint([dt,st]);if(d){var Bt=n.dataToPoint([dt,Rt]);xt=Bt[1]}wt=Ut[0]+y,Lt=xt,Ft=m,Kt=Ut[1]-xt,Math.abs(Kt)<v&&(Kt=(Kt<=0?-1:1)*v)}p?(b[X]=wt,b[X+1]=Lt,b[X+2]=h?Ft:Kt,C&&(C[X]=h?k.x:wt,C[X+1]=h?Lt:k.y,C[X+2]=P),M[R]=R):w.setItemLayout(R,{x:wt,y:Lt,width:Ft,height:Kt}),X+=3}p&&w.setLayout({largePoints:b,largeDataIndices:M,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function f2(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function p2(r){return r.pipelineContext&&r.pipelineContext.large}function bF(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var _F=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},v2=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return up(e.value,OC[lV(Vu(this._minLevelUnit))]||OC.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return uV(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=kF(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Oi,n[1]+=Oi),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Oi}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=sv.length,l=Math.min(_F(sv,this._approxInterval,0,s),s-1);this._interval=sv[l][1],this._minLevelUnit=sv[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return vr(e)?e:+ra(e)},t.prototype.contain=function(e){return iv(this.parse(e),this._extent)},t.prototype.normalize=function(e){return av(this.parse(e),this._extent)},t.prototype.scale=function(e){return ov(e,this._extent)},t.type="time",t}(ls),sv=[["second",km],["minute",Pm],["hour",_d],["quarter-day",_d*6],["half-day",_d*12],["day",Oi*1.2],["half-week",Oi*3.5],["week",Oi*7],["month",Oi*31],["quarter",Oi*95],["half-year",RC/2],["year",RC]];function CF(r,t,e,n){var i=ra(t),a=ra(e),o=function(p){return VC(i,p,n)===VC(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},h=function(){return d()&&o("second")},f=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return f()}}function TF(r,t){return r/=Oi,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function MF(r){var t=30*Oi;return r/=t,r>6?6:r>3?3:r>2?2:1}function AF(r){return r/=_d,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function g2(r,t){return r/=t?Pm:km,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function IF(r){return f_(r,!0)}function DF(r,t,e){var n=new Date(r);switch(Vu(t)){case"year":case"month":n[zC(e)](0);case"day":n[HC(e)](1);case"hour":n[FC(e)](0);case"minute":n[WC(e)](0);case"second":n[jC(e)](0),n[GC(e)](0)}return n.getTime()}function kF(r,t,e,n){var i=1e4,a=NC,o=0;function s(P,R,j,X,st,dt,xt){for(var Rt=new Date(R),wt=R,Lt=Rt[X]();wt<j&&wt<=n[1];)xt.push({value:wt}),Lt+=P,Rt[st](Lt),wt=Rt.getTime();xt.push({value:wt,notAdd:!0})}function l(P,R,j){var X=[],st=!R.length;if(!CF(Vu(P),n[0],n[1],e)){st&&(R=[{value:DF(new Date(n[0]),P,e)},{value:n[1]}]);for(var dt=0;dt<R.length-1;dt++){var xt=R[dt].value,Rt=R[dt+1].value;if(xt!==Rt){var wt=void 0,Lt=void 0,Ft=void 0,Kt=!1;switch(P){case"year":wt=Math.max(1,Math.round(t/Oi/365)),Lt=Lm(e),Ft=cV(e);break;case"half-year":case"quarter":case"month":wt=MF(t),Lt=zu(e),Ft=zC(e);break;case"week":case"half-week":case"day":wt=TF(t,31),Lt=cp(e),Ft=HC(e),Kt=!0;break;case"half-day":case"quarter-day":case"hour":wt=AF(t),Lt=Td(e),Ft=FC(e);break;case"minute":wt=g2(t,!0),Lt=dp(e),Ft=WC(e);break;case"second":wt=g2(t,!1),Lt=hp(e),Ft=jC(e);break;case"millisecond":wt=IF(t),Lt=fp(e),Ft=GC(e);break}s(wt,xt,Rt,Lt,Ft,Kt,X),P==="year"&&j.length>1&&dt===0&&j.unshift({value:j[0].value-wt})}}for(var dt=0;dt<X.length;dt++)j.push(X[dt]);return X}}for(var u=[],c=[],d=0,h=0,f=0;f<a.length&&o++<i;++f){var p=Vu(a[f]);if(sV(a[f])){l(a[f],u[u.length-1]||[],c);var v=a[f+1]?Vu(a[f+1]):null;if(p!==v){if(c.length){h=d,c.sort(function(P,R){return P.value-R.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=n[0]&&y<=n[1]&&d++)}var x=(n[1]-n[0])/t;if(d>x*1.5&&h>x/1.5||(u.push(g),d>x||r===a[f]))break}c=[]}}}for(var w=Ir(de(u,function(P){return Ir(P,function(R){return R.value>=n[0]&&R.value<=n[1]&&!R.notAdd})}),function(P){return P.length>0}),_=[],b=w.length-1,f=0;f<w.length;++f)for(var C=w[f],M=0;M<C.length;++M)_.push({value:C[M].value,level:b-f});_.sort(function(P,R){return P.value-R.value});for(var k=[],f=0;f<_.length;++f)(f===0||_[f].value!==_[f-1].value)&&k.push(_[f]);return k}wo.registerClass(v2);const m2=v2;var y2=wo.prototype,qd=ls.prototype,PF=Qr,EF=Math.floor,LF=Math.ceil,lv=Math.pow,ua=Math.log,Jy=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ls,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=qd.getTicks.call(this,e);return de(o,function(s){var l=s.value,u=Qr(lv(this.base,l));return u=l===i[0]&&this._fixMin?uv(u,a[0]):u,u=l===i[1]&&this._fixMax?uv(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=ua(this.base);e=ua(Math.max(0,e))/i,n=ua(Math.max(0,n))/i,qd.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=y2.getExtent.call(this);n[0]=lv(e,n[0]),n[1]=lv(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=uv(n[0],a[0])),this._fixMax&&(n[1]=uv(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=ua(e[0])/ua(n),e[1]=ua(e[1])/ua(n),y2.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=p3(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Qr(LF(n[0]/a)*a),Qr(EF(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){qd.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ua(e)/ua(this.base),iv(e,this._extent)},t.prototype.normalize=function(e){return e=ua(e)/ua(this.base),av(e,this._extent)},t.prototype.scale=function(e){return e=ov(e,this._extent),lv(this.base,e)},t.type="log",t}(wo),x2=Jy.prototype;x2.getMinorTicks=qd.getMinorTicks,x2.getLabel=qd.getLabel;function uv(r,t){return PF(r,Ia(t))}wo.registerClass(Jy);const RF=Jy;var OF=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);Re(a)?this._modelMinNum=cv(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=cv(t,a));var o=this._modelMaxRaw=e.get("max",!0);if(Re(o)?this._modelMaxNum=cv(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=cv(t,o)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=ce(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ea(l[0],1),ea(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=Uc(s)||Uc(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,f=this._determinedMax;return h!=null&&(s=h,u=!0),f!=null&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},r.prototype.modifyDataMinMax=function(t,e){this[BF[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=NF[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),NF={min:"_determinedMin",max:"_determinedMax"},BF={min:"_dataMin",max:"_dataMax"};function S2(r,t,e){var n=r.rawExtentInfo;return n||(n=new OF(r,t,e),r.rawExtentInfo=n,n)}function cv(r,t){return t==null?null:Uc(t)?NaN:r.parse(t)}function w2(r,t){var e=r.type,n=S2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=l2("bar",o),l=!1;if(U(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var u=u2(s),c=VF(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function VF(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=wF(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;U(o,function(f){s=Math.min(f.offset,s)});var l=-1/0;U(o,function(f){l=Math.max(f.offset+f.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,d=1-(s+l)/a,h=c/d-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Ml(r,t){var e=t,n=w2(r,e),i=n.extent,a=e.get("splitNumber");r instanceof RF&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function th(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Yy({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new m2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(wo.getClass(t)||ls)}}function zF(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function eh(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):_e(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):Re(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Qy(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Qy(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function HF(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Yy?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=eh(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=n?n[c]:{value:a[0]+c},h=s(d,c),f=o.getTextRect(h),p=FF(f,o.get("rotate")||0);l?l.union(p):l=p}return l}}function FF(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new Xe(r.x,r.y,a,o);return s}function qy(r){var t=r.get("interval");return t==null?"auto":t}function b2(r){return r.type==="category"&&qy(r.getLabelModel())===0}function dv(r,t){var e={};return U(r.mapDimensionsAll(t),function(n){e[jy(r,n)]=!0}),nr(e)}function WF(r,t,e){t&&U(dv(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var sc=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function alt(r){return Va(null,r)}var olt={isDimensionStacked:So,enableDataStack:e2,getStackedDimension:jy};function slt(r,t){var e=t;t instanceof Er||(e=new Er(t));var n=th(e);return n.setExtent(r[0],r[1]),Ml(n,e),n}function llt(r){en(r,sc)}function hv(r,t){return t=t||{},Or(r,null,null,t.state!=="normal")}function ult(r,t,e,n,i,a,o,s){var l=new ar({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function clt(r){var t=ComponentModel.extend(r);return ComponentModel.registerClass(t),t}function dlt(r){var t=ComponentView.extend(r);return ComponentView.registerClass(t),t}function _2(r){var t=Wr.extend(r);return Wr.registerClass(t),t}function C2(r){var t=Lr.extend(r);return Lr.registerClass(t),t}var rh=Math.PI*2,Al=La.CMD,jF=["top","right","bottom","left"];function GF(r,t,e,n,i){var a=e.width,o=e.height;switch(r){case"top":n.set(e.x+a/2,e.y-t),i.set(0,-1);break;case"bottom":n.set(e.x+a/2,e.y+o+t),i.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":n.set(e.x+a+t,e.y+o/2),i.set(1,0);break}}function UF(r,t,e,n,i,a,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,d=s*e+t;if(Math.abs(n-i)%rh<1e-4)return l[0]=c,l[1]=d,u-e;if(a){var h=n;n=Ci(i),i=Ci(h)}else n=Ci(n),i=Ci(i);n>i&&(i+=rh);var f=Math.atan2(s,o);if(f<0&&(f+=rh),f>=n&&f<=i||f+rh>=n&&f+rh<=i)return l[0]=c,l[1]=d,u-e;var p=e*Math.cos(n)+r,v=e*Math.sin(n)+t,g=e*Math.cos(i)+r,m=e*Math.sin(i)+t,y=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y<x?(l[0]=p,l[1]=v,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(x))}function fv(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,c=e-r,d=n-t,h=Math.sqrt(c*c+d*d);c/=h,d/=h;var f=l*c+u*d,p=f/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var v=o[0]=r+p*c,g=o[1]=t+p*d;return Math.sqrt((v-i)*(v-i)+(g-a)*(g-a))}function T2(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(i,r),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var ca=[];function KF(r,t,e){var n=T2(t.x,t.y,t.width,t.height,r.x,r.y,ca);return e.set(ca[0],ca[1]),n}function YF(r,t,e){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,d=r.x,h=r.y,f=0;f<c.length;){var p=c[f++];f===1&&(n=c[f],i=c[f+1],a=n,o=i);var v=u;switch(p){case Al.M:a=c[f++],o=c[f++],n=a,i=o;break;case Al.L:v=fv(n,i,c[f],c[f+1],d,h,ca,!0),n=c[f++],i=c[f++];break;case Al.C:v=Db(n,i,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],d,h,ca),n=c[f++],i=c[f++];break;case Al.Q:v=Pb(n,i,c[f++],c[f++],c[f],c[f+1],d,h,ca),n=c[f++],i=c[f++];break;case Al.A:var g=c[f++],m=c[f++],y=c[f++],x=c[f++],w=c[f++],_=c[f++];f+=1;var b=!!(1-c[f++]);s=Math.cos(w)*y+g,l=Math.sin(w)*x+m,f<=1&&(a=s,o=l);var C=(d-g)*x/y+g;v=UF(g,m,x,w,w+_,b,C,h,ca),n=Math.cos(w+_)*y+g,i=Math.sin(w+_)*x+m;break;case Al.R:a=n=c[f++],o=i=c[f++];var M=c[f++],k=c[f++];v=T2(a,o,M,k,d,h,ca);break;case Al.Z:v=fv(n,i,a,o,d,h,ca,!0),n=a,i=o;break}v<u&&(u=v,e.set(ca[0],ca[1]))}return u}var da=new Ye,Nr=new Ye,nn=new Ye,Ha=new Ye,Fa=new Ye;function M2(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||jF,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=r.getComputedTransform(),d=c&&wu([],c),h=t.get("length2")||0;u&&nn.copy(u);for(var f=0;f<o.length;f++){var p=o[f];GF(p,0,s,da,Ha),Ye.scaleAndAdd(Nr,da,Ha,h),Nr.transform(d);var v=r.getBoundingRect(),g=u?u.distance(Nr):r instanceof rr?YF(Nr,r.path,nn):KF(Nr,v,nn);g<l&&(l=g,Nr.transform(c),nn.transform(c),nn.toArray(a[0]),Nr.toArray(a[1]),da.toArray(a[2]))}A2(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var pv=[],Zn=new Ye;function A2(r,t){if(t<=180&&t>0){t=t/180*Math.PI,da.fromArray(r[0]),Nr.fromArray(r[1]),nn.fromArray(r[2]),Ye.sub(Ha,da,Nr),Ye.sub(Fa,nn,Nr);var e=Ha.len(),n=Fa.len();if(!(e<.001||n<.001)){Ha.scale(1/e),Fa.scale(1/n);var i=Ha.dot(Fa),a=Math.cos(t);if(a<i){var o=fv(Nr.x,Nr.y,nn.x,nn.y,da.x,da.y,pv,!1);Zn.fromArray(pv),Zn.scaleAndAdd(Fa,o/Math.tan(Math.PI-t));var s=nn.x!==Nr.x?(Zn.x-Nr.x)/(nn.x-Nr.x):(Zn.y-Nr.y)/(nn.y-Nr.y);if(isNaN(s))return;s<0?Ye.copy(Zn,Nr):s>1&&Ye.copy(Zn,nn),Zn.toArray(r[1])}}}}function XF(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,da.fromArray(r[0]),Nr.fromArray(r[1]),nn.fromArray(r[2]),Ye.sub(Ha,Nr,da),Ye.sub(Fa,nn,Nr);var n=Ha.len(),i=Fa.len();if(!(n<.001||i<.001)){Ha.scale(1/n),Fa.scale(1/i);var a=Ha.dot(t),o=Math.cos(e);if(a<o){var s=fv(Nr.x,Nr.y,nn.x,nn.y,da.x,da.y,pv,!1);Zn.fromArray(pv);var l=Math.PI/2,u=Math.acos(Fa.dot(t)),c=l+u-e;if(c>=l)Ye.copy(Zn,nn);else{Zn.scaleAndAdd(Fa,s/Math.tan(Math.PI/2-c));var d=nn.x!==Nr.x?(Zn.x-Nr.x)/(nn.x-Nr.x):(Zn.y-Nr.y)/(nn.y-Nr.y);if(isNaN(d))return;d<0?Ye.copy(Zn,Nr):d>1&&Ye.copy(Zn,nn)}Zn.toArray(r[1])}}}}function tx(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function ZF(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=Wo(n[0],n[1]),a=Wo(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=Sf([],n[1],n[0],o/i),l=Sf([],n[1],n[2],o/a),u=Sf([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)r.lineTo(n[c][0],n[c][1])}function ex(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<yd.length;l++){var u=yd[l],c=t[u],d=u==="normal";if(c){var h=c.get("show"),f=d?s:We(i.states[u]&&i.states[u].ignore,s);if(f||!We(h,o)){var p=d?n:n&&n.states[u];p&&(p.ignore=!0),n&&tx(n,!0,u,c);continue}n||(n=new li,r.setTextGuideLine(n),!d&&(s||!o)&&tx(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),tx(n,!1,u,c)}}if(n){Ne(n.style,e),n.style.fill=null;var v=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=v||!1,n.buildPath=ZF}}function rx(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<Kn.length;n++){var i=Kn[n];e[i]=r.getModel([i,t])}return e}function I2(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Ep(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function D2(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(k,P){return k.rect[t]-P.rect[t]});for(var s=0,l,u=!1,c=[],d=0,h=0;h<o;h++){var f=r[h],p=f.rect;l=p[t]-s,l<0&&(p[t]-=l,f.label[t]-=l,u=!0);var v=Math.max(-l,0);c.push(v),d+=v,s=p[t]+p[e]}d>0&&a&&b(-d/o,0,o);var g=r[0],m=r[o-1],y,x;w(),y<0&&C(-y,.8),x<0&&C(x,.8),w(),_(y,x,1),_(x,y,-1),w(),y<0&&M(-y),x<0&&M(x);function w(){y=g.rect[t]-n,x=i-m.rect[t]-m.rect[e]}function _(k,P,R){if(k<0){var j=Math.min(P,-k);if(j>0){b(j*R,0,o);var X=j+k;X<0&&C(-X*R,1)}else C(-k*R,1)}}function b(k,P,R){k!==0&&(u=!0);for(var j=P;j<R;j++){var X=r[j],st=X.rect;st[t]+=k,X.label[t]+=k}}function C(k,P){for(var R=[],j=0,X=1;X<o;X++){var st=r[X-1].rect,dt=Math.max(r[X].rect[t]-st[t]-st[e],0);R.push(dt),j+=dt}if(j){var xt=Math.min(Math.abs(k)/j,P);if(k>0)for(var X=0;X<o-1;X++){var Rt=R[X]*xt;b(Rt,0,X+1)}else for(var X=o-1;X>0;X--){var Rt=R[X-1]*xt;b(-Rt,X,o)}}}function M(k){var P=k<0?-1:1;k=Math.abs(k);for(var R=Math.ceil(k/(o-1)),j=0;j<o-1;j++)if(P>0?b(R,0,j+1):b(-R,o-j-1,o),k-=R,k<=0)return}return u}function $F(r,t,e,n){return D2(r,"x","width",t,e,n)}function k2(r,t,e,n){return D2(r,"y","height",t,e,n)}function P2(r){var t=[];r.sort(function(v,g){return g.priority-v.priority});var e=new Xe(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var d=a.obb,h=!1,f=0;f<t.length;f++){var p=t[f];if(e.intersect(p.rect)){if(o&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new Ep(p.localRect,p.transform)),d||(d=new Ep(s,l)),d.intersect(p.obb)){h=!0;break}}}h?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function JF(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function QF(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:JF(n&&n.shape.points)}}var E2=["align","verticalAlign","width","height","fontSize"],$n=new so,nx=cr(),qF=cr();function vv(r,t,e){for(var n=0;n<e.length;n++){var i=e[n];t[i]!=null&&(r[i]=t[i])}}var gv=["x","y","rotation"],t8=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();Xe.applyTransform(c,c,u),u?$n.setLocalTransform(u):($n.x=$n.y=$n.rotation=$n.originX=$n.originY=0,$n.scaleX=$n.scaleY=1),$n.rotation=Ci($n.rotation);var d=i.__hostTarget,h;if(d){h=d.getBoundingRect().plain();var f=d.getComputedTransform();Xe.applyTransform(h,h,f)}var p=h&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:$n.x,y:$n.y,scaleX:$n.scaleX,scaleY:$n.scaleY,rotation:$n.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Re(i)||nr(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=He(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(x,w){return function(){M2(x,w)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Re(o.layoutOption)?c=o.layoutOption(QF(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*d:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=xe(c.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=xe(c.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var f=l.getTextGuideLine();f&&(f.setShape({points:c.labelLinePoints}),h=!1)}var p=nx(s);p.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*d:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<E2.length;v++){var g=E2[v];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.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",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=I2(this._labelList),a=Ir(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ir(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});$F(a,0,e),k2(o,0,n);var s=Ir(i,function(l){return l.layoutOption.hideOverlap});P2(s)},r.prototype.processLabelsOverall=function(){var t=this;U(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,a=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=nx(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=He(t),a=i.dataIndex;if(n&&a!=null){var o=e.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var d=s.getModel("labelLine");ex(t,rx(s),l),M2(t,d)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Ru(t))){var a=nx(n),o=a.oldLayout,s=He(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=e.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(tr(h,"select")>=0&&n.attr(a.oldLayoutSelect),tr(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),lr(n,u,e,l)}else if(n.attr(u),!Ou(n).valueAnimation){var d=We(n.style.opacity,1);n.style.opacity=0,Fr(n,{style:{opacity:d}},e,l)}if(a.oldLayout=u,n.states.select){var f=a.oldLayoutSelect={};vv(f,u,gv),vv(f,n.states.select,gv)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};vv(p,u,gv),vv(p,n.states.emphasis,gv)}DC(n,l,c,e,e)}if(i&&!i.ignore&&!i.invisible){var a=qF(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),lr(i,{shape:v},e)):(i.setShape(v),i.style.strokePercent=0,Fr(i,{style:{strokePercent:1}},e)),a.oldLayout=v}},r}();const e8=t8;var ix=cr();function ax(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=ix(e).labelManager;i||(i=ix(e).labelManager=new e8),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=ix(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}Ze(ax);function L2(r,t,e){var n=Ji.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var r8=function(r){Hr(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Ff,typeof e=="string"?o=L2(e,n,i):Be(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(rb(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=L2("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Xe(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var x=new Xe(0,0,0,0);x.copy(y),o.push(x)}else{for(var w=!1,_=1/0,b=0,C=0;C<o.length;++C){var M=o[C];if(M.intersect(y)){var k=new Xe(0,0,0,0);k.copy(M),k.union(y),o[C]=k,w=!0;break}else if(l){u.copy(y),u.union(M);var P=y.width*y.height,R=M.width*M.height,j=u.width*u.height,X=j-P-R;X<_&&(_=X,b=C)}}if(l&&(o[b].union(y),w=!0),!w){var x=new Xe(0,0,0,0);x.copy(y),o.push(x)}l||(l=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var h=e[d];if(h){var f=h.shouldBePainted(i,a,!0,!0),p=h.__isRendered&&(h.__dirty&bi||!f)?h.getPrevPaintRect():null;p&&c(p);var v=f&&(h.__dirty&bi||!h.__isRendered)?h.getPaintRect():null;v&&c(v)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var h=n[d],f=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!f||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var m=d+1;m<o.length;)o[d].intersect(o[m])?(g=!0,o[d].union(o[m]),o.splice(m,1)):m++;d++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!e,c=this.lastFrameAlpha,d=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/d,l/d));var f=this.domBack;function p(v,g,m,y){if(o.clearRect(v,g,m,y),n&&n!=="transparent"){var x=void 0;if(ff(n)){var w=n.global||n.__width===m&&n.__height===y;x=w&&n.__canvasGradient||xy(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=x,n.__width=m,n.__height=y}else k5(n)&&(n.scaleX=n.scaleX||d,n.scaleY=n.scaleY||d,x=wy(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=x||n,o.fillRect(v,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(f,v,g,m,y),o.restore())}!i||u?p(0,0,s,l):i.length&&U(i,function(v){p(v.x*d,v.y*d,v.width*d,v.height*d)})},t}(Ii);const ox=r8;var R2=1e5,Il=314159,mv=.01,n8=.001;function i8(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function a8(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var o8=function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=ie({},n||{}),this.dpr=n.devicePixelRatio||Ff,this._singleCanvas=a,this.root=t;var o=t.style;o&&(rb(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,d=c.width,h=c.height;n.width!=null&&(d=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,c.width=d*this.dpr,c.height=h*this.dpr,this._width=d,this._height=h;var f=new ox(c,this,this.dpr);f.__builtin__=!0,f.initContext(),l[Il]=f,f.zlevel=Il,s.push(Il),this._domRoot=t}else{this._width=rc(t,0,n),this._height=rc(t,1,n);var u=this._domRoot=a8(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(R2)),a||(a=n.ctx,a.save()),bl(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(R2)},r.prototype.paintOne=function(t,e){vA(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;l0(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Il).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],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)&&a.push(u)}for(var c=!0,d=!1,h=function(v){var g=a[v],m=g.ctx,y=o&&g.createRepaintRects(t,e,f._width,f._height),x=n?g.__startIndex:g.__drawIndex,w=!n&&g.incremental&&Date.now,_=w&&Date.now(),b=g.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,y);else if(x===g.__startIndex){var C=t[x];(!C.incremental||!C.notClear||n)&&g.clear(!1,b,y)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=g.__startIndex);var M,k=function(X){var st={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(M=x;M<g.__endIndex;M++){var dt=t[M];if(dt.__inHover&&(d=!0),i._doPaintEl(dt,g,o,X,st,M===g.__endIndex-1),w){var xt=Date.now()-_;if(xt>15)break}}st.prevElClipPaths&&m.restore()};if(y)if(y.length===0)M=g.__endIndex;else for(var P=f.dpr,R=0;R<y.length;++R){var j=y[R];m.save(),m.beginPath(),m.rect(j.x*P,j.y*P,j.width*P,j.height*P),m.clip(),k(j),m.restore()}else m.save(),k(),m.restore();g.__drawIndex=M,g.__drawIndex<g.__endIndex&&(c=!1)},f=this,p=0;p<a.length;p++)h(p);return pr.wxa&&U(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:d}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(bl(s,t,a,o),t.setPrevPaintRect(l))}else bl(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Il);var n=this._layers[t];return n||(n=new ox("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Je(n,this._layerConfig[t],!0):this._layerConfig[t-mv]&&Je(n,this._layerConfig[t-mv],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&i8(e)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,h){d.__dirty=d.__used=!1});function e(d){a&&(a.__endIndex!==d&&(a.__dirty=!0),a.__endIndex=d)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+n8,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?mv:0),this._needsManuallyCompositing),c.__builtin__||zg("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,e(l),a=c),i.__dirty&bi&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(d,h){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,U(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Je(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+mv){var o=this._layers[a];Je(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(tr(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=rc(a,0,i),e=rc(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Il).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Il].dom;var e=new ox("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(d){d.__builtin__?n.drawImage(d.dom,0,0,i,a):d.renderToCanvas&&(n.save(),d.renderToCanvas(n),n.restore())})}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 c=s[l];bl(n,c,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const s8=o8;function O2(r){r.registerPainter("canvas",s8)}var l8=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new UT(this),KT(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),KT(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Oa},t}(gr),u8=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Zr);function N2(r){r.registerComponentModel(l8),r.registerComponentView(u8)}Ze([O2,N2]);const hlt={init:function(){return Ny.apply(null,arguments)}};Ze(ax),_2({type:"series.liquidFill",optionUpdated:function(){var r=this.option;r.gridSize=Math.max(Math.floor(r.gridSize),4)},getInitialData:function(r,t){var e=t2(r.data,{coordDimensions:["value"]}),n=new kn(e,this);return n.initData(r.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});const c8=DM({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(r,t){t.radiusY==null&&(t.radiusY=t.radius);for(var e=Math.max(Math.ceil(2*t.radius/t.waveLength*4)*2,8);t.phase<-Math.PI*2;)t.phase+=Math.PI*2;for(;t.phase>0;)t.phase-=Math.PI*2;var n=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+n-t.radius*2;r.moveTo(i,t.waterLevel);for(var a=0,o=0;o<e;++o){var s=o%4,l=d8(o*t.waveLength/4,s,t.waveLength,t.amplitude);r.bezierCurveTo(l[0][0]+i,-l[0][1]+t.waterLevel,l[1][0]+i,-l[1][1]+t.waterLevel,l[2][0]+i,-l[2][1]+t.waterLevel),o===e-1&&(a=l[2][0])}t.inverse?(r.lineTo(a+i,t.cy-t.radiusY),r.lineTo(i,t.cy-t.radiusY),r.lineTo(i,t.waterLevel)):(r.lineTo(a+i,t.cy+t.radiusY),r.lineTo(i,t.cy+t.radiusY),r.lineTo(i,t.waterLevel)),r.closePath()}});function d8(r,t,e,n){return t===0?[[r+1/2*e/Math.PI/2,n/2],[r+1/2*e/Math.PI,n],[r+e/4,n]]:t===1?[[r+1/2*e/Math.PI/2*(Math.PI-2),n],[r+1/2*e/Math.PI/2*(Math.PI-1),n/2],[r+e/4,0]]:t===2?[[r+1/2*e/Math.PI/2,-n/2],[r+1/2*e/Math.PI,-n],[r+e/4,-n]]:[[r+1/2*e/Math.PI/2*(Math.PI-2),-n],[r+1/2*e/Math.PI/2*(Math.PI-1),-n/2],[r+e/4,0]]}var bo=xe;function B2(r){return r&&r.indexOf("path://")===0}C2({type:"liquidFill",render:function(r,t,e){var n=this,i=this.group;i.removeAll();var a=r.getData(),o=a.getItemModel(0),s=o.get("center"),l=o.get("radius"),u=e.getWidth(),c=e.getHeight(),d=Math.min(u,c),h=0,f=0,p=r.get("outline.show");p&&(h=r.get("outline.borderDistance"),f=bo(r.get("outline.itemStyle.borderWidth"),d));var v=bo(s[0],u),g=bo(s[1],c),m,y,x,w=!1,_=r.get("shape");if(_==="container"?(w=!0,m=[u/2,c/2],y=[m[0]-f/2,m[1]-f/2],x=[bo(h,u),bo(h,c)],l=[Math.max(y[0]-x[0],0),Math.max(y[1]-x[1],0)]):(m=bo(l,d)/2,y=m-f/2,x=bo(h,d),l=Math.max(y-x,0)),p){var b=X();b.style.lineWidth=f,i.add(X())}var C=w?0:v-l,M=w?0:g-l,k=null;i.add(st());var P=this._data,R=[];a.diff(P).add(function(wt){var Lt=dt(wt,!1),Ft=Lt.shape.waterLevel;Lt.shape.waterLevel=w?c/2:l,Fr(Lt,{shape:{waterLevel:Ft}},r),Lt.z2=2,xt(wt,Lt,null),i.add(Lt),a.setItemGraphicEl(wt,Lt),R.push(Lt)}).update(function(wt,Lt){for(var Ft=P.getItemGraphicEl(Lt),Kt=dt(wt,!1,Ft),Ut={},Bt=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],Gt=0;Gt<Bt.length;++Gt){var Qt=Bt[Gt];Kt.shape.hasOwnProperty(Qt)&&(Ut[Qt]=Kt.shape[Qt])}for(var re={},se=["fill","opacity","shadowBlur","shadowColor"],Gt=0;Gt<se.length;++Gt){var Qt=se[Gt];Kt.style.hasOwnProperty(Qt)&&(re[Qt]=Kt.style[Qt])}w&&(Ut.radiusY=c/2),lr(Ft,{shape:Ut,x:Kt.x,y:Kt.y},r),r.isUniversalTransitionEnabled&&r.isUniversalTransitionEnabled()?lr(Ft,{style:re},r):Ft.useStyle(re);var le=Ft.getClipPath(),me=Kt.getClipPath();Ft.setClipPath(Kt.getClipPath()),Ft.shape.inverse=Kt.inverse,le&&me&&n._shape===_&&!B2(_)&&lr(me,{shape:le.shape},r,{isFrom:!0}),xt(wt,Ft,Ft),i.add(Ft),a.setItemGraphicEl(wt,Ft),R.push(Ft)}).remove(function(wt){var Lt=P.getItemGraphicEl(wt);i.remove(Lt)}).execute(),o.get("label.show")&&i.add(Rt(R)),this._shape=_,this._data=a;function j(wt,Lt){if(_)if(B2(_)){var Ft=$u(_.slice(7),{}),Kt=Ft.getBoundingRect(),Ut=Kt.width,Bt=Kt.height;Ut>Bt?(Bt=wt*2/Ut*Bt,Ut=wt*2):(Ut=wt*2/Bt*Ut,Bt=wt*2);var Gt=Lt?0:v-Ut/2,Qt=Lt?0:g-Bt/2;return Ft=$u(_.slice(7),{},new Xe(Gt,Qt,Ut,Bt)),Lt&&(Ft.x=-Ut/2,Ft.y=-Bt/2),Ft}else if(w){var re=Lt?-wt[0]:v-wt[0],se=Lt?-wt[1]:g-wt[1];return qr("rect",re,se,wt[0]*2,wt[1]*2)}else{var re=Lt?-wt:v-wt,se=Lt?-wt:g-wt;return _==="pin"?se+=wt:_==="arrow"&&(se-=wt),qr(_,re,se,wt*2,wt*2)}return new yo({shape:{cx:Lt?0:v,cy:Lt?0:g,r:wt}})}function X(){var wt=j(m);return wt.style.fill=null,wt.setStyle(r.getModel("outline.itemStyle").getItemStyle()),wt}function st(){var wt=j(l);wt.setStyle(r.getModel("backgroundStyle").getItemStyle()),wt.style.fill=null,wt.z2=5;var Lt=j(l);Lt.setStyle(r.getModel("backgroundStyle").getItemStyle()),Lt.style.stroke=null;var Ft=new ze;return Ft.add(wt),Ft.add(Lt),Ft}function dt(wt,Lt,Ft){var Kt=w?l[0]:l,Ut=w?c/2:l,Bt=a.getItemModel(wt),Gt=Bt.getModel("itemStyle"),Qt=Bt.get("phase"),re=bo(Bt.get("amplitude"),Ut*2),se=bo(Bt.get("waveLength"),Kt*2),le=a.get("value",wt),me=Ut-le*Ut*2;Qt=Ft?Ft.shape.phase:Qt==="auto"?wt*Math.PI/4:Qt;var ye=Gt.getItemStyle();if(!ye.fill){var ue=r.get("color"),fe=wt%ue.length;ye.fill=ue[fe]}var Ie=Kt*2,Me=new c8({shape:{waveLength:se,radius:Kt,radiusY:Ut,cx:Ie,cy:0,waterLevel:me,amplitude:re,phase:Qt,inverse:Lt},style:ye,x:v,y:g});Me.shape._waterLevel=me;var Ue=Bt.getModel("emphasis.itemStyle").getItemStyle();Ue.lineWidth=0,Me.ensureState("emphasis").style=Ue,vo(Me);var Ge=j(l,!0);return Ge.setStyle({fill:"white"}),Me.setClipPath(Ge),Me}function xt(wt,Lt,Ft){var Kt=a.getItemModel(wt),Ut=Kt.get("period"),Bt=Kt.get("direction"),Gt=a.get("value",wt),Qt=Kt.get("phase");Qt=Ft?Ft.shape.phase:Qt==="auto"?wt*Math.PI/4:Qt;var re=function(me){var ye=a.count();return ye===0?me:me*(.2+(ye-wt)/ye*.8)},se=0;Ut==="auto"?se=re(5e3):se=typeof Ut=="function"?Ut(Gt,wt):Ut;var le=0;Bt==="right"||Bt==null?le=Math.PI:Bt==="left"?le=-Math.PI:Bt==="none"?le=0:console.error("Illegal direction value for liquid fill."),Bt!=="none"&&Kt.get("waveAnimation")&&Lt.animate("shape",!0).when(0,{phase:Qt}).when(se/2,{phase:le+Qt}).when(se,{phase:le*2+Qt}).during(function(){k&&k.dirty(!0)}).start()}function Rt(wt){var Lt=o.getModel("label");function Ft(){var ye=r.getFormattedLabel(0,"normal"),ue=a.get("value",0)*100,fe=a.getName(0)||r.name;return isNaN(ue)||(fe=ue.toFixed(0)+"%"),ye==null?fe:ye}var Kt={z2:10,shape:{x:C,y:M,width:(w?l[0]:l)*2,height:(w?l[1]:l)*2},style:{fill:"transparent"},textConfig:{position:Lt.get("position")||"inside"},silent:!0},Ut={style:{text:Ft(),textAlign:Lt.get("align"),textVerticalAlign:Lt.get("baseline")}};Object.assign(Ut.style,hv(Lt));var Bt=new or(Kt),Gt=new or(Kt);Gt.disableLabelAnimation=!0,Bt.disableLabelAnimation=!0;var Qt=new ar(Ut),re=new ar(Ut);Bt.setTextContent(Qt),Gt.setTextContent(re);var se=Lt.get("insideColor");re.style.fill=se;var le=new ze;le.add(Bt),le.add(Gt);var me=j(l,!0);return k=new Dp({shape:{paths:wt},x:v,y:g}),k.setClipPath(me),Gt.setClipPath(k),le}},dispose:function(){}}),C2({type:"wordCloud",render:function(r,t,e){var n,i=this.group;i.removeAll();var a=r.getData(),o=r.get("gridSize");const s=(u,c,d,h)=>{var f=a.getItemModel(d),p=f.getModel("textStyle"),v=new ar({style:hv(p),scaleX:1/h.info.mu,scaleY:1/h.info.mu,x:(h.gx+h.info.gw/2)*o,y:(h.gy+h.info.gh/2)*o,rotation:h.rot});v.setStyle({x:h.info.fillTextOffsetX,y:h.info.fillTextOffsetY+c*.5,text:u,verticalAlign:"middle",fill:a.getItemVisual(d,"style").fill,fontSize:c}),i.add(v),a.setItemGraphicEl(d,v),v.ensureState("emphasis").style=hv(f.getModel(["emphasis","textStyle"]),{state:"emphasis"}),v.ensureState("blur").style=hv(f.getModel(["blur","textStyle"]),{state:"blur"}),vo(v,f.get(["emphasis","focus"]),f.get(["emphasis","blurScope"])),v.stateTransition={duration:r.get("animation")?r.get(["stateAnimation","duration"]):0,easing:r.get(["stateAnimation","easing"])},v.__highDownDispatcher=!0},l=(n=r.layoutInstance)==null?void 0:n.drawns;l!=null&&l.length&&l.forEach(u=>{let{item:c,drawn:d}=u;s(c[0],c[1],c[2],d)}),this._model=r},remove:function(){this.group.removeAll()},dispose:function(){}}),_2({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(r){return{fill:r.get("color")}},visualDrawType:"fill",optionUpdated:function(){var r=this.option;r.gridSize=Math.max(Math.floor(r.gridSize),4)},getInitialData:function(r,t){var e=t2(r.data,{coordDimensions:["value"]}),n=new kn(e,this);return n.initData(r.data),n},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}});var h8=T(69173),f8=T.n(h8);/*!
* wordcloud2.js
* http://timdream.org/wordcloud2.js/
*
* Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
* Released under the MIT license
*/window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],n="zero-timeout-message",i=function(o){var s=e.length;return e.push(o),window.postMessage(n+s.toString(36),"*"),s};return window.addEventListener("message",function(o){if(!(typeof o.data!="string"||o.data.substr(0,n.length)!==n)){o.stopImmediatePropagation();var s=parseInt(o.data.substr(n.length),36);e[s]&&(e[s](),e[s]=void 0)}},!0),window.clearImmediate=function(o){e[o]&&(e[o]=void 0)},i}()||function(e){window.setTimeout(e,0)}}()),window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)}}());var sx=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!(!e||!e.getImageData||!e.fillText||!Array.prototype.some||!Array.prototype.push)}(),lx=function(){if(sx){for(var t=document.createElement("canvas").getContext("2d"),e=20,n,i;e;){if(t.font=e.toString(10)+"px sans-serif",t.measureText("\uFF37").width===n&&t.measureText("m").width===i)return e+1;n=t.measureText("\uFF37").width,i=t.measureText("m").width,e--}return 0}}(),p8=function(r){if(Array.isArray(r)){var t=r.slice();return t.splice(0,2),t}else return[]},v8=function(t){for(var e,n,i=t.length;i;)e=Math.floor(Math.random()*i),n=t[--i],t[i]=t[e],t[e]=n;return t},ux=function(t,e){if(!sx)return;Array.isArray(t)||(t=[t]),t.forEach(function(Ut,Bt){if(typeof Ut=="string"){if(t[Bt]=document.getElementById(Ut),!t[Bt])throw new Error("The element id specified is not found.")}else if(!Ut.tagName&&!Ut.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var n={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "\u5FAE\u8EDF\u6B63\u9ED1\u9AD4", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var i in e)i in n&&(n[i]=e[i]);if(typeof n.weightFactor!="function"){var a=n.weightFactor;n.weightFactor=function(Bt){return Bt*a}}if(typeof n.shape!="function")switch(n.shape){case"circle":default:n.shape="circle";break;case"cardioid":n.shape=function(Bt){return 1-Math.sin(Bt)};break;case"diamond":n.shape=function(Bt){var Gt=Bt%(2*Math.PI/4);return 1/(Math.cos(Gt)+Math.sin(Gt))};break;case"square":n.shape=function(Bt){return Math.min(1/Math.abs(Math.cos(Bt)),1/Math.abs(Math.sin(Bt)))};break;case"triangle-forward":n.shape=function(Bt){var Gt=Bt%(2*Math.PI/3);return 1/(Math.cos(Gt)+Math.sqrt(3)*Math.sin(Gt))};break;case"triangle":case"triangle-upright":n.shape=function(Bt){var Gt=(Bt+Math.PI*3/2)%(2*Math.PI/3);return 1/(Math.cos(Gt)+Math.sqrt(3)*Math.sin(Gt))};break;case"pentagon":n.shape=function(Bt){var Gt=(Bt+.955)%(2*Math.PI/5);return 1/(Math.cos(Gt)+.726543*Math.sin(Gt))};break;case"star":n.shape=function(Bt){var Gt=(Bt+.955)%(2*Math.PI/10);return(Bt+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-Gt)+3.07768*Math.sin(2*Math.PI/10-Gt)):1/(Math.cos(Gt)+3.07768*Math.sin(Gt))};break}n.gridSize=Math.max(Math.floor(n.gridSize),4);var o=n.gridSize,s=o-n.maskGapWidth,l=Math.abs(n.maxRotation-n.minRotation),u=Math.min(n.maxRotation,n.minRotation),c=n.rotationStep,d,h,f,p,v,g,m;function y(Ut,Bt){return"hsl("+(Math.random()*360).toFixed()+","+(Math.random()*30+70).toFixed()+"%,"+(Math.random()*(Bt-Ut)+Ut).toFixed()+"%)"}switch(n.color){case"random-dark":m=function(){return y(10,50)};break;case"random-light":m=function(){return y(50,90)};break;default:typeof n.color=="function"&&(m=n.color);break}var x;typeof n.fontWeight=="function"&&(x=n.fontWeight);var w=null;typeof n.classes=="function"&&(w=n.classes);var _=!1,b=[],C,M=function(Bt){var Gt=Bt.currentTarget,Qt=Gt.getBoundingClientRect(),re,se;Bt.touches?(re=Bt.touches[0].clientX,se=Bt.touches[0].clientY):(re=Bt.clientX,se=Bt.clientY);var le=re-Qt.left,me=se-Qt.top,ye=Math.floor(le*(Gt.width/Qt.width||1)/o),ue=Math.floor(me*(Gt.height/Qt.height||1)/o);return b[ye]?b[ye][ue]:null},k=function(Bt){var Gt=M(Bt);if(C!==Gt){if(C=Gt,!Gt){n.hover(void 0,void 0,Bt);return}n.hover(Gt.item,Gt.dimension,Bt)}},P=function(Bt){var Gt=M(Bt);Gt&&(n.click(Gt.item,Gt.dimension,Bt),Bt.preventDefault())},R=[],j=function(Bt){if(R[Bt])return R[Bt];var Gt=Bt*8,Qt=Gt,re=[];for(Bt===0&&re.push([p[0],p[1],0]);Qt--;){var se=1;n.shape!=="circle"&&(se=n.shape(Qt/Gt*2*Math.PI)),re.push([p[0]+Bt*se*Math.cos(-Qt/Gt*2*Math.PI),p[1]+Bt*se*Math.sin(-Qt/Gt*2*Math.PI)*n.ellipticity,Qt/Gt*2*Math.PI])}return R[Bt]=re,re},X=function(){return n.abortThreshold>0&&new Date().getTime()-g>n.abortThreshold},st=function(Bt){return f8()(Bt)?Math.PI/180*Bt:n.rotateRatio===0||Math.random()>n.rotateRatio?0:l===0?u:u+Math.round(Math.random()*l/c)*c},dt=function(Bt,Gt,Qt,re){var se=!1,le=n.weightFactor(Gt);if(le<=n.minSize)return!1;var me=1;le<lx&&(me=function(){for(var Kw=2;Kw*le<lx;)Kw+=2;return Kw}());var ye;x?ye=x(Bt,Gt,le,re):ye=n.fontWeight;var ue=document.createElement("canvas"),fe=ue.getContext("2d",{willReadFrequently:!0});fe.font=ye+" "+(le*me).toString(10)+"px "+n.fontFamily;var Ie=fe.measureText(Bt).width/me,Me=Math.max(le*me,fe.measureText("m").width,fe.measureText("\uFF37").width)/me,Ue=Ie+Me*2,Ge=Me*3,Sr=Math.ceil(Ue/o),wr=Math.ceil(Ge/o);Ue=Sr*o,Ge=wr*o;var dr=-Ie/2,Mr=-Me*.4,br=Math.ceil((Ue*Math.abs(Math.sin(Qt))+Ge*Math.abs(Math.cos(Qt)))/o),bn=Math.ceil((Ue*Math.abs(Math.cos(Qt))+Ge*Math.abs(Math.sin(Qt)))/o),pi=bn*o,mr=br*o;ue.setAttribute("width",pi),ue.setAttribute("height",mr),se&&(document.body.appendChild(ue),fe.save()),fe.scale(1/me,1/me),fe.translate(pi*me/2,mr*me/2),fe.rotate(-Qt),fe.font=ye+" "+(le*me).toString(10)+"px "+n.fontFamily,fe.fillStyle="#000",fe.textBaseline="middle",fe.fillText(Bt,dr*me,(Mr+le*.5)*me);var Xi=fe.getImageData(0,0,pi,mr).data;if(X())return!1;se&&(fe.strokeRect(dr*me,Mr,Ie*me,Me*me),fe.restore());for(var ga=[],ma=bn,Ya,Gw,Uw,Jn=[br/2,bn/2,br/2,bn/2];ma--;)for(Ya=br;Ya--;){Uw=o;t:for(;Uw--;)for(Gw=o;Gw--;)if(Xi[((Ya*o+Uw)*pi+(ma*o+Gw))*4+3]){ga.push([ma,Ya]),ma<Jn[3]&&(Jn[3]=ma),ma>Jn[1]&&(Jn[1]=ma),Ya<Jn[0]&&(Jn[0]=Ya),Ya>Jn[2]&&(Jn[2]=Ya),se&&(fe.fillStyle="rgba(255, 0, 0, 0.5)",fe.fillRect(ma*o,Ya*o,o-.5,o-.5));break t}se&&(fe.fillStyle="rgba(0, 0, 255, 0.5)",fe.fillRect(ma*o,Ya*o,o-.5,o-.5))}return se&&(fe.fillStyle="rgba(0, 255, 0, 0.5)",fe.fillRect(Jn[3]*o,Jn[0]*o,(Jn[1]-Jn[3]+1)*o,(Jn[2]-Jn[0]+1)*o)),{mu:me,occupied:ga,bounds:Jn,gw:bn,gh:br,fillTextOffsetX:dr,fillTextOffsetY:Mr,fillTextWidth:Ie,fillTextHeight:Me,fontSize:le}},xt=function(Bt,Gt,Qt,re,se){for(var le=se.length;le--;){var me=Bt+se[le][0],ye=Gt+se[le][1];if(me>=h||ye>=f||me<0||ye<0){if(!n.drawOutOfBound)return!1;continue}if(!d[me][ye])return!1}return!0},Rt=function(Bt,Gt,Qt,re,se,le,me,ye,ue,fe){var Ie=Qt.fontSize,Me;m?Me=m(re,se,Ie,le,me,fe):Me=n.color;var Ue;x?Ue=x(re,se,Ie,fe):Ue=n.fontWeight;var Ge;w?Ge=w(re,se,Ie,fe):Ge=n.classes,t.forEach(function(Sr){if(Sr.getContext){var wr=Sr.getContext("2d"),dr=Qt.mu;wr.save(),wr.scale(1/dr,1/dr),wr.font=Ue+" "+(Ie*dr).toString(10)+"px "+n.fontFamily,wr.fillStyle=Me,wr.translate((Bt+Qt.gw/2)*o*dr,(Gt+Qt.gh/2)*o*dr),ye!==0&&wr.rotate(-ye),wr.textBaseline="middle",wr.fillText(re,Qt.fillTextOffsetX*dr,(Qt.fillTextOffsetY+Ie*.5)*dr),wr.restore()}else{var Mr=document.createElement("span"),br="";br="rotate("+-ye/Math.PI*180+"deg) ",Qt.mu!==1&&(br+="translateX(-"+Qt.fillTextWidth/4+"px) scale("+1/Qt.mu+")");var bn={position:"absolute",display:"block",font:Ue+" "+Ie*Qt.mu+"px "+n.fontFamily,left:(Bt+Qt.gw/2)*o+Qt.fillTextOffsetX+"px",top:(Gt+Qt.gh/2)*o+Qt.fillTextOffsetY+"px",width:Qt.fillTextWidth+"px",height:Qt.fillTextHeight+"px",lineHeight:Ie+"px",whiteSpace:"nowrap",transform:br,webkitTransform:br,msTransform:br,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};Me&&(bn.color=Me),Mr.textContent=re;for(var pi in bn)Mr.style[pi]=bn[pi];if(ue)for(var mr in ue)Mr.setAttribute(mr,ue[mr]);Ge&&(Mr.className+=Ge),Sr.appendChild(Mr)}})},wt=function(Bt,Gt,Qt,re,se){if(!(Bt>=h||Gt>=f||Bt<0||Gt<0)){if(d[Bt][Gt]=!1,Qt){var le=t[0].getContext("2d");le.fillRect(Bt*o,Gt*o,s,s)}_&&(b[Bt][Gt]={item:se,dimension:re})}},Lt=function(Bt,Gt,Qt,re,se,le){var me=se.occupied,ye=n.drawMask,ue;ye&&(ue=t[0].getContext("2d"),ue.save(),ue.fillStyle=n.maskColor);var fe;if(_){var Ie=se.bounds;fe={x:(Bt+Ie[3])*o,y:(Gt+Ie[0])*o,w:(Ie[1]-Ie[3]+1)*o,h:(Ie[2]-Ie[0]+1)*o}}for(var Me=me.length;Me--;){var Ue=Bt+me[Me][0],Ge=Gt+me[Me][1];Ue>=h||Ge>=f||Ue<0||Ge<0||wt(Ue,Ge,ye,fe,le)}ye&&ue.restore()},Ft=function Ut(Bt,Gt){if(Gt>20)return null;var Qt,re,se,le;Array.isArray(Bt)?(Qt=Bt[0],re=Bt[1],le=Bt[3]):(Qt=Bt.word,re=Bt.weight,se=Bt.attributes);var me=st(le),ye=p8(Bt),ue=dt(Qt,re,me,ye);if(!ue||X())return!1;if(!n.drawOutOfBound&&!n.shrinkToFit){var fe=ue.bounds;if(fe[1]-fe[3]+1>h||fe[2]-fe[0]+1>f)return!1}for(var Ie=v+1,Me=function(wr){var dr=Math.floor(wr[0]-ue.gw/2),Mr=Math.floor(wr[1]-ue.gh/2),br=ue.gw,bn=ue.gh;return xt(dr,Mr,br,bn,ue.occupied)?(Rt(dr,Mr,ue,Qt,re,v-Ie,wr[2],me,se,ye),Lt(dr,Mr,br,bn,ue,Bt),{gx:dr,gy:Mr,rot:me,info:ue}):!1};Ie--;){var Ue=j(v-Ie);n.shuffle&&(Ue=[].concat(Ue),v8(Ue));for(var Ge=0;Ge<Ue.length;Ge++){var Sr=Me(Ue[Ge]);if(Sr)return Sr}}return n.shrinkToFit?(Array.isArray(Bt)?Bt[1]=Bt[1]*3/4:Bt.weight=Bt.weight*3/4,Ut(Bt,Gt+1)):null},Kt=function(){var Bt=t[0];if(Bt.getContext)h=Math.ceil(Bt.width/o),f=Math.ceil(Bt.height/o);else{var Gt=Bt.getBoundingClientRect();h=Math.ceil(Gt.width/o),f=Math.ceil(Gt.height/o)}p=n.origin?[n.origin[0]/o,n.origin[1]/o]:[h/2,f/2],v=Math.floor(Math.sqrt(h*h+f*f)),d=[];var Qt,re,se;if(!Bt.getContext||n.clearCanvas)for(t.forEach(function(Ie){if(Ie.getContext){var Me=Ie.getContext("2d");Me.fillStyle=n.backgroundColor,Me.clearRect(0,0,h*(o+1),f*(o+1)),Me.fillRect(0,0,h*(o+1),f*(o+1))}else Ie.textContent="",Ie.style.backgroundColor=n.backgroundColor,Ie.style.position="relative"}),Qt=h;Qt--;)for(d[Qt]=[],re=f;re--;)d[Qt][re]=!0;else{var le=document.createElement("canvas").getContext("2d");le.fillStyle=n.backgroundColor,le.fillRect(0,0,1,1);var me=le.getImageData(0,0,1,1).data,ye=Bt.getContext("2d").getImageData(0,0,h*o,f*o).data;Qt=h;for(var ue,fe;Qt--;)for(d[Qt]=[],re=f;re--;){fe=o;t:for(;fe--;)for(ue=o;ue--;)for(se=4;se--;)if(ye[((re*o+fe)*h*o+(Qt*o+ue))*4+se]!==me[se]){d[Qt][re]=!1;break t}d[Qt][re]!==!1&&(d[Qt][re]=!0)}ye=le=me=void 0}if(n.hover||n.click){for(_=!0,Qt=h+1;Qt--;)b[Qt]=[];n.hover&&Bt.addEventListener("mousemove",k),n.click&&(Bt.addEventListener("click",P),Bt.addEventListener("touchstart",P),Bt.addEventListener("touchend",function(Ie){Ie.preventDefault()}),Bt.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),Bt.addEventListener("wordcloudstart",function Ie(){Bt.removeEventListener("wordcloudstart",Ie),Bt.removeEventListener("mousemove",k),Bt.removeEventListener("click",P),C=void 0})}return n.list.map(Ie=>({item:Ie,drawn:Ft(Ie,0)})).filter(Ie=>{let{drawn:Me}=Ie;return!!Me})};return Kt()};ux.isSupported=sx,ux.minFontSize=lx;const V2=ux;if(!V2.isSupported)throw new Error("Sorry your browser not support wordCloud");function g8(r){for(var t=r.getContext("2d"),e=t.getImageData(0,0,r.width,r.height),n=t.createImageData(e),i=0,a=0,o=0;o<e.data.length;o+=4){var s=e.data[o+3];if(s>128){var l=e.data[o]+e.data[o+1]+e.data[o+2];i+=l,++a}}var u=i/a;for(let c=0;c<e.data.length;c+=4){const d=e.data[c]+e.data[c+1]+e.data[c+2];e.data[c+3]<128||d>u?(n.data[c]=0,n.data[c+1]=0,n.data[c+2]=0,n.data[c+3]=0):(n.data[c]=255,n.data[c+1]=255,n.data[c+2]=255,n.data[c+3]=255)}t.putImageData(n,0,0)}WA(function(r,t){r.eachSeriesByType("wordCloud",function(e){var n=ln(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),i=e.get("keepAspect"),a=e.get("maskImage"),o=a?a.width/a.height:1;i&&m8(n,o);var s=e.getData(),l=document.createElement("canvas");l.width=n.width,l.height=n.height;var u=l.getContext("2d");if(a)try{u.drawImage(a,0,0,l.width,l.height),g8(l)}catch(m){console.error("Invalid mask image"),console.error(m.toString())}var c=e.get("sizeRange"),d=e.get("rotationRange"),h=s.getDataExtent("value"),f=Math.PI/180,p=e.get("gridSize");const g=V2(l,{list:s.mapArray("value",function(m,y){var x=s.getItemModel(y);return[s.getName(y),x.get("textStyle.fontSize",!0)||Cr(m,h,c),y,x.option.rotation]}).sort(function(m,y){return y[1]-m[1]}),fontFamily:e.get("textStyle.fontFamily")||e.get("emphasis.textStyle.fontFamily")||r.get("textStyle.fontFamily"),fontWeight:e.get("textStyle.fontWeight")||e.get("emphasis.textStyle.fontWeight")||r.get("textStyle.fontWeight"),gridSize:p,ellipticity:n.height/n.width,minRotation:d[0]*f,maxRotation:d[1]*f,clearCanvas:!a,rotateRatio:1,rotationStep:e.get("rotationStep")*f,drawOutOfBound:e.get("drawOutOfBound"),shrinkToFit:e.get("shrinkToFit"),layoutAnimation:e.get("layoutAnimation"),shuffle:!1,shape:e.get("shape")}).map(m=>({...m,drawn:{...m.drawn,gx:m.drawn.gx+n.x/p,gy:m.drawn.gy+n.y/p}}));e.layoutInstance={drawns:g}})}),By(function(r){var t=(r||{}).series;!ce(t)&&(t=t?[t]:[]);var e=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];U(t,function(i){if(i&&i.type==="wordCloud"){var a=i.textStyle||{};n(a.normal),n(a.emphasis)}});function n(i){i&&U(e,function(a){i.hasOwnProperty(a)&&(i["text"+fV(a)]=i[a])})}});function m8(r,t){var e=r.width,n=r.height;e>n*t?(r.x+=(e-n*t)/2,r.width=n*t):(r.y+=(n-e/t)/2,r.height=e/t)}var y8=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(gr);const x8=y8;var cx=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",sn).models[0]},t.type="cartesian2dAxis",t}(gr);en(cx,sc);const flt=null;var z2={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},S8=Je({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},z2),dx=Je({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},z2),w8=Je({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},dx),b8=Ne({logBase:10},dx);const H2={category:S8,value:dx,time:w8,log:b8};var _8={value:1,category:1,time:1,log:1};function lc(r,t,e,n){U(_8,function(i,a){var o=Je(Je({},H2[a],!0),n,!0),s=function(l){Yt(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var h=Md(this),f=h?Fu(c):{},p=d.getTheme();Je(c,p.get(a+"Axis")),Je(c,this.getDefaultOption()),c.type=F2(c),h&&rs(c,f,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Gy.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",F2)}function F2(r){return r.type||(r.data?"category":"value")}var C8=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return de(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ir(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const T8=C8;var hx=["x","y"];function W2(r){return r.type==="interval"||r.type==="time"}var M8=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=hx,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!W2(e)||!W2(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,h=o[0]-i[0]*c,f=o[1]-a[0]*d,p=this._transform=[c,0,0,d,h,f];this._invTransform=wu([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new Xe(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Tn(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[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},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return Tn(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new Xe(a,o,s,l)},t}(T8);const A8=M8;var nh=cr();function I8(r){return r.type==="category"?k8(r):E8(r)}function D8(r,t){return r.type==="category"?P8(r,t):{ticks:de(r.scale.getTicks(),function(e){return e.value})}}function k8(r){var t=r.getLabelModel(),e=j2(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function j2(r,t){var e=G2(r,"labels"),n=qy(t),i=U2(e,n);if(i)return i;var a,o;return Re(n)?a=X2(r,n):(o=n==="auto"?L8(r):n,a=Y2(r,o)),K2(e,n,{labels:a,labelCategoryInterval:o})}function P8(r,t){var e=G2(r,"ticks"),n=qy(t),i=U2(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),Re(n))a=X2(r,n,!0);else if(n==="auto"){var s=j2(r,r.getLabelModel());o=s.labelCategoryInterval,a=de(s.labels,function(l){return l.tickValue})}else o=n,a=Y2(r,o,!0);return K2(e,n,{ticks:a,tickCategoryInterval:o})}function E8(r){var t=r.scale.getTicks(),e=eh(r);return{labels:de(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function G2(r,t){return nh(r)[t]||(nh(r)[t]=[])}function U2(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function K2(r,t,e){return r.push({key:t,value:e}),e}function L8(r){var t=nh(r).autoInterval;return t!=null?t:nh(r).autoInterval=r.calculateCategoryInterval()}function R8(r){var t=O8(r),e=eh(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),d=Math.abs(u*Math.sin(n)),h=0,f=0;l<=a[1];l+=s){var p=0,v=0,g=sd(e({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,h=Math.max(h,p,7),f=Math.max(f,v,7)}var m=h/c,y=f/d;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),w=nh(r.model),_=r.getExtent(),b=w.lastAutoInterval,C=w.lastTickCount;return b!=null&&C!=null&&Math.abs(b-x)<=1&&Math.abs(C-o)<=1&&b>x&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?x=b:(w.lastTickCount=o,w.lastAutoInterval=x,w.axisExtent0=_[0],w.axisExtent1=_[1]),x}function O8(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Y2(r,t,e){var n=eh(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=b2(r),h=o.get("showMinLabel")||d,f=o.get("showMaxLabel")||d;h&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);f&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function X2(r,t,e){var n=r.scale,i=eh(r),a=[];return U(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Z2=[0,1],N8=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return u_(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),$2(n,i.count())),Cr(t,Z2,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),$2(n,i.count()));var a=Cr(t,n,Z2,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=D8(this,e),i=n.ticks,a=de(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return B8(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=de(n,function(a){return de(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return I8(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return R8(this)},r}();function $2(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function B8(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;U(t,function(f){f.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var d=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(f,p){return f=Qr(f),p=Qr(p),d?f>p:f<p}}const ha=N8;var V8=function(r){Yt(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ha);const z8=V8;function fx(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p=u==="x"?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[h[l]]:d[0],u==="x"?p[h[l]]:d[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),xn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function J2(r){return r.get("coordinateSystem")==="cartesian2d"}function Q2(r){var t={xAxisModel:null,yAxisModel:null};return U(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,sn).models[0];t[n]=a}),t}var px=Math.log;function q2(r,t,e){var n=ls.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=w2(r,t),u=l.extent,c=l.fixMin,d=l.fixMax;if(r.type==="log"){var h=px(r.base);u=[px(u[0])/h,px(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var f=n.getExtent.call(r);c&&(u[0]=f[0]),d&&(u[1]=f[1]);var p=n.getInterval.call(r),v=u[0],g=u[1];if(c&&d)p=(g-v)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Ky(p),g=u[0]+p*o;else if(d)for(v=u[1]-p*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)p=Ky(p),v=u[1]-p*o;else{var m=r.getTicks().length-1;m>o&&(p=Ky(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=Qr(g-y),v<0&&u[0]>=0?(v=0,g=Qr(y)):g>0&&u[1]<=0&&(g=0,v=-Qr(y))}var x=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;if(n.setExtent.call(r,v+p*x,g+p*w),n.setInterval.call(r,p),(x||w)&&n.setNiceExtent.call(r,v+p,g-p),0)var _}var H8=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=hx,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=nr(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var h=+l[d],f=o[h],p=f.model,v=f.scale;Uy(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(f):(Ml(v,p),Uy(v)&&(s=f))}c.length&&(s||(s=c.pop(),Ml(s.scale,s.model)),U(c,function(g){q2(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};U(n.x,function(o){tI(n,"y",o,a)}),U(n.y,function(o){tI(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=ln(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(U(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=HF(u);if(c){var d=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),U(this._coordsList,function(u){u.calcAffineTransform()});function l(){U(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(d[h],d[1-h]),F8(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Be(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",sn).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",sn).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,tr(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,U(s.x,function(c,d){U(s.y,function(h,f){var p="x"+d+"y"+f,v=new A8(p);v.master=i,v.model=t,i._coordsMap[p]=v,i._coordsList.push(v),v.addAxis(c),v.addAxis(h)})});function u(c){return function(d,h){if(vx(d,t)){var f=d.get("position");c==="x"?f!=="top"&&f!=="bottom"&&(f=o.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=o.left?"right":"left"),o[f]=!0;var p=new z8(c,th(d),[0,0],d.get("type"),f),v=p.type==="category";p.onBand=v&&d.get("boundaryGap"),p.inverse=d.get("inverse"),d.axis=p,p.model=d,p.grid=a,p.index=h,a._axesList.push(p),s[c][h]=p,l[c]++}}}},r.prototype._updateScale=function(t,e){U(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(J2(i)){var a=Q2(i),o=a.xAxisModel,s=a.yAxisModel;if(!vx(o,e)||!vx(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),d=l.getAxis("y");n(u,c),n(u,d)}},this);function n(i,a){U(dv(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return U(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);tr(e,a)<0&&e.push(a),tr(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(J2(i)){var a=Q2(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=hx,r}();function vx(r,t){return r.getCoordSysModel()===t}function tI(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)eI(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&eI(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(d){return d.dim+"_"+d.index}}function eI(r){return r&&r.type!=="category"&&r.type!=="time"&&zF(r)}function F8(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const W8=H8;var us=Math.PI,Dl=function(){function r(t,e){this.group=new ze,this.opt=e,this.axisModel=t,Ne(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ze({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!rI[t]},r.prototype.add=function(t){rI[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=h_(e-t),a,o;return ud(i)?(o=n>0?"top":"bottom",a="center"):ud(i-us)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<us?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),rI={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Tn(s,s,o),Tn(l,l,o));var c=ie({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new wn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ju(d.shape,d.style.lineWidth),d.anid="line",e.add(d);var h=t.get(["axisLine","symbol"]);if(h!=null){var f=t.get(["axisLine","symbolSize"]);_e(h)&&(h=[h,h]),(_e(f)||vr(f))&&(f=[f,f]);var p=Sl(t.get(["axisLine","symbolOffset"])||0,f),v=f[0],g=f[1];U([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var x=qr(h[y],-v/2,-g/2,v,g,c.stroke,!0),w=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+w*Math.cos(r.rotation),y:_[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(x)}})}}},axisTickLabel:function(r,t,e,n){var i=U8(e,n,t,r),a=Y8(e,n,t,r);if(G8(t,a,i),K8(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=I2(de(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));P2(o)}},axisName:function(r,t,e,n){var i=xn(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,iI(a)?r.labelOffset+o*l:0],h,f=t.get("nameRotate");f!=null&&(f=f*us/180);var p;iI(a)?h=Dl.innerTextLayout(r.rotation,f!=null?f:r.rotation,o):(h=j8(r.rotation,a,f||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=xn(r.nameTruncateMaxWidth,g.maxWidth,p),x=new ar({x:d[0],y:d[1],rotation:h.rotation,silent:Dl.isLabelSilent(t),style:Or(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Qu({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var w=Dl.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,He(x).eventData=w}n.add(x),x.updateTransform(),e.add(x),x.decomposeTransform()}}};function j8(r,t,e,n){var i=h_(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return ud(i-us/2)?(o=l?"bottom":"top",a="center"):ud(i-us*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<us*1.5&&i>us/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function G8(r,t,e){if(!b2(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],d=e[e.length-1],h=e[e.length-2];n===!1?(Fi(a),Fi(u)):nI(a,o)&&(n?(Fi(o),Fi(c)):(Fi(a),Fi(u))),i===!1?(Fi(s),Fi(d)):nI(l,s)&&(i?(Fi(l),Fi(h)):(Fi(s),Fi(d)))}}function Fi(r){r&&(r.ignore=!0)}function nI(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=wf([]);return Vs(i,i,-r.rotation),e.applyTransform(ao([],i,r.getLocalTransform())),n.applyTransform(ao([],i,t.getLocalTransform())),e.intersect(n)}}function iI(r){return r==="middle"||r==="center"}function aI(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Tn(o,o,t),Tn(s,s,t));var c=new wn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ju(c.shape,c.style.lineWidth),c.anid=i+"_"+r[l].tickValue,a.push(c)}return a}function U8(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=aI(u,t.transform,l,Ne(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)r.add(c[d]);return c}}function K8(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ne(s.getLineStyle(),Ne(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var d=aI(o[c],t.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)r.add(d[h])}}function Y8(r,t,e,n){var i=e.axis,a=xn(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(xn(n.labelRotate,o.get("rotate"))||0)*us/180,c=Dl.innerTextLayout(n.rotation,u,n.labelDirection),d=e.getCategories&&e.getCategories(!0),h=[],f=Dl.isLabelSilent(e),p=e.get("triggerEvent");return U(l,function(v,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,y=v.formattedLabel,x=v.rawLabel,w=o;if(d&&d[m]){var _=d[m];Be(_)&&_.textStyle&&(w=new Er(_.textStyle,o,e.ecModel))}var b=w.getTextColor()||e.get(["axisLine","lineStyle","color"]),C=i.dataToCoord(m),M=w.getShallow("align",!0)||c.textAlign,k=We(w.getShallow("alignMinLabel",!0),M),P=We(w.getShallow("alignMaxLabel",!0),M),R=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,j=We(w.getShallow("verticalAlignMinLabel",!0),R),X=We(w.getShallow("verticalAlignMaxLabel",!0),R),st=new ar({x:C,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:f,z2:10+(v.level||0),style:Or(w,{text:y,align:g===0?k:g===l.length-1?P:M,verticalAlign:g===0?j:g===l.length-1?X:R,fill:Re(b)?b(i.type==="category"?x:i.type==="value"?m+"":m,g):b})});if(st.anid="label_"+m,p){var dt=Dl.makeAxisEventDataBase(e);dt.targetType="axisLabel",dt.value=x,dt.tickIndex=g,i.type==="category"&&(dt.dataIndex=m),He(st).eventData=dt}t.add(st),st.updateTransform(),h.push(st),r.add(st),st.decomposeTransform()}),h}}const _o=Dl;function X8(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Z8(e,r,t),e.seriesInvolved&&J8(e,r),e}function Z8(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];U(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ih(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,d=c.getModel("tooltip",n);if(U(s.getAxes(),je(v,!1,null)),s.getTooltipAxes&&n&&d.get("show")){var h=d.get("trigger")==="axis",f=d.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(d.get(["axisPointer","axis"]));(h||f)&&U(p.baseAxes,je(v,f?"cross":!0,h)),f&&U(p.otherAxes,je(v,"cross",!1))}function v(g,m,y){var x=y.model.getModel("axisPointer",i),w=x.get("show");if(!(!w||w==="auto"&&!g&&!yx(x))){m==null&&(m=x.get("triggerTooltip")),x=g?$8(y,d,i,t,g,m):x;var _=x.get("snap"),b=x.get("triggerEmphasis"),C=ih(y.model),M=m||_||y.type==="category",k=r.axesInfo[C]={key:C,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:m,triggerEmphasis:b,involveSeries:M,snap:_,useHandle:yx(x),seriesModels:[],linkGroup:null};u[C]=k,r.seriesInvolved=r.seriesInvolved||M;var P=Q8(a,y);if(P!=null){var R=o[P]||(o[P]={axesInfo:{}});R.axesInfo[C]=k,R.mapper=a[P].mapper,k.linkGroup=R}}}})}function $8(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};U(s,function(h){l[h]=Ve(o.get(h))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c!=null?c:!0,!a){var d=l.lineStyle=o.get("crossStyle");d&&Ne(u,d.textStyle)}}return r.model.getModel("axisPointer",new Er(l,e,n))}function J8(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||U(r.coordSysAxesInfo[ih(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function Q8(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(gx(a[n+"AxisId"],e.id)||gx(a[n+"AxisIndex"],e.componentIndex)||gx(a[n+"AxisName"],e.name))return i}}function gx(r,t){return r==="all"||ce(r)&&tr(r,t)>=0||r===t}function q8(r){var t=mx(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=yx(e);a==null&&(i.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]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function mx(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ih(r)]}function tW(r){var t=mx(r);return t&&t.axisPointerModel}function yx(r){return!!r.get(["handle","show"])}function ih(r){return r.type+"||"+r.id}var oI={},eW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&q8(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=tW(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){oI[e]=n},t.getAxisPointerClass=function(e){return e&&oI[e]},t.type="axis",t}(Zr);const kl=eW;var xx=cr();function sI(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,d=xx(r).splitAreaColors,h=Pe(),f=0;if(d)for(var p=0;p<u.length;p++){var v=d.get(u[p].tickValue);if(v!=null){f=(v+(c-1)*p)%c;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=ce(s)?s:[s];for(var p=1;p<u.length;p++){var y=i.toGlobalCoord(u[p].coord),x=void 0,w=void 0,_=void 0,b=void 0;i.isHorizontal()?(x=g,w=l.y,_=y-x,b=l.height,g=x+_):(x=l.x,w=g,_=l.width,b=y-w,g=w+b);var C=u[p-1].tickValue;C!=null&&h.set(C,f),t.add(new or({anid:C!=null?"area_"+C:null,shape:{x,y:w,width:_,height:b},style:Ne({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%c}xx(r).splitAreaColors=h}}}function lI(r){xx(r).splitAreaColors=null}var rW=["axisLine","axisTickLabel","axisName"],nW=["splitArea","splitLine","minorSplitLine"],uI=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ze,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=fx(s,e),u=new _o(e,ie({handleAutoShown:function(d){for(var h=s.coordinateSystem.getCartesians(),f=0;f<h.length;f++)if(Uy(h[f].getOtherAxis(e.axis).scale))return!0;return!1}},l));U(rW,u.add,u),this._axisGroup.add(u.getGroup()),U(nW,function(d){e.get([d,"show"])&&iW[d](this,this._axisGroup,e,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Vd(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){lI(this)},t.type="cartesianAxis",t}(kl),iW={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ce(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:a}),h=[],f=[],p=o.getLineStyle(),v=0;v<d.length;v++){var g=i.toGlobalCoord(d[v].coord);u?(h[0]=g,h[1]=l.y,f[0]=g,f[1]=l.y+l.height):(h[0]=l.x,h[1]=g,f[0]=l.x+l.width,f[1]=g);var m=c++%s.length,y=d[v].tickValue,x=new wn({anid:y!=null?"line_"+d[v].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:Ne({stroke:s[m]},p),silent:!0});Ju(x.shape,p.lineWidth),t.add(x)}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],d=[],h=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var v=i.toGlobalCoord(u[f][p].coord);l?(c[0]=v,c[1]=s.y,d[0]=v,d[1]=s.y+s.height):(c[0]=s.x,c[1]=v,d[0]=s.x+s.width,d[1]=v);var g=new wn({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:h,silent:!0});Ju(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){sI(r,t,e,n)}},cI=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(uI),aW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=cI.type,e}return t.type="yAxis",t}(uI);const plt=null;var oW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new or({shape:e.coordinateSystem.getRect(),style:Ne({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Zr),dI={offset:0};function hI(r){r.registerComponentView(oW),r.registerComponentModel(x8),r.registerCoordinateSystem("cartesian2d",W8),lc(r,"x",cx,dI),lc(r,"y",cx,dI),r.registerComponentView(cI),r.registerComponentView(aW),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Pl=cr(),fI=Ve,Sx=Te,sW=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,t,e,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new ze,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var h=je(pI,e,d);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}mI(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=mx(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Pl(t).pointerEl=new F[a.type](fI(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Pl(t).labelEl=new ar(fI(e.label));t.add(a),gI(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Pl(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Pl(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),gI(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=zd(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){io(u.event)},onmousedown:Sx(this._onHandleDragMove,this,0,0),drift:Sx(this._onHandleDragMove,this),ondragend:Sx(this._onHandleDragEnd,this)}),n.add(i)),mI(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ce(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,qu(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){pI(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(bx(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bx(i)),Pl(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Fd(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function pI(r,t,e,n){vI(Pl(e).lastProp,n)||(Pl(e).lastProp=n,t?lr(e,n,r):(e.stopAnimation(),e.attr(n)))}function vI(r,t){if(Be(r)&&Be(t)){var e=!0;return U(t,function(n,i){e=e&&vI(r[i],n)}),!!e}else return r===t}function gI(r,t){r[t.get(["label","show"])?"show":"hide"]()}function bx(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function mI(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const _x=sW;function Cx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function yI(r,t,e,n,i){var a=e.get("value"),o=xI(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Hu(s.get("padding")||0),u=s.getFont(),c=sd(o,u),d=i.position,h=c.width+l[1]+l[3],f=c.height+l[0]+l[2],p=i.align;p==="right"&&(d[0]-=h),p==="center"&&(d[0]-=h/2);var v=i.verticalAlign;v==="bottom"&&(d[1]-=f),v==="middle"&&(d[1]-=f/2),lW(d,h,f,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:d[0],y:d[1],style:Or(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function lW(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function xI(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Qy(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};U(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),_e(o)?a=o.replace("{value}",a):Re(o)&&(a=o(s))}return a}function Tx(r,t,e){var n=wi();return Vs(n,n,e.rotation),Ca(n,n,e.position),sa([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function SI(r,t,e,n,i,a){var o=_o.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),yI(t,n,i,a,{position:Tx(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Mx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function wI(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function bI(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}var uW=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=_I(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Cx(a),f=cW[u](s,d,c);f.style=h,e.graphicKey=f.type,e.pointer=f}var p=fx(l.model,i);SI(n,e,p,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=fx(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Tx(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=_I(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[e.x,e.y];d[c]+=n[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var h=(u[1]+u[0])/2,f=[h,h];f[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:e.rotation,cursorPoint:f,tooltipOption:p[c]}},t}(_x);function _I(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var cW={line:function(r,t,e){var n=Mx([t,e[0]],[t,e[1]],CI(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:wI([t-n/2,e[0]],[n,i],CI(r))}}};function CI(r){return r.dim==="x"?0:1}const dW=uW;var hW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(gr);const fW=hW;var Co=cr(),pW=U;function TI(r,t,e){if(!pr.node){var n=t.getZr();Co(n).records||(Co(n).records={}),vW(n,t);var i=Co(n).records[r]||(Co(n).records[r]={});i.handler=e}}function vW(r,t){if(Co(r).initialized)return;Co(r).initialized=!0,e("click",je(MI,"click")),e("mousemove",je(MI,"mousemove")),e("globalout",mW);function e(n,i){r.on(n,function(a){var o=yW(t);pW(Co(r).records,function(s){s&&i(s,a,o.dispatchAction)}),gW(o.pendings,t)})}}function gW(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function mW(r,t,e){r.handler("leave",null,e)}function MI(r,t,e,n){t.handler(r,e,n)}function yW(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Ax(r,t){if(!pr.node){var e=t.getZr(),n=(Co(e).records||{})[r];n&&(Co(e).records[r]=null)}}var xW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";TI("axisPointer",i,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})})},t.prototype.remove=function(e,n){Ax("axisPointer",n)},t.prototype.dispose=function(e,n){Ax("axisPointer",n)},t.type="axisPointer",t}(Zr);const SW=xW;function AI(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Xs(a,r);if(o==null||o<0||ce(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,h=u.dim,f=d==="x"||d==="radius"?1:0,p=a.mapDimension(h),v=[];v[f]=a.get(p,o),v[1-f]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(v)||[]}else e=l.dataToPoint(a.getValues(de(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var II=cr();function wW(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||Te(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){yv(i)&&(i=AI({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=yv(i),u=a.axesInfo,c=s.axesInfo,d=n==="leave"||yv(i),h={},f={},p={list:[],map:{}},v={showPointer:je(_W,f),showTooltip:je(CW,p)};U(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);U(s.coordSysAxesInfo[y],function(w,_){var b=w.axis,C=IW(u,w);if(!d&&x&&(!u||C)){var M=C&&C.value;M==null&&!l&&(M=b.pointToData(i)),M!=null&&DI(w,M,v,!1,h)}})});var g={};return U(c,function(m,y){var x=m.linkGroup;x&&!f[y]&&U(x.axesInfo,function(w,_){var b=f[_];if(w!==m&&b){var C=b.value;x.mapper&&(C=m.axis.scale.parse(x.mapper(C,kI(w),kI(m)))),g[m.key]=C}})}),U(g,function(m,y){DI(c[y],m,v,!0,h)}),TW(f,c,h),MW(p,i,r,o),AW(c,o,e),h}}function DI(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=bW(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&ie(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function bW(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return U(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),d,h;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(c,r,e);h=f.dataIndices,d=f.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;d=l.getData().get(c[0],h[0])}if(!(d==null||!isFinite(d))){var p=r-d,v=Math.abs(p);v<=o&&((v<o||p>=0&&s<0)&&(o=v,s=p,i=d,a.length=0),U(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function _W(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function CW(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=ih(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function TW(r,t,e){var n=e.axesInfo=[];U(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function MW(r,t,e,n){if(yv(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function AW(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=II(n)[i]||{},o=II(n)[i]={};U(r,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&U(d.seriesDataIndices,function(h){var f=h.seriesIndex+" | "+h.dataIndex;o[f]=h})});var s=[],l=[];U(a,function(u,c){!o[c]&&l.push(u)}),U(o,function(u,c){!a[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function IW(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function kI(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function yv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ah(r){kl.registerAxisPointerClass("CartesianAxisPointer",dW),r.registerComponentModel(fW),r.registerComponentView(SW),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!ce(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=X8(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},wW)}function PI(r){Ze(hI),Ze(ah)}var DW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(gr);const kW=DW;function EI(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function LI(r){if(pr.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var RI=LI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),PW=LI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function OI(r,t){if(!r)return t;t=KC(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function EW(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var LW=OI(PW,"transition"),Ix=OI(RI,"transform"),RW="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(pr.transform3dSupported?"will-change:transform;":"");function OW(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function NW(r,t,e){if(!_e(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=ul(t);var a=OW(e),o=Math.max(Math.round(i)*1.5,6),s="",l=Ix+":",u;tr(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+i,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),f=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-d)/2)*100)/100;s+=";"+a+":-"+f+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+v.join("")+'"></div>'}function BW(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=pr.transformSupported?","+Ix+n:",left"+n+",top"+n),LW+":"+i}function NI(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!pr.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=pr.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Ix+":"+o+";":[["top",0],["left",0],[RI,o]]}function VW(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),U(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function zW(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),d=eM(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(BW(i,e)),a&&n.push("background-color:"+a),U(["width","color","radius"],function(f){var p="border-"+f,v=KC(p),g=r.get(v);g!=null&&n.push(p+":"+g+(f==="color"?"":"px"))}),n.push(VW(c)),d!=null&&n.push("padding:"+Hu(d).join("px ")+"px"),n.join(";")+";"}function BI(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&G5(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var HW=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,pr.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(_e(a)?document.querySelector(a):yu(a)?a:Re(a)&&a(t.getDom()));BI(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Di(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=EW(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=RW+zW(t,!this._firstShow,this._longHide)+NI(a[0],a[1],!0)+("border-color:"+ul(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(_e(a)&&n.get("trigger")==="item"&&!EI(n)&&(s=NW(n,i,a)),_e(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ce(t)||(t=[t]);for(var l=0;l<t.length;l++)yu(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(BI(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=NI(n[0],n[1]);U(a,function(o){i[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",pr.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}();const FW=HW;var WW=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),zI(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;Be(t)&&_r(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new ar({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:eM(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),U(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),U(["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})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=VI(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;zI(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=cs(a.borderWidth||0),s=VI(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function cs(r){return Math.max(0,r)}function VI(r){var t=cs(r.shadowBlur||0),e=cs(r.shadowOffsetX||0),n=cs(r.shadowOffsetY||0);return{left:cs(t-e),right:cs(t+e),top:cs(t-n),bottom:cs(t+n)}}function zI(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const jW=WW;var GW=new or({shape:{x:-1,y:-1,width:2,height:2}}),UW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(pr.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=D3(i.get("renderMode"));this._tooltipContent=a==="richText"?new jW(n):new FW(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,n,i){if(!(pr.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?qu(this,"_updatePosition",50,"fixRate"):Fd(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");TI("itemTooltip",this._api,Te(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||pr.node||!i.getDom())){var o=HI(a,i);this._ticket="";var s=a.dataByCoordSys,l=ZW(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=GW;c.x=a.x,c.y=a.y,c.update(),He(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var d=AI(a,n),h=d.point[0],f=d.point[1];h!=null&&f!=null&&this._tryShow({offsetX:h,offsetY:f,target:d.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(HI(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),d=oh([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=He(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xl(i,function(c){if(He(c).dataIndex!=null)return l=c,!0;if(He(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=Te(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=oh([n.tooltipOption],a),l=this._renderMode,u=[],c=gn("section",{blocks:[],noHeader:!0}),d=[],h=new ny;U(e,function(y){U(y.dataByAxis,function(x){var w=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!w||_==null)){var b=xI(_,w.axis,i,x.seriesDataIndices,x.valueLabelOpt),C=gn("section",{header:b,noHeader:!Qi(b),sortBlocks:!0,blocks:[]});c.blocks.push(C),U(x.seriesDataIndices,function(M){var k=i.getSeriesByIndex(M.seriesIndex),P=M.dataIndexInside,R=k.getDataParams(P);if(!(R.dataIndex<0)){R.axisDim=x.axisDim,R.axisIndex=x.axisIndex,R.axisType=x.axisType,R.axisId=x.axisId,R.axisValue=Qy(w.axis,{value:_}),R.axisValueLabel=b,R.marker=h.makeTooltipMarker("item",ul(R.color),l);var j=RT(k.formatTooltip(P,!0,null)),X=j.frag;if(X){var st=oh([k],a).get("valueFormatter");C.blocks.push(st?ie({valueFormatter:st},X):X)}j.text&&d.push(j.text),u.push(R)}})}})}),c.blocks.reverse(),d.reverse();var f=n.position,p=s.get("order"),v=QT(c,h,l,p,i.get("useUTC"),s.get("textStyle"));v&&d.unshift(v);var g=l==="richText"?"\n\n":"<br/>",m=d.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,f,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],f,null,h)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=He(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,h=u.getData(d),f=this._renderMode,p=e.positionDefault,v=oh([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,d),y=new ny;m.marker=y.makeTooltipMarker("item",ul(m.color),f);var x=RT(u.formatTooltip(c,!1,d)),w=v.get("order"),_=v.get("valueFormatter"),b=x.frag,C=b?QT(_?ie({valueFormatter:_},b):b,y,f,w,a.get("useUTC"),v.get("textStyle")):x.text,M="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,C,m,M,e.offsetX,e.offsetY,e.position,e.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=He(n),o=a.tooltipConfig,s=o.option||{};if(_e(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=e.positionDefault,h=oh(u,this._tooltipModel,d?{position:d}:null),f=h.get("content"),p=Math.random()+"",v=new ny;this._showOrMove(h,function(){var g=Ve(h.get("formatterParams")||{});this._showTooltipContent(h,f,g,p,e.offsetX,e.offsetY,e.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var d=this._tooltipContent;d.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var f=n,p=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),v=p.color;if(h)if(_e(h)){var g=e.ecModel.get("useUTC"),m=ce(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;f=h,y&&(f=up(m.axisValue,f,g)),f=XC(f,i,!0)}else if(Re(h)){var x=Te(function(w,_){w===this._ticket&&(d.setContent(_,c,e,v,l),this._updatePosition(e,l,o,s,d,i,u))},this);this._ticket=a,f=h(i,a,x)}else f=h;d.setContent(f,c,e,v,l),d.show(e,v),this._updatePosition(e,l,o,s,d,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||ce(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ce(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||e.get("position");var d=o.getSize(),h=e.get("align"),f=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Re(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),ce(n))i=xe(n[0],u),a=xe(n[1],c);else if(Be(n)){var v=n;v.width=d[0],v.height=d[1];var g=ln(v,{width:u,height:c});i=g.x,a=g.y,h=null,f=null}else if(_e(n)&&l){var m=XW(n,p,d,e.get("borderWidth"));i=m[0],a=m[1]}else{var m=KW(i,a,o,u,c,h?null:20,f?null:20);i=m[0],a=m[1]}if(h&&(i-=FI(h)?d[0]/2:h==="right"?d[0]:0),f&&(a-=FI(f)?d[1]/2:f==="bottom"?d[1]:0),EI(e)){var m=YW(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&U(i,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&U(u,function(h,f){var p=d[f]||{},v=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&v.length===g.length,o&&U(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&U(h.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],w=a[y];x&&w&&w.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){pr.node||!n.getDom()||(Fd(this,"_updatePosition"),this._tooltipContent.dispose(),Ax("itemTooltip",n))},t.type="tooltip",t}(Zr);function oh(r,t,e){var n=t.ecModel,i;e?(i=new Er(e,n,n),i=new Er(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Er&&(o=o.get("tooltip",!0)),_e(o)&&(o={formatter:o}),o&&(i=new Er(o,i,n)))}return i}function HI(r,t){return r.dispatchAction||Te(t.dispatchAction,t)}function KW(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function YW(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function XW(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function FI(r){return r==="center"||r==="middle"}function ZW(r,t,e){var n=U0(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=fd(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=He(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const $W=UW;function WI(r){Ze(ah),r.registerComponentModel(kW),r.registerComponentView($W),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rn),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rn)}var JW=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},QW=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),ce(n)&&U(n,function(a,o){_e(a)&&(a={type:a}),n[o]=Je(a,JW(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var d=l.legendVisualProvider,h=d.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):c=!0}else c=!0;c&&G0(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Pe(),s=de(a,function(l){return(_e(l)||vr(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Er(l,this,this.ecModel))},this);this._data=Ir(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;U(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;U(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;U(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&tr(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(gr);const Dx=QW;function qW(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=ln(n,a,i);dl(t.get("orient"),r,t.get("itemGap"),o.width,o.height),gp(r,n,a,i)}function jI(r,t){var e=Hu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new or({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var uc=je,kx=U,xv=ze,t7=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new xv),this.group.add(this._selectorGroup=new xv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var c=e.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),f=ln(c,d,h),p=this.layoutInner(e,o,f,a,l,u),v=ln(Ne({width:p.width,height:p.height},c),d,h);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jI(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),c=Pe(),d=n.get("selectedMode"),h=[];i.eachRawSeries(function(f){!f.get("legendHoverLink")&&h.push(f.id)}),kx(n.getData(),function(f,p){var v=f.get("name");if(!this.newlineDisabled&&(v===""||v==="\n")){var g=new xv;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,f,n,e,x,_,w,d,a);b.on("click",uc(GI,v,null,a,h)).on("mouseover",uc(Px,m.name,null,a,h)).on("mouseout",uc(Ex,m.name,null,a,h)),i.ssr&&b.eachChild(function(C){var M=He(C);M.seriesIndex=m.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),c.set(v,!0)}else i.eachRawSeries(function(C){if(!c.get(v)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(v))return;var k=M.indexOfName(v),P=M.getItemVisual(k,"style"),R=M.getItemVisual(k,"legendIcon"),j=ni(P.fill);j&&j[3]===0&&(j[3]=.2,P=ie(ie({},P),{fill:Ma(j,"rgba")}));var X=this._createItem(C,v,p,f,n,e,{},P,R,d,a);X.on("click",uc(GI,null,v,a,h)).on("mouseover",uc(Px,null,v,a,h)).on("mouseout",uc(Ex,null,v,a,h)),i.ssr&&X.eachChild(function(st){var dt=He(st);dt.seriesIndex=C.seriesIndex,dt.dataIndex=p,dt.ssrType="legend"}),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();kx(e,function(u){var c=u.type,d=new ar({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var h=n.getModel("selectorLabel"),f=n.getModel(["emphasis","selectorLabel"]);In(d,{normal:h,emphasis:f},{defaultText:u.title}),vo(d)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,c,d,h){var f=e.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var w=e7(c,a,l,u,f,g,h),_=new xv,b=a.getModel("textStyle");if(Re(e.getLegendIcon)&&(!x||x==="inherit"))_.add(e.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=x==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;_.add(r7({itemWidth:p,itemHeight:v,icon:c,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var M=s==="left"?p+5:-5,k=s,P=o.get("formatter"),R=n;_e(P)&&P?R=P.replace("{name}",n!=null?n:""):Re(P)&&(R=P(n));var j=g?b.getTextColor():a.get("inactiveColor");_.add(new ar({style:Or(b,{text:R,x:M,y:v/2,fill:j,align:k,verticalAlign:"middle"},{inheritColor:j})}));var X=new or({shape:_.getBoundingRect(),style:{fill:"transparent"}}),st=a.getModel("tooltip");return st.get("show")&&Qu({el:X,componentModel:o,itemName:n,itemTooltipOption:st.option}),_.add(X),_.eachChild(function(dt){dt.silent=!0}),X.silent=!d,this.getContentGroup().add(_),vo(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();dl(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){dl("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),f=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),v=e.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?f[v]+=c[g]+p:d[v]+=h[g]+p,f[1-v]+=c[m]/2-h[m]/2,u.x=f[0],u.y=f[1],l.x=d[0],l.y=d[1];var x={x:0,y:0};return x[g]=c[g]+p+h[g],x[m]=Math.max(c[m],h[m]),x[y]=Math.min(0,h[y]+f[1-v]),x}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Zr);function e7(r,t,e,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),kx(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?n.decal:nc(d,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var h=t.getModel("lineStyle"),f=h.getLineStyle();if(s(f,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),f.stroke==="auto"&&(f.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=h.get("inactiveColor"),f.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function r7(r){var t=r.icon||"roundRect",e=qr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function GI(r,t,e,n){Ex(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Px(r,t,e,n)}function UI(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Px(r,t,e,n){UI(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Ex(r,t,e,n){UI(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const KI=t7;function n7(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function sh(r,t,e){var n={},i=r==="toggleSelected",a;return e.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();U(s,function(l){var u=l.get("name");if(!(u==="\n"||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function i7(r){r.registerAction("legendToggleSelect","legendselectchanged",je(sh,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",je(sh,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",je(sh,"inverseSelect")),r.registerAction("legendSelect","legendselected",je(sh,"select")),r.registerAction("legendUnSelect","legendunselected",je(sh,"unSelect"))}function YI(r){r.registerComponentModel(Dx),r.registerComponentView(KI),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,n7),r.registerSubTypeDefaulter("legend",function(){return"plain"}),i7(r)}var a7=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=Fu(e);r.prototype.init.call(this,e,n,i),XI(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),XI(this,this.option,e)},t.type="legend.scroll",t.defaultOption=es(Dx.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Dx);function XI(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,rs(t,e,{type:"box",ignoreSize:!!i})}const o7=a7;var ZI=ze,Lx=["width","height"],Rx=["x","y"],s7=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new ZI),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ZI)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var c=this._controllerGroup,d=n.get("pageIconSize",!0),h=ce(d)?d:[d,d];p("pagePrev",0);var f=n.getModel("pageTextStyle");c.add(new ar({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",y=zd(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:Te(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=v,c.add(y)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Lx[u],d=Rx[u],h=Lx[1-u],f=Rx[1-u];o&&dl("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=Ve(i);o&&(m[c]=i[c]-v[c]-p);var y=this._layoutContentAndController(e,a,m,u,c,h,f,d);if(o){if(s==="end")g[u]+=y[c]+p;else{var x=v[c]+p;g[u]-=x,y[d]-=x}y[c]+=v[c]+p,g[1-u]+=y[f]+y[h]/2-v[h]/2,y[h]=Math.max(y[h],v[h]),y[f]=Math.min(y[f],v[f]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;dl(e.get("orient"),c,e.get("itemGap"),a?i.width:null,a?null:i.height),dl("horizontal",h,e.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),p=h.getBoundingRect(),v=this._showController=f[o]>i[o],g=[-f.x,-f.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=We(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(v){var w=e.get("pageButtonPosition",!0);w==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=f[s]/2-p[s]/2,c.setPosition(g),d.setPosition(m),h.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:f[o],_[s]=Math.max(f[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),d.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],d.setClipPath(new or({shape:b})),d.__rectSize=b[o]}else h.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&lr(c,{x:C.contentPosition[0],y:C.contentPosition[1]},v?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;U(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",h=n[d]!=null,f=i.childOfName(c);f&&(f.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),f.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",_e(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Lx[o],l=Rx[o],u=this._findTargetItemIndex(n),c=i.children(),d=c[u],h=c.length,f=h?1:0,p={contentPosition:[i.x,i.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var v=w(d);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=h;++g)x=w(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=w(c[g]),(!x||!_(y,x.s))&&m.i<y.i&&(y=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function w(b){if(b){var C=b.getBoundingRect(),M=C[l]+b[l];return{s:M,e:M+C[s],i:b.__legendDataIndex}}}function _(b,C){return b.e>=C&&b.s<=C+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(KI);const l7=s7;function u7(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function c7(r){Ze(YI),r.registerComponentModel(o7),r.registerComponentView(l7),u7(r)}function $I(r){Ze(YI),Ze(c7)}var d7={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},minmax:function(r){for(var t=-1/0,e=-1/0,n=0;n<r.length;n++){var i=r[n],a=Math.abs(i);a>t&&(t=a,e=i)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},h7=function(r){return Math.round(r.length/2)};function JI(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(d||1),f=Math.round(s/h);if(isFinite(f)&&f>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/f));var p=void 0;_e(a)?p=d7[a]:Re(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/f,p,h7))}}}}}var QI=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Va(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)U(a.getAxes(),function(h,f){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),v=h.getTickModel().get("alignWithLabel"),g=o[f],m=n[f]==="x1"||n[f]==="y1";if(m&&!v&&(g+=1),p.length<2)return;if(p.length===2){s[f]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,x=void 0,w=1,_=0;_<p.length;_++){var b=p[_].coord,C=_===p.length-1?p[_-1].tickValue+w:p[_].tickValue;if(C===g){x=b;break}else if(C<g)y=b;else if(y!=null&&C>g){x=(b+y)/2;break}_===1&&(w=C-p[0].tickValue)}x==null&&(y?y&&(x=p[p.length-1].coord):x=p[0].coord),s[f]=h.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=a.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Wr);Wr.registerClass(QI);const Sv=QI;var f7=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Va(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=es(Sv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Sv);const p7=f7;function qI(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=e.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var d=new or({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),f=h.isHorizontal(),p=h.inverse;f?(p&&(d.shape.x+=l),d.shape.width=0):(p||(d.shape.y+=u),d.shape.height=0);var v=Re(i)?function(g){i(g,d)}:null;Fr(d,{shape:{width:l,height:u,x:o,y:s}},e,null,n,v)}return d}function tD(r,t,e){var n=r.getArea(),i=Qr(n.r0,1),a=Qr(n.r,1),o=new oi({shape:{cx:Qr(r.cx,1),cy:Qr(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Fr(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function lh(r,t,e,n,i){if(r){if(r.type==="polar")return tD(r,t,e);if(r.type==="cartesian2d")return qI(r,t,e,n,i)}else return null;return null}var v7=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),g7=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new v7},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,d=n.endAngle,h=n.clockwise,f=Math.PI*2,p=h?d-c<f:c-d<f;p||(c=d-(h?f:-f));var v=Math.cos(c),g=Math.sin(c),m=Math.cos(d),y=Math.sin(d);p?(e.moveTo(v*o+i,g*o+a),e.arc(v*u+i,g*u+a,l,-Math.PI+c,c,!h)):e.moveTo(v*s+i,g*s+a),e.arc(i,a,s,c,d,!h),e.arc(m*u+i,y*u+a,l,d-Math.PI*2,d-Math.PI,!h),o!==0&&e.arc(i,a,o,d,c,h)},t}(rr);const wv=g7;function El(r,t){return r.type===t}function cc(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Uu(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(Uu(r,t,e[o]));return a.join(" ")}}function eD(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!ce(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}function m7(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return jf(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,d=u.cy,h=u.r,f=u.r0,p=(h+f)/2,v=u.startAngle,g=u.endAngle,m=(v+g)/2,y=e?Math.abs(h-f)/2:0,x=Math.cos,w=Math.sin,_=c+h*x(v),b=d+h*w(v),C="left",M="top";switch(s){case"startArc":_=c+(f-l)*x(m),b=d+(f-l)*w(m),C="center",M="top";break;case"insideStartArc":_=c+(f+l)*x(m),b=d+(f+l)*w(m),C="center",M="bottom";break;case"startAngle":_=c+p*x(v)+bv(v,l+y,!1),b=d+p*w(v)+_v(v,l+y,!1),C="right",M="middle";break;case"insideStartAngle":_=c+p*x(v)+bv(v,-l+y,!1),b=d+p*w(v)+_v(v,-l+y,!1),C="left",M="middle";break;case"middle":_=c+p*x(m),b=d+p*w(m),C="center",M="middle";break;case"endArc":_=c+(h+l)*x(m),b=d+(h+l)*w(m),C="center",M="bottom";break;case"insideEndArc":_=c+(h-l)*x(m),b=d+(h-l)*w(m),C="center",M="top";break;case"endAngle":_=c+p*x(g)+bv(g,l+y,!0),b=d+p*w(g)+_v(g,l+y,!0),C="left",M="middle";break;case"insideEndAngle":_=c+p*x(g)+bv(g,-l+y,!0),b=d+p*w(g)+_v(g,-l+y,!0),C="right",M="middle";break;default:return jf(n,i,a)}return n=n||{},n.x=_,n.y=b,n.align=C,n.verticalAlign=M,n}}function y7(r,t,e,n){if(vr(n)){r.setTextConfig({rotation:n});return}else if(ce(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function bv(r,t,e){return t*Math.sin(r)*(e?-1:1)}function _v(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Ll(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;ce(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:de(n,function(a){return ea(a,i)})}}var Ox=Math.max,Nx=Math.min;function x7(r,t){var e=r.getArea&&r.getArea();if(El(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var S7=function(r){Yt(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){as(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),d;u.type==="cartesian2d"?d=c.isHorizontal():u.type==="polar"&&(d=c.dim==="angle");var h=e.isAnimationEnabled()?e:null,f=w7(e,u);f&&this._enableRealtimeSort(f,s,i);var p=e.get("clip",!0)||f,v=x7(u,s);o.removeClipPath();var g=e.get("roundCap",!0),m=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),x=y.get("borderRadius")||0,w=[],_=this._backgroundEls,b=a&&a.isInitSort,C=a&&a.type==="changeAxisOrder";function M(R){var j=Cv[u.type](s,R),X=I7(u,d,j);return X.useStyle(y.getItemStyle()),u.type==="cartesian2d"?X.setShape("r",x):X.setShape("cornerRadius",x),w[R]=X,X}s.diff(l).add(function(R){var j=s.getItemModel(R),X=Cv[u.type](s,R,j);if(m&&M(R),!(!s.hasValue(R)||!oD[u.type](X))){var st=!1;p&&(st=rD[u.type](v,X));var dt=nD[u.type](e,s,R,X,d,h,c.model,!1,g);f&&(dt.forceLabelAnimation=!0),lD(dt,s,R,j,X,e,d,u.type==="polar"),b?dt.attr({shape:X}):f?iD(f,h,dt,X,R,d,!1,!1):Fr(dt,{shape:X},e,R),s.setItemGraphicEl(R,dt),o.add(dt),dt.ignore=st}}).update(function(R,j){var X=s.getItemModel(R),st=Cv[u.type](s,R,X);if(m){var dt=void 0;_.length===0?dt=M(j):(dt=_[j],dt.useStyle(y.getItemStyle()),u.type==="cartesian2d"?dt.setShape("r",x):dt.setShape("cornerRadius",x),w[R]=dt);var xt=Cv[u.type](s,R),Rt=hD(d,xt,u);lr(dt,{shape:Rt},h,R)}var wt=l.getItemGraphicEl(j);if(!s.hasValue(R)||!oD[u.type](st)){o.remove(wt);return}var Lt=!1;if(p&&(Lt=rD[u.type](v,st),Lt&&o.remove(wt)),wt?na(wt):wt=nD[u.type](e,s,R,st,d,h,c.model,!!wt,g),f&&(wt.forceLabelAnimation=!0),C){var Ft=wt.getTextContent();if(Ft){var Kt=Ou(Ft);Kt.prevValue!=null&&(Kt.prevValue=Kt.value)}}else lD(wt,s,R,X,st,e,d,u.type==="polar");b?wt.attr({shape:st}):f?iD(f,h,wt,st,R,d,!0,C):lr(wt,{shape:st},e,R,null),s.setItemGraphicEl(R,wt),wt.ignore=Lt,o.add(wt)}).remove(function(R){var j=l.getItemGraphicEl(R);j&&bd(j,e,R)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new ze);k.removeAll();for(var P=0;P<w.length;++P)k.add(w[P]);o.add(k),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),cD(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),cD(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&lh(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:de(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),d=c<0?Number.MIN_VALUE:n(e.indexOfRawIndex(c));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){bd(a,e,He(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Lr),rD={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=Ox(t.x,r.x),s=Nx(t.x+t.width,i),l=Ox(t.y,r.y),u=Nx(t.y+t.height,a),c=s<o,d=u<l;return t.x=c&&o>i?s:o,t.y=d&&l>a?u:l,t.width=c?0:s-o,t.height=d?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Nx(t.r,r.r),a=Ox(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},nD={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new or({shape:ie({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var c=u.shape,d=i?"height":"width";c[d]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?wv:oi,c=new u({shape:n,z2:1});c.name="item";var d=sD(i);if(c.calculateTextPosition=m7(d,{isRoundCap:u===wv}),a){var h=c.shape,f=i?"r":"endAngle",p={};h[f]=i?n.r0:n.startAngle,p[f]=n[f],(s?lr:Fr)(c,{shape:p},a)}return c}};function w7(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function iD(r,t,e,n,i,a,o,s){var l,u;a?(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?lr:Fr)(e,{shape:l},t,i,null);var c=t?r.baseAxis.model:null;(o?lr:Fr)(e,{shape:u},c,i)}function aD(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var b7=["x","y","width","height"],_7=["cx","cy","r","startAngle","endAngle"],oD={cartesian2d:function(r){return!aD(r,b7)},polar:function(r){return!aD(r,_7)}},Cv={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?T7(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function C7(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function sD(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function lD(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var c=r.shape,d=Ll(n.getModel("itemStyle"),c,!0);ie(c,d),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=vn(n);In(r,p,{labelFetcher:a,labelDataIndex:e,defaultText:cc(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=r.getTextContent();if(s&&v){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,y7(r,g==="outside"?f:g,sD(o),n.get(["label","rotate"]))}IC(v,p,a.getRawValue(e),function(y){return eD(t,y)});var m=n.getModel(["emphasis"]);Xr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),An(r,n),C7(i)&&(r.style.fill="none",r.style.stroke="none",U(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function T7(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var M7=function(){function r(){}return r}(),uD=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new M7},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],e.rect(s[0],s[1],l[0],l[1])},t}(rr);function cD(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new uD({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var d=new uD({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),He(d).seriesIndex=r.seriesIndex,r.get("silent")||(d.on("mousedown",dD),d.on("mousemove",dD)),e&&e.push(d)}var dD=gy(function(r){var t=this,e=A7(t,r.offsetX,r.offsetY);He(t).dataIndex=e>=0?e:null},30,!1);function A7(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,d=a.length/3;c<d;c++){var h=c*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function hD(r,t,e){if(El(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function I7(r,t,e){var n=r.type==="polar"?oi:or;return new n({shape:hD(t,e,r),silent:!0,z2:0})}const D7=S7;function fD(r){r.registerChartView(D7),r.registerSeriesModel(p7),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,je(d2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,h2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,JI("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var k7=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(0)var n;return Va(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new ze,i=qr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=qr(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Wr);const P7=k7;var E7=function(r){Yt(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=qr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=L7,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){fo(this.childAt(0))},t.prototype.downplay=function(){po(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var d=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,d)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(f):lr(h,f,s,n),na(h)}if(this._updateCommon(e,n,l,i,a),u){var h=this.childAt(0);if(!c){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Fr(h,f,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,c,d,h,f,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,d=a.selectItemStyle,h=a.focus,f=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),d=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),f=x.get("blurScope"),p=x.get("disabled"),v=vn(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var w=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var _=Sl(e.getItemVisual(n,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var b=e.getItemVisual(n,"style"),C=b.fill;if(s instanceof Mn){var M=s.style;s.useStyle(ie({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(ie({},b)):s.useStyle(b),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var k=e.getItemVisual(n,"liftZ"),P=this._z2;k!=null?P==null&&(this._z2=s.z2,s.z2+=k):P!=null&&(s.z2=P,this._z2=null);var R=o&&o.useNameLabel;In(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:j,inheritColor:C,defaultOpacity:b.opacity});function j(dt){return R?e.getName(dt):cc(e,dt)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var X=s.ensureState("emphasis");X.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var st=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;X.scaleX=this._sizeX*st,X.scaleY=this._sizeY*st,this.setSymbolScale(1),Xr(this,h,f,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=He(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ts(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ts(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return ec(e.getItemVisual(n,"symbolSize"))},t}(ze);function L7(r,t){this.parent.drift(r,t)}const uh=E7;function Bx(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function pD(r){return r!=null&&!Be(r)&&(r={isIgnore:r}),r||{}}function vD(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:vn(t),cursorStyle:t.get("cursor")}}var R7=function(){function r(t){this.group=new ze,this._SymbolCtor=t||uh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=pD(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=vD(t),u={disableAnimation:s},c=e.getSymbolPoint||function(d){return t.getItemLayout(d)};a||n.removeAll(),t.diff(a).add(function(d){var h=c(d);if(Bx(t,h,d,e)){var f=new o(t,d,l,u);f.setPosition(h),t.setItemGraphicEl(d,f),n.add(f)}}).update(function(d,h){var f=a.getItemGraphicEl(h),p=c(d);if(!Bx(t,p,d,e)){n.remove(f);return}var v=t.getItemVisual(d,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==v)n.remove(f),f=new o(t,d,l,u),f.setPosition(p);else{f.updateData(t,d,l,u);var m={x:p[0],y:p[1]};s?f.attr(m):lr(f,m,i)}n.add(f),t.setItemGraphicEl(d,f)}).remove(function(d){var h=a.getItemGraphicEl(d);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vD(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=pD(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Bx(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){as(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r}();const ch=R7;function gD(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=O7(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,d=de(r.dimensions,function(p){return t.mapDimension(p)}),h=!1,f=t.getCalculationInfo("stackResultDimension");return So(t,d[0])&&(h=!0,d[0]=f),So(t,d[1])&&(h=!0,d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function O7(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:vr(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function mD(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function N7(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function B7(r,t,e,n,i,a,o,s){for(var l=N7(r,t),u=[],c=[],d=[],h=[],f=[],p=[],v=[],g=gD(i,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x<l.length;x++){var w=l[x],_=!0,b=void 0,C=void 0;switch(w.cmd){case"=":b=w.idx*2,C=w.idx1*2;var M=m[b],k=m[b+1],P=y[C],R=y[C+1];(isNaN(M)||isNaN(k))&&(M=P,k=R),u.push(M,k),c.push(P,R),d.push(e[b],e[b+1]),h.push(n[C],n[C+1]),v.push(t.getRawIndex(w.idx1));break;case"+":var j=w.idx,X=g.dataDimsForPoint,st=i.dataToPoint([t.get(X[0],j),t.get(X[1],j)]);C=j*2,u.push(st[0],st[1]),c.push(y[C],y[C+1]);var dt=mD(g,i,t,j);d.push(dt[0],dt[1]),h.push(n[C],n[C+1]),v.push(t.getRawIndex(j));break;case"-":_=!1}_&&(f.push(w),p.push(p.length))}p.sort(function(Qt,re){return v[Qt]-v[re]});for(var xt=u.length,Rt=za(xt),wt=za(xt),Lt=za(xt),Ft=za(xt),Kt=[],x=0;x<p.length;x++){var Ut=p[x],Bt=x*2,Gt=Ut*2;Rt[Bt]=u[Gt],Rt[Bt+1]=u[Gt+1],wt[Bt]=c[Gt],wt[Bt+1]=c[Gt+1],Lt[Bt]=d[Gt],Lt[Bt+1]=d[Gt+1],Ft[Bt]=h[Gt],Ft[Bt+1]=h[Gt+1],Kt[x]=f[Ut]}return{current:Rt,next:wt,stackedOnCurrent:Lt,stackedOnNext:Ft,status:Kt}}var ds=Math.min,hs=Math.max;function Rl(r,t){return isNaN(r)||isNaN(t)}function Vx(r,t,e,n,i,a,o,s,l){for(var u,c,d,h,f,p,v=e,g=0;g<n;g++){var m=t[v*2],y=t[v*2+1];if(v>=i||v<0)break;if(Rl(m,y)){if(l){v+=a;continue}break}if(v===e)r[a>0?"moveTo":"lineTo"](m,y),d=m,h=y;else{var x=m-u,w=y-c;if(x*x+w*w<.5){v+=a;continue}if(o>0){for(var _=v+a,b=t[_*2],C=t[_*2+1];b===m&&C===y&&g<n;)g++,_+=a,v+=a,b=t[_*2],C=t[_*2+1],m=t[v*2],y=t[v*2+1],x=m-u,w=y-c;var M=g+1;if(l)for(;Rl(b,C)&&M<n;)M++,_+=a,b=t[_*2],C=t[_*2+1];var k=.5,P=0,R=0,j=void 0,X=void 0;if(M>=n||Rl(b,C))f=m,p=y;else{P=b-u,R=C-c;var st=m-u,dt=b-m,xt=y-c,Rt=C-y,wt=void 0,Lt=void 0;if(s==="x"){wt=Math.abs(st),Lt=Math.abs(dt);var Ft=P>0?1:-1;f=m-Ft*wt*o,p=y,j=m+Ft*Lt*o,X=y}else if(s==="y"){wt=Math.abs(xt),Lt=Math.abs(Rt);var Kt=R>0?1:-1;f=m,p=y-Kt*wt*o,j=m,X=y+Kt*Lt*o}else wt=Math.sqrt(st*st+xt*xt),Lt=Math.sqrt(dt*dt+Rt*Rt),k=Lt/(Lt+wt),f=m-P*o*(1-k),p=y-R*o*(1-k),j=m+P*o*k,X=y+R*o*k,j=ds(j,hs(b,m)),X=ds(X,hs(C,y)),j=hs(j,ds(b,m)),X=hs(X,ds(C,y)),P=j-m,R=X-y,f=m-P*wt/Lt,p=y-R*wt/Lt,f=ds(f,hs(u,m)),p=ds(p,hs(c,y)),f=hs(f,ds(u,m)),p=hs(p,ds(c,y)),P=m-f,R=y-p,j=m+P*Lt/wt,X=y+R*Lt/wt}r.bezierCurveTo(d,h,f,p,m,y),d=j,h=X}else r.lineTo(m,y)}u=m,c=y,v+=a}return g}var yD=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),V7=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yD},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Rl(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Rl(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Vx(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=La.CMD,s,l,u=n==="x",c=[],d=0;d<a.length;){var h=a[d++],f=void 0,p=void 0,v=void 0,g=void 0,m=void 0,y=void 0,x=void 0;switch(h){case o.M:s=a[d++],l=a[d++];break;case o.L:if(f=a[d++],p=a[d++],x=u?(e-s)/(f-s):(e-l)/(p-l),x<=1&&x>=0){var w=u?(p-l)*x+l:(f-s)*x+s;return u?[e,w]:[w,e]}s=f,l=p;break;case o.C:f=a[d++],p=a[d++],v=a[d++],g=a[d++],m=a[d++],y=a[d++];var _=u?Df(s,f,v,m,e,c):Df(l,p,g,y,e,c);if(_>0)for(var b=0;b<_;b++){var C=c[b];if(C<=1&&C>=0){var w=u?pn(l,p,g,y,C):pn(s,f,v,m,C);return u?[e,w]:[w,e]}}s=m,l=y;break}}},t}(rr),z7=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(yD),xD=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new z7},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Rl(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Rl(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Vx(e,i,o,s,s,1,n.smooth,l,n.connectNulls);Vx(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(rr);function SD(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function wD(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function bD(r,t){var e=wD(r),n=e[0],i=e[1],a=wD(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function _D(r){return vr(r)?r:r?.5:0}function H7(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=za(n*2),a=0;a<n;a++){var o=mD(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function fs(r,t,e,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],d=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&d.push(r[s],r[s+1]);r=d}for(s=0;s<r.length-2;s+=2)switch(c[0]=r[s+2],c[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var h=(u[a]+c[a])/2,f=[];l[a]=f[a]=h,l[1-a]=u[1-a],f[1-a]=c[1-a],o.push(l[0],l[1]),o.push(f[0],f[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function F7(r,t){var e=[],n=r.length,i,a;function o(c,d,h){var f=c.coord,p=(h-f)/(d.coord-f),v=TB(p,[c.color,d.color]);return{coord:h,color:v}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function W7(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=de(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,d=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=F7(u,i==="x"?e.getWidth():e.getHeight()),f=h.length;if(!f&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,v=h[0].coord-p,g=h[f-1].coord+p,m=g-v;if(m<.001)return"transparent";U(h,function(x){x.offset=(x.coord-v)/m}),h.push({offset:f?h[f-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:d[0]||"transparent"});var y=new Bd(0,0,0,0,h,!0);return y[i]=v,y[i+"2"]=g,y}}}function j7(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&G7(a,t))){var o=t.mapDimension(a.dim),s={};return U(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function G7(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(uh.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function U7(r,t){return isNaN(r)||isNaN(t)}function K7(r){for(var t=r.length/2;t>0&&U7(r[t*2-2],r[t*2-1]);t--);return t-1}function CD(r,t){return[r[t*2],r[t*2+1]]}function Y7(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function TD(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Kn.length;t++)if(r.get([Kn[t],"endLabel","show"]))return!0;return!1}function zx(r,t,e,n){if(El(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=TD(n)?function(f,p){r._endLabelOnDuring(f,p,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=qI(t,e,n,function(){var f=r._endLabel;f&&e&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=h*2):(d.x-=h,d.width+=h*2)}return l&&l(1,c),c}else return tD(t,e,n)}function X7(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var Z7=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ze,n=new ch;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),c=e.getModel("areaStyle"),d=l.getLayout("points")||[],h=o.type==="polar",f=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&e.get("animation"),x=!c.isEmpty(),w=c.get("origin"),_=gD(o,l,w),b=x&&H7(o,l,_),C=e.get("showSymbol"),M=e.get("connectNulls"),k=C&&!h&&j7(e,l,o),P=this._data;P&&P.eachItemGraphicEl(function(re,se){re.__temp&&(s.remove(re),P.setItemGraphicEl(se,null))}),C||p.remove(),s.add(m);var R=h?!1:e.get("step"),j;o&&o.getArea&&e.get("clip",!0)&&(j=o.getArea(),j.width!=null?(j.x-=.1,j.y-=.1,j.width+=.2,j.height+=.2):j.r0&&(j.r0-=.5,j.r+=.5)),this._clipShapeForSymbol=j;var X=W7(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&f.type===o.type&&R===this._step))C&&p.updateData(l,{isIgnore:k,clipShape:j,disableAnimation:!0,getSymbolPoint:function(re){return[d[re*2],d[re*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,j),R&&(d=fs(d,o,R,M),b&&(b=fs(b,o,R,M))),v=this._newPolyline(d),x?g=this._newPolygon(d,b):g&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,ul(X)),m.setClipPath(zx(this,o,!0,e));else{x&&!g?g=this._newPolygon(d,b):g&&!x&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,ul(X));var st=m.getClipPath();if(st){var dt=zx(this,o,!1,e);Fr(st,{shape:dt.shape},e)}else m.setClipPath(zx(this,o,!0,e));C&&p.updateData(l,{isIgnore:k,clipShape:j,disableAnimation:!0,getSymbolPoint:function(re){return[d[re*2],d[re*2+1]]}}),(!SD(this._stackedOnPoints,b)||!SD(this._points,d))&&(y?this._doUpdateAnimation(l,b,o,i,R,w,M):(R&&(d=fs(d,o,R,M),b&&(b=fs(b,o,R,M))),v.setShape({points:d}),g&&g.setShape({points:d,stackedOnPoints:b})))}var xt=e.getModel("emphasis"),Rt=xt.get("focus"),wt=xt.get("blurScope"),Lt=xt.get("disabled");if(v.useStyle(Ne(u.getLineStyle(),{fill:"none",stroke:X,lineJoin:"bevel"})),An(v,e,"lineStyle"),v.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Ft=v.getState("emphasis").style;Ft.lineWidth=+v.style.lineWidth+1}He(v).seriesIndex=e.seriesIndex,Xr(v,Rt,wt,Lt);var Kt=_D(e.get("smooth")),Ut=e.get("smoothMonotone");if(v.setShape({smooth:Kt,smoothMonotone:Ut,connectNulls:M}),g){var Bt=l.getCalculationInfo("stackedOnSeries"),Gt=0;g.useStyle(Ne(c.getAreaStyle(),{fill:X,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Bt&&(Gt=_D(Bt.get("smooth"))),g.setShape({smooth:Kt,stackedOnSmooth:Gt,smoothMonotone:Ut,connectNulls:M}),An(g,e,"areaStyle"),He(g).seriesIndex=e.seriesIndex,Xr(g,Rt,wt,Lt)}var Qt=function(re){a._changePolyState(re)};l.eachItemGraphicEl(function(re){re&&(re.onHoverStateChange=Qt)}),this._polyline.onHoverStateChange=Qt,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=d,this._step=R,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,v),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){He(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Xs(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var h=e.get("zlevel")||0,f=e.get("z")||0;u=new uh(o,s),u.x=c,u.y=d,u.setZ(h,f);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=f,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Lr.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Xs(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Lr.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;np(this._polyline,e),n&&np(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new V7({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new xD({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");Re(c)&&(c=c(null));var d=u.get("animationDelay")||0,h=Re(d)?d(null):d;e.eachItemGraphicEl(function(f,p){var v=f;if(v){var g=[f.x,f.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var w=i,_=n.pointToCoord(g);a?(m=w.startAngle,y=w.endAngle,x=-_[1]/180*Math.PI):(m=w.r0,y=w.r,x=_[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,x=f.x):(m=b.y+b.height,y=b.y,x=f.y)}var C=y===m?0:(x-m)/(y-m);l&&(C=1-C);var M=Re(d)?d(p):c*C+h,k=v.getSymbolPath(),P=k.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:M}),k.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(TD(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ar({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=K7(l);c>=0&&(In(s,vn(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:c,defaultText:function(d,h,f){return f!=null?eD(o,f):cc(o,d)},enableTextSetter:!0},X7(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var d=i.getLayout("points"),h=i.hostModel,f=h.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=n.shape,w=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?v:0)*(y?-1:1),b=(m?0:-v)*(y?-1:1),C=m?"x":"y",M=Y7(d,w,C),k=M.range,P=k[1]-k[0],R=void 0;if(P>=1){if(P>1&&!f){var j=CD(d,k[0]);u.attr({x:j[0]+_,y:j[1]+b}),o&&(R=h.getRawValue(k[0]))}else{var j=c.getPointOn(w,C);j&&u.attr({x:j[0]+_,y:j[1]+b});var X=h.getRawValue(k[0]),st=h.getRawValue(k[1]);o&&(R=M_(i,p,X,st,M.t))}a.lastFrameIndex=k[0]}else{var dt=e===1||a.lastFrameIndex>0?k[0]:0,j=CD(d,dt);o&&(R=h.getRawValue(dt)),u.attr({x:j[0]+_,y:j[1]+b})}if(o){var xt=Ou(u);typeof xt.setLabelText=="function"&&xt.setLabelText(R)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,d=e.hostModel,h=B7(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin,s),f=h.current,p=h.stackedOnCurrent,v=h.next,g=h.stackedOnNext;if(o&&(f=fs(h.current,i,o,l),p=fs(h.stackedOnCurrent,i,o,l),v=fs(h.next,i,o,l),g=fs(h.stackedOnNext,i,o,l)),bD(f,v)>3e3||c&&bD(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=f;var m={shape:{points:v}};h.current!==f&&(m.shape.__points=h.next),u.stopAnimation(),lr(u,m,d),c&&(c.setShape({points:f,stackedOnPoints:p}),c.stopAnimation(),lr(c,{shape:{stackedOnPoints:g}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=h.status,w=0;w<x.length;w++){var _=x[w].cmd;if(_==="="){var b=e.getItemGraphicEl(x[w].idx1);b&&y.push({el:b,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,M=0;M<y.length;M++){var k=y[M].el,P=y[M].ptIdx*2;k.x=C[P],k.y=C[P+1],k.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Lr);const $7=Z7;function dh(r,t){return{seriesType:r,plan:Yu(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(i){var s=de(i.dimensions,function(f){return n.mapDimension(f)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");So(n,s[0])&&(s[0]=u),So(n,s[1])&&(s[1]=u);var c=n.getStore(),d=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(f,p){for(var v=f.end-f.start,g=o&&za(v*l),m=[],y=[],x=f.start,w=0;x<f.end;x++){var _=void 0;if(l===1){var b=c.get(d,x);_=i.dataToPoint(b,null,y)}else m[0]=c.get(d,x),m[1]=c.get(h,x),_=i.dataToPoint(m,null,y);o?(g[w++]=_[0],g[w++]=_[1]):p.setItemLayout(x,_.slice())}o&&p.setLayout("points",g)}}}}}}function MD(r){r.registerChartView($7),r.registerSeriesModel(P7),r.registerLayout(dh("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,JI("line"))}var AD=Math.PI*2,Tv=Math.PI/180;function ID(r,t){return ln(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function DD(r,t){var e=ID(r,t),n=r.get("center"),i=r.get("radius");ce(i)||(i=[0,i]);var a=xe(e.width,t.getWidth()),o=xe(e.height,t.getHeight()),s=Math.min(a,o),l=xe(i[0],s/2),u=xe(i[1],s/2),c,d,h=r.coordinateSystem;if(h){var f=h.dataToPoint(n);c=f[0]||0,d=f[1]||0}else ce(n)||(n=[n,n]),c=xe(n[0],a)+e.x,d=xe(n[1],o)+e.y;return{cx:c,cy:d,r0:l,r:u}}function J7(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=ID(n,e),s=DD(n,e),l=s.cx,u=s.cy,c=s.r,d=s.r0,h=-n.get("startAngle")*Tv,f=n.get("endAngle"),p=n.get("padAngle")*Tv;f=f==="auto"?h-AD:-f*Tv;var v=n.get("minAngle")*Tv,g=v+p,m=0;i.each(a,function(xt){!isNaN(xt)&&m++});var y=i.getSum(a),x=Math.PI/(y||m)*2,w=n.get("clockwise"),_=n.get("roseType"),b=n.get("stillShowZeroSum"),C=i.getDataExtent(a);C[0]=0;var M=w?1:-1,k=[h,f],P=M*p/2;lm(k,!w),h=k[0],f=k[1];var R=Math.abs(f-h),j=R,X=0,st=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(xt,Rt){var wt;if(isNaN(xt)){i.setItemLayout(Rt,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:d,r:_?NaN:c});return}_!=="area"?wt=y===0&&b?x:xt*x:wt=R/m,wt<g?(wt=g,j-=g):X+=xt;var Lt=st+M*wt,Ft=0,Kt=0;p>wt?(Ft=st+M*wt/2,Kt=Ft):(Ft=st+P,Kt=Lt-P),i.setItemLayout(Rt,{angle:wt,startAngle:Ft,endAngle:Kt,clockwise:w,cx:l,cy:u,r0:d,r:_?Cr(xt,C,[d,c]):c}),st=Lt}),j<AD&&m)if(j<=.001){var dt=R/m;i.each(a,function(xt,Rt){if(!isNaN(xt)){var wt=i.getItemLayout(Rt);wt.angle=dt;var Lt=0,Ft=0;dt<p?(Lt=h+M*(Rt+1/2)*dt,Ft=Lt):(Lt=h+M*Rt*dt+P,Ft=h+M*(Rt+1)*dt-P),wt.startAngle=Lt,wt.endAngle=Ft}})}else x=j/X,st=h,i.each(a,function(xt,Rt){if(!isNaN(xt)){var wt=i.getItemLayout(Rt),Lt=wt.angle===g?g:xt*x,Ft=0,Kt=0;Lt<p?(Ft=st+M*Lt/2,Kt=Ft):(Ft=st+P,Kt=st+M*Lt-P),wt.startAngle=Ft,wt.endAngle=Kt,st+=M*Lt}})})}function hh(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Q7=Math.PI/180;function kD(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function c(v){for(var g=v.rB,m=g*g,y=0;y<v.list.length;y++){var x=v.list[y],w=Math.abs(x.label.y-e),_=n+x.len,b=_*_,C=Math.sqrt((1-Math.abs(w*w/m))*b),M=t+(C+x.len2)*i,k=M-x.label.x,P=x.targetTextWidth-k*i;PD(x,P,!0),x.label.x=M}}function d(v){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var x=v[y],w=x.label.y>e?m:g,_=Math.abs(x.label.y-e);if(_>=w.maxY){var b=x.label.x-t-x.len2*i,C=n+x.len,M=Math.abs(b)<C?Math.sqrt(_*_/(1-b*b/C/C)):C;w.rB=M,w.maxY=_}w.list.push(x)}c(g),c(m)}for(var h=r.length,f=0;f<h;f++)if(r[f].position==="outer"&&r[f].labelAlignTo==="labelLine"){var p=r[f].label.x-u;r[f].linePoints[1][0]+=p,r[f].label.x=u}k2(r,l,l+o)&&d(r)}function q7(r,t,e,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<r.length;h++){var f=r[h].label;Hx(r[h])||(f.x<t?(c=Math.min(c,f.x),l.push(r[h])):(d=Math.max(d,f.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var p=r[h];if(!Hx(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var f=p.label,v=p.linePoints,g=void 0;p.labelAlignTo==="edge"?f.x<t?g=v[2][0]-p.labelDistance-o-p.edgeDistance:g=o+i-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?f.x<t?g=c-o-p.bleedMargin:g=o+i-d-p.bleedMargin:f.x<t?g=f.x-o-p.bleedMargin:g=o+i-f.x-p.bleedMargin,p.targetTextWidth=g,PD(p,g)}}kD(u,t,e,n,1,i,a,o,s,d),kD(l,t,e,n,-1,i,a,o,s,c);for(var h=0;h<r.length;h++){var p=r[h];if(!Hx(p)&&p.linePoints){var f=p.label,v=p.linePoints,m=p.labelAlignTo==="edge",y=f.style.padding,x=y?y[1]+y[3]:0,w=f.style.backgroundColor?0:x,_=p.rect.width+w,b=v[1][0]-v[2][0];m?f.x<t?v[2][0]=o+p.edgeDistance+_+p.labelDistance:v[2][0]=o+i-p.edgeDistance-_-p.labelDistance:(f.x<t?v[2][0]=f.x+p.labelDistance:v[2][0]=f.x-p.labelDistance,v[1][0]=v[2][0]+b),v[1][1]=v[2][1]=f.y}}}function PD(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||e){var d=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var f=t-l,p=t<c?f:e?f>r.unconstrainedWidth?null:f:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-d)/2}}}function Hx(r){return r.position==="center"}function t9(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*Q7,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function f(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var C in b.states)if(b.states[C].ignore===!1)return!0;return!1}t.each(function(b){var C=t.getItemGraphicEl(b),M=C.shape,k=C.getTextContent(),P=C.getTextGuideLine(),R=t.getItemModel(b),j=R.getModel("label"),X=j.get("position")||R.get(["emphasis","label","position"]),st=j.get("distanceToLabelLine"),dt=j.get("alignTo"),xt=xe(j.get("edgeDistance"),u),Rt=j.get("bleedMargin"),wt=R.getModel("labelLine"),Lt=wt.get("length");Lt=xe(Lt,u);var Ft=wt.get("length2");if(Ft=xe(Ft,u),Math.abs(M.endAngle-M.startAngle)<o){U(k.states,f),k.ignore=!0,P&&(U(P.states,f),P.ignore=!0);return}if(p(k)){var Kt=(M.startAngle+M.endAngle)/2,Ut=Math.cos(Kt),Bt=Math.sin(Kt),Gt,Qt,re,se;n=M.cx,i=M.cy;var le=X==="inside"||X==="inner";if(X==="center")Gt=M.cx,Qt=M.cy,se="center";else{var me=(le?(M.r+M.r0)/2*Ut:M.r*Ut)+n,ye=(le?(M.r+M.r0)/2*Bt:M.r*Bt)+i;if(Gt=me+Ut*3,Qt=ye+Bt*3,!le){var ue=me+Ut*(Lt+l-M.r),fe=ye+Bt*(Lt+l-M.r),Ie=ue+(Ut<0?-1:1)*Ft,Me=fe;dt==="edge"?Gt=Ut<0?c+xt:c+u-xt:Gt=Ie+(Ut<0?-st:st),Qt=Me,re=[[me,ye],[ue,fe],[Ie,Me]]}se=le?"center":dt==="edge"?Ut>0?"right":"left":Ut>0?"left":"right"}var Ue=Math.PI,Ge=0,Sr=j.get("rotate");if(vr(Sr))Ge=Sr*(Ue/180);else if(X==="center")Ge=0;else if(Sr==="radial"||Sr===!0){var wr=Ut<0?-Kt+Ue:-Kt;Ge=wr}else if(Sr==="tangential"&&X!=="outside"&&X!=="outer"){var dr=Math.atan2(Ut,Bt);dr<0&&(dr=Ue*2+dr);var Mr=Bt>0;Mr&&(dr=Ue+dr),Ge=dr-Ue}if(a=!!Ge,k.x=Gt,k.y=Qt,k.rotation=Ge,k.setStyle({verticalAlign:"middle"}),le){k.setStyle({align:se});var pi=k.states.select;pi&&(pi.x+=k.x,pi.y+=k.y)}else{var br=k.getBoundingRect().clone();br.applyTransform(k.getComputedTransform());var bn=(k.style.margin||0)+2.1;br.y-=bn/2,br.height+=bn,e.push({label:k,labelLine:P,position:X,len:Lt,len2:Ft,minTurnAngle:wt.get("minTurnAngle"),maxSurfaceAngle:wt.get("maxSurfaceAngle"),surfaceNormal:new Ye(Ut,Bt),linePoints:re,textAlign:se,labelDistance:st,labelAlignTo:dt,edgeDistance:xt,bleedMargin:Rt,rect:br,unconstrainedWidth:br.width,labelStyleWidth:k.style.width})}C.setTextConfig({inside:le})}}),!a&&r.get("avoidLabelOverlap")&&q7(e,n,i,l,u,h,c,d);for(var v=0;v<e.length;v++){var g=e[v],m=g.label,y=g.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),x&&(U(m.states,f),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(y){var _=g.linePoints;x||!_?(U(y.states,f),y.ignore=!0):(A2(_,g.minTurnAngle),XF(_,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:_}),m.__hostTarget.textGuideLineConfig={anchor:new Ye(_[0][0],_[0][1])})}}}var e9=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new ar;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),c=e.getItemLayout(n),d=ie(Ll(l.getModel("itemStyle"),c,!0),c);if(isNaN(d.startAngle)){o.setShape(d);return}if(a){o.setShape(d);var h=s.getShallow("animationType");s.ecModel.ssr?(Fr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):h==="scale"?(o.shape.r=c.r0,Fr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Fr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,lr(o,{shape:{endAngle:c.endAngle}},s,n))}else na(o),lr(o,{shape:d},s,n);o.useStyle(e.getItemVisual(n,"style")),An(o,l);var f=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(f)*p,g=Math.sin(f)*p,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=ie({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ll(u.getModel("itemStyle"),c)),ie(o.ensureState("select"),{x:v,y:g,shape:Ll(l.getModel(["select","itemStyle"]),c)}),ie(o.ensureState("blur"),{shape:Ll(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&ie(y.ensureState("select"),{x:v,y:g}),ie(x.ensureState("select"),{x:v,y:g}),Xr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;In(a,vn(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var d=a.getTextContent();a.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new li,this.setTextGuideLine(f)),ex(this,rx(o),{stroke:u,opacity:_a(s.get(["lineStyle","opacity"]),c,1)})}},t}(oi),r9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<o.count();++d)c=o.getItemLayout(d);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=new oi({shape:DD(e,i)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(f){var p=new e9(o,f,u);o.setItemGraphicEl(f,p),l.add(p)}).update(function(f,p){var v=s.getItemGraphicEl(p);v.updateData(o,f,u),v.off("click"),l.add(v),o.setItemGraphicEl(f,v)}).remove(function(f){var p=s.getItemGraphicEl(f);bd(p,e,f)}).execute(),t9(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(Lr);const n9=r9;function dc(r,t,e){t=ce(t)&&{coordDimensions:t}||ie({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=ac(n,t).dimensions,a=new kn(i,r);return a.initData(n,e),a}var i9=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const fh=i9;var a9=cr(),o9=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new fh(Te(this.getData,this),Te(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return dc(this,{coordDimensions:["value"],encodeDefaulter:je(Bm,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=a9(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=c_(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ys(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Wr);const s9=o9;function l9(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(vr(o)&&!isNaN(o)&&o<0)})}}}function ED(r){r.registerChartView(n9),r.registerSeriesModel(s9),rA("pie",r.registerAction),r.registerLayout(je(J7,"pie")),r.registerProcessor(hh("pie")),r.registerProcessor(l9("pie"))}function u9(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();U(a,function(o,s){e.each(e.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=LD(c)?c:RD(i)})}),e.each(function(o){var s=I5(n[o],function(l){return LD(l)})||RD(i);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function LD(r){return!isNaN(r[0])&&!isNaN(r[1])}function RD(r){return[r.cx,r.cy]}function c9(r){var t=r.polar;if(t){ce(t)||(t=[t]);var e=[];U(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],ce(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}U(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var d9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,f){var p=h.getItemVisual(f,"symbol")||"circle";if(p!=="none"){var v=ec(h.getItemVisual(f,"symbolSize")),g=qr(p,-1,-1,2,2),m=h.getItemVisual(f,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:m*Math.PI/180||0}),g}}function c(h,f,p,v,g,m){p.removeAll();for(var y=0;y<f.length-1;y++){var x=u(v,g);x&&(x.__dimIdx=y,h[y]?(x.setPosition(h[y]),F[m?"initProps":"updateProps"](x,{x:f[y][0],y:f[y][1]},e,g)):x.setPosition(f[y]),p.add(x))}}function d(h){return de(h,function(f){return[a.cx,a.cy]})}s.diff(l).add(function(h){var f=s.getItemLayout(h);if(f){var p=new si,v=new li,g={shape:{points:f}};p.shape.points=d(f),v.shape.points=d(f),Fr(p,g,e,h),Fr(v,g,e,h);var m=new ze,y=new ze;m.add(v),m.add(p),m.add(y),c(v.shape.points,f,y,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,f){var p=l.getItemGraphicEl(f),v=p.childAt(0),g=p.childAt(1),m=p.childAt(2),y={shape:{points:s.getItemLayout(h)}};y.shape.points&&(c(v.shape.points,y.shape.points,m,s,h,!1),na(g),na(v),lr(v,y,e),lr(g,y,e),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,f){var p=s.getItemModel(f),v=h.childAt(0),g=h.childAt(1),m=h.childAt(2),y=s.getItemVisual(f,"style"),x=y.fill;o.add(h),v.useStyle(Ne(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),An(v,p,"lineStyle"),An(g,p,"areaStyle");var w=p.getModel("areaStyle"),_=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=_,U(["emphasis","select","blur"],function(M){var k=p.getModel([M,"areaStyle"]),P=k.isEmpty()&&k.parentModel.isEmpty();g.ensureState(M).ignore=P&&_}),g.useStyle(Ne(w.getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var b=p.getModel("emphasis"),C=b.getModel("itemStyle").getItemStyle();m.eachChild(function(M){if(M instanceof Mn){var k=M.style;M.useStyle(ie({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},y))}else M.useStyle(y),M.setColor(x),M.style.strokeNoScale=!0;var P=M.ensureState("emphasis");P.style=Ve(C);var R=s.getStore().get(s.getDimensionIndex(M.__dimIdx),f);(R==null||isNaN(R))&&(R=""),In(M,vn(p),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:M.__dimIdx,defaultText:R,inheritColor:x,defaultOpacity:y.opacity})}),Xr(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Lr);const h9=d9;var f9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new fh(Te(this.getData,this),Te(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return dc(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=tM(this,e);return gn("section",{header:u,sortBlocks:!0,blocks:de(s,function(d){var h=a.get(a.mapDimension(d.dim),e);return gn("nameValue",{markerType:"subItem",markerColor:c,name:d.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(de(i.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Wr);const p9=f9;var ph=H2.value;function Mv(r,t){return Ne({show:t},r)}var v9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),h=this.get("triggerEvent"),f=de(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=Ne({color:p.color},l));var g=Je(Ve(p),{boundaryGap:e,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:v,triggerEvent:h},!1);if(_e(c)){var m=g.name;g.name=c.replace("{value}",m!=null?m:"")}else Re(c)&&(g.name=c(g.name,g));var y=new Er(g,null,this.ecModel);return en(y,sc.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Je({lineStyle:{color:"#bbb"}},ph.axisLine),axisLabel:Mv(ph.axisLabel,!1),axisTick:Mv(ph.axisTick,!1),splitLine:Mv(ph.splitLine,!0),splitArea:Mv(ph.splitArea,!0),indicator:[]},t}(gr);const g9=v9;var m9=["axisLine","axisTickLabel","axisName"],y9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),a=de(i,function(o){var s=o.model.get("showName")?o.name:"",l=new _o(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});U(a,function(o){U(m9,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),h=l.get("color"),f=u.get("color"),p=ce(h)?h:[h],v=ce(f)?f:[f],g=[],m=[];function y(dt,xt,Rt){var wt=Rt%xt.length;return dt[wt]=dt[wt]||[],wt}if(a==="circle")for(var x=i[0].getTicksCoords(),w=n.cx,_=n.cy,b=0;b<x.length;b++){if(c){var C=y(g,p,b);g[C].push(new yo({shape:{cx:w,cy:_,r:x[b].coord}}))}if(d&&b<x.length-1){var C=y(m,v,b);m[C].push(new Ap({shape:{cx:w,cy:_,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var M,k=de(i,function(dt,xt){var Rt=dt.getTicksCoords();return M=M==null?Rt.length-1:Math.min(Rt.length-1,M),de(Rt,function(wt){return n.coordToPoint(wt.coord,xt)})}),P=[],b=0;b<=M;b++){for(var R=[],j=0;j<i.length;j++)R.push(k[j][b]);if(R[0]&&R.push(R[0].slice()),c){var C=y(g,p,b);g[C].push(new li({shape:{points:R}}))}if(d&&P){var C=y(m,v,b-1);m[C].push(new si({shape:{points:R.concat(P)}}))}P=R.slice().reverse()}var X=l.getLineStyle(),st=u.getAreaStyle();U(m,function(dt,xt){this.group.add(zi(dt,{style:Ne({stroke:"none",fill:v[xt%v.length]},st),silent:!0}))},this),U(g,function(dt,xt){this.group.add(zi(dt,{style:Ne({fill:"none",stroke:p[xt%p.length]},X),silent:!0}))},this)},t.type="radar",t}(Zr);const x9=y9;var S9=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(ha);const w9=S9;var b9=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=de(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new w9(o,new ls);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],d=Math.abs(a-c.angle);d<o&&(s=c,l=u,o=d)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a)/2;this.cx=xe(n[0],i),this.cy=xe(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(_e(s)||vr(s))&&(s=[0,s]),this.r0=xe(s[0],o),this.r=xe(s[1],o),U(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;U(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();U(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new ls;o.setExtent(0,a),o.setInterval(1),U(n,function(s,l){q2(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var a=new r(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();const _9=b9;function C9(r){r.registerCoordinateSystem("radar",_9),r.registerComponentModel(g9),r.registerComponentView(x9),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function OD(r){Ze(C9),r.registerChartView(h9),r.registerSeriesModel(p9),r.registerLayout(u9),r.registerProcessor(hh("radar")),r.registerPreprocessor(c9)}var T9=["itemStyle","opacity"],M9=function(r){Yt(t,r);function t(e,n){var i=r.call(this)||this,a=i,o=new li,s=new ar;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return t.prototype.updateData=function(e,n,i){var a=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(T9);c=c==null?1:c,i||na(a),a.useStyle(e.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Fr(a,{style:{opacity:c}},o,n)):lr(a,{style:{opacity:c},shape:{points:l.points}},o,n),An(a,s),this._updateLabel(e,n),Xr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),c=u.label,d=e.getItemVisual(n,"style"),h=d.fill;In(o,vn(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:d.opacity,defaultText:e.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var f=c.linePoints;a.setShape({points:f}),i.textGuideLineConfig={anchor:f?new Ye(f[0][0],f[0][1]):null},lr(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),ex(i,rx(l),{stroke:h})},t}(si),A9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new M9(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);bd(u,e,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Lr);const I9=A9;var D9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new fh(Te(this.getData,this),Te(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return dc(this,{coordDimensions:["value"],encodeDefaulter:je(Bm,this)})},t.prototype._defaultLabelLine=function(e){Ys(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),i=r.prototype.getDataParams.call(this,e),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Wr);const k9=D9;function P9(r,t){return ln(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function E9(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),i=[],a=t==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return Re(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function L9(r){var t=r.hostModel,e=t.get("orient");r.each(function(n){var i=r.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",d,h,f,p;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,d="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,d="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,d="center"),p=[[h,f],[h,f]];else{var v=void 0,g=void 0,m=void 0,y=void 0,x=s.get("length");o==="left"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=v-x,h=m-5,d="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=v+x,h=m+5,d="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-x,f=y-5,d="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+x,f=y+5,d="center"):o==="rightTop"?(v=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(y=g-x,f=y-5,d="center"):(m=v+x,h=m+5,d="top")):o==="rightBottom"?(v=u[2][0],g=u[2][1],e==="horizontal"?(y=g+x,f=y+5,d="center"):(m=v+x,h=m+5,d="bottom")):o==="leftTop"?(v=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(y=g-x,f=y-5,d="center"):(m=v-x,h=m-5,d="right")):o==="leftBottom"?(v=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(y=g+x,f=y+5,d="center"):(m=v-x,h=m-5,d="right")):(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(y=g+x,f=y+5,d="center"):(m=v+x,h=m+5,d="left")),e==="horizontal"?(m=v,h=m):(y=g,f=y),p=[[v,g],[m,y]]}l.label={linePoints:p,x:h,y:f,verticalAlign:"middle",textAlign:d,inside:c}})}function R9(r,t){r.eachSeriesByType("funnel",function(e){var n=e.getData(),i=n.mapDimension("value"),a=e.get("sort"),o=P9(e,t),s=e.get("orient"),l=o.width,u=o.height,c=E9(n,a),d=o.x,h=o.y,f=s==="horizontal"?[xe(e.get("minSize"),u),xe(e.get("maxSize"),u)]:[xe(e.get("minSize"),l),xe(e.get("maxSize"),l)],p=n.getDataExtent(i),v=e.get("min"),g=e.get("max");v==null&&(v=Math.min(p[0],0)),g==null&&(g=p[1]);var m=e.get("funnelAlign"),y=e.get("gap"),x=s==="horizontal"?l:u,w=(x-y*(n.count()-1))/n.count(),_=function(st,dt){if(s==="horizontal"){var xt=n.get(i,st)||0,Rt=Cr(xt,[v,g],f,!0),wt=void 0;switch(m){case"top":wt=h;break;case"center":wt=h+(u-Rt)/2;break;case"bottom":wt=h+(u-Rt);break}return[[dt,wt],[dt,wt+Rt]]}var Lt=n.get(i,st)||0,Ft=Cr(Lt,[v,g],f,!0),Kt;switch(m){case"left":Kt=d;break;case"center":Kt=d+(l-Ft)/2;break;case"right":Kt=d+l-Ft;break}return[[Kt,dt],[Kt+Ft,dt]]};a==="ascending"&&(w=-w,y=-y,s==="horizontal"?d+=l:h+=u,c=c.reverse());for(var b=0;b<c.length;b++){var C=c[b],M=c[b+1],k=n.getItemModel(C);if(s==="horizontal"){var P=k.get(["itemStyle","width"]);P==null?P=w:(P=xe(P,l),a==="ascending"&&(P=-P));var R=_(C,d),j=_(M,d+P);d+=P+y,n.setItemLayout(C,{points:R.concat(j.slice().reverse())})}else{var X=k.get(["itemStyle","height"]);X==null?X=w:(X=xe(X,u),a==="ascending"&&(X=-X));var R=_(C,h),j=_(M,h+X);h+=X+y,n.setItemLayout(C,{points:R.concat(j.slice().reverse())})}}L9(n)})}function ND(r){r.registerChartView(I9),r.registerSeriesModel(k9),r.registerLayout(R9),r.registerProcessor(hh("funnel"))}var O9=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),N9=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new O9},t.prototype.buildPath=function(e,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(n.x+i(l)*s,n.y+a(l)*s),e.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),e.lineTo(n.x-i(l)*s,n.y-a(l)*s),e.lineTo(u,c)},t}(rr);const B9=N9;function V9(r,t){var e=r.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=xe(e[0],t.getWidth()),s=xe(e[1],t.getHeight()),l=xe(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Av(r,t){var e=r==null?"":r+"";return t&&(_e(t)?e=t.replace("{value}",e):Re(t)&&(e=t(r))),e}var z9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),o=V9(e,i);this._renderMain(e,n,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,i,a,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,d=e.getModel("axisLine"),h=d.get("roundCap"),f=h?wv:oi,p=d.get("show"),v=d.getModel("lineStyle"),g=v.get("width"),m=[u,c];lm(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,w=[],_=0;p&&_<a.length;_++){var b=Math.min(Math.max(a[_][0],0),1);c=u+y*b;var C=new f({shape:{startAngle:x,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});C.setStyle({fill:a[_][1]}),C.setStyle(v.getLineStyle(["color","width"])),w.push(C),x=c}w.reverse(),U(w,function(k){return s.add(k)});var M=function(k){if(k<=0)return a[0][1];var P;for(P=0;P<a.length;P++)if(a[P][0]>=k&&(P===0?0:a[P-1][0])<k)return a[P][1];return a[P-1][1]};this._renderTicks(e,n,i,M,o,u,c,l,g),this._renderTitleAndDetail(e,n,i,M,o),this._renderAnchor(e,o),this._renderPointer(e,n,i,M,o,u,c,l,g)},t.prototype._renderTicks=function(e,n,i,a,o,s,l,u,c){for(var d=this.group,h=o.cx,f=o.cy,p=o.r,v=+e.get("min"),g=+e.get("max"),m=e.getModel("splitLine"),y=e.getModel("axisTick"),x=e.getModel("axisLabel"),w=e.get("splitNumber"),_=y.get("splitNumber"),b=xe(m.get("length"),p),C=xe(y.get("length"),p),M=s,k=(l-s)/w,P=k/_,R=m.getModel("lineStyle").getLineStyle(),j=y.getModel("lineStyle").getLineStyle(),X=m.get("distance"),st,dt,xt=0;xt<=w;xt++){if(st=Math.cos(M),dt=Math.sin(M),m.get("show")){var Rt=X?X+c:c,wt=new wn({shape:{x1:st*(p-Rt)+h,y1:dt*(p-Rt)+f,x2:st*(p-b-Rt)+h,y2:dt*(p-b-Rt)+f},style:R,silent:!0});R.stroke==="auto"&&wt.setStyle({stroke:a(xt/w)}),d.add(wt)}if(x.get("show")){var Rt=x.get("distance")+X,Lt=Av(Qr(xt/w*(g-v)+v),x.get("formatter")),Ft=a(xt/w),Kt=st*(p-b-Rt)+h,Ut=dt*(p-b-Rt)+f,Bt=x.get("rotate"),Gt=0;Bt==="radial"?(Gt=-M+2*Math.PI,Gt>Math.PI/2&&(Gt+=Math.PI)):Bt==="tangential"?Gt=-M-Math.PI/2:vr(Bt)&&(Gt=Bt*Math.PI/180),Gt===0?d.add(new ar({style:Or(x,{text:Lt,x:Kt,y:Ut,verticalAlign:dt<-.8?"top":dt>.8?"bottom":"middle",align:st<-.4?"left":st>.4?"right":"center"},{inheritColor:Ft}),silent:!0})):d.add(new ar({style:Or(x,{text:Lt,x:Kt,y:Ut,verticalAlign:"middle",align:"center"},{inheritColor:Ft}),silent:!0,originX:Kt,originY:Ut,rotation:Gt}))}if(y.get("show")&&xt!==w){var Rt=y.get("distance");Rt=Rt?Rt+c:c;for(var Qt=0;Qt<=_;Qt++){st=Math.cos(M),dt=Math.sin(M);var re=new wn({shape:{x1:st*(p-Rt)+h,y1:dt*(p-Rt)+f,x2:st*(p-C-Rt)+h,y2:dt*(p-C-Rt)+f},silent:!0,style:j});j.stroke==="auto"&&re.setStyle({stroke:a((xt+Qt/_)/w)}),d.add(re),M+=P}M-=P}else M+=k}},t.prototype._renderPointer=function(e,n,i,a,o,s,l,u,c){var d=this.group,h=this._data,f=this._progressEls,p=[],v=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),y=e.getData(),x=y.mapDimension("value"),w=+e.get("min"),_=+e.get("max"),b=[w,_],C=[s,l];function M(P,R){var j=y.getItemModel(P),X=j.getModel("pointer"),st=xe(X.get("width"),o.r),dt=xe(X.get("length"),o.r),xt=e.get(["pointer","icon"]),Rt=X.get("offsetCenter"),wt=xe(Rt[0],o.r),Lt=xe(Rt[1],o.r),Ft=X.get("keepAspect"),Kt;return xt?Kt=qr(xt,wt-st/2,Lt-dt,st,dt,null,Ft):Kt=new B9({shape:{angle:-Math.PI/2,width:st,r:dt,x:wt,y:Lt}}),Kt.rotation=-(R+Math.PI/2),Kt.x=o.cx,Kt.y=o.cy,Kt}function k(P,R){var j=g.get("roundCap"),X=j?wv:oi,st=g.get("overlap"),dt=st?g.get("width"):c/y.count(),xt=st?o.r-dt:o.r-(P+1)*dt,Rt=st?o.r:o.r-P*dt,wt=new X({shape:{startAngle:s,endAngle:R,cx:o.cx,cy:o.cy,clockwise:u,r0:xt,r:Rt}});return st&&(wt.z2=_-y.get(x,P)%_),wt}(m||v)&&(y.diff(h).add(function(P){var R=y.get(x,P);if(v){var j=M(P,s);Fr(j,{rotation:-((isNaN(+R)?C[0]:Cr(R,b,C,!0))+Math.PI/2)},e),d.add(j),y.setItemGraphicEl(P,j)}if(m){var X=k(P,s),st=g.get("clip");Fr(X,{shape:{endAngle:Cr(R,b,C,st)}},e),d.add(X),dm(e.seriesIndex,y.dataType,P,X),p[P]=X}}).update(function(P,R){var j=y.get(x,P);if(v){var X=h.getItemGraphicEl(R),st=X?X.rotation:s,dt=M(P,st);dt.rotation=st,lr(dt,{rotation:-((isNaN(+j)?C[0]:Cr(j,b,C,!0))+Math.PI/2)},e),d.add(dt),y.setItemGraphicEl(P,dt)}if(m){var xt=f[R],Rt=xt?xt.shape.endAngle:s,wt=k(P,Rt),Lt=g.get("clip");lr(wt,{shape:{endAngle:Cr(j,b,C,Lt)}},e),d.add(wt),dm(e.seriesIndex,y.dataType,P,wt),p[P]=wt}}).execute(),y.each(function(P){var R=y.getItemModel(P),j=R.getModel("emphasis"),X=j.get("focus"),st=j.get("blurScope"),dt=j.get("disabled");if(v){var xt=y.getItemGraphicEl(P),Rt=y.getItemVisual(P,"style"),wt=Rt.fill;if(xt instanceof Mn){var Lt=xt.style;xt.useStyle(ie({image:Lt.image,x:Lt.x,y:Lt.y,width:Lt.width,height:Lt.height},Rt))}else xt.useStyle(Rt),xt.type!=="pointer"&&xt.setColor(wt);xt.setStyle(R.getModel(["pointer","itemStyle"]).getItemStyle()),xt.style.fill==="auto"&&xt.setStyle("fill",a(Cr(y.get(x,P),b,[0,1],!0))),xt.z2EmphasisLift=0,An(xt,R),Xr(xt,X,st,dt)}if(m){var Ft=p[P];Ft.useStyle(y.getItemVisual(P,"style")),Ft.setStyle(R.getModel(["progress","itemStyle"]).getItemStyle()),Ft.z2EmphasisLift=0,An(Ft,R),Xr(Ft,X,st,dt)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,n){var i=e.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=qr(s,n.cx-o/2+xe(l[0],n.r),n.cy-o/2+xe(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,n,i,a,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),d=+e.get("max"),h=new ze,f=[],p=[],v=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){f[m]=new ar({silent:!0}),p[m]=new ar({silent:!0})}).update(function(m,y){f[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),w=new ze,_=a(Cr(x,[c,d],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var C=b.get("offsetCenter"),M=o.cx+xe(C[0],o.r),k=o.cy+xe(C[1],o.r),P=f[m];P.attr({z2:g?0:2,style:Or(b,{x:M,y:k,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),w.add(P)}var R=y.getModel("detail");if(R.get("show")){var j=R.get("offsetCenter"),X=o.cx+xe(j[0],o.r),st=o.cy+xe(j[1],o.r),dt=xe(R.get("width"),o.r),xt=xe(R.get("height"),o.r),Rt=e.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,P=p[m],wt=R.get("formatter");P.attr({z2:g?0:2,style:Or(R,{x:X,y:st,text:Av(x,wt),width:isNaN(dt)?null:dt,height:isNaN(xt)?null:xt,align:"center",verticalAlign:"middle"},{inheritColor:Rt})}),IC(P,{normal:R},x,function(Ft){return Av(Ft,wt)}),v&&DC(P,m,l,e,{getFormattedLabel:function(Ft,Kt,Ut,Bt,Gt,Qt){return Av(Qt?Qt.interpolatedValue:x,wt)}}),w.add(P)}h.add(w)}),this.group.add(h),this._titleEls=f,this._detailEls=p},t.type="gauge",t}(Lr);const H9=z9;var F9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return dc(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Wr);const W9=F9;function BD(r){r.registerChartView(H9),r.registerSeriesModel(W9)}var j9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Va(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Wr);const G9=j9;var VD=4,U9=function(){function r(){}return r}(),K9=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new U9},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&a[0]<VD,c=this.softClipShape,d;if(u){this._ctx=l;return}for(this._ctx=null,d=this._off;d<i.length;){var h=i[d++],f=i[d++];isNaN(h)||isNaN(f)||c&&!c.contain(h,f)||(s.x=h-a[0]/2,s.y=f-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,i=e.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,d=a[c]-s/2,h=a[c+1]-l/2;if(e>=d&&n>=h&&e<=d+s&&n<=h+l)return u}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,d=-1/0,h=0;h<i.length;){var f=i[h++],p=i[h++];l=Math.min(f,l),c=Math.max(f,c),u=Math.min(p,u),d=Math.max(p,d)}e=this._rect=new Xe(l-o/2,u-s/2,c-l+o,d-u+s)}return e},t}(rr),Y9=function(){function r(){this.group=new ze}return r.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;e=new Float32Array(e.buffer,a,i)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],a=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new K9({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=qr(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<VD;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=He(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var d=t.hoverDataIdx;d>=0&&(u.dataIndex=d+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const X9=Y9;var Z9=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=dh("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new X9:new ch,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Lr);const $9=Z9;function zD(r){Ze(hI),r.registerSeriesModel(G9),r.registerChartView($9),r.registerLayout(dh("scatter"))}var HD="\0_ec_interaction_mutex";function J9(r,t,e){var n=Fx(r);n[t]=e}function Q9(r,t,e){var n=Fx(r),i=n[t];i===e&&(n[t]=null)}function FD(r,t){return!!Fx(r)[t]}function Fx(r){return r[HD]||(r[HD]={})}Ba({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},rn);var q9=function(r){Yt(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=Te(n._mousedownHandler,n),a=Te(n._mousemoveHandler,n),o=Te(n._mouseupHandler,n),s=Te(n._mousewheelHandler,n),l=Te(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ne(Ve(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",i),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!db(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Iv("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||FD(this._zr,"globalPan"))){var n=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&io(e.event),WD(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){db(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=Iv("zoomOnMouseWheel",e,this._opt),i=Iv("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;Wx(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var d=Math.abs(a),h=(a>0?1:-1)*(d>3?.4:d>1?.15:.05);Wx(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!FD(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;Wx(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Ii);function Wx(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(io(n.event),WD(r,t,e,n,i))}function WD(r,t,e,n,i){i.isAvailableBehavior=Te(Iv,null,e,n),r.trigger(t,i)}function Iv(r,t,e){var n=e[r];return!r||n&&(!_e(n)||t.event[n+"Key"])}const vh=q9;function jx(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function Gx(r,t,e,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var tj={axisPointer:1,tooltip:1,brush:1};function Dv(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!tj.hasOwnProperty(n.mainType)&&i&&i.model!==e}function jD(r){if(_e(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Ux,kv={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},GD=nr(kv),Pv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},UD=nr(Pv),ej=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=jD(t);this._defsUsePending=[];var i=new ze;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ti(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;ij(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var h=Ev(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(d=qD(c,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var f=i;i=new ze,i.add(f),f.scaleX=f.scaleY=d.scale,f.x=d.x,f.y=d.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new or({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:a}},r.prototype._parseNode=function(t,e,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!a){var c=Ux[s];if(c&&De(Ux,s)){l=c.call(this,t,e);var d=t.getAttribute("name");if(d){var h={name:d,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var f=KD[s];if(f&&De(KD,s)){var p=f.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new gd({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Wi(e,n),Ti(t,n,this._defsUsePending,!1,!1),rj(n,e);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){Ux={g:function(t,e){var n=new ze;return Wi(e,n),Ti(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new or;return Wi(e,n),Ti(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new yo;return Wi(e,n),Ti(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new wn;return Wi(e,n),Ti(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new uy;return Wi(e,n),Ti(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),i;n&&(i=ZD(n));var a=new si({shape:{points:i||[]},silent:!0});return Wi(e,a),Ti(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var n=t.getAttribute("points"),i;n&&(i=ZD(n));var a=new li({shape:{points:i||[]},silent:!0});return Wi(e,a),Ti(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var n=new Mn;return Wi(e,n),Ti(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new ze;return Wi(e,s),Ti(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ze;return Wi(e,s),Ti(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",i=fM(n);return Wi(e,i),Ti(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),KD={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new Bd(t,e,n,i);return YD(r,a),XD(r,a),a},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new IM(t,e,n);return YD(r,i),XD(r,i),i}};function YD(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function XD(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};QD(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Wi(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ne(t.__inheritedStyle,r.__inheritedStyle))}function ZD(r){for(var t=Ev(r),e=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);e.push([i,a])}return e}function Ti(r,t,e,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(sj(r,t),QD(r,o,s),n||lj(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=$D(a,"fill",o.fill,e)),o.stroke!=null&&(a.style.stroke=$D(a,"stroke",o.stroke,e)),U(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),U(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=de(Ev(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function rj(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),r.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var nj=/^url\(\s*#(.*?)\)/;function $D(r,t,e,n){var i=e&&e.match(nj);if(i){var a=Qi(i[1]);n.push([r,t,a]);return}return e==="none"&&(e=null),e}function ij(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var aj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ev(r){return r.match(aj)||[]}var oj=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Kx=Math.PI/180;function sj(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],i=null;e.replace(oj,function(d,h,f){return n.push(h,f),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Ev(o);switch(i=i||wi(),s){case"translate":Ca(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":n0(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Vs(i,i,-parseFloat(l[0])*Kx,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Kx);ao(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Kx);ao(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var JD=/([^\s:;]+)\s*:\s*([^:;]+)/g;function QD(r,t,e){var n=r.getAttribute("style");if(n){JD.lastIndex=0;for(var i;(i=JD.exec(n))!=null;){var a=i[1],o=De(kv,a)?kv[a]:null;o&&(t[o]=i[2]);var s=De(Pv,a)?Pv[a]:null;s&&(e[s]=i[2])}}}function lj(r,t,e){for(var n=0;n<GD.length;n++){var i=GD[n],a=r.getAttribute(i);a!=null&&(t[kv[i]]=a)}for(var n=0;n<UD.length;n++){var i=UD[n],a=r.getAttribute(i);a!=null&&(e[Pv[i]]=a)}}function qD(r,t){var e=t.width/r.width,n=t.height/r.height,i=Math.min(e,n);return{scale:i,x:-(r.x+r.width/2)*i+(t.x+t.width/2),y:-(r.y+r.height/2)*i+(t.y+t.height/2)}}function uj(r,t){var e=new ej;return e.parse(r,t)}var cj=1e-8;function tk(r,t){return Math.abs(r-t)<cj}function Ol(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=co(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!tk(i[0],s[0])||!tk(i[1],s[1]))&&(n+=co(i[0],i[1],s[0],s[1],t,e)),n!==0}var dj=[];function Yx(r,t){for(var e=0;e<r.length;e++)Tn(r[e],r[e],t)}function ek(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(jo(t,t,a),Go(e,e,a))}}function hj(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],c=a*u-l*o;t+=c,e+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var rk=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),nk=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),ik=function(){function r(t){this.type="linestring",this.points=t}return r}(),ak=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return hj(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return U(o,function(s){s.type==="polygon"?ek(s.exterior,i,a,e):U(s.points,function(l){ek(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Xe(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ol(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(Ol(u[c],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new Xe(e,n,i,a),u=o.calculateTransform(l),c=this.geometries,d=0;d<c.length;d++){var h=c[d];h.type==="polygon"?(Yx(h.exterior,u),U(h.interiors,function(f){Yx(f,u)})):U(h.points,function(f){Yx(f,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(rk),fj=function(r){Yt(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=wf(dj),o=e;o&&!o.isGeoSVGGraphicRoot;)ao(a,o.getLocalTransform(),a),o=o.parent;return wu(a,a),Tn(i,i,a),i},t}(rk),pj=Pe(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),vj=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=Pe(),this._freedGraphics=[],this._mapName=t,this._parsedXML=jD(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=mj(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&uj(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,jn(n!=null)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new ze;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,h=void 0;if(a!=null?(u=0,d=a):s&&(u=s.x,d=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var f=n.getBoundingRect();u==null&&(u=f.x,d=f.width),c==null&&(c=f.y,h=f.height)}l=this._boundingRect=new Xe(u,c,d,h)}if(s){var p=qD(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new or({shape:l.plain()}));var v=[];return U(e.named,function(g){pj.get(g.svgNodeTagLower)!=null&&(v.push(g),gj(g.el))}),{root:i,boundingRect:l,named:v}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r}();function gj(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function mj(r){var t=[],e=Pe();return U(r,function(n){if(n.namedFrom==null){var i=new fj(n.name,n.el);t.push(i),e.set(n.name,i)}}),{regions:t,regionsMap:e}}function yj(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return U(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=ok(s,o,e);break;case"Polygon":Xx(s,o,e);break;case"MultiLineString":Xx(s,o,e);break;case"MultiPolygon":U(s,function(l,u){return Xx(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Xx(r,t,e){for(var n=0;n<r.length;n++)r[n]=ok(r[n],t[n],e)}function ok(r,t,e){for(var n=[],i=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function xj(r,t){return r=yj(r),de(Ir(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new nk(o[0],o.slice(1)));break;case"MultiPolygon":U(i.coordinates,function(l){l[0]&&a.push(new nk(l[0],l.slice(1)))});break;case"LineString":a.push(new ik([i.coordinates]));break;case"MultiLineString":a.push(new ik(i.coordinates))}var s=new ak(n[t||"name"],a,n.cp);return s.properties=n,s})}for(var Zx=[126,25],sk="\u5357\u6D77\u8BF8\u5C9B",Nl=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Bl=0;Bl<Nl.length;Bl++)for(var hc=0;hc<Nl[Bl].length;hc++)Nl[Bl][hc][0]/=10.5,Nl[Bl][hc][1]/=-10.5/.75,Nl[Bl][hc][0]+=Zx[0],Nl[Bl][hc][1]+=Zx[1];function Sj(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===sk)return;t.push(new ak(sk,de(Nl,function(n){return{type:"polygon",exterior:n}}),Zx))}}var wj={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function bj(r,t){if(r==="china"){var e=wj[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var _j=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Cj(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:_j[0]})}var Tj="name",Mj=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=Pe(),this._mapName=t,this._specialAreas=n,this._geoJSON=Ij(e)}return r.prototype.load=function(t,e){e=e||Tj;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:Aj(i)})}var a=Pe(),o=[];return U(n.regions,function(s){var l=s.name;t&&De(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Xe(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,i;try{i=n?xj(n,t):[]}catch(a){throw new Error("Invalid geoJson format\n"+a.message)}return Sj(e,i),U(i,function(a){var o=a.name;bj(e,a),Cj(e,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function Aj(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function Ij(r){return _e(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var gh=Pe();const To={registerMap:function(r,t,e){if(t.svg){var n=new vj(r,t.svg);gh.set(r,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?e=t.specialAreas:i=t;var n=new Mj(r,i,e);gh.set(r,n)}},getGeoResource:function(r){return gh.get(r)},getMapForUser:function(r){var t=gh.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=gh.get(r);if(n)return n.load(t,e)}};var $x=["rect","circle","line","ellipse","polygon","polyline","path"],Dj=Pe($x),kj=Pe($x.concat(["g"])),Pj=Pe($x.concat(["g"])),lk=cr();function Lv(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function uk(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Ej=function(){function r(t){var e=new ze;this.uid=Nu("ec_map_draw"),this._controller=new vh(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new ze),e.add(this._svgGroup=new ze)}return r.prototype.draw=function(t,e,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===t&&(s=m.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,d=l.getTransformInfo(),h=d.raw,f=d.roam,p=!u.childAt(0)||a;p?(c.x=f.x,c.y=f.y,c.scaleX=f.scaleX,c.scaleY=f.scaleY,c.dirty()):lr(c,f,t);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,n,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Pe(),n=Pe(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(f,p){return p&&(f=p(f)),f&&[f[0]*a.scaleX+a.x,f[1]*a.scaleY+a.y]}function d(f){for(var p=[],v=!u&&l&&l.project,g=0;g<f.length;++g){var m=c(f[g],v);m&&p.push(m)}return p}function h(f){return{shape:{points:d(f)}}}i.removeAll(),U(t.geo.regions,function(f){var p=f.name,v=e.get(p),g=n.get(p)||{},m=g.dataIdx,y=g.regionModel;v||(v=e.set(p,new ze),i.add(v),m=s?s.indexOfName(p):null,y=t.isGeo?o.getRegionModel(p):s?s.getItemModel(m):null,n.set(p,{dataIdx:m,regionModel:y}));var x=[],w=[];U(f.geometries,function(C){if(C.type==="polygon"){var M=[C.exterior].concat(C.interiors||[]);u&&(M=vk(M,u)),U(M,function(P){x.push(new si(h(P)))})}else{var k=C.points;u&&(k=vk(k,u,!0)),U(k,function(P){w.push(new li(h(P)))})}});var _=c(f.getCenter(),l&&l.project);function b(C,M){if(C.length){var k=new Dp({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});v.add(k),ck(t,k,m,y),dk(t,k,p,y,o,m,_),M&&(uk(k),U(k.states,uk))}}b(x),b(w,!0)}),e.each(function(f,p){var v=n.get(p),g=v.dataIdx,m=v.regionModel;hk(t,f,p,m,o,g),fk(t,f,p,m,o),pk(t,f,p,m,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=Pe(),a=!1;U(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,d=o.el,h=u?u.indexOfName(s):null,f=l.getRegionModel(s);if(Dj.get(c)!=null&&d instanceof Li&&ck(t,d,h,f),d instanceof Li&&(d.culling=!0),d.z2EmphasisLift=0,!o.namedFrom&&(Pj.get(c)!=null&&dk(t,d,s,f,l,h,null),hk(t,d,s,f,l,h),fk(t,d,s,f,l),kj.get(c)!=null)){var p=pk(t,d,s,f,l);p==="self"&&(a=!0);var v=i.get(s)||i.set(s,[]);v.push(d)}},this),this._enableBlurEntireSVG(a,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){ol(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=To.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=To.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,jx(o,u.dx,u.dy),n.dispatchAction(ie(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Gx(o,u.scale,u.originX,u.originY),n.dispatchAction(ie(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,d){return i.containPoint([c,d])&&!Dv(u,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=lk(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,i){var a=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){a._mouseDownFlag=!0}),e.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function ck(r,t,e,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Lv(i),u=Lv(a),c=Lv(s),d=Lv(o),h=r.data;if(h){var f=h.getItemVisual(e,"style"),p=h.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=nc(p,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,ol(t)}function dk(r,t,e,n,i,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var d=l?e:a,h=void 0;(!s||a>=0)&&(h=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;In(t,vn(n),{labelFetcher:h,labelDataIndex:d,defaultText:e},f);var p=t.getTextContent();if(p&&(lk(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function hk(r,t,e,n,i,a){r.data?r.data.setItemGraphicEl(a,t):He(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:n&&n.option||{}}}function fk(r,t,e,n,i){r.data||Qu({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function pk(r,t,e,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Xr(t,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&F4(t,i,e),o}function vk(r,t,e){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),U(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),n}const gk=Ej;var Lj=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new gk(i);o.add(s.group),s.draw(e,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,n,i){var a=e.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,d=u.offset,h=new yo({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+d*9,cy:c[1],r:3},silent:!0,z2:8+(d?0:Pu+1)});if(!d){var f=e.mainSeries.getData(),p=a.getName(l),v=f.indexOfName(p),g=a.getItemModel(l),m=g.getModel("label"),y=f.getItemGraphicEl(v);In(h,vn(g),{labelFetcher:{getFormattedLabel:function(x,w){return e.getFormattedLabel(v,w)}},defaultText:p}),h.disableLabelAnimation=!0,m.get("position")||h.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(x){np(h,x)}}o.add(h)}}})},t.type="map",t}(Lr);const Rj=Lj;var Oj=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=dc(this,{coordDimensions:["value"],encodeDefaulter:je(Bm,this)}),i=Pe(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=To.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return U(u.regions,function(c){var d=c.name;i.get(d)||a.push(d)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},t.prototype.formatTooltip=function(e,n,i){for(var a=this.getData(),o=this.getRawValue(e),s=a.getName(e),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var d=l[c].originalData.indexOfName(s),h=a.mapDimension("value");isNaN(l[c].originalData.get(h,d))||u.push(l[c].name)}return gn("section",{header:u.join(", "),noHeader:!u.length,blocks:[gn("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var n=e.icon||"roundRect",i=qr(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Wr);const Nj=Oj;function Bj(r,t){var e={};return U(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=e[a].length,c=0;c<u;c++)s=Math.min(s,e[a][c]),l=Math.max(l,e[a][c]),o+=e[a][c];var d;return t==="min"?d=s:t==="max"?d=l:t==="average"?d=o/u:d=o,u===0?NaN:d})}function Vj(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),U(t,function(e,n){for(var i=Bj(de(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(var a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=a===0&&!e[a].getHostGeoModel(),e[a].setData(i.cloneShallow()),e[a].mainSeries=e[0]})}function zj(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getMapType();if(!(e.getHostGeoModel()||t[n])){var i={};U(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var d=l.getName(c),h=s.getRegion(d);if(!(!h||isNaN(u))){var f=i[d]||0,p=s.dataToPoint(h.getCenter());i[d]=f+1,l.setItemLayout(c,{point:p,offset:f})}})});var a=e.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var mk=Tn,Hj=function(r){Yt(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new so,n._rawTransformable=new so,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,i,a){return this._rect=new Xe(e,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,i,a){this._transformTo(e,n,i,a),this._viewRect=new Xe(e,n,i,a)},t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Xe(e,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,n){e&&(this._center=[xe(e[0],n.getWidth()),xe(e[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var n=this.zoomLimit;n&&(n.max!=null&&(e=Math.min(n.max,e)),n.min!=null&&(e=Math.max(n.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),n=e.x+e.width/2,i=e.y+e.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Tn([],a,e),i=Tn([],i,e),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),r0(this.transform||(this.transform=[]),n.transform||wi()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],wu(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,i=new so;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?mk(i,e,a):Gn(i,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?mk([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,i){var a=yk(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=yk(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(so);function yk(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const mh=Hj;var Fj={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},xk=["lng","lat"],Sk=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this,e)||this;a.dimensions=xk,a.type="geo",a._nameCoordMap=Pe(),a.map=n;var o=i.projection,s=To.load(n,i.nameMap,i.nameProperty),l=To.getGeoResource(n),u=a.resourceType=l?l.type:null,c=a.regions=s.regions,d=Fj[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var f=0;f<c.length;f++){var p=c[f].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:We(i.aspectScale,d.aspectScale),a._invertLongitute=o?!1:d.invertLongitute,a}return t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Xe(e,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(e))return n[i]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,i){if(_e(e)&&(e=this.getGeoCoord(e)),e){var a=this.projection;return a&&(e=a.project(e)),e&&this.projectedToPoint(e,n,i)}},t.prototype.pointToData=function(e){var n=this.projection;return n&&(e=n.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,n,i){return r.prototype.dataToPoint.call(this,e,n,i)},t.prototype.convertToPixel=function(e,n,i){var a=wk(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=wk(n);return a===this?a.pointToData(i):null},t}(mh);en(Sk,mh);function wk(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",sn).models[0]||{}).coordinateSystem:null}const bk=Sk;function _k(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],i=e[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var c=function(b,C,M,k){for(var P=M-b,R=k-C,j=0;j<=100;j++){var X=j/100,st=a.project([b+P*X,C+R*X]);jo(n,n,st),Go(i,i,st)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var d=this.getBoundingRect(),h=r.get("layoutCenter"),f=r.get("layoutSize"),p=t.getWidth(),v=t.getHeight(),g=d.width/d.height*this.aspectScale,m=!1,y,x;h&&f&&(y=[xe(h[0],p),xe(h[1],v)],x=xe(f,Math.min(p,v)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(x)&&(m=!0));var w;if(m)w={},g>1?(w.width=x,w.height=x/g):(w.height=x,w.width=x*g),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var _=r.getBoxLayoutParams();_.aspect=g,w=ln(_,{width:p,height:v})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function Wj(r,t){U(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var jj=function(){function r(){this.dimensions=xk}return r.prototype.create=function(t,e){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new bk(l+s,l,ie({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=_k,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),U(a,function(o,s){var l=de(o,function(c){return c.get("nameMap")}),u=new bk(s,s,ie({nameMap:Hg(l)},i(o[0])));u.zoomLimit=xn.apply(null,de(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=_k,u.resize(o[0],e),U(o,function(c){c.coordinateSystem=u,Wj(u,c)})}),n},r.prototype.getFilledRegions=function(t,e,n,i){for(var a=(t||[]).slice(),o=Pe(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=To.load(e,n,i);return U(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},r}(),Gj=new jj;const Ck=Gj;var Uj=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var a=To.getGeoResource(e.map);if(a&&a.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,i),Ys(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=Ck.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=ba(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Er(o,e,e.ecModel)),o.selected&&(i[s]=!0)),a},Pe()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Er(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var i=this.getRegionModel(e),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:e};if(Re(a))return o.status=n,a(o);if(_e(a))return a.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(gr);const Kj=Uj;function Tk(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function Jx(r,t,e,n){var i=r.getZoom(),a=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(Tk(r,s),n)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),d=(t.originY-r.y)*(o-1);r.x-=c,r.y-=d,r.updateTransform(),r.setCenter(Tk(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var Yj=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,n){this._api=n},t.prototype.render=function(e,n,i,a){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new gk(i));var o=this._mapDraw;o.draw(e,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,i)},t.prototype._handleRegionClick=function(e){var n;xl(e.target,function(i){return(n=He(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=He(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Zr);const Xj=Yj;function Zj(r,t,e){To.registerMap(r,t,e)}function Mk(r){r.registerCoordinateSystem("geo",Ck),r.registerComponentModel(Kj),r.registerComponentView(Xj),r.registerImpl("registerMap",Zj),r.registerImpl("getMap",function(e){return To.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[e](i.name);var u=l.coordinateSystem;U(u.regions,function(d){o[d.name]=l.isSelected(d.name)||!1});var c=[];U(o,function(d,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,n,i){var a=e.componentType||"series";n.eachComponent({mainType:a,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Jx(s,e,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&U(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function Ak(r){Ze(Mk),r.registerChartView(Rj),r.registerSeriesModel(Nj),r.registerLayout(zj),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Vj),rA("map",r.registerAction)}var $j=2,Jj=4,Qj=function(r){Yt(t,r);function t(e,n,i,a){var o=r.call(this)||this;o.z2=$j,o.textConfig={inside:!0},He(o).seriesIndex=n.seriesIndex;var s=new ar({z2:Jj,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,i,a),o}return t.prototype.updateData=function(e,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;He(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),d=ie({},c);d.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var f=n.getVisual("decal");f&&(h.decal=nc(f,o));var p=Ll(l.getModel("itemStyle"),d,!0);ie(d,p),U(Kn,function(y){var x=s.ensureState(y),w=l.getModel([y,"itemStyle"]);x.style=w.getItemStyle();var _=Ll(w,d);_&&(x.shape=_)}),e?(s.setShape(d),s.shape.r=c.r0,Fr(s,{shape:{r:c.r}},i,n.dataIndex)):(lr(s,{shape:d},i),na(s)),s.useStyle(h),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Xr(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,h=d.getTextContent(),f=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!v,U(yd,function(m){var y=m==="normal"?i.getModel("label"):i.getModel([m,"label"]),x=m==="normal",w=x?h:h.ensureState(m),_=e.getFormattedLabel(f,m);x&&(_=_||n.node.name),w.style=Or(y,{},null,m!=="normal",!0),_&&(w.style.text=_);var b=y.get("show");b!=null&&!x&&(w.ignore=!b);var C=g(y,"position"),M=x?d:d.states[m],k=M.style.fill;M.textConfig={outsideFill:y.get("color")==="inherit"?k:null,inside:C!=="outside"};var P,R=g(y,"distance")||0,j=g(y,"align"),X=g(y,"rotate"),st=Math.PI*.5,dt=Math.PI*1.5,xt=Ci(X==="tangential"?Math.PI/2-l:l),Rt=xt>st&&!ud(xt-st)&&xt<dt;C==="outside"?(P=o.r+R,j=Rt?"right":"left"):!j||j==="center"?(s===2*Math.PI&&o.r0===0?P=0:P=(o.r+o.r0)/2,j="center"):j==="left"?(P=o.r0+R,j=Rt?"right":"left"):j==="right"&&(P=o.r-R,j=Rt?"left":"right"),w.style.align=j,w.style.verticalAlign=g(y,"verticalAlign")||"middle",w.x=P*u+o.cx,w.y=P*c+o.cy;var wt=0;X==="radial"?wt=Ci(-l)+(Rt?Math.PI:0):X==="tangential"?wt=Ci(Math.PI/2-l)+(Rt?Math.PI:0):vr(X)&&(wt=X*Math.PI/180),w.rotation=Ci(wt)});function g(m,y){var x=m.get(y);return x==null?a.get(y):x}h.dirtyStyle()},t}(oi);const Ik=Qj;function yh(r,t,e){if(r&&tr(t,r.type)>=0){var n=e.getData().tree.root,i=r.targetNode;if(_e(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=r.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function Dk(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function Qx(r,t){var e=Dk(r);return tr(e,t)>=0}function Rv(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var qx="sunburstRootToNode",kk="sunburstHighlight",qj="sunburstUnhighlight";function tG(r){r.registerAction({type:qx,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=yh(t,[qx],i);if(o){var s=i.getViewRoot();s&&(t.direction=Qx(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:kk,update:"none"},function(t,e,n){t=ie({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=yh(t,[kk],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(ie(t,{type:"highlight"}))}),r.registerAction({type:qj,update:"updateView"},function(t,e,n){t=ie({},t),n.dispatchAction(ie(t,{type:"downplay"}))})}var eG=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){var o=this;this.seriesModel=e,this.api=i,this.ecModel=n;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),c=this.group,d=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(y){h.push(y)});var f=this._oldChildren||[];p(h,f),m(l,u),this._initEvents(),this._oldChildren=h;function p(y,x){if(y.length===0&&x.length===0)return;new xo(x,y,w,w).add(_).update(_).remove(je(_,null)).execute();function w(b){return b.getId()}function _(b,C){var M=b==null?null:y[b],k=C==null?null:x[C];v(M,k)}}function v(y,x){if(!d&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,e,n,i),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var w=new Ik(y,e,n,i);c.add(w),s.setItemGraphicEl(y.dataIndex,w)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,e,n,i):(o.virtualPiece=new Ik(y,e,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=e.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";pp(u,c)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:qx,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Lr);const rG=eG;var ji=cr();function nG(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Pk(t,e,r),U(e,function(n){U(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,je(iG,r))})}),t.wrapMethod("cloneShallow",je(oG,r)),U(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,je(aG,r))}),jn(e[t.dataType]===t)}function iG(r,t){if(uG(this)){var e=ie({},ji(this).datas);e[this.dataType]=t,Pk(t,e,r)}else tS(t,this.dataType,ji(this).mainData,r);return t}function aG(r,t){return r.struct&&r.struct.update(),t}function oG(r,t){return U(ji(t).datas,function(e,n){e!==t&&tS(e.cloneShallow(),n,t,r)}),t}function sG(r){var t=ji(this).mainData;return r==null||t==null?t:ji(t).datas[r]}function lG(){var r=ji(this).mainData;return r==null?[{data:r}]:de(nr(ji(r).datas),function(t){return{type:t,data:ji(r).datas[t]}})}function uG(r){return ji(r).mainData===r}function Pk(r,t,e){ji(r).datas={},U(t,function(n,i){tS(n,i,r,e)})}function tS(r,t,e,n){ji(e).datas[t]=r,ji(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=sG,r.getLinkedDataAll=lG}const Ek=nG;var cG=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,n){Re(t)&&(n=e,e=t,t=null),t=t||{},_e(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,e,n);i==="postorder"&&e.call(n,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].getNodeById(t);if(a)return a}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].contains(t);if(a)return a}},r.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),dG=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var i=new r(e),a=[],o=1;s(t);function s(c,d){var h=c.value;o=Math.max(o,ce(h)?h.length:1),a.push(c);var f=new cG(dn(c.name,""),i);d?hG(f,d):i.root=f,i._nodes.push(f);var p=c.children;if(p)for(var v=0;v<p.length;v++)s(p[v],f)}i.root.updateDepthAndHeight(0);var l=ac(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new kn(l,e);return u.initData(a),n&&n(u),Ek({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r}();function hG(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}const eS=dG;function Lk(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=Fm(r.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var fG=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var i={name:e.name,children:e.data};Rk(i);var a=this._levelModels=de(e.levels||[],function(l){return new Er(l,this,n)},this),o=eS.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),h=a[d.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Rv(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Lk(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Wr);function Rk(r){var t=0;U(r.children,function(n){Rk(n);var i=n.value;ce(i)&&(i=i[0]),t+=i});var e=r.value;ce(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),ce(r.value)?r.value[0]=e:r.value=e}const pG=fG;var Ok=Math.PI/180;function vG(r,t,e){t.eachSeriesByType(r,function(n){var i=n.get("center"),a=n.get("radius");ce(a)||(a=[0,a]),ce(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=xe(i[0],o),c=xe(i[1],s),d=xe(a[0],l/2),h=xe(a[1],l/2),f=-n.get("startAngle")*Ok,p=n.get("minAngle")*Ok,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&Nk(g,y);var x=0;U(g.children,function(xt){!isNaN(xt.getValue())&&x++});var w=g.getValue(),_=Math.PI/(w||x)*2,b=g.depth>0,C=g.height-(b?-1:1),M=(h-d)/(C||1),k=n.get("clockwise"),P=n.get("stillShowZeroSum"),R=k?1:-1,j=function(xt,Rt){if(xt){var wt=Rt;if(xt!==v){var Lt=xt.getValue(),Ft=w===0&&P?_:Lt*_;Ft<p&&(Ft=p),wt=Rt+R*Ft;var Kt=xt.depth-m-(b?-1:1),Ut=d+M*Kt,Bt=d+M*(Kt+1),Gt=n.getLevelModel(xt);if(Gt){var Qt=Gt.get("r0",!0),re=Gt.get("r",!0),se=Gt.get("radius",!0);se!=null&&(Qt=se[0],re=se[1]),Qt!=null&&(Ut=xe(Qt,l/2)),re!=null&&(Bt=xe(re,l/2))}xt.setLayout({angle:Ft,startAngle:Rt,endAngle:wt,clockwise:k,cx:u,cy:c,r0:Ut,r:Bt})}if(xt.children&&xt.children.length){var le=0;U(xt.children,function(me){le+=j(me,Rt+le)})}return wt-Rt}};if(b){var X=d,st=d+M,dt=Math.PI*2;v.setLayout({angle:dt,startAngle:f,endAngle:f+dt,clockwise:k,cx:u,cy:c,r0:X,r:st})}j(g,f)})}function Nk(r,t){var e=r.children||[];r.children=gG(e,t),e.length&&U(r.children,function(n){Nk(n,t)})}function gG(r,t){if(Re(t)){var e=de(r,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return e.sort(function(i,a){return t(i.params,a.params)}),de(e,function(i){return r[i.index]})}else{var n=t==="asc";return r.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function mG(r){var t={};function e(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&_e(s)&&(s=v0(s,(n.depth-1)/(a-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");ie(u,l)})})}function Bk(r){r.registerChartView(rG),r.registerSeriesModel(pG),r.registerLayout(je(vG,"sunburst")),r.registerProcessor(je(hh,"sunburst")),r.registerVisual(mG),tG(r)}var Vk=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],h=u[1-c],f=[i,a],p=f[c].get("type"),v=f[1-c].get("type"),g=t.data;if(g&&l){var m=[];U(g,function(w,_){var b;ce(w)?(b=w.slice(),w.unshift(_)):ce(w.value)?(b=ie({},w),b.value=b.value.slice(),w.value.unshift(_)):b=w,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,x=[{name:d,type:tv(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:tv(v),dimsDef:y.slice()}];return dc(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:je(eT,x,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),zk=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Wr);en(zk,Vk,!0);const yG=zk;var xG=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),d=Hk(c,a,u,l,!0);a.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(d);return}var h=a.getItemLayout(u);d?(na(d),Fk(h,d,a,u)):d=Hk(h,a,u,l),o.add(d),a.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(e){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Lr),SG=function(){function r(){}return r}(),wG=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new SG},t.prototype.buildPath=function(e,n){var i=n.points,a=0;for(e.moveTo(i[a][0],i[a][1]),a++;a<4;a++)e.lineTo(i[a][0],i[a][1]);for(e.closePath();a<i.length;a++)e.moveTo(i[a][0],i[a][1]),a++,e.lineTo(i[a][0],i[a][1])},t}(rr);function Hk(r,t,e,n,i){var a=r.ends,o=new wG({shape:{points:i?bG(a,n,r):a}});return Fk(r,o,t,e,i),o}function Fk(r,t,e,n,i){var a=e.hostModel,o=F[i?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},a,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),l=s.getModel("emphasis");An(t,s),Xr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function bG(r,t,e){return de(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}const _G=xG;var xh=U;function CG(r){var t=TG(r);xh(t,function(e){var n=e.seriesModels;n.length&&(MG(e),xh(n,function(i,a){AG(i,e.boxOffsetList[a],e.boxWidthList[a])}))})}function TG(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=tr(e,i);a<0&&(a=e.length,e[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function MG(r){var t=r.axis,e=r.seriesModels,n=e.length,i=r.boxWidthList=[],a=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;xh(e,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}xh(e,function(p){var v=p.get("boxWidth");ce(v)||(v=[v,v]),o.push([xe(v[0],s)||0,xe(v[1],s)||0])});var c=s*.8-2,d=c/n*.3,h=(c-d*(n-1))/n,f=h/2-c/2;xh(e,function(p,v){a.push(f),f+=d+h,i.push(Math.min(Math.max(h,o[v][0]),o[v][1]))})}function AG(r,t,e){var n=r.coordinateSystem,i=r.getData(),a=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var d=0;d<i.count();d++){var h=i.get(u,d),f=x(h,c[2],d),p=x(h,c[0],d),v=x(h,c[1],d),g=x(h,c[3],d),m=x(h,c[4],d),y=[];w(y,v,!1),w(y,g,!0),y.push(p,v,m,g),_(y,p),_(y,m),_(y,f),i.setItemLayout(d,{initBaseline:f[s],ends:y})}function x(b,C,M){var k=i.get(C,M),P=[];P[o]=b,P[s]=k;var R;return isNaN(b)||isNaN(k)?R=[NaN,NaN]:(R=n.dataToPoint(P),R[o]+=t),R}function w(b,C,M){var k=C.slice(),P=C.slice();k[o]+=a,P[o]-=a,M?b.push(k,P):b.push(P,k)}function _(b,C){var M=C.slice(),k=C.slice();M[o]-=a,k[o]+=a,b.push(M,k)}}function IG(r,t){t=t||{};for(var e=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<r.length;o++){var s=Ei(r[o].slice()),l=j0(s,.25),u=j0(s,.5),c=j0(s,.75),d=s[0],h=s[s.length-1],f=(i==null?1.5:i)*(c-l),p=a?d:Math.max(d,l-f),v=a?h:Math.min(h,c+f),g=t.itemNameFormatter,m=Re(g)?g({value:o}):_e(g)?g.replace("{value}",o+""):o+"";e.push([m,p,l,u,c,v]);for(var y=0;y<s.length;y++){var x=s[y];if(x<p||x>v){var w=[m,x];n.push(w)}}}return{boxData:e,outliers:n}}var DG={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ln){var n="";_r(n)}var i=IG(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Wk(r){r.registerSeriesModel(yG),r.registerChartView(_G),r.registerLayout(CG),r.registerTransform(DG)}var kG=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),PG=function(r){Yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kG},t.prototype.buildPath=function(e,n){var i=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+i,n.y2),e.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(e.lineTo(n.x2,n.y2+i),e.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),e.closePath()},t.prototype.highlight=function(){fo(this)},t.prototype.downplay=function(){po(this)},t}(rr),EG=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,i){var a=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,c=l.height,d=e.getData(),h=e.getData("edge"),f=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new PG,g=He(v);g.dataIndex=p.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var m=p.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),w=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),C=_.get("localY"),M=p.node2.getLayout(),k=p.node2.getModel(),P=k.get("localX"),R=k.get("localY"),j=p.getLayout(),X,st,dt,xt,Rt,wt,Lt,Ft;v.shape.extent=Math.max(1,j.dy),v.shape.orient=f,f==="vertical"?(X=(b!=null?b*u:w.x)+j.sy,st=(C!=null?C*c:w.y)+w.dy,dt=(P!=null?P*u:M.x)+j.ty,xt=R!=null?R*c:M.y,Rt=X,wt=st*(1-x)+xt*x,Lt=dt,Ft=st*x+xt*(1-x)):(X=(b!=null?b*u:w.x)+w.dx,st=(C!=null?C*c:w.y)+j.sy,dt=P!=null?P*u:M.x,xt=(R!=null?R*c:M.y)+j.ty,Rt=X*(1-x)+dt*x,wt=st,Lt=X*x+dt*(1-x),Ft=xt),v.setShape({x1:X,y1:st,x2:dt,y2:xt,cpx1:Rt,cpy1:wt,cpx2:Lt,cpy2:Ft}),v.useStyle(y.getItemStyle()),jk(v.style,f,p);var Kt=""+m.get("value"),Ut=vn(m,"edgeLabel");In(v,Ut,{labelFetcher:{getFormattedLabel:function(Qt,re,se,le,me,ye){return e.getFormattedLabel(Qt,re,"edge",le,_a(me,Ut.normal&&Ut.normal.get("formatter"),Kt),ye)}},labelDataIndex:p.dataIndex,defaultText:Kt}),v.setTextConfig({position:"inside"});var Bt=m.getModel("emphasis");An(v,m,"lineStyle",function(Qt){var re=Qt.getItemStyle();return jk(re,f,p),re}),s.add(v),h.setItemGraphicEl(p.dataIndex,v);var Gt=Bt.get("focus");Xr(v,Gt==="adjacency"?p.getAdjacentDataIndices():Gt==="trajectory"?p.getTrajectoryDataIndices():Gt,Bt.get("blurScope"),Bt.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),w=new or({shape:{x:m!=null?m*u:v.x,y:y!=null?y*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});In(w,vn(g),{labelFetcher:{getFormattedLabel:function(b,C){return e.getFormattedLabel(b,C,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),w.disableLabelAnimation=!0,w.setStyle("fill",p.getVisual("color")),w.setStyle("decal",p.getVisual("style").decal),An(w,g),s.add(w),d.setItemGraphicEl(p.dataIndex,w),He(w).dataType="node";var _=x.get("focus");Xr(w,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),d.eachItemGraphicEl(function(p,v){var g=d.getItemModel(v);g.get("draggable")&&(p.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:d.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(LG(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Lr);function jk(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),i=e.node2.getVisual("color");_e(n)&&_e(i)&&(r.fill=new Bd(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function LG(r,t,e){var n=new or({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Fr(n,{shape:{width:r.width+20}},t,e),n}const RG=EG;function fc(r){return"_EC_"+r}var OG=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[fc(t)]){var i=new Vl(t,e);return i.hostGraph=this,this.nodes.push(i),n[fc(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[fc(t)]},r.prototype.addEdge=function(t,e,n){var i=this._nodesMap,a=this._edgesMap;if(vr(t)&&(t=this.nodes[t]),vr(e)&&(e=this.nodes[e]),t instanceof Vl||(t=i[fc(t)]),e instanceof Vl||(e=i[fc(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new Gk(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),a[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Vl&&(t=t.id),e instanceof Vl&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(e,n[a],a)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(e,n[a],a)},r.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof Vl||(e=this._nodesMap[fc(e)]),!!e){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],d=c.node1===l?c.node2:c.node1;if(!d.__visited){if(t.call(i,d,l))return;s.push(d),d.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(s){var l=i[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)i[e.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},r}(),Vl=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=e==null?-1:e}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=Pe(),e=Pe(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,e.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r}(),Gk=function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n==null?-1:n}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=Pe(),e=Pe();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r}();function Uk(r,t){return{getValue:function(e){var n=this[r][t];return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}en(Vl,Uk("hostGraph","data")),en(Gk,Uk("hostGraph","edgeData"));const NG=OG;function Kk(r,t,e,n,i){for(var a=new NG(n),o=0;o<r.length;o++)a.addNode(xn(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],d=c.source,h=c.target;a.addEdge(d,h,u)&&(l.push(c),s.push(xn(dn(c.id,null),d+" > "+h)),u++)}var f=e.get("coordinateSystem"),p;if(f==="cartesian2d"||f==="polar")p=Va(r,e);else{var v=Id.get(f),g=v?v.dimensions||[]:[];tr(g,"value")<0&&g.concat(["value"]);var m=ac(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new kn(m,e),p.initData(r)}var y=new kn(["value"],e);return y.initData(l,s),i&&i(p,y),Ek({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var BG=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var i=e.edges||e.links,a=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Er(o[l],this,n));if(a&&i){var u=Kk(a,i,this,!0,c);return u.data}function c(d,h){d.wrapMethod("getItemModel",function(f,p){var v=f.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,y=v.levelModels[m];y&&(f.parentModel=y)}return f}),h.wrapMethod("getItemModel",function(f,p){var v=f.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var y=m.depth,x=v.levelModels[y];x&&(f.parentModel=x)}return f})}},t.prototype.setNodePosition=function(e,n){var i=this.option.data||this.option.nodes,a=i[e];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,i){function a(f){return isNaN(f)||f==null}if(i==="edge"){var o=this.getDataParams(e,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return gn("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(e),d=c.getLayout().value,h=this.getDataParams(e,i).data.name;return gn("nameValue",{name:h!=null?h+"":null,value:d,noValue:a(d)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var i=r.prototype.getDataParams.call(this,e,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(e),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Wr);const VG=BG;function zG(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=HG(e,t);e.layoutInfo=a;var o=a.width,s=a.height,l=e.getGraph(),u=l.nodes,c=l.edges;WG(u);var d=Ir(u,function(v){return v.getLayout().value===0}),h=d.length!==0?0:e.get("layoutIterations"),f=e.get("orient"),p=e.get("nodeAlign");FG(u,c,n,i,o,s,h,f,p)})}function HG(r,t){return ln(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function FG(r,t,e,n,i,a,o,s,l){jG(r,t,e,i,a,s,l),YG(r,t,a,i,n,o,s),rU(r,s)}function WG(r){U(r,function(t){var e=vs(t.outEdges,Ov),n=vs(t.inEdges,Ov),i=t.getValue()||0,a=Math.max(e,n,i);t.setLayout({value:a},!0)})}function jG(r,t,e,n,i,a,o){for(var s=[],l=[],u=[],c=[],d=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var f=-1;u.length;){for(var p=0;p<u.length;p++){var v=u[p],g=v.hostGraph.data.getRawDataItem(v.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>f&&(f=g.depth),v.setLayout({depth:m?g.depth:d},!0),a==="vertical"?v.setLayout({dy:e},!0):v.setLayout({dx:e},!0);for(var y=0;y<v.outEdges.length;y++){var x=v.outEdges[y],w=t.indexOf(x);s[w]=0;var _=x.node2,b=r.indexOf(_);--l[b]===0&&c.indexOf(_)<0&&c.push(_)}}++d,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=f>d-1?f:d-1;o&&o!=="left"&&GG(r,o,a,C);var M=a==="vertical"?(i-e)/C:(n-e)/C;KG(r,M,a)}function Yk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function GG(r,t,e,n){if(t==="right"){for(var i=[],a=r,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}U(r,function(d){Yk(d)||d.setLayout({depth:Math.max(0,n-d.getLayout().skNodeHeight)},!0)})}else t==="justify"&&UG(r,n)}function UG(r,t){U(r,function(e){!Yk(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function KG(r,t,e){U(r,function(n){var i=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function YG(r,t,e,n,i,a,o){var s=XG(r,o);ZG(s,t,e,n,i,o),rS(s,i,e,n,o);for(var l=1;a>0;a--)l*=.99,$G(s,l,o),rS(s,i,e,n,o),eU(s,l,o),rS(s,i,e,n,o)}function XG(r,t){var e=[],n=t==="vertical"?"y":"x",i=K0(r,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),U(i.keys,function(a){e.push(i.buckets.get(a))}),e}function ZG(r,t,e,n,i,a){var o=1/0;U(r,function(s){var l=s.length,u=0;U(s,function(d){u+=d.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(e-(l-1)*i)/u;c<o&&(o=c)}),U(r,function(s){U(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),U(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function rS(r,t,e,n,i){var a=i==="vertical"?"x":"y";U(r,function(o){o.sort(function(v,g){return v.getLayout()[a]-g.getLayout()[a]});for(var s,l,u,c=0,d=o.length,h=i==="vertical"?"dx":"dy",f=0;f<d;f++)l=o[f],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+t;var p=i==="vertical"?n:e;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var f=d-2;f>=0;--f)l=o[f],u=l.getLayout()[a]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function $G(r,t,e){U(r.slice().reverse(),function(n){U(n,function(i){if(i.outEdges.length){var a=vs(i.outEdges,JG,e)/vs(i.outEdges,Ov);if(isNaN(a)){var o=i.outEdges.length;a=o?vs(i.outEdges,QG,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-ps(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-ps(i,e))*t;i.setLayout({y:l},!0)}}})})}function JG(r,t){return ps(r.node2,t)*r.getValue()}function QG(r,t){return ps(r.node2,t)}function qG(r,t){return ps(r.node1,t)*r.getValue()}function tU(r,t){return ps(r.node1,t)}function ps(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Ov(r){return r.getValue()}function vs(r,t,e){for(var n=0,i=r.length,a=-1;++a<i;){var o=+t(r[a],e);isNaN(o)||(n+=o)}return n}function eU(r,t,e){U(r,function(n){U(n,function(i){if(i.inEdges.length){var a=vs(i.inEdges,qG,e)/vs(i.inEdges,Ov);if(isNaN(a)){var o=i.inEdges.length;a=o?vs(i.inEdges,tU,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-ps(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-ps(i,e))*t;i.setLayout({y:l},!0)}}})})}function rU(r,t){var e=t==="vertical"?"x":"y";U(r,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[e]-a.node2.getLayout()[e]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[e]-a.node1.getLayout()[e]})}),U(r,function(n){var i=0,a=0;U(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),U(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}var Sh=U,nU=Be,Nv=-1,nS=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=Ve(t);this.type=n,this.mappingMethod=e,this._normalizeData=oU[e];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(iS(i),iU(i)):e==="category"?i.categories?aU(i):iS(i,!0):(jn(e!=="linear"||i.dataExtent),iS(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Te(this._normalizeData,this)},r.listVisualTypes=function(){return nr(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){Be(t)?U(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var i,a=ce(t)?[]:Be(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(t){var e={},n;return t&&Sh(r.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(e[a]=t[a],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(ce(t))t=t.slice();else if(nU(t)){var e=[];Sh(t,function(n,i){e.push(i)}),t=e}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var i,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||_e(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,d=u.close;if(c){if(c[0]===-1/0){if(Vv(d[1],t,c[1]))return o}else if(c[1]===1/0){if(Vv(d[0],c[0],t))return o}else if(Vv(d[0],c[0],t)&&Vv(d[1],t,c[1]))return o;n&&h(c[0],o),n&&h(c[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(f,p){var v=Math.abs(f-t);v<a&&(a=v,i=p)}},r.visualHandlers={color:{applyVisual:wh("color"),getColorMapper:function(){var t=this.option;return Te(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),bh.call(this,e)}:function(e,n,i){var a=!!i;return!n&&(e=this._normalizeData(e)),i=g0(e,t.parsedVisual,i),a?i:Ma(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ma(g0(t,this.option.parsedVisual),"rgba")},category:bh,piecewise:function(t,e){var n=oS.call(this,e);return n==null&&(n=Ma(g0(t,this.option.parsedVisual),"rgba")),n},fixed:zl}},colorHue:Bv(function(t,e){return ed(t,e)}),colorSaturation:Bv(function(t,e){return ed(t,null,e)}),colorLightness:Bv(function(t,e){return ed(t,null,null,e)}),colorAlpha:Bv(function(t,e){return Pf(t,e)}),decal:{applyVisual:wh("decal"),_normalizedToVisual:{linear:null,category:bh,piecewise:null,fixed:null}},opacity:{applyVisual:wh("opacity"),_normalizedToVisual:aS([0,1])},liftZ:{applyVisual:wh("liftZ"),_normalizedToVisual:{linear:zl,category:zl,piecewise:zl,fixed:zl}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:Xk,category:bh,piecewise:function(t,e){var n=oS.call(this,e);return n==null&&(n=Xk.call(this,t)),n},fixed:zl}},symbolSize:{applyVisual:wh("symbolSize"),_normalizedToVisual:aS([0,1])}},r}();function iU(r){var t=r.pieceList;r.hasSpecialVisual=!1,U(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function aU(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(Sh(t,function(o,s){e[o]=s}),!ce(n)){var i=[];Be(n)?Sh(n,function(o,s){var l=e[s];i[l!=null?l:Nv]=o}):i[Nv]=n,n=Zk(r,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete e[t[a]],t.pop())}function iS(r,t){var e=r.visual,n=[];Be(e)?Sh(e,function(a){n.push(a)}):e!=null&&n.push(e);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),Zk(r,n)}function Bv(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:aS([0,1])}}function Xk(r){var t=this.option.visual;return t[Math.round(Cr(r,[0,1],[0,t.length-1],!0))]||{}}function wh(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function bh(r){var t=this.option.visual;return t[this.option.loop&&r!==Nv?r%t.length:r]}function zl(){return this.option.visual[0]}function aS(r){return{linear:function(t){return Cr(t,r,this.option.visual,!0)},category:bh,piecewise:function(t,e){var n=oS.call(this,e);return n==null&&(n=Cr(t,r,this.option.visual,!0)),n},fixed:zl}}function oS(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=nS.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function Zk(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=de(t,function(e){var n=ni(e);return n||[0,0,0,1]})),t}var oU={linear:function(r){return Cr(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=nS.findPieceIndex(r,t,!0);if(e!=null)return Cr(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?Nv:t},fixed:rn};function Vv(r,t,e){return r?t<=e:t<e}const Pn=nS;function sU(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var a=1/0,o=-1/0;U(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),U(n,function(s){var l=new Pn({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&U(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function $k(r){r.registerChartView(RG),r.registerSeriesModel(VG),r.registerLayout(zG),r.registerVisual(sU),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var lU=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var f=Cx(a),p=cU[h](s,l,d,c);p.style=f,e.graphicKey=p.type,e.pointer=p}var v=a.get(["label","margin"]),g=uU(n,i,a,l,v);yI(e,i,a,o,g)},t}(_x);function uU(r,t,e,n,i){var a=t.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,d;if(a.dim==="radius"){var h=wi();Vs(h,h,s),Ca(h,h,[n.cx,n.cy]),u=sa([o,-i],h);var f=t.getModel("axisLabel").get("rotate")||0,p=_o.innerTextLayout(s,f*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",d=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var cU={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:Mx(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:bI(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:bI(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const dU=lU;var hU=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,i=this.ecModel;return i.eachComponent(e,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(gr);const fU=hU;var sS=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",sn).models[0]},t.type="polarAxis",t}(gr);en(sS,sc);var pU=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(sS),vU=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(sS),lS=function(r){Yt(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(ha);lS.prototype.dataToRadius=ha.prototype.dataToCoord,lS.prototype.radiusToData=ha.prototype.coordToData;const gU=lS;var mU=cr(),uS=function(r){Yt(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=sd(s==null?"":s+"",n.getFont(),"center","top"),d=Math.max(c.height,7),h=d/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=mU(e.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-f)<=1&&Math.abs(g-o)<=1&&v>f?f=v:(p.lastTickCount=o,p.lastAutoInterval=f),f},t}(ha);uS.prototype.dataToAngle=ha.prototype.dataToCoord,uS.prototype.angleToData=ha.prototype.coordToData;const yU=uS;var Jk=["radius","angle"],xU=function(){function r(t){this.dimensions=Jk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new gU,this._angleAxis=new yU,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,a=-Math.sin(n)*e+this.cy;return[i,a]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,h=this.r0;return c<=d*d&&c>=h*h}}},r.prototype.convertToPixel=function(t,e,n){var i=Qk(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=Qk(e);return i===this?this.pointToData(n):null},r}();function Qk(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const SU=xU;function wU(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=xe(n[0],i),r.cy=xe(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:ce(l)||(l=[0,l]);var u=[xe(l[0],s),xe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function bU(r,t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();U(dv(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),U(dv(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Ml(n.scale,n.model),Ml(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function _U(r){return r.mainType==="angleAxis"}function qk(r,t){var e;if(r.type=t.get("type"),r.scale=th(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),_U(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,i)}t.axis=r,r.model=t}var CU={dimensions:Jk,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new SU(i+"");a.update=bU;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");qk(o,l),qk(s,u),wU(a,n,t),e.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",sn).models[0];n.coordinateSystem=i.coordinateSystem}}),e}};const TU=CU;var MU=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function zv(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Hv(r){var t=r.getRadiusAxis();return t.inverse?0:1}function tP(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var AU=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=de(i.getViewLabels(),function(c){c=Ve(c);var d=i.scale,h=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});tP(u),tP(s),U(MU,function(c){e.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&IU[c](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(kl),IU={axisLine:function(r,t,e,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Hv(e),d=c?0:1,h,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[d]===0?h=new F[f]({shape:{cx:e.cx,cy:e.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Ap({shape:{cx:e.cx,cy:e.cy,r:a[c],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Hv(e)],u=de(n,function(c){return new wn({shape:zv(e,[l,l+s],c.coord)})});r.add(zi(u,{style:Ne(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Hv(e)],c=[],d=0;d<i.length;d++)for(var h=0;h<i[d].length;h++)c.push(new wn({shape:zv(e,[u,u+l],i[d][h].coord)}));r.add(zi(c,{style:Ne(s.getModel("lineStyle").getLineStyle(),Ne(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");U(o,function(d,h){var f=l,p=d.tickValue,v=a[Hv(e)],g=e.coordToPoint([v+u,d.coord]),m=e.cx,y=e.cy,x=Math.abs(g[0]-m)/v<.3?"center":g[0]>m?"left":"right",w=Math.abs(g[1]-y)/v<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var _=s[p];Be(_)&&_.textStyle&&(f=new Er(_.textStyle,l,l.ecModel))}var b=new ar({silent:_o.isLabelSilent(t),style:Or(f,{x:g[0],y:g[1],fill:f.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:x,verticalAlign:w})});if(r.add(b),c){var C=_o.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=d.rawLabel,He(b).eventData=C}},this)},splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<n.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new wn({shape:zv(e,a,n[d].coord)}))}for(var d=0;d<c.length;d++)r.add(zi(c[d],{style:Ne({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new wn({shape:zv(e,a,i[u][c].coord)}));r.add(zi(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,h=-n[0].coord*d,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),v=t.get("clockwise"),g=1,m=n.length;g<=m;g++){var y=g===m?n[0].coord:n[g].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new oi({shape:{cx:e.cx,cy:e.cy,r0:f,r:p,startAngle:h,endAngle:-y*d,clockwise:v},silent:!0})),h=-y*d}for(var g=0;g<c.length;g++)r.add(zi(c[g],{style:Ne({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const DU=AU;var kU=["axisLine","axisTickLabel","axisName"],PU=["splitLine","splitArea","minorSplitLine"],EU=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,a=this._axisGroup=new ze;this.group.add(a);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),d=l.getExtent()[0],h=o.getExtent(),f=RU(s,e,d),p=new _o(e,f);U(kU,p.add,p),a.add(p.getGroup()),Vd(i,a,e),U(PU,function(v){e.get([v,"show"])&&!o.scale.isBlank()&&LU[v](this.group,e,s,d,h,u,c)},this)}},t.type="radiusAxis",t}(kl),LU={splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),d=Math.PI/180,h=c.getExtent(),f=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],v=0;v<a.length;v++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new F[f]({shape:{cx:e.cx,cy:e.cy,r:Math.max(a[v].coord,0),startAngle:-h[0]*d,endAngle:-h[1]*d,clockwise:c.inverse}}))}for(var v=0;v<p.length;v++)r.add(zi(p[v],{style:Ne({stroke:l[v%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var d=0;d<o[c].length;d++)u.push(new yo({shape:{cx:e.cx,cy:e.cy,r:o[c][d].coord}}));r.add(zi(u,{style:Ne({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=a[0].coord,h=1;h<a.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new oi({shape:{cx:e.cx,cy:e.cy,r0:d,r:a[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=a[h].coord}for(var h=0;h<c.length;h++)r.add(zi(c[h],{style:Ne({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function RU(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const OU=EU;function eP(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function rP(r,t){return t.dim+r.model.componentIndex}function NU(r,t,e){var n={},i=BU(Ir(t.getSeriesByType(r),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=rP(s,l),c=eP(a),d=i[u][c],h=d.offset,f=d.width,p=s.getOtherAxis(l),v=a.coordinateSystem.cx,g=a.coordinateSystem.cy,m=a.get("barMinHeight")||0,y=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var x=o.mapDimension(p.dim),w=o.mapDimension(l.dim),_=So(o,x),b=l.dim!=="radius"||!a.get("roundCap",!0),C=p.dataToCoord(0),M=0,k=o.count();M<k;M++){var P=o.get(x,M),R=o.get(w,M),j=P>=0?"p":"n",X=C;_&&(n[c][R]||(n[c][R]={p:C,n:C}),X=n[c][R][j]);var st=void 0,dt=void 0,xt=void 0,Rt=void 0;if(p.dim==="radius"){var wt=p.dataToCoord(P)-C,Lt=l.dataToCoord(R);Math.abs(wt)<m&&(wt=(wt<0?-1:1)*m),st=X,dt=X+wt,xt=Lt-h,Rt=xt-f,_&&(n[c][R][j]=dt)}else{var Ft=p.dataToCoord(P,b)-C,Kt=l.dataToCoord(R);Math.abs(Ft)<y&&(Ft=(Ft<0?-1:1)*y),st=Kt+h,dt=st+f,xt=X,Rt=X+Ft,_&&(n[c][R][j]=Rt)}o.setItemLayout(M,{cx:v,cy:g,r0:st,r:dt,startAngle:-xt*Math.PI/180,endAngle:-Rt*Math.PI/180,clockwise:xt>=Rt})}}})}function BU(r){var t={};U(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=rP(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),d=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=d.stacks;t[l]=d;var f=eP(n);h[f]||d.autoWidthCount++,h[f]=h[f]||{width:0,maxWidth:0};var p=xe(n.get("barWidth"),c),v=xe(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");p&&!h[f].width&&(p=Math.min(d.remainedWidth,p),h[f].width=p,d.remainedWidth-=p),v&&(h[f].maxWidth=v),g!=null&&(d.gap=g),m!=null&&(d.categoryGap=m)});var e={};return U(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=xe(n.categoryGap,o),l=xe(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),U(a,function(v,g){var m=v.maxWidth;m&&m<d&&(m=Math.min(m,u),v.width&&(m=Math.min(m,v.width)),u-=m,v.width=m,c--)}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h=0,f;U(a,function(v,g){v.width||(v.width=d),f=v,h+=v.width*(1+l)}),f&&(h-=f.width*l);var p=-h/2;U(a,function(v,g){e[i][g]=e[i][g]||{offset:p,width:v.width},p+=v.width*(1+l)})}),e}const VU=NU;var zU={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},HU={splitNumber:5},FU=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Zr);function nP(r){Ze(ah),kl.registerAxisPointerClass("PolarAxisPointer",dU),r.registerCoordinateSystem("polar",TU),r.registerComponentModel(fU),r.registerComponentView(FU),lc(r,"angle",pU,zU),lc(r,"radius",vU,HU),r.registerComponentView(DU),r.registerComponentView(OU),r.registerLayout(je(VU,"bar"))}Ze(nP);var cS=Math.sin,dS=Math.cos,iP=Math.PI,Hl=Math.PI*2,WU=180/iP,jU=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){this._add("C",t,e,n,i,a,o)},r.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},r.prototype.arc=function(t,e,n,i,a,o){this.ellipse(t,e,n,n,0,i,a,o)},r.prototype.ellipse=function(t,e,n,i,a,o,s,l){var u=s-o,c=!l,d=Math.abs(u),h=Zo(d-Hl)||(c?u>=Hl:-u>=Hl),f=u>0?u%Hl:u%Hl+Hl,p=!1;h?p=!0:Zo(d)?p=!1:p=f>=iP==!!c;var v=t+n*dS(o),g=e+i*cS(o);this._start&&this._add("M",v,g);var m=Math.round(a*WU);if(h){var y=1/this._p,x=(c?1:-1)*(Hl-y);this._add("A",n,i,m,1,+c,t+n*dS(o+x),e+i*cS(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var w=t+n*dS(s),_=e+i*cS(s);this._add("A",n,i,m,+p,+c,w,_)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,l,u){for(var c=[],d=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f)){this._invalid=!0;return}c.push(Math.round(f*d)/d)}this._d.push(t+c.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const aP=jU;var _h="none",GU=Math.round;function UU(r){var t=r.fill;return t!=null&&t!==_h}function KU(r){var t=r.stroke;return t!=null&&t!==_h}var hS=["lineCap","miterLimit","lineJoin"],YU=de(hS,function(r){return"stroke-"+r.toLowerCase()});function XU(r,t,e,n){var i=t.opacity==null?1:t.opacity;if(e instanceof Mn){r("opacity",i);return}if(UU(t)){var a=nd(t.fill);r("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&r("fill-opacity",o)}else r("fill",_h);if(KU(t)){var s=nd(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,d=t.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||d)&&r("paint-order",d?"stroke":"fill"),(n||c<1)&&r("stroke-opacity",c),t.lineDash){var h=Sy(e),f=h[0],p=h[1];f&&(p=GU(p||0),r("stroke-dasharray",f.join(",")),(p||n)&&r("stroke-dashoffset",p))}else n&&r("stroke-dasharray",_h);for(var v=0;v<hS.length;v++){var g=hS[v];if(n||t[g]!==Qf[g]){var m=t[g]||Qf[g];m&&r(YU[v],m)}}}else n&&r("stroke",_h)}var oP="http://www.w3.org/2000/svg",sP="http://www.w3.org/1999/xlink",ZU="http://www.w3.org/2000/xmlns/",$U="http://www.w3.org/XML/1998/namespace",lP="ecmeta_";function uP(r){return document.createElementNS(oP,r)}function mn(r,t,e,n,i){return{tag:r,attrs:e||{},children:n,text:i,key:t}}function JU(r,t){var e=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),e.push(a))}return"<"+r+" "+e.join(" ")+">"}function QU(r){return"</"+r+">"}function fS(r,t){t=t||{};var e=t.newline?"\n":"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return JU(o,s)+(o!=="style"?ri(l):l||"")+(a?""+e+de(a,function(u){return n(u)}).join(e)+e:"")+QU(o)}return n(r)}function qU(r,t,e){e=e||{};var n=e.newline?"\n":"",i=" {"+n,a=n+"}",o=de(nr(r),function(l){return l+i+de(nr(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=de(nr(t),function(l){return"@keyframes "+l+i+de(nr(t[l]),function(u){return u+i+de(nr(t[l][u]),function(c){var d=t[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function pS(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function cP(r,t,e,n){return mn("svg","root",{width:r,height:t,xmlns:oP,"xmlns:xlink":sP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var tK=0;function dP(){return tK++}var hP={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"},Fl="transform-origin";function eK(r,t,e){var n=ie({},r.shape);ie(n,t),r.buildPath(e,n);var i=new aP;return i.reset(Fb(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function rK(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Fl]=e+"px "+n+"px")}var nK={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function fP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function iK(r,t,e){var n=r.shape.paths,i={},a,o;if(U(n,function(l){var u=pS(e.zrId);u.animation=!0,Fv(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,h=nr(c),f=h.length;if(f){o=h[f-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in d){var y=d[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=fP(i,e);return a.replace(o,s)}}function pP(r){return _e(r)?hP[r]?"cubic-bezier("+hP[r]+")":c0(r)?r:"":""}function Fv(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof Dp){var s=iK(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],d=[c.getMaxTime()/1e3+"s"],h=pP(c.getClip().easing),f=c.getDelay();h?d.push(h):d.push("linear"),f&&d.push(f/1e3+"s"),c.getLoop()&&d.push("infinite");var p=d.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(y){var x=y[1],w=x.length,_={},b={},C={},M="animation-timing-function";function k(le,me,ye){for(var ue=le.getTracks(),fe=le.getMaxTime(),Ie=0;Ie<ue.length;Ie++){var Me=ue[Ie];if(Me.needsAnimate()){var Ue=Me.keyframes,Ge=Me.propName;if(ye&&(Ge=ye(Ge)),Ge)for(var Sr=0;Sr<Ue.length;Sr++){var wr=Ue[Sr],dr=Math.round(wr.time/fe*100)+"%",Mr=pP(wr.easing),br=wr.rawValue;(_e(br)||vr(br))&&(me[dr]=me[dr]||{},me[dr][Ge]=wr.rawValue,Mr&&(me[dr][M]=Mr))}}}}for(var P=0;P<w;P++){var R=x[P],j=R.targetName;j?j==="shape"&&k(R,b):!n&&k(R,_)}for(var X in _){var st={};t_(st,r),ie(st,_[X]);var dt=Wb(st),xt=_[X][M];C[X]=dt?{transform:dt}:{},rK(C[X],st),xt&&(C[X][M]=xt)}var Rt,wt=!0;for(var X in b){C[X]=C[X]||{};var Lt=!Rt,xt=b[X][M];Lt&&(Rt=new La);var Ft=Rt.len();Rt.reset(),C[X].d=eK(r,b[X],Rt);var Kt=Rt.len();if(!Lt&&Ft!==Kt){wt=!1;break}xt&&(C[X][M]=xt)}if(!wt)for(var X in C)delete C[X].d;if(!n)for(var P=0;P<w;P++){var R=x[P],j=R.targetName;j==="style"&&k(R,C,function(ue){return nK[ue]})}for(var Ut=nr(C),Bt=!0,Gt,P=1;P<Ut.length;P++){var Qt=Ut[P-1],re=Ut[P];if(C[Qt][Fl]!==C[re][Fl]){Bt=!1;break}Gt=C[Qt][Fl]}if(Bt&&Gt){for(var X in C)C[X][Fl]&&delete C[X][Fl];t[Fl]=Gt}if(Ir(Ut,function(le){return nr(C[le]).length>0}).length){var se=fP(C,e);return se+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=e.zrId+"-cls-"+dP();e.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function aK(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};vP(n,t,e,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=m0(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),vP(n,t,e,!0)}}function vP(r,t,e,n){var i=JSON.stringify(r),a=e.cssStyleCache[i];a||(a=e.zrId+"-cls-"+dP(),e.cssStyleCache[i]=a,e.cssNodes["."+a+(n?":hover":"")]=r),t.class=t.class?t.class+" "+a:a}var Ch=Math.round;function gP(r){return r&&_e(r.src)}function mP(r){return r&&Re(r.toDataURL)}function vS(r,t,e,n){XU(function(i,a){var o=i==="fill"||i==="stroke";o&&Hb(a)?_P(t,r,i,n):o&&x0(a)?CP(e,r,i,n):o&&a==="none"?r[i]="transparent":r[i]=a},t,e,!1),hK(e,r,n)}function gS(r,t){var e=l3(t);e&&(e.each(function(n,i){n!=null&&(r[(lP+i).toLowerCase()]=n+"")}),t.isSilent()&&(r[lP+"silent"]="true"))}function yP(r){return Zo(r[0]-1)&&Zo(r[1])&&Zo(r[2])&&Zo(r[3]-1)}function oK(r){return Zo(r[4])&&Zo(r[5])}function mS(r,t,e){if(t&&!(oK(t)&&yP(t))){var n=e?10:1e4;r.transform=yP(t)?"translate("+Ch(t[4]*n)/n+" "+Ch(t[5]*n)/n+")":AB(t)}}function xP(r,t,e){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(Ch(n[a][0]*e)/e),i.push(Ch(n[a][1]*e)/e);t.points=i.join(" ")}function SP(r){return!r.smooth}function sK(r){var t=de(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=e[o[0]];s!=null&&(n[o[1]]=Ch(s*i)/i)}}}var lK={circle:[sK(["cx","cy","r"])],polyline:[xP,SP],polygon:[xP,SP]};function uK(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function wP(r,t){var e=r.style,n=r.shape,i=lK[r.type],a={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&Fb(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&uK(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var d=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;d&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var f=h.getVersion(),p=r,v=p.__svgPathBuilder;(p.__svgPathVersion!==f||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new aP),v.reset(u),h.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=l),a.d=v.getStr()}return mS(a,r.transform),vS(a,e,r,t),gS(a,r),t.animation&&Fv(r,a,t),t.emphasis&&aK(r,a,t),mn(s,r.id+"",a)}function cK(r,t){var e=r.style,n=e.image;if(n&&!_e(n)&&(gP(n)?n=n.src:mP(n)&&(n=n.toDataURL())),!!n){var i=e.x||0,a=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),mS(l,r.transform),vS(l,e,r,t),gS(l,r),t.animation&&Fv(r,l,t),mn("image",r.id+"",l)}}function dK(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var i=e.font||Fo,a=e.x||0,o=DB(e.y||0,Wf(i),e.textBaseline),s=IB[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Q_(e)){var u="",c=e.fontStyle,d=$_(e.fontSize);if(!parseFloat(d))return;var h=e.fontFamily||Xw,f=e.fontWeight;u+="font-size:"+d+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),f&&f!=="normal"&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),mS(l,r.transform),vS(l,e,r,t),gS(l,r),t.animation&&Fv(r,l,t),mn("text",r.id+"",l,void 0,n)}}function bP(r,t){if(r instanceof rr)return wP(r,t);if(r instanceof Mn)return cK(r,t);if(r instanceof gd)return dK(r,t)}function hK(r,t,e){var n=r.style;if(kB(n)){var i=PB(r),a=e.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,d=n.shadowOffsetY||0,h=n.shadowBlur,f=nd(n.shadowColor),p=f.opacity,v=f.color,g=h/2/l,m=h/2/u,y=g+" "+m;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=mn("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[mn("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:y,"flood-color":v,"flood-opacity":p})]),a[i]=o}t.filter=Rf(o)}}function _P(r,t,e,n){var i=r[e],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Vb(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(zb(i))a="radialGradient",o.cx=We(i.x,.5),o.cy=We(i.y,.5),o.r=We(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=y0(s[u].offset)*100+"%",h=s[u].color,f=nd(h),p=f.color,v=f.opacity,g={offset:d};g["stop-color"]=p,v<1&&(g["stop-opacity"]=v),l.push(mn("stop",u+"",g))}var m=mn(a,"",o,l),y=fS(m),x=n.gradientCache,w=x[y];w||(w=n.zrId+"-g"+n.gradientIdx++,x[y]=w,o.id=w,n.defs[w]=mn(a,w,o,l)),t[e]=Rf(w)}function CP(r,t,e,n){var i=r.style[e],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",d;if(Bb(i)){var h=i.imageWidth,f=i.imageHeight,p=void 0,v=i.image;if(_e(v)?p=v:gP(v)?p=v.src:mP(v)&&(p=v.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";jn(h,g),jn(f,g)}else if(h==null||f==null){var m=function(P,R){if(P){var j=P.elm,X=h||R.width,st=f||R.height;P.tag==="pattern"&&(u?(st=1,X/=a.width):c&&(X=1,st/=a.height)),P.attrs.width=X,P.attrs.height=st,j&&(j.setAttribute("width",X),j.setAttribute("height",st))}},y=Z0(p,null,r,function(P){l||m(b,P),m(d,P)});y&&y.width&&y.height&&(h=h||y.width,f=f||y.height)}d=mn("image","img",{href:p,width:h,height:f}),o.width=h,o.height=f}else i.svgElement&&(d=Ve(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var x,w;l?x=w=1:u?(w=1,x=o.width/a.width):c?(x=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),w!=null&&!isNaN(w)&&(o.height=w);var _=Wb(i);_&&(o.patternTransform=_);var b=mn("pattern","",o,[d]),C=fS(b),M=n.patternCache,k=M[C];k||(k=n.zrId+"-p"+n.patternIdx++,M[C]=k,o.id=k,b=n.defs[k]=mn("pattern",k,o,[d])),t[e]=Rf(k)}}function fK(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=mn("clipPath",a,o,[wP(r,e)])}t["clip-path"]=Rf(a)}function TP(r){return document.createTextNode(r)}function vlt(r){return document.createComment(r)}function Wl(r,t,e){r.insertBefore(t,e)}function MP(r,t){r.removeChild(t)}function AP(r,t){r.appendChild(t)}function IP(r){return r.parentNode}function DP(r){return r.nextSibling}function glt(r){return r.tagName}function yS(r,t){r.textContent=t}function mlt(r){return r.textContent}function ylt(r){return r.nodeType===1}function xlt(r){return r.nodeType===3}function Slt(r){return r.nodeType===8}var kP=58,pK=120,vK=mn("","");function xS(r){return r===void 0}function Wa(r){return r!==void 0}function gK(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function Th(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function Mh(r){var t,e=r.children,n=r.tag;if(Wa(n)){var i=r.elm=uP(n);if(SS(vK,r),ce(e))for(t=0;t<e.length;++t){var a=e[t];a!=null&&AP(i,Mh(a))}else Wa(r.text)&&!Be(r.text)&&AP(i,TP(r.text))}else r.elm=TP(r.text);return r.elm}function PP(r,t,e,n,i){for(;n<=i;++n){var a=e[n];a!=null&&Wl(r,Mh(a),t)}}function Wv(r,t,e,n){for(;e<=n;++e){var i=t[e];if(i!=null)if(Wa(i.tag)){var a=IP(i.elm);MP(a,i.elm)}else MP(r,i.elm)}}function SS(r,t){var e,n=t.elm,i=r&&r.attrs||{},a=t.attrs||{};if(i!==a){for(e in a){var o=a[e],s=i[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e==="style"?n.style.cssText=o:e.charCodeAt(0)!==pK?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(ZU,e,o):e.charCodeAt(3)===kP?n.setAttributeNS($U,e,o):e.charCodeAt(5)===kP?n.setAttributeNS(sP,e,o):n.setAttribute(e,o))}for(e in i)e in a||n.removeAttribute(e)}}function mK(r,t,e){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=e.length-1,u=e[0],c=e[l],d,h,f,p;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=e[++i]:c==null?c=e[--l]:Th(o,u)?(pc(o,u),o=t[++n],u=e[++i]):Th(s,c)?(pc(s,c),s=t[--a],c=e[--l]):Th(o,c)?(pc(o,c),Wl(r,o.elm,DP(s.elm)),o=t[++n],c=e[--l]):Th(s,u)?(pc(s,u),Wl(r,s.elm,o.elm),s=t[--a],u=e[++i]):(xS(d)&&(d=gK(t,n,a)),h=d[u.key],xS(h)?Wl(r,Mh(u),o.elm):(f=t[h],f.tag!==u.tag?Wl(r,Mh(u),o.elm):(pc(f,u),t[h]=void 0,Wl(r,f.elm,o.elm))),u=e[++i]);(n<=a||i<=l)&&(n>a?(p=e[l+1]==null?null:e[l+1].elm,PP(r,p,e,i,l)):Wv(r,t,n,a))}function pc(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(SS(r,t),xS(t.text)?Wa(n)&&Wa(i)?n!==i&&mK(e,n,i):Wa(i)?(Wa(r.text)&&yS(e,""),PP(e,null,i,0,i.length-1)):Wa(n)?Wv(e,n,0,n.length-1):Wa(r.text)&&yS(e,""):r.text!==t.text&&(Wa(n)&&Wv(e,n,0,n.length-1),yS(e,t.text)))}function yK(r,t){if(Th(r,t))pc(r,t);else{var e=r.elm,n=IP(e);Mh(t),n!==null&&(Wl(n,t.elm,DP(e)),Wv(n,[r],0,0))}return t}var xK=0,SK=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=EP("refreshHover"),this.configLayer=EP("configLayer"),this.storage=e,this._opts=n=ie({},n),this.root=t,this._id="zr"+xK++,this._oldVNode=cP(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=uP("svg");SS(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",yK(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return bP(t,pS(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=pS(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=wK(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mn("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=de(nr(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(mn("defs","defs",{},u)),t.animation){var c=qU(a.cssNodes,a.cssAnims,{newline:!0});if(c){var d=mn("style","stl",{},[],c);o.push(d)}}return cP(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},fS(this.renderToVNode({animation:We(t.cssAnimation,!0),emphasis:We(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:We(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var d=t[c];if(!d.invisible){var h=d.__clipPaths,f=h&&h.length||0,p=l&&l.length||0,v=void 0;for(v=Math.max(f-1,p-1);v>=0&&!(h&&l&&h[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var m=v+1;m<f;m++){var y={};fK(h[m],y,e);var x=mn("g","clip-g-"+u++,y,[]);(s?s.children:n).push(x),a[o++]=x,s=x}l=h;var w=bP(d,e);w&&(s?s.children:n).push(w)}}},r.prototype.resize=function(t,e){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),i&&a&&(a.style.display="none",t=rc(i,0,n),e=rc(i,1,n),a.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,a){var o=a.style;o.width=t+"px",o.height=e+"px"}if(x0(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=LB(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function EP(r){return function(){}}function wK(r,t,e,n){var i;if(e&&e!=="none")if(i=mn("rect","bg",{width:r,height:t,x:"0",y:"0"}),Hb(e))_P({fill:e},i.attrs,"fill",n);else if(x0(e))CP({style:{fill:e},dirty:rn,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",n);else{var a=nd(e),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}const bK=SK;function LP(r){r.registerPainter("svg",bK)}var be=T(18390),ja=T(78689),Pr=T(8783);const _K=["\u4E0A\u8FB9\u7F18","\u4E0A\u56DB\u5206\u4F4D\u6570","\u4E2D\u4F4D\u6570","\u4E0B\u56DB\u5206\u4F4D\u6570","\u4E0B\u8FB9\u7F18"],RP=(r,t)=>{const{chartConfig:e,chartData:{xAxis:n,series:i}}=r,{prefix:a,suffix:o,chartCategory:s,isShowToolTip:l,chartType:u,foregroundColor:c,toolTipStyle:d,chartTheme:h}=e,{prefixStr:f,suffixStr:p}=(0,ja.I)({prefix:a,suffix:o});let v={};switch(u){case be.N.bar_chart:case be.N.horizontal_bar_chart:case be.N.line_chart:case be.N.line_area_chart:case be.N.mixed_bar_line_chart:v={trigger:"axis",axisPointer:{type:"shadow"},formatter:g=>{let m=g[0].name;for(let y=0,x=g.length;y<x;y++)m+="<br/>"+g[y].marker+g[y].seriesName+"\xA0\xA0\xA0\xA0\xA0"+f+(s==="accPer"?Math.floor(g[y].value):g[y].value)+(""+(s==="accPer"?"%":p));return m}};break;case be.N.pie_chart:case be.N.ring_chart:case be.N.nightingale_chart:v={formatter:g=>g.marker+g.name+"\xA0\xA0\xA0\xA0\xA0"+f+g.value+p};break;case be.N.progress_chart:v={formatter:g=>{let{value:m}=g;return m+"%"}};break;case be.N.radar_chart:v={formatter:g=>{let m=g.name;for(let y=0,x=g.value.length;y<x;y++)m+="<br/>"+g.marker+n[y]+"\xA0\xA0\xA0\xA0\xA0"+f+g.value[y]+p;return m}};break;case be.N.waterfall_chart:v={trigger:"axis",axisPointer:{type:"shadow"},formatter:g=>{if(g.length<=1)return"";const[m,y,x,w,_]=g,b=j=>isNaN(Number(j))?0:Math.abs(Number(j)),C=b(y.value)+b(x.value),M=b(w==null?void 0:w.value)+b(_==null?void 0:_.value),k=C>0?y.marker:M>0?w==null?void 0:w.marker:"",P=C>0?y.seriesName:M>0?w==null?void 0:w.seriesName:"",R=C>0?C:M>0?M:0;return!k||!P?"":m.name+"<br/>"+k+P+"\xA0\xA0\xA0\xA0\xA0"+f+R+p}};break;case be.N.scatter_chart:case be.N.bubble_chart:v={formatter:function(g){return g.marker+g.seriesName+"<br/>"+g.data.map((m,y)=>{var x;return y===((x=g.data)==null?void 0:x.length)-1?n[y]+": "+f+m+p:n[y]+": "+m}).join("<br/>")}};break;case be.N.gauge_chart:v={formatter:g=>f+g.value+p,borderColor:(0,et.t0)(c)};break;case be.N.map_chart:v={trigger:"item",formatter:g=>{let m="";const{data:y}=t.getOption().series[0];for(const x of y)if(g.name===x.name){m+=x.name+"<br>";for(const w of x.value)m+=w.name+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+w.value+"<br>"}return m},backgroundColor:(0,et.t0)(d.bgColor),borderColor:(0,et.t0)(d.bdrColor),borderWidth:d.bdrWidth,textStyle:{color:(0,et.t0)(d.textColor),fontSize:d.fontSize}};break;case be.N.radial_polar_chart:v={formatter:g=>g.marker+g.seriesName+"<br/>"+g.name+":\xA0\xA0"+f+(s==="accPer"?Math.floor(g.value):g.value)+(""+(s==="accPer"?"%":p))};break;case be.N.sunburst_chart:v={formatter:g=>{const m=g.treePathInfo.findIndex(w=>w.dataIndex===g.dataIndex),y=n[m-1],x=n[n.length-1];return(y?g.marker+y+":\xA0\xA0"+g.name+"<br/>":"")+x+":\xA0\xA0"+f+g.value+p}};break;case be.N.word_cloud_chart:v={formatter:g=>g.marker+n[0]+":\xA0\xA0"+g.name+"<br/>"+n[1]+":\xA0\xA0"+f+g.value+p};break;case be.N.boxplot_chart:v={formatter:g=>{var m;const y='<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,Pr.tp)({theme:h,color:(m=i[0])==null?void 0:m.color,index:0})+';"></span>';if(g.seriesType==="scatter"){var x;const w=(x=g.value)!=null&&x.length?g.value[g.value.length-1]:"";return y+g.name+"<br/>\u79BB\u7FA4\u503C:\xA0\xA0"+f+w+p}return y+g.name+g.data.slice(1).reverse().map((w,_)=>"<br/>"+_K[_]+":\xA0\xA0"+f+w+p).join("")}};break;case be.N.sankey_chart:v={formatter:g=>{const m=n[2];if(g.dataType==="edge")return g.data.source+" \u2192 "+g.data.target+"<br/>"+m+":\xA0\xA0"+f+g.value+p;if(g.dataType==="node")return g.marker+g.data.name+"<br/>"+m+":\xA0\xA0"+f+g.value+p}};break;case be.N.liquid_fill_gauge_chart:v={formatter:g=>{var m;return'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,Pr.tp)({theme:h,color:(m=i[g.dataIndex])==null?void 0:m.color,index:g.dataIndex})+';"></span>'+g.value}};break;default:v={};break}return{tooltip:{show:l,borderColor:"transparent",...v}}};var Bn=T(75810);const CK=r=>{const t=r[0].data.map(s=>isNaN(Number(s))?0:Number(s)),e=[],n=[],i=[],a=[],o=[];for(let s=0,l=0;s<t.length;s++){if(t[s]===0){e.push(0),n.push("-"),i.push("-"),a.push("-"),o.push("-");continue}const u=l+t[s];l>0?u>0?t[s]>0?(e.push(l),n.push(t[s]),i.push("-"),a.push("-"),o.push("-")):(e.push(u),n.push("-"),i.push("-"),a.push("-"),o.push(-t[s])):u<0?(e.push(0),n.push("-"),i.push("-"),a.push(l),o.push(u)):(e.push(0),n.push("-"),i.push("-"),a.push("-"),o.push(l)):l<0?u>0?(e.push(0),n.push(u),i.push(l),a.push("-"),o.push("-")):u<0?t[s]<0?(e.push(l),n.push("-"),i.push("-"),a.push("-"),o.push(u-l)):(e.push(u),n.push(l-u),i.push("-"),a.push("-"),o.push("-")):(e.push(0),n.push(-Math.abs(l)),i.push("-"),a.push("-"),o.push("-")):(e.push(0),t[s]>0?(n.push(t[s]),i.push("-"),a.push("-"),o.push("-")):(n.push("-"),i.push("-"),a.push("-"),o.push(t[s]))),l+=t[s]}return{placeholder:e,in1:n,in2:i,out1:a,out2:o}},TK=r=>{let{data:t,theme:e,label:n,unit:i,barCategoryGap:a}=r;const{prefixStr:o,suffixStr:s}=(0,ja.I)(i),{placeholder:l,in1:u,in2:c,out1:d,out2:h}=CK(t),{isVisible:f,textStyle:{fontSize:p}}=n,v=t[0].name,g=t[1].name,m=(0,Bn.qy)((0,Pr.tp)({theme:e,color:t[0].color,index:0})),y=(0,Bn.qy)((0,Pr.tp)({theme:e,color:t[1].color,index:1}));return[{type:"bar",stack:"total",itemStyle:{borderColor:"transparent",color:"transparent"},emphasis:{itemStyle:{borderColor:"transparent",color:"transparent"}},data:l},{data:u,type:"bar",name:v,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:m},label:{show:f,formatter:x=>{const w=x.dataIndex;if(u[w]!=="-"){const _=Math.abs(u[w]),b=Math.abs(c[w]==="-"?0:c[w]);return""+o+(_+b)+s}else return""},position:"top",color:m,fontSize:p}},{data:c,type:"bar",name:v,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:m},label:{show:!1}},{data:d,type:"bar",name:g,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:y},label:{show:!1}},{data:h,type:"bar",name:g,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:y},label:{show:f,formatter:x=>{const w=x.dataIndex;if(h[w]!=="-"){const _=Math.abs(d[w]==="-"?0:d[w]),b=h[w];return""+o+Math.abs(_-b)+s}else return""},position:"bottom",color:y,fontSize:p}}]},MK=r=>{let{data:t,bubbleRadius:e,theme:n}=r;return t.map((i,a)=>({type:"scatter",name:i.name,symbolSize:e,data:i.data,itemStyle:{color:(0,Pr.tp)({theme:n,color:i.color,index:a})}}))},AK=r=>{let{data:t,label:e,theme:n}=r;const{isVisible:i,textStyle:{fontSize:a,color:o}}=e;return[{type:"funnel",data:t.map((l,u)=>({...l,index:u})).sort((l,u)=>Number(u.data[0])-Number(l.data[0])).map((l,u)=>({value:l.data,name:l.name,originIndex:l.index,color:l.color})),gap:2,label:{show:i,position:"inside",fontSize:a,color:(0,et.t0)(o)},itemStyle:{borderColor:"transparent",color:l=>{const{color:u,originIndex:c}=l.data;return(0,Bn.qy)((0,Pr.tp)({theme:n,color:u,index:c}))}},emphasis:{scale:!1},sort:"descending",left:"center",top:"middle",width:"80%",height:"80%",animationEasing:"elasticOut",animationDelay:function(l){return l*100},animationDuration:function(l){return l*100}}]},IK=r=>{let{progress:t,unit:e,foregroundColor:n,backgroundColor:i,minNum:a,maxNum:o,canRunChartAnimation:s,label:l,labelText:u}=r;const{prefixStr:c,suffixStr:d}=(0,ja.I)(e),{textStyle:h}=(0,Pr.$y)(l.textStyle),{textStyle:f}=(0,Pr.$y)(u.textStyle);return[{type:"gauge",radius:"100%",center:["50%","50%"],progress:{show:!0,itemStyle:{color:(0,et.t0)(n)}},detail:{show:l.isVisible,...h,valueAnimation:s,formatter:p=>""+c+p+d},data:[{value:t,name:""}],min:a,max:o,axisLine:{lineStyle:{color:[[(t-a)/(o-a),(0,et.t0)(n)],[1,(0,et.t0)(i)]]}},axisLabel:{show:u.isVisible,...f},pointer:{show:!0,itemStyle:{color:(0,et.t0)(n)}}}]},DK=r=>{var t;let{data:e,label:n,theme:i,canRunChartAnimation:a}=r;const{isVisible:o,textStyle:{fontSize:s,color:l}}=n;return[{type:"liquidFill",center:["50%","50%"],radius:"95%",data:e.map(u=>{let{data:c}=u;return c[0]}),label:{show:o,fontSize:s,color:(0,et.t0)(l)},color:e.map((u,c)=>{let{color:d}=u;return(0,Bn.qy)((0,Pr.tp)({theme:i,color:d,index:c}))}),outline:{show:!0,itemStyle:{borderColor:(0,Pr.tp)({theme:i,color:(t=e[0])==null?void 0:t.color,index:0}),shadowBlur:0}},backgroundStyle:{shadowBlur:0},itemStyle:{shadowBlur:0},waveAnimation:a}]};var wS=T(31838);const kK=r=>{const{chartConfig:{isShowAxis:t,grid:e,hoverStyle:n,mapAdCode:i,chartTheme:a,mapSolidColor:o},textV0:s,chartData:l}=r,u=a!==0,c=l.series.length,d=wS.JD.get(String(i)).map((h,f)=>{const p=l.xAxis.map((v,g)=>({name:v,value:l.series[f%c].data[g]}));return{name:h,value:p,itemStyle:{areaColor:u?(0,et.t0)(o):(0,et.t0)(l.series[f%c].color||wS.Fy[f%wS.Fy.length])}}});return[{type:"map",map:"MAP_CHART",select:{itemStyle:{areaColor:(0,et.t0)(n.bgColor)}},label:{show:t,color:(0,et.t0)(s.textColor),fontSize:s.fontSize},itemStyle:{borderColor:(0,et.t0)(e.bdrColor)},emphasis:{label:{show:!0,color:(0,et.t0)(n.textColor),fontSize:n.fontSize},itemStyle:{areaColor:(0,et.t0)(n.bgColor),borderColor:(0,et.t0)(n.bdrColor)}},data:d}]},bS={bar_chart:"bar",horizontal_bar_chart:"bar",line_chart:"line",line_area_chart:"line",pie_chart:"pie",ring_chart:"pie",progress_chart:"pie",nightingale_chart:"pie",radar_chart:"radar"},jv={x:{left:"60%",right:"40%",center:"50%"},y:{top:"60%",bottom:"50%",center:"50%"}},_S=(r,t)=>{const n=r.map(i=>i.data).reduce((i,a)=>i.map((o,s)=>Math.abs(parseFloat(o))+Math.abs(parseFloat(a[s]))||0));return t.map((i,a)=>(parseFloat(i)||0)/n[a]*100)},PK=r=>{let{data:t,type:e,theme:n,category:i,smooth:a,label:o,unit:s,barCategoryGap:l}=r;const{prefixStr:u,suffixStr:c}=(0,ja.I)(s),{isVisible:d,textStyle:{fontSize:h}}=o;return t.map((f,p)=>{const v=e==="line_area_chart"?{opacity:.2,color:(0,Bn.qy)((0,Pr.tp)({theme:n,color:f.color,index:p}))}:{color:"transparent"},g=i==="accPer"?_S(t,f.data):f.data,m=(e==="bar_chart"||e==="horizontal_bar_chart")&&(i==="acc"||i==="accPer");return{data:g,type:bS[e],name:f.name,smooth:a,barCategoryGap:100-l+"%",barGap:0,itemStyle:{color:(0,Bn.qy)((0,Pr.tp)({theme:n,color:f.color,index:p}))},areaStyle:v,label:{show:d,formatter:y=>{let{value:x}=y;return""+u+(i==="accPer"?Math.floor(x):x)+(i==="accPer"?"%":c)},position:m?"":e==="horizontal_bar_chart"?"right":"top",fontSize:h,color:m?"rgba(255, 255, 255, 1)":(0,Bn.qy)((0,Pr.tp)({theme:n,color:f.color,index:p}))},...i!=="group"?{stack:"total"}:{}}})},EK=r=>{let{data:t,theme:e,type:n,legend:i,label:a,borderRadius:o,innerRadius:s,unit:l}=r;const{prefixStr:u,suffixStr:c}=(0,ja.I)(l),{isVisible:d,textStyle:{fontSize:h,color:f}}=a,p={borderRadius:o},v=(0,Mt.sG)(i),g=!d&&!v.isVisible,m=n===be.N.ring_chart?g?[s+"%","100%"]:d&&v.isVisible?[.6*s+"%","60%"]:[.75*s+"%","75%"]:n===be.N.nightingale_chart?g?[s+"%","100%"]:[s+"%","75%"]:g?"100%":"75%",y=n===be.N.nightingale_chart?{roseType:"area"}:{};return[{data:t.map((x,w)=>({value:x.data,name:x.name,itemStyle:{color:(0,Bn.qy)((0,Pr.tp)({theme:e,color:x.color,index:w})),...p}})),label:{show:d,fontSize:h,color:(0,et.t0)(f),formatter:x=>{let{name:w,value:_}=x;return[w,"{data|"+u+_[0]+c+"}"].join("\n")},rich:{data:{align:"left",fontSize:(h||12)+"px"}}},labelLine:{length:5,show:d},emphasis:{scale:!1},radius:m,center:v.isVisible?[jv.x[v.x],"50%"]:["50%","50%"],type:bS[n],name:t.name,stack:"total",barCategoryGap:"50%",width:"100%",height:"100%",...y}]},LK=r=>{let{progress:t,innerRadius:e,foregroundColor:n,backgroundColor:i,label:a}=r;const{progressNum:o,progressRadius:s,progressColor:l,progressBackground:u}=(0,Mt.dQ)({progress:t,innerRadius:e,foregroundColor:n,backgroundColor:i}),{textStyle:c}=(0,Pr.$y)(a.textStyle);return{name:"",type:"pie",radius:[s+"%","100%"],label:{show:a.isVisible,position:"center",...c},labelLine:{show:!1},emphasis:{disabled:!0},data:[{value:o,name:o+"%",itemStyle:{color:l}},{value:100-o,name:o+"%",itemStyle:{color:u}}]}},RK=r=>{let{data:t,theme:e,type:n,label:i,unit:a}=r;const{prefixStr:o,suffixStr:s}=(0,ja.I)(a),{isVisible:l,textStyle:{fontSize:u}}=i;return[{data:t.map((c,d)=>({value:c.data,name:c.name,itemStyle:{color:(0,Bn.qy)((0,Pr.tp)({theme:e,color:c.color,index:d}))},label:{show:l,formatter:h=>{let{value:f}=h;return""+o+f+s},fontSize:u,color:(0,Bn.qy)((0,Pr.tp)({theme:e,color:c.color,index:d}))}})),type:bS[n]}]},OK=r=>{let{data:t,type:e,theme:n,category:i,smooth:a,label:o,unit:s,barCategoryGap:l}=r;const{prefixStr:u,suffixStr:c}=(0,ja.I)(s),{isVisible:d,textStyle:{fontSize:h}}=o;return t.map((f,p)=>{let v;if(!f.type)v=p===t.length-1;else{var g,m;v=(g=(m=f.type)==null?void 0:m.includes("line"))!=null?g:!1}const y=v?"line":"bar",x=e===be.N.line_area_chart?{opacity:.2,color:(0,Bn.qy)((0,Pr.tp)({theme:n,color:f.color,index:p}))}:{color:"transparent"},w=i==="accPer"?_S(t,f.data):f.data,_=(e===be.N.bar_chart||e===be.N.horizontal_bar_chart)&&(i==="acc"||i==="accPer");return{data:w,type:y,name:f.name,yAxisIndex:v?1:0,smooth:a,barCategoryGap:100-l+"%",barGap:0,itemStyle:{color:(0,Bn.qy)((0,Pr.tp)({theme:n,color:f.color,index:p}))},areaStyle:x,label:{show:d,formatter:b=>{let{value:C}=b;return""+u+(i==="accPer"?Math.floor(C):C)+(i==="accPer"?"%":c)},position:_?"":e===be.N.horizontal_bar_chart?"right":"top",fontSize:h,color:_?"rgba(255, 255, 255, 1)":(0,Bn.qy)((0,Pr.tp)({theme:n,color:f.color,index:p}))},...i!=="group"?{stack:"total"}:{}}})},NK=r=>{let{data:t,theme:e,minBubbleRadius:n,maxBubbleRadius:i}=r;const a=t.map(u=>u.data.map(c=>c[2])).flat(),o=Math.min(...a),l=Math.max(...a)-o;return t.map((u,c)=>({type:"scatter",name:u.name,symbolSize:d=>(d[2]-o)/l*(i-n)+n,data:u.data,itemStyle:{color:(0,Pr.tp)({theme:e,color:u.color,index:c})}}))},BK=r=>{let{data:t,theme:e,category:n,label:i,unit:a}=r;const{prefixStr:o,suffixStr:s}=(0,ja.I)(a);return t.map((l,u)=>({data:n==="accPer"?_S(t,l.data):l.data,type:"bar",name:l.name,coordinateSystem:"polar",itemStyle:{color:(0,Bn.qy)((0,Pr.tp)({theme:e,color:l.color,index:u}))},areaStyle:{color:"transparent"},label:{show:i.isVisible,formatter:d=>""+o+(n==="accPer"?Math.floor(d.value):d.value)+(n==="accPer"?"%":s),position:"middle",color:(0,Bn.qy)((0,Pr.tp)({theme:e,color:i.textStyle.color,index:u})),fontSize:i.textStyle.fontSize},...n!=="group"?{stack:"total"}:{}}))};var VK=T(33843),zK=T(87440);function HK(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],n,i;n=e.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function FK(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,i=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){GK(r);var a=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-a):r.hierNode.prelim=a}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=UK(r,i,r.parentNode.hierNode.defaultAncestor||n[0],t)}function WK(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function OP(r){return arguments.length?r:XK}function Ah(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function jK(r,t){return ln(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function GK(r){for(var t=r.children,e=t.length,n=0,i=0;--e>=0;){var a=t[e];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function UK(r,t,e,n){if(t){for(var i=r,a=r,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=CS(s),a=TS(a),s&&a;){i=CS(i),o=TS(o),i.hierNode.ancestor=r;var h=s.hierNode.prelim+d-a.hierNode.prelim-u+n(s,a);h>0&&(YK(KK(s,r,e),r,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!CS(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),a&&!TS(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,e=r)}return e}function CS(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function TS(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function KK(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function YK(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function XK(r,t){return r.parentNode===t.parentNode?1:2}var ZK=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),$K=function(r){Yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ZK},t.prototype.buildPath=function(e,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,h=xe(n.forkPosition,1),f=[];f[c]=o[c],f[d]=o[d]+(l[d]-o[d])*h,e.moveTo(o[0],o[1]),e.lineTo(f[0],f[1]),e.moveTo(s[0],s[1]),f[c]=s[c],e.lineTo(f[0],f[1]),f[c]=l[c],e.lineTo(f[0],f[1]),e.lineTo(l[0],l[1]);for(var p=1;p<a-1;p++){var v=i[p];e.moveTo(v[0],v[1]),f[c]=v[c],e.lineTo(f[0],f[1])}},t}(rr),JK=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new ze,e}return t.prototype.init=function(e,n){this._controller=new vh(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,n,i){var a=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,i),this._updateController(e,n,i);var u=this._data;a.diff(u).add(function(c){NP(a,c)&&BP(a,c,null,s,e)}).update(function(c,d){var h=u.getItemGraphicEl(d);if(!NP(a,c)){h&&HP(u,d,h,s,e);return}BP(a,c,h,s,e)}).remove(function(c){var d=u.getItemGraphicEl(c);d&&HP(u,c,d,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,d){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:d})})}),this._data=a},t.prototype._updateViewCoordSys=function(e,n){var i=e.getData(),a=[];i.each(function(d){var h=i.getItemLayout(d);h&&!isNaN(h.x)&&!isNaN(h.y)&&a.push([+h.x,+h.y])});var o=[],s=[];Jf(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=e.coordinateSystem=new mh;c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(e.get("center"),n),c.setZoom(e.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,d){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,d)&&!Dv(u,i,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){jx(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Gx(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(e),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),i=this._getNodeGlobalScale(e);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(e){var n=e.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Lr);function NP(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function BP(r,t,e,n,i){var a=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,d=o.parentNode===c?o:o.parentNode||o,h=r.getItemGraphicEl(d.dataIndex),f=d.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:f,v=o.getLayout();a?(e=new uh(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=p.x,e.y=p.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=v.rawX,e.__radialRawY=v.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,lr(e,{x:v.x,y:v.y},i);var g=e.getSymbolPath();if(i.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),x=m.children.length,w=void 0,_=void 0;if(v.x===y.x&&o.isExpand===!0&&m.children.length){var b={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};w=Math.atan2(b.y-y.y,b.x-y.x),w<0&&(w=Math.PI*2+w),_=b.x<y.x,_&&(w=w-Math.PI)}else w=Math.atan2(v.y-y.y,v.x-y.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(_=v.x<y.x,_&&(w=w-Math.PI)):(_=v.x>y.x,_||(w=w-Math.PI));var C=_?"left":"right",M=s.getModel("label"),k=M.get("rotate"),P=k*(Math.PI/180),R=g.getTextContent();R&&(g.setTextConfig({position:M.get("position")||C,rotation:k==null?-w:P,origin:"center"}),R.setStyle("verticalAlign","middle"))}var j=s.get(["emphasis","focus"]),X=j==="relative"?vf(o.getAncestorsIndices(),o.getDescendantIndices()):j==="ancestor"?o.getAncestorsIndices():j==="descendant"?o.getDescendantIndices():null;X&&(He(e).focus=X),QK(i,o,c,e,p,f,v,n),e.__edge&&(e.onHoverStateChange=function(st){if(st!=="blur"){var dt=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);dt&&dt.hoverState===md||np(e.__edge,st)}})}function QK(r,t,e,n,i,a,o,s){var l=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),d=r.getOrient(),h=r.get(["lineStyle","curveness"]),f=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(v||(v=n.__edge=new Ip({shape:MS(c,d,h,i,i)})),lr(v,{shape:MS(c,d,h,a,o)},r));else if(u==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;y<g.length;y++){var x=g[y].getLayout();m.push([x.x,x.y])}v||(v=n.__edge=new $K({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:f}})),lr(v,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}v&&!(u==="polyline"&&!t.isExpand)&&(v.useStyle(Ne({strokeNoScale:!0,fill:null},p)),An(v,l,"lineStyle"),ol(v),s.add(v))}function VP(r,t,e,n,i){var a=t.tree.root,o=zP(a,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),f=n.get("edgeShape"),p=n.get("layout"),v=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(f==="curve"?ts(h,{shape:MS(p,v,g,l,l),style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:i}):f==="polyline"&&n.get("layout")==="orthogonal"&&ts(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){e.remove(h)},removeOpt:i}))}}function zP(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,n;n=e.getLayout(),n==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:n}}function HP(r,t,e,n,i){var a=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=zP(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ts(e,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){VP(u,r,n,i,l)}),VP(a,r,n,i,l)}function MS(r,t,e,n,i){var a,o,s,l,u,c,d,h;if(r==="radial"){u=n.rawX,d=n.rawY,c=i.rawX,h=i.rawY;var f=Ah(u,d),p=Ah(u,d+(h-d)*e),v=Ah(c,h+(d-h)*e),g=Ah(c,h);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=n.x,d=n.y,c=i.x,h=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*e,o=d,s=c+(u-c)*e,l=h),(t==="TB"||t==="BT")&&(a=u,o=d+(h-d)*e,s=c,l=h+(d-h)*e);return{x1:u,y1:d,x2:c,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}const qK=JK;var tY=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},i=e.leaves||{},a=new Er(i,this,this.ecModel),o=eS.createTree(n,this,s);function s(d){d.wrapMethod("getItemModel",function(h,f){var p=o.getNodeByDataIndex(f);return p&&p.children.length&&p.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var h=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=h&&h.collapsed!=null?!h.collapsed:d.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return gn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Rv(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Wr);const eY=tY;function rY(r,t,e){for(var n=[r],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,e)}function Ih(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)e.push(i[a])}}function nY(r,t){r.eachSeriesByType("tree",function(e){iY(e,t)})}function iY(r,t){var e=jK(r,t);r.layoutInfo=e;var n=r.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(e.height,e.width)/2,o=OP(function(x,w){return(x.parentNode===w.parentNode?1:2)/x.depth})):(i=e.width,a=e.height,o=OP());var s=r.getData().tree.root,l=s.children[0];if(l){HK(s),rY(l,FK,o),s.hierNode.modifier=-l.hierNode.prelim,Ih(l,WK);var u=l,c=l,d=l;Ih(l,function(x){var w=x.getLayout().x;w<u.getLayout().x&&(u=x),w>c.getLayout().x&&(c=x),x.depth>d.depth&&(d=x)});var h=u===c?1:o(u,c)/2,f=h-u.getLayout().x,p=0,v=0,g=0,m=0;if(n==="radial")p=i/(c.getLayout().x+h+f),v=a/(d.depth-1||1),Ih(l,function(x){g=(x.getLayout().x+f)*p,m=(x.depth-1)*v;var w=Ah(g,m);x.setLayout({x:w.x,y:w.y,rawX:g,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(v=a/(c.getLayout().x+h+f),p=i/(d.depth-1||1),Ih(l,function(x){m=(x.getLayout().x+f)*v,g=y==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(p=i/(c.getLayout().x+h+f),v=a/(d.depth-1||1),Ih(l,function(x){g=(x.getLayout().x+f)*p,m=y==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y:m},!0)}))}}}function aY(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");ie(s,o)})})}function oY(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=Jx(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function sY(r){r.registerChartView(qK),r.registerSeriesModel(eY),r.registerLayout(nY),r.registerVisual(aY),oY(r)}var FP=["treemapZoomToNode","treemapRender","treemapMove"];function lY(r){for(var t=0;t<FP.length;t++)r.registerAction({type:FP[t],update:"updateView"},rn);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=yh(e,s,a);if(l){var u=a.getViewRoot();u&&(e.direction=Qx(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}var uY=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var i={name:e.name,children:e.data};WP(i);var a=e.levels||[],o=this.designatedVisualItemStyle={},s=new Er({itemStyle:o},this,n);a=e.levels=cY(a,n);var l=de(a||[],function(d){return new Er(d,s,n)},this),u=eS.createTree(i,this,c);function c(d){d.wrapMethod("getItemModel",function(h,f){var p=u.getNodeByDataIndex(f),v=p?l[p.depth]:null;return h.parentModel=v||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return gn("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Rv(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},ie(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=Pe(),this._idIndexMapCount=0);var i=n.get(e);return i==null&&n.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Lk(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Wr);function WP(r){var t=0;U(r.children,function(n){WP(n);var i=n.value;ce(i)&&(i=i[0]),t+=i});var e=r.value;ce(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),ce(r.value)?r.value[0]=e:r.value=e}function cY(r,t){var e=kr(t.get("color")),n=kr(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,a;U(r,function(s){var l=new Er(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!a&&n&&(o.decal=n.slice()),r}}const dY=uY;var hY=8,jP=8,AS=5,fY=function(){function r(t){this.group=new ze,t.add(this.group)}return r.prototype.render=function(t,e,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,d,u),this._renderContent(t,d,s,l,u,c,i),gp(o,d.pos,d.box)}},r.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var a=dn(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+hY*2,e.emptyItemWidth);e.totalWidth+=s+jP,e.renderList.push({node:i,text:a,width:s})}},r.prototype._renderContent=function(t,e,n,i,a,o,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),d=pV(e.pos,e.box),h=e.totalWidth,f=e.renderList,p=i.getModel("itemStyle").getItemStyle(),v=f.length-1;v>=0;v--){var g=f[v],m=g.node,y=g.width,x=g.text;h>d.width&&(h-=y-u,y=u,x=null);var w=new si({shape:{points:pY(l,0,y,c,v===f.length-1,v===0)},style:Ne(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ar({style:Or(a,{text:x})}),textConfig:{position:"inside"},z2:Pu*1e4,onclick:je(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Or(o,{text:x}),w.ensureState("emphasis").style=p,Xr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),vY(w,t,m),l+=y+jP}},r.prototype.remove=function(){this.group.removeAll()},r}();function pY(r,t,e,n,i,a){var o=[[i?r:r-AS,t],[r+e,t],[r+e,t+n],[i?r:r-AS,t+n]];return!a&&o.splice(2,0,[r+e+AS,t+n/2]),!i&&o.push([r,t+n/2]),o}function vY(r,t,e){He(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Rv(e,t)}}const gY=fY;var mY=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:a}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function yY(){return new mY}var IS=ze,GP=or,UP=3,KP="label",YP="upperLabel",xY=Pu*10,SY=Pu*2,wY=Pu*3,jl=$s([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),XP=function(r){var t=jl(r);return t.stroke=t.fill=t.lineWidth=null,t},Gv=cr(),bY=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Dh(),e}return t.prototype.render=function(e,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(tr(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=yh(a,s,e),u=a&&a.type,c=e.layoutInfo,d=!this._oldTree,h=this._storage,f=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,p=this._giveContainerGroup(c),v=e.get("animation"),g=this._doRender(p,e,f);v&&!d&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,e,f):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(e,i,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new IS,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,i){var a=n.getData().tree,o=this._oldTree,s=Dh(),l=Dh(),u=this._storage,c=[];function d(g,m,y,x){return _Y(n,l,u,i,s,c,g,m,y,x)}f(a.root?[a.root]:[],o&&o.root?[o.root]:[],e,a===o||!o,0);var h=p(u);return this._oldTree=a,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:v};function f(g,m,y,x,w){x?(m=g,U(g,function(C,M){!C.isRemoved()&&b(M,M)})):new xo(m,g,_,_).add(b).update(b).remove(je(b,null)).execute();function _(C){return C.getId()}function b(C,M){var k=C!=null?g[C]:null,P=M!=null?m[M]:null,R=d(k,P,y,w);R&&f(k&&k.viewChildren||[],P&&P.viewChildren||[],R,x,w+1)}}function p(g){var m=Dh();return g&&U(g,function(y,x){var w=m[x];U(y,function(_){_&&(w.push(_),Gv(_).willDelete=!0)})}),m}function v(){U(h,function(g){U(g,function(m){m.parent&&m.parent.remove(m)})}),U(c,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(e,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Re(o)?0:o)||0,u=(Re(s)?null:s)||"cubicOut",c=yY();U(n.willDeleteEls,function(d,h){U(d,function(f,p){if(!f.invisible){var v=f.parent,g,m=Gv(v);if(a&&a.direction==="drillDown")g=v===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,x=0;m.willDelete||(y=m.nodeWidth/2,x=m.nodeHeight/2),g=h==="nodeGroup"?{x:y,y:x,style:{opacity:0}}:{shape:{x:y,y:x,width:0,height:0},style:{opacity:0}}}g&&c.add(f,g,l,0,u)}})}),U(this._storage,function(d,h){U(d,function(f,p){var v=n.lastsForAnimation[h][p],g={};v&&(f instanceof ze?v.oldX!=null&&(g.x=f.x,g.y=f.y,f.x=v.oldX,f.y=v.oldY):(v.oldShape&&(g.shape=ie({},f.shape),f.setShape(v.oldShape)),v.fadein?(f.setStyle("opacity",0),g.style={opacity:1}):f.style.opacity!==1&&(g.style={opacity:1})),c.add(f,g,l,0,u))})},this),this._state="animating",c.finished(Te(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this._controller;n||(n=this._controller=new vh(e.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",Te(this._onPan,this)),n.on("zoom",Te(this._onZoom,this)));var i=new Xe(0,0,e.getWidth(),e.getHeight());n.setPointerChecker(function(a,o,s){return i.contain(o,s)})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>UP||Math.abs(e.dy)>UP)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var n=e.originX,i=e.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Xe(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=wi();Ca(u,u,[-n,-i]),n0(u,u,[e.scale,e.scale]),Ca(u,u,[n,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&pp(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,i){var a=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new gY(this.group))).render(e,n,i.node,function(o){a._state!=="animating"&&(Qx(e.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Dh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Lr);function Dh(){return{nodeGroup:[],background:[],content:[]}}function _Y(r,t,e,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),d=r.getData(),h=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var f=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,w=c.upperHeight,_=x&&x.length,b=h.getModel("itemStyle"),C=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),k=h.getModel(["select","itemStyle"]),P=b.get("borderRadius")||0,R=Gt("nodeGroup",IS);if(!R)return;if(l.add(R),R.x=c.x||0,R.y=c.y||0,R.markRedraw(),Gv(R).nodeWidth=f,Gv(R).nodeHeight=p,c.isAboveViewRoot)return R;var j=Gt("background",GP,u,SY);j&&Lt(R,j,_&&c.upperLabelHeight);var X=h.getModel("emphasis"),st=X.get("focus"),dt=X.get("blurScope"),xt=X.get("disabled"),Rt=st==="ancestor"?o.getAncestorsIndices():st==="descendant"?o.getDescendantIndices():st;if(_)wd(R)&&sl(R,!1),j&&(sl(j,!xt),d.setItemGraphicEl(o.dataIndex,j),Sm(j,Rt,dt));else{var wt=Gt("content",GP,u,wY);wt&&Ft(R,wt),j.disableMorphing=!0,j&&wd(j)&&sl(j,!1),sl(R,!xt),d.setItemGraphicEl(o.dataIndex,R),Sm(R,Rt,dt)}return R;function Lt(se,le,me){var ye=He(le);if(ye.dataIndex=o.dataIndex,ye.seriesIndex=r.seriesIndex,le.setShape({x:0,y:0,width:f,height:p,r:P}),g)Kt(le);else{le.invisible=!1;var ue=o.getVisual("style"),fe=ue.stroke,Ie=XP(b);Ie.fill=fe;var Me=jl(C);Me.fill=C.get("borderColor");var Ue=jl(M);Ue.fill=M.get("borderColor");var Ge=jl(k);if(Ge.fill=k.get("borderColor"),me){var Sr=f-2*v;Ut(le,fe,ue.opacity,{x:v,y:0,width:Sr,height:w})}else le.removeTextContent();le.setStyle(Ie),le.ensureState("emphasis").style=Me,le.ensureState("blur").style=Ue,le.ensureState("select").style=Ge,ol(le)}se.add(le)}function Ft(se,le){var me=He(le);me.dataIndex=o.dataIndex,me.seriesIndex=r.seriesIndex;var ye=Math.max(f-2*v,0),ue=Math.max(p-2*v,0);if(le.culling=!0,le.setShape({x:v,y:v,width:ye,height:ue,r:P}),g)Kt(le);else{le.invisible=!1;var fe=o.getVisual("style"),Ie=fe.fill,Me=XP(b);Me.fill=Ie,Me.decal=fe.decal;var Ue=jl(C),Ge=jl(M),Sr=jl(k);Ut(le,Ie,fe.opacity,null),le.setStyle(Me),le.ensureState("emphasis").style=Ue,le.ensureState("blur").style=Ge,le.ensureState("select").style=Sr,ol(le)}se.add(le)}function Kt(se){!se.invisible&&a.push(se)}function Ut(se,le,me,ye){var ue=h.getModel(ye?YP:KP),fe=dn(h.get("name"),null),Ie=ue.getShallow("show");In(se,vn(h,ye?YP:KP),{defaultText:Ie?fe:null,inheritColor:le,defaultOpacity:me,labelFetcher:r,labelDataIndex:o.dataIndex});var Me=se.getTextContent();if(Me){var Ue=Me.style,Ge=jg(Ue.padding||0);ye&&(se.setTextConfig({layoutRect:ye}),Me.disableLabelLayout=!0),Me.beforeUpdate=function(){var wr=Math.max((ye?ye.width:se.shape.width)-Ge[1]-Ge[3],0),dr=Math.max((ye?ye.height:se.shape.height)-Ge[0]-Ge[2],0);(Ue.width!==wr||Ue.height!==dr)&&Me.setStyle({width:wr,height:dr})},Ue.truncateMinChar=2,Ue.lineOverflow="truncate",Bt(Ue,ye,c);var Sr=Me.getState("emphasis");Bt(Sr?Sr.style:null,ye,c)}}function Bt(se,le,me){var ye=se?se.text:null;if(!le&&me.isLeafRoot&&ye!=null){var ue=r.get("drillDownIcon",!0);se.text=ue?ue+" "+ye:ye}}function Gt(se,le,me,ye){var ue=y!=null&&e[se][y],fe=i[se];return ue?(e[se][y]=null,Qt(fe,ue)):g||(ue=new le,ue instanceof Li&&(ue.z2=CY(me,ye)),re(fe,ue)),t[se][m]=ue}function Qt(se,le){var me=se[m]={};le instanceof IS?(me.oldX=le.x,me.oldY=le.y):me.oldShape=ie({},le.shape)}function re(se,le){var me=se[m]={},ye=o.parentNode,ue=le instanceof ze;if(ye&&(!n||n.direction==="drillDown")){var fe=0,Ie=0,Me=i.background[ye.getRawIndex()];!n&&Me&&Me.oldShape&&(fe=Me.oldShape.width,Ie=Me.oldShape.height),ue?(me.oldX=0,me.oldY=Ie):me.oldShape={x:fe,y:Ie,width:0,height:0}}me.fadein=!ue}}function CY(r,t){return r*xY+t}const TY=bY;var MY="itemStyle",ZP=cr();const AY={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||$P(e,{},r.getViewRoot().getAncestors(),r)}};function $P(r,t,e,n){var i=r.getModel(),a=r.getLayout(),o=r.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(MY),l=IY(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),d=s.get("borderColorSaturation"),h;d!=null&&(h=JP(l),c=DY(d,h)),u.stroke=c;var f=r.viewChildren;if(!f||!f.length)h=JP(l),u.fill=h;else{var p=kY(r,i,a,s,l,f);U(f,function(v,g){if(v.depth>=e.length||v===e[v.depth]){var m=PY(i,l,v,g,p,n);$P(v,m,e,n)}})}}}function IY(r,t,e){var n=ie({},t),i=e.designatedVisualItemStyle;return U(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=r.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function JP(r){var t=DS(r,"color");if(t){var e=DS(r,"colorAlpha"),n=DS(r,"colorSaturation");return n&&(t=ed(t,null,null,n)),e&&(t=Pf(t,e)),t}}function DY(r,t){return t!=null?ed(t,null,null,r):null}function DS(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function kY(r,t,e,n,i,a){if(!(!a||!a.length)){var o=kS(t,"color")||i.color!=null&&i.color!=="none"&&(kS(t,"colorAlpha")||kS(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var h=new Pn(d);return ZP(h).drColorMappingBy=c,h}}}function kS(r,t){var e=r.get(t);return ce(e)&&e.length?{name:t,range:e}:null}function PY(r,t,e,n,i,a){var o=ie({},t);if(i){var s=i.type,l=s==="color"&&ZP(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var kh=Math.max,Uv=Math.min,QP=xn,PS=U,qP=["itemStyle","borderWidth"],EY=["itemStyle","gapWidth"],LY=["upperLabel","show"],RY=["upperLabel","height"];const OY={seriesType:"treemap",reset:function(r,t,e,n){var i=e.getWidth(),a=e.getHeight(),o=r.option,s=ln(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=xe(QP(s.width,l[0]),i),c=xe(QP(s.height,l[1]),a),d=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],f=yh(n,h,r),p=d==="treemapRender"||d==="treemapMove"?n.rootRect:null,v=r.getViewRoot(),g=Dk(v);if(d!=="treemapMove"){var m=d==="treemapZoomToNode"?FY(r,f,v,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(w),tE(v,x,!1,0),w=v.getLayout(),PS(g,function(b,C){var M=(g[C+1]||v).getValue();b.setLayout(ie({dataExtent:[M,M],borderWidth:0,upperHeight:0},w))})}var _=r.getData().tree.root;_.setLayout(WY(s,p,f),!0),r.setLayoutInfo(s),rE(_,new Xe(-s.x,-s.y,i,a),g,v,0)}};function tE(r,t,e,n){var i,a;if(!r.isRemoved()){var o=r.getLayout();i=o.width,a=o.height;var s=r.getModel(),l=s.get(qP),u=s.get(EY)/2,c=nE(s),d=Math.max(l,c),h=l-u,f=d-u;r.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=kh(i-2*h,0),a=kh(a-h-f,0);var p=i*a,v=NY(r,s,p,t,e,n);if(v.length){var g={x:h,y:f,width:i,height:a},m=Uv(i,a),y=1/0,x=[];x.area=0;for(var w=0,_=v.length;w<_;){var b=v[w];x.push(b),x.area+=b.getLayout().area;var C=HY(x,m,t.squareRatio);C<=y?(w++,y=C):(x.area-=x.pop().getLayout().area,eE(x,m,g,u,!1),m=Uv(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&eE(x,m,g,u,!0),!e){var M=s.get("childrenVisibleMin");M!=null&&p<M&&(e=!0)}for(var w=0,_=v.length;w<_;w++)tE(v[w],t,e,n+1)}}}function NY(r,t,e,n,i,a){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return r.viewChildren=[];o=Ir(o,function(f){return!f.isRemoved()}),VY(o,s);var u=zY(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=BY(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,d=o.length;c<d;c++){var h=o[c].getValue()/u.sum*e;o[c].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function BY(r,t,e,n,i){if(!n)return e;for(var a=r.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/e*t<a&&(s=l,e-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),e}function VY(r,t){return t&&r.sort(function(e,n){var i=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return i===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}),r}function zY(r,t,e){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],PS(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function HY(r,t,e){for(var n=0,i=1/0,a=0,o=void 0,s=r.length;a<s;a++)o=r[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?kh(u*n/l,l/(u*i)):1/0}function eE(r,t,e,n,i){var a=t===e.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=e[s[a]],c=t?r.area/t:0;(i||c>e[l[o]])&&(c=e[l[o]]);for(var d=0,h=r.length;d<h;d++){var f=r[d],p={},v=c?f.getLayout().area/c:0,g=p[l[o]]=kh(c-2*n,0),m=e[s[a]]+e[l[a]]-u,y=d===h-1||m<v?m:v,x=p[l[a]]=kh(y-2*n,0);p[s[o]]=e[s[o]]+Uv(n,g/2),p[s[a]]=u+Uv(n,x/2),u+=y,f.setLayout(p,!0)}e[s[o]]+=c,e[l[o]]-=c}function FY(r,t,e,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===e)return o;for(var s,l=n*i,u=l*r.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,d=s.children,h=0,f=d.length;h<f;h++)c+=d[h].getValue();var p=a.getValue();if(p===0)return o;u*=c/p;var v=s.getModel(),g=v.get(qP),m=Math.max(g,nE(v));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>d_&&(u=d_),a=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[n*y,i*y]}function WY(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var i=e.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function rE(r,t,e,n,i){var a=r.getLayout(),o=e[i],s=o&&o===r;if(!(o&&!s||i===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new Xe(t.x-a.x,t.y-a.y,t.width,t.height);PS(r.viewChildren||[],function(u){rE(u,l,e,n,i+1)})}}function nE(r){return r.get(LY)?r.get(RY):0}function jY(r){r.registerSeriesModel(dY),r.registerChartView(TY),r.registerVisual(AY),r.registerLayout(OY),lY(r)}function GY(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){vr(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function UY(r){var t={};r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],d=0;d<c.length;d++){var h=l.getShallow(c[d],!0);h!=null&&n.setItemVisual(o,c[d],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){_e(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");ie(c,u);for(var d=["symbol","symbolSize","symbolKeepAspect"],h=0;h<d.length;h++)i.setItemVisual(o,d[h],n.getItemVisual(l,d[h]))}})})}function Kv(r){return r instanceof Array||(r=[r,r]),r}function KY(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Kv(t.get("edgeSymbol")),a=Kv(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=e.getEdgeByIndex(o),u=Kv(s.getShallow("symbol",!0)),c=Kv(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(ie(h,d),h.stroke){case"source":{var f=l.node1.getVisual("style");h.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");h.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var ES="-->",Yv=function(r){return r.get("autoCurveness")||null},iE=function(r,t){var e=Yv(r),n=20,i=[];if(vr(e))n=e;else if(ce(e)){r.__curvenessList=e;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},Ph=function(r,t,e){var n=[r.id,r.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[e.uid,n,i].join(ES)},aE=function(r){var t=r.split(ES);return[t[0],t[2],t[1]].join(ES)},YY=function(r,t){var e=Ph(r.node1,r.node2,t);return t.__edgeMap[e]},XY=function(r,t){var e=LS(Ph(r.node1,r.node2,t),t),n=LS(Ph(r.node2,r.node1,t),t);return e+n},LS=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function ZY(r){Yv(r)&&(r.__curvenessList=[],r.__edgeMap={},iE(r))}function $Y(r,t,e,n){if(Yv(e)){var i=Ph(r,t,e),a=e.__edgeMap,o=a[aE(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function RS(r,t,e,n){var i=Yv(t),a=ce(i);if(!i)return null;var o=YY(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=XY(r,t);iE(t,u),r.lineStyle=r.lineStyle||{};var c=Ph(r.node1,r.node2,t),d=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return d[h+s];var f=aE(c),p=LS(f,t),v=d[s+p+h];return n?a?i&&i[0]===0?(p+h)%2?v:-v:((p%2?0:1)+h)%2?v:-v:(p+h)%2?v:-v:d[s+p+h]}function oE(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),OS(e,r)}}function OS(r,t){r.eachEdge(function(e,n){var i=_a(e.getModel().get(["lineStyle","curveness"]),-RS(e,t,n,!0),0),a=no(e.node1.getLayout()),o=no(e.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),e.setLayout(s)})}function JY(r,t){r.eachSeriesByType("graph",function(e){var n=e.get("layout"),i=e.coordinateSystem;if(i&&i.type!=="view"){var a=e.getData(),o=[];U(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var d=a.get(o[c],s);isNaN(d)||(u=!0),l.push(d)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}OS(a.graph,e)}else(!n||n==="none")&&oE(e)})}function Eh(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*e+1;return a/n}function Lh(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var sE=Math.PI,NS=[];function BS(r,t,e,n){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=r.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:l,cy:u}),!!d){if(e){var h=i.pointToData(n),f=h[0],p=h[1],v=[f-l,p-u];xu(v,v),xf(v,v,c),e.setLayout([l+v[0],u+v[1]],!0);var g=r.get(["circular","rotateLabel"]);lE(e,g,l,u)}QY[t](r,s,o,c,l,u,d),s.eachEdge(function(m,y){var x=_a(m.getModel().get(["lineStyle","curveness"]),RS(m,r,y),0),w=no(m.node1.getLayout()),_=no(m.node2.getLayout()),b,C=(w[0]+_[0])/2,M=(w[1]+_[1])/2;+x&&(x*=3,b=[l*x+C*(1-x),u*x+M*(1-x)]),m.setLayout([w,_,b])})}}}var QY={value:function(r,t,e,n,i,a,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var d=c.getValue("value"),h=u*(l?d:1)/2;s+=h,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(r,t,e,n,i,a,o){var s=0;NS.length=o;var l=Eh(r);t.eachNode(function(d){var h=Lh(d);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var f=Math.asin(h/2/n);isNaN(f)&&(f=sE/2),NS[d.dataIndex]=f,s+=f*2});var u=(2*sE-s)/o/2,c=0;t.eachNode(function(d){var h=u+NS[d.dataIndex];c+=h,(!d.getLayout()||!d.getLayout().fixed)&&d.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=h})}};function lE(r,t,e,n){var i=r.getGraphicEl();if(i){var a=r.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-e);u<0&&(u=Math.PI*2+u);var c=l[0]<e;c&&(u=u-Math.PI);var d=c?"left":"right";s.setTextConfig({rotation:-u,position:d,origin:"center"});var h=s.ensureState("emphasis");ie(h.textConfig||(h.textConfig={}),{position:d})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function qY(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&BS(t,"symbolSize")})}var vc=Ug;function tX(r,t,e){for(var n=r,i=t,a=e.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=e.gravity==null?.1:e.gravity,c=0;c<n.length;c++){var d=n[c];d.p||(d.p=Os(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=no(d.p),d.edges=null}var h=e.friction==null?.6:e.friction,f=h,p,v;return{warmUp:function(){f=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){v=g},step:function(g){p&&p(n,i);for(var m=[],y=n.length,x=0;x<i.length;x++){var w=i[x];if(!w.ignoreForceLayout){var _=w.n1,b=w.n2;Ns(m,b.p,_.p);var C=Kg(m)-w.d,M=b.w/(_.w+b.w);isNaN(M)&&(M=0),xu(m,m),!_.fixed&&vc(_.p,_.p,m,M*C*f),!b.fixed&&vc(b.p,b.p,m,-(1-M)*C*f)}}for(var x=0;x<y;x++){var k=n[x];k.fixed||(Ns(m,l,k.p),vc(k.p,k.p,m,u*f))}for(var x=0;x<y;x++)for(var _=n[x],P=x+1;P<y;P++){var b=n[P];Ns(m,b.p,_.p);var C=Kg(m);C===0&&(B5(m,Math.random()-.5,Math.random()-.5),C=1);var R=(_.rep+b.rep)/C/C;!_.fixed&&vc(_.pp,_.pp,m,R),!b.fixed&&vc(b.pp,b.pp,m,-R)}for(var j=[],x=0;x<y;x++){var k=n[x];k.fixed||(Ns(j,k.p,k.pp),vc(k.p,k.p,j,f),Gn(k.pp,k.p))}f=f*.992;var X=f<.01;v&&v(n,i,X),g&&g(X)}}}function eX(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(x){var w=a.getId(x);a.setItemLayout(x,n[w]||[NaN,NaN])}):!l||l==="none"?oE(t):l==="circular"&&BS(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),d=s.get("repulsion"),h=s.get("edgeLength"),f=ce(d)?d:[d,d],p=ce(h)?h:[h,h];p=[p[1],p[0]];var v=a.mapArray("value",function(x,w){var _=a.getItemLayout(w),b=Cr(x,u,f);return isNaN(b)&&(b=(f[0]+f[1])/2),{w:b,rep:b,fixed:a.getItemModel(w).get("fixed"),p:!_||isNaN(_[0])||isNaN(_[1])?null:_}}),g=o.mapArray("value",function(x,w){var _=i.getEdgeByIndex(w),b=Cr(x,c,p);isNaN(b)&&(b=(p[0]+p[1])/2);var C=_.getModel(),M=_a(_.getModel().get(["lineStyle","curveness"]),-RS(_,t,w,!0),0);return{n1:v[_.node1.dataIndex],n2:v[_.node2.dataIndex],d:b,curveness:M,ignoreForceLayout:C.get("ignoreForceLayout")}}),m=e.getBoundingRect(),y=tX(v,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(x,w){for(var _=0,b=x.length;_<b;_++)x[_].fixed&&Gn(x[_].p,i.getNodeByIndex(_).getLayout())}),y.afterStep(function(x,w,_){for(var b=0,C=x.length;b<C;b++)x[b].fixed||i.getNodeByIndex(b).setLayout(x[b].p),n[a.getId(b)]=x[b].p;for(var b=0,C=w.length;b<C;b++){var M=w[b],k=i.getEdgeByIndex(b),P=M.n1.p,R=M.n2.p,j=k.getLayout();j=j?j.slice():[],j[0]=j[0]||[],j[1]=j[1]||[],Gn(j[0],P),Gn(j[1],R),+M.curveness&&(j[2]=[(P[0]+R[0])/2-(P[1]-R[1])*M.curveness,(P[1]+R[1])/2-(R[0]-P[0])*M.curveness]),k.setLayout(j)}}),t.forceLayout=y,t.preservedPoints=n,y.step()}else t.forceLayout=null})}function rX(r,t,e){var n=ie(r.getBoxLayoutParams(),{aspect:e});return ln(n,{width:t.getWidth(),height:t.getHeight()})}function nX(r,t){var e=[];return r.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var m=a.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];Jf(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=rX(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var d=l[0]-s[0],h=l[1]-s[1],f=c.width,p=c.height,v=n.coordinateSystem=new mh;v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],d,h),v.setViewRect(c.x,c.y,f,p),v.setCenter(n.get("center"),t),v.setZoom(n.get("zoom")),e.push(v)}}),e}var uE=wn.prototype,VS=Ip.prototype,cE=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),wlt=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(cE);function zS(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var iX=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cE},t.prototype.buildPath=function(e,n){zS(n)?uE.buildPath.call(this,e,n):VS.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return zS(this.shape)?uE.pointAt.call(this,e):VS.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,i=zS(n)?[n.x2-n.x1,n.y2-n.y1]:VS.tangentAt.call(this,e);return xu(i,i)},t}(rr);const aX=iX;var HS=["fromSymbol","toSymbol"];function dE(r){return"_"+r+"Type"}function hE(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=ec(i),u=Sl(o||0,l);return n+l+u+(a||"")+(s||"")}function fE(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=ec(i),u=Sl(o||0,l),c=qr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=r,c}}function oX(r){var t=new aX({name:"line",subPixelOptimize:!0});return FS(t.shape,r),t}function FS(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var sX=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createLine(e,n,i),a}return t.prototype._createLine=function(e,n,i){var a=e.hostModel,o=e.getItemLayout(n),s=oX(o);s.shape.percent=0,Fr(s,{shape:{percent:1}},a,n),this.add(s),U(HS,function(l){var u=fE(l,e,n);this.add(u),this[dE(l)]=hE(l,e,n)},this),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};FS(l.shape,s),lr(o,l,a,n),U(HS,function(u){var c=hE(u,e,n),d=dE(u);if(this[d]!==c){this.remove(this.childOfName(u));var h=fE(u,e,n);this.add(h)}this[d]=c},this),this._updateCommonStl(e,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,d=i&&i.emphasisDisabled,h=i&&i.focus,f=i&&i.blurScope;if(!i||e.hasItemOption){var p=e.getItemModel(n),v=p.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),d=v.get("disabled"),h=v.get("focus"),f=v.get("blurScope"),c=vn(p)}var g=e.getItemVisual(n,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,U(HS,function(b){var C=this.childOfName(b);if(C){C.setColor(m),C.style.opacity=g.opacity;for(var M=0;M<Kn.length;M++){var k=Kn[M],P=o.getState(k);if(P){var R=P.style||{},j=C.ensureState(k),X=j.style||(j.style={});R.stroke!=null&&(X[C.__isEmptyBrush?"stroke":"fill"]=R.stroke),R.opacity!=null&&(X.opacity=R.opacity)}}C.markRedraw()}},this);var y=a.getRawValue(n);In(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,C){return a.getFormattedLabel(b,C,e.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(y==null?e.getName(n):isFinite(y)?Qr(y):y)+""});var x=this.getTextContent();if(x){var w=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=w.get("position")||"middle";var _=w.get("distance");ce(_)||(_=[_,_]),x.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),Xr(this,h,f,d)},t.prototype.highlight=function(){fo(this)},t.prototype.downplay=function(){po(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");FS(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),a=e.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),d=l.pointAt(u),h=Ns([],d,c);xu(h,h);function f(P,R){var j=P.__specifiedRotation;if(j==null){var X=l.tangentAt(R);P.attr("rotation",(R===1?-1:1)*Math.PI/2-Math.atan2(X[1],X[0]))}else P.attr("rotation",j)}if(n&&(n.setPosition(c),f(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(d),f(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var p=void 0,v=void 0,g=a.__labelDistance,m=g[0]*o,y=g[1]*o,x=u/2,w=l.tangentAt(x),_=[w[1],-w[0]],b=l.pointAt(x);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var C=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var M=-Math.atan2(w[1],w[0]);d[0]<c[0]&&(M=Math.PI+M),a.rotation=M}var k=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":k=-y,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":k=y,v="top";break;default:k=0,v="middle"}switch(a.__position){case"end":a.x=h[0]*m+d[0],a.y=h[1]*y+d[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",v=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*m+c[0],a.y=-h[1]*y+c[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",v=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*C+c[0],a.y=c[1]+k,p=w[0]<0?"right":"left",a.originX=-m*C,a.originY=-k;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+k,p="center",a.originY=-k;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*C+d[0],a.y=d[1]+k,p=w[0]>=0?"right":"left",a.originX=m*C,a.originY=-k;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(ze);const WS=sX;var lX=function(){function r(t){this.group=new ze,this._LineCtor=t||WS}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=pE(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pE(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!uX(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(jS(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){as(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(jS(i)){var a=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,n,i,a){var o=t.getItemGraphicEl(n);if(!jS(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,a):o=new this._LineCtor(e,i,a),e.setItemGraphicEl(i,o),this.group.add(o)},r}();function uX(r){return r.animators&&r.animators.length>0}function pE(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:vn(t)}}function vE(r){return isNaN(r[0])||isNaN(r[1])}function jS(r){return r&&!vE(r[0])&&!vE(r[1])}const GS=lX;var US=[],KS=[],YS=[],gc=Sn,XS=Bs,gE=Math.abs;function mE(r,t,e){for(var n=r[0],i=r[1],a=r[2],o=1/0,s,l=e*e,u=.1,c=.1;c<=.9;c+=.1){US[0]=gc(n[0],i[0],a[0],c),US[1]=gc(n[1],i[1],a[1],c);var d=gE(XS(US,t)-l);d<o&&(o=d,s=c)}for(var h=0;h<32;h++){var f=s+u;KS[0]=gc(n[0],i[0],a[0],s),KS[1]=gc(n[1],i[1],a[1],s),YS[0]=gc(n[0],i[0],a[0],f),YS[1]=gc(n[1],i[1],a[1],f);var d=XS(KS,t)-l;if(gE(d)<.01)break;var p=XS(YS,t)-l;u/=2,d<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function ZS(r,t){var e=[],n=Qc,i=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[no(u[0]),no(u[1])],u[2]&&u.__original.push(no(u[2])));var h=u.__original;if(u[2]!=null){if(Gn(i[0],h[0]),Gn(i[1],h[2]),Gn(i[2],h[1]),c&&c!=="none"){var f=Lh(s.node1),p=mE(i,h[0],f*t);n(i[0][0],i[1][0],i[2][0],p,e),i[0][0]=e[3],i[1][0]=e[4],n(i[0][1],i[1][1],i[2][1],p,e),i[0][1]=e[3],i[1][1]=e[4]}if(d&&d!=="none"){var f=Lh(s.node2),p=mE(i,h[1],f*t);n(i[0][0],i[1][0],i[2][0],p,e),i[1][0]=e[1],i[2][0]=e[2],n(i[0][1],i[1][1],i[2][1],p,e),i[1][1]=e[1],i[2][1]=e[2]}Gn(u[0],i[0]),Gn(u[1],i[2]),Gn(u[2],i[1])}else{if(Gn(a[0],h[0]),Gn(a[1],h[1]),Ns(o,a[1],a[0]),xu(o,o),c&&c!=="none"){var f=Lh(s.node1);Ug(a[0],a[0],o,f*t)}if(d&&d!=="none"){var f=Lh(s.node2);Ug(a[1],a[1],o,-f*t)}Gn(u[0],a[0]),Gn(u[1],a[1])}})}function yE(r){return r.type==="view"}var cX=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var i=new ch,a=new GS,o=this.group;this._controller=new vh(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(yE(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):lr(u,c,e)}ZS(e.getGraph(),Eh(e));var d=e.getData();s.updateData(d);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,n,i),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,p);var v=e.get("layout");d.graph.eachNode(function(x){var w=x.dataIndex,_=x.getGraphicEl(),b=x.getModel();if(_){_.off("drag").off("dragend");var C=b.get("draggable");C&&_.on("drag",function(k){switch(v){case"force":f.warmUp(),!a._layouting&&a._startForceLayoutIteration(f,p),f.setFixed(w),d.setItemLayout(w,[_.x,_.y]);break;case"circular":d.setItemLayout(w,[_.x,_.y]),x.setLayout({fixed:!0},!0),BS(e,"symbolSize",x,[k.offsetX,k.offsetY]),a.updateLayout(e);break;case"none":default:d.setItemLayout(w,[_.x,_.y]),OS(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){f&&f.setUnfixed(w)}),_.setDraggable(C,!!b.get("cursor"));var M=b.get(["emphasis","focus"]);M==="adjacency"&&(He(_).focus=x.getAdjacentDataIndices())}}),d.graph.eachEdge(function(x){var w=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);w&&_==="adjacency"&&(He(w).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=d.getLayout("cx"),y=d.getLayout("cy");d.graph.eachNode(function(x){lE(x,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var i=this;(function a(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,d)&&!Dv(u,i,e)}),!yE(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){jx(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Gx(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),ZS(e.getGraph(),Eh(e)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),i=Eh(e);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(e){ZS(e.getGraph(),Eh(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Lr);const dX=cX;var hX=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new fh(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ys(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&i){ZY(this);var s=Kk(a,i,this,!0,l);return U(s.edges,function(u){$Y(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var d=Er.prototype.getModel;function h(p,v){var g=d.call(this,p,v);return g.resolveParentPath=f,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=f,p.getModel=h,p});function f(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(e,i),s=a.graph.getEdgeByIndex(e),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),gn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=rM({series:this,dataIndex:e,multipleSeries:n});return d},t.prototype._updateCategoriesData=function(){var e=de(this.option.categories||[],function(i){return i.value!=null?i:ie({value:0},i)}),n=new kn(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Wr);const fX=hX;var pX={type:"graphRoam",event:"graphRoam",update:"none"};function vX(r){r.registerChartView(dX),r.registerSeriesModel(fX),r.registerProcessor(GY),r.registerVisual(UY),r.registerVisual(KY),r.registerLayout(JY),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,qY),r.registerLayout(eX),r.registerCoordinateSystem("graphView",{dimensions:mh.dimensions,create:nX}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rn),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rn),r.registerAction(pX,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=Jx(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var gX=.3,mX=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new ze,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,d=wE(e);s.diff(l).add(h).update(f).remove(p).execute();function h(g){var m=SE(s,o,g,c,u);$S(m,s,g,d)}function f(g,m){var y=l.getItemGraphicEl(m),x=xE(s,g,c,u);s.setItemGraphicEl(g,y),lr(y,{shape:{points:x}},e,g),na(y),$S(y,s,g,d)}function p(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var v=yX(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=wE(n),u=this._progressiveEls=[],c=e.start;c<e.end;c++){var d=SE(a,this._dataGroup,c,s,o);d.incremental=!0,$S(d,a,c,l),u.push(d)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Lr);function yX(r,t,e){var n=r.model,i=r.getRect(),a=new or({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),Fr(a,{shape:{width:i.width,height:i.height}},t,e),a}function xE(r,t,e,n){for(var i=[],a=0;a<e.length;a++){var o=e[a],s=r.get(r.mapDimension(o),t);xX(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function SE(r,t,e,n,i){var a=xE(r,e,n,i),o=new li({shape:{points:a},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function wE(r){var t=r.get("smooth",!0);return t===!0&&(t=gX),t=lo(t),Uc(t)&&(t=0),{smooth:t}}function $S(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var i=t.getItemModel(e),a=i.getModel("emphasis");An(r,i,"lineStyle"),Xr(r,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function xX(r,t){return t==="category"?r==null:r==null||isNaN(r)}const SX=mX;var wX=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,n){return Va(null,this,{useEncodeDefaulter:Te(bX,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){e===o&&a.push(i.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Wr);function bX(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return U(t.dimensions,function(n){var i=_X(n);e[n]=i}),e}}function _X(r){return+r.replace("dim","")}const CX=wX;var TX=["lineStyle","opacity"],MX={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(i,a){e.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(TX,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};const AX=MX;function IX(r){DX(r),kX(r)}function DX(r){if(!r.parallel){var t=!1;U(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function kX(r){var t=kr(r.parallelAxis);U(t,function(e){if(Be(e)){var n=e.parallelIndex||0,i=kr(r.parallel)[n];i&&i.parallelAxisDefault&&Je(e,i.parallelAxisDefault,!1)}})}var PX=5,EX=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this._model=e,this._api=i,this._handlers||(this._handlers={},U(LX,function(a,o){i.getZr().on(o,this._handlers[o]=Te(a,this))},this)),qu(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){Fd(this,"_throttledDispatchExpand"),U(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(ie({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Zr),LX={mousedown:function(r){JS(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(JS(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>PX)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!JS(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function JS(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const RX=EX;var OX=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Je(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var i=e.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){U(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],i=Ir(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);U(i,function(a){e.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(gr);const NX=OX;var BX=function(r){Yt(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ha);const VX=BX;function Gl(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=mc(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=mc(s,[0,o]),i=a=mc(s,[i,a]),n=0}t[0]=mc(t[0],e),t[1]=mc(t[1],e);var l=QS(t,n);t[n]+=r;var u=i||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=mc(t[n],c);var d;return d=QS(t,n),i!=null&&(d.sign!==l.sign||d.span<i)&&(t[1-n]=t[n]+l.sign*i),d=QS(t,n),a!=null&&d.span>a&&(t[1-n]=t[n]+d.sign*a),t}function QS(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function mc(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var qS=U,bE=Math.min,_E=Math.max,CE=Math.floor,zX=Math.ceil,TE=Qr,HX=Math.PI,FX=function(){function r(t,e,n){this.type="parallel",this._axesMap=Pe(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=t.dimensions,a=t.parallelAxisIndex;qS(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new VX(o,th(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();qS(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Ml(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=ln(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,c=Xv(t.get("axisExpandWidth"),l),d=Xv(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,f=t.get("axisExpandWindow"),p;if(f)p=Xv(f[1]-f[0],l),f[1]=f[0]+p;else{p=Xv(c*(d-1),l);var v=t.get("axisExpandCenter")||CE(u/2);f=[c*v-p/2],f[1]=f[0]+p}var g=(s-p)/(u-d);g<3&&(g=0);var m=[CE(TE(f[0]/c,1))+1,zX(TE(f[1]/c,1))-1],y=g/c*f[0];return{layout:a,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),qS(n,function(o,s){var l=(i.axisExpandable?jX:WX)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:HX/2,vertical:0},d=[u[a].x+t.x,u[a].y+t.y],h=c[a],f=wi();Vs(f,f,h),Ca(f,f,d),this._axesLayout[o]={position:d,rotation:h,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];U(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var d=void 0;if(!u)d="normal";else{d="active";for(var h=t.getValues(s,c),f=0,p=o.length;f<p;f++){var v=l[f].getActiveState(h[f]);if(v==="inactive"){d="inactive";break}}}e(d,c)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return sa([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return Ve(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",c=e.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),h=d[0]!=null;if(c)h&&c&&s<a*d[0]?(u="jump",l=s-a*d[2]):h&&c&&s>a*(1-d[0])?(u="jump",l=s-a*(1-d[2])):(l=s-a*d[1])>=0&&(l=s-a*(1-d[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?Gl(l,i,o,"all"):u="none";else{var f=i[1]-i[0],p=o[1]*s/f;i=[_E(0,p-f/2)],i[1]=bE(o[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},r}();function Xv(r,t){return bE(_E(r,t[0]),t[1])}function WX(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function jX(r,t){var e=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return r<o[0]?(s=r*a,c=a):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(i-1-r)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const GX=FX;function UX(r,t){var e=[];return r.eachComponent("parallel",function(n,i){var a=new GX(n,r,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",sn).models[0];n.coordinateSystem=i.coordinateSystem}}),e}var KX={create:UX};const YX=KX;var ME=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return $s([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=Ve(e);if(n)for(var i=n.length-1;i>=0;i--)Ei(n[i])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=e&&e<=n[a][1])return"active";return"inactive"},t}(gr);en(ME,sc);const AE=ME;var Ul=!0,Rh=Math.min,yc=Math.max,XX=Math.pow,ZX=1e4,$X=6,JX=6,IE="globalPan",QX={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},qX={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DE={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},tZ=0,eZ=function(r){Yt(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new ze,n._uid="brushController_"+tZ++,U(lZ,function(i,a){this._handlers[a]=Te(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||J9(n,IE,this._uid),U(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=Je(Ve(DE),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Q9(e,IE,this._uid),U(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};U(e,function(i){n[i.panelId]=Ve(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=de(e,function(h){return Je(Ve(DE),h,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new xo(i,e,u,l).add(c).update(c).remove(d).execute(),this;function l(h,f){return(h.id!=null?h.id:n+f)+"-"+h.brushType}function u(h,f){return l(h.__brushOption,f)}function c(h,f){var p=e[h];if(f!=null&&i[f]===s)a[h]=i[f];else{var v=a[h]=f!=null?(i[f].__brushOption=p,i[f]):PE(o,kE(o,p));t1(o,v)}}function d(h){i[h]!==s&&o.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),n1(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ii);function kE(r,t){var e=Zv[t.brushType].createCover(r,t);return e.__brushOption=t,LE(e,t),r.group.add(e),e}function PE(r,t){var e=e1(t);return e.endCreating&&(e.endCreating(r,t),LE(t,t.__brushOption)),t}function EE(r,t){var e=t.__brushOption;e1(t).updateCoverShape(r,t,e.range,e)}function LE(r,t){var e=t.z;e==null&&(e=ZX),r.traverse(function(n){n.z=e,n.z2=e})}function t1(r,t){e1(t).updateCommon(r,t),EE(r,t)}function e1(r){return Zv[r.__brushOption.brushType]}function r1(r,t,e){var n=r._panels;if(!n)return Ul;var i,a=r._transform;return U(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function RE(r,t){var e=r._panels;if(!e)return Ul;var n=t.__brushOption.panelId;return n!=null?e[n]:Ul}function n1(r){var t=r._covers,e=t.length;return U(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Kl(r,t){var e=de(r._covers,function(n){var i=n.__brushOption,a=Ve(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function rZ(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=XX(i*i+a*a,.5);return o>$X}function OE(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function NE(r,t,e,n){var i=new ze;return i.add(new or({name:"main",style:a1(e),silent:!0,draggable:!0,cursor:"move",drift:je(zE,r,t,i,["n","s","w","e"]),ondragend:je(Kl,t,{isEnd:!0})})),U(n,function(a){i.add(new or({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:je(zE,r,t,i,a),ondragend:je(Kl,t,{isEnd:!0})}))}),i}function BE(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=yc(i,JX),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,c=e[0][1],d=e[1][1],h=c-a+i/2,f=d-a+i/2,p=c-o,v=d-s,g=p+i,m=v+i;Mo(r,t,"main",o,s,p,v),n.transformable&&(Mo(r,t,"w",l,u,a,m),Mo(r,t,"e",h,u,a,m),Mo(r,t,"n",l,u,g,a),Mo(r,t,"s",l,f,g,a),Mo(r,t,"nw",l,u,a,a),Mo(r,t,"ne",h,u,a,a),Mo(r,t,"sw",l,f,a,a),Mo(r,t,"se",h,f,a,a))}function i1(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(a1(e)),i.attr({silent:!n,cursor:n?"move":"default"}),U([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?o1(r,a[0]):iZ(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?qX[s]+"-resize":null})})}function Mo(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(oZ(s1(r,t,[[n,i],[n+a,i+o]])))}function a1(r){return Ne({strokeNoScale:!0},r.brushStyle)}function VE(r,t,e,n){var i=[Rh(r,e),Rh(t,n)],a=[yc(r,e),yc(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function nZ(r){return yl(r.group)}function o1(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Np(e[t],nZ(r));return n[i]}function iZ(r,t){var e=[o1(r,t[0]),o1(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function zE(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=HE(t,i,a);U(n,function(u){var c=QX[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(VE(s[0][0],s[1][0],s[0][1],s[1][1])),t1(t,e),Kl(t,{isEnd:!1})}function aZ(r,t,e,n){var i=t.__brushOption.range,a=HE(r,e,n);U(i,function(o){o[0]+=a[0],o[1]+=a[1]}),t1(r,t),Kl(r,{isEnd:!1})}function HE(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function s1(r,t,e){var n=RE(r,t);return n&&n!==Ul?n.clipPath(e,r._transform):Ve(e)}function oZ(r){var t=Rh(r[0][0],r[1][0]),e=Rh(r[0][1],r[1][1]),n=yc(r[0][0],r[1][0]),i=yc(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function sZ(r,t,e){if(!(!r._brushType||uZ(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=r1(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Ul||s.panelId===a.panelId)&&Zv[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function l1(r){var t=r.event;t.preventDefault&&t.preventDefault()}function u1(r,t,e){return r.childOfName("main").contain(t,e)}function FE(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),rZ(r)||i){if(a&&!i){o.brushMode==="single"&&n1(r);var l=Ve(o);l.brushType=WE(l.brushType,a),l.panelId=a===Ul?null:a.panelId,i=r._creatingCover=kE(r,l),r._covers.push(i)}if(i){var u=Zv[WE(r._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(s1(r,i,r._track)),n&&(PE(r,i),u.updateCommon(r,i)),EE(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&r1(r,t,e)&&n1(r)&&(s={isEnd:n,removeOnClick:!0});return s}function WE(r,t){return r==="auto"?t.defaultBrushType:r}var lZ={mousedown:function(r){if(this._dragging)jE(this,r);else if(!r.target||!r.target.draggable){l1(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=r1(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(sZ(this,r,n),this._dragging){l1(r);var i=FE(this,r,n,!1);i&&Kl(this,i)}},mouseup:function(r){jE(this,r)}};function jE(r,t){if(r._dragging){l1(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=FE(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&Kl(r,a)}}function uZ(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Zv={lineX:GE(0),lineY:GE(1),rect:{createCover:function(r,t){function e(n){return n}return NE({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=OE(r);return VE(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){BE(r,t,e,n)},updateCommon:i1,contain:u1},polygon:{createCover:function(r,t){var e=new ze;return e.add(new li({name:"main",style:a1(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new si({name:"main",draggable:!0,drift:je(aZ,r,t),ondragend:je(Kl,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:s1(r,t,e)})},updateCommon:i1,contain:u1}};function GE(r){return{createCover:function(t,e){return NE({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=OE(t),n=Rh(e[0][r],e[1][r]),i=yc(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=RE(t,e);if(o!==Ul&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),BE(t,e,l,i)},updateCommon:i1,contain:u1}}const c1=eZ;function UE(r){return r=d1(r),function(t){return RM(t,r)}}function KE(r,t){return r=d1(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function YE(r,t,e){var n=d1(r);return function(i,a){return n.contain(a[0],a[1])&&!Dv(i,t,e)}}function d1(r){return Xe.create(r)}var cZ=["axisLine","axisTickLabel","axisName"],dZ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new c1(n.getZr())).on("brush",Te(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!hZ(e,n,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ze,this.group.add(this._axisGroup),!!e.get("show")){var s=pZ(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,d=e.axis.dim,h=l.getAxisLayout(d),f=ie({strokeContainThreshold:c},h),p=new _o(e,f);U(cZ,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(f,u,e,s,c,i),Vd(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=Xe.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:UE(d),isTargetByCursor:YE(d,s,a),getLinearBrushOtherExtent:KE(d,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(fZ(i))},t.prototype._onBrush=function(e){var n=e.areas,i=this.axisModel,a=i.axis,o=de(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Zr);function hZ(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function fZ(r){var t=r.axis;return de(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function pZ(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const vZ=dZ;var gZ={type:"axisAreaSelect",event:"axisAreaSelected"};function mZ(r){r.registerAction(gZ,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var yZ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function XE(r){r.registerComponentView(RX),r.registerComponentModel(NX),r.registerCoordinateSystem("parallel",YX),r.registerPreprocessor(IX),r.registerComponentModel(AE),r.registerComponentView(vZ),lc(r,"parallel",AE,yZ),mZ(r)}function xZ(r){Ze(XE),r.registerChartView(SX),r.registerSeriesModel(CX),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,AX)}var SZ=["color","borderColor"],wZ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){as(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var d=n.getItemLayout(c);if(s&&ZE(u,d))return;var h=h1(d,c,!0);Fr(h,{shape:{points:d.ends}},e,c),f1(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,d){var h=i.getItemGraphicEl(d);if(!n.hasValue(c)){a.remove(h);return}var f=n.getItemLayout(c);if(s&&ZE(u,f)){a.remove(h);return}h?(lr(h,{shape:{points:f.ends}},e,c),na(h)):h=h1(f,c),f1(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var d=i.getItemGraphicEl(c);d&&a.remove(d)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),$E(e,this.group);var n=e.get("clip",!0)?lh(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),l=h1(s,o);f1(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,n){$E(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Lr),bZ=function(){function r(){}return r}(),_Z=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new bZ},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(rr);function h1(r,t,e){var n=r.ends;return new _Z({shape:{points:e?CZ(n,r):n},z2:100})}function ZE(r,t){for(var e=!0,n=0;n<t.ends.length;n++)if(r.contain(t.ends[n][0],t.ends[n][1])){e=!1;break}return e}function f1(r,t,e,n){var i=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,An(r,i)}function CZ(r,t){return de(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var TZ=function(){function r(){}return r}(),p1=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new TZ},t.prototype.buildPath=function(e,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];e.moveTo(o,i[a++]),e.lineTo(o,i[a++])}else a+=3},t}(rr);function $E(r,t,e,n){var i=r.getData(),a=i.getLayout("largePoints"),o=new p1({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new p1({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new p1({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),v1(1,o,r,i),v1(-1,s,r,i),v1(0,l,r,i),n&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function v1(r,t,e,n){var i=e.get(["itemStyle",r>0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(i=e.get(["itemStyle","borderColorDoji"]));var a=e.getModel("itemStyle").getItemStyle(SZ);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const MZ=wZ;var JE=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,i){var a=n.getItemLayout(e);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Wr);en(JE,Vk,!0);const AZ=JE;function IZ(r){!r||!ce(r.series)||U(r.series,function(t){Be(t)&&t.type==="k"&&(t.type="candlestick")})}var DZ=["itemStyle","borderColor"],kZ=["itemStyle","borderColor0"],PZ=["itemStyle","borderColorDoji"],EZ=["itemStyle","color"],LZ=["itemStyle","color0"],RZ={seriesType:"candlestick",plan:Yu(),performRawSeries:!0,reset:function(r,t){function e(a,o){return o.get(a>0?EZ:LZ)}function n(a,o){return o.get(a===0?PZ:a>0?DZ:kZ)}if(!t.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(u,l),c.stroke=n(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");ie(d,c)}}}}}};const OZ=RZ;var NZ={seriesType:"candlestick",plan:Yu(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=BZ(r,e),i=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),l=de(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),u=l[0],c=l[1],d=l[2],h=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:f};function f(v,g){for(var m,y=g.getStore();(m=v.next())!=null;){var x=y.get(s,m),w=y.get(u,m),_=y.get(c,m),b=y.get(d,m),C=y.get(h,m),M=Math.min(w,_),k=Math.max(w,_),P=Rt(M,x),R=Rt(k,x),j=Rt(b,x),X=Rt(C,x),st=[];wt(st,R,0),wt(st,P,1),st.push(Ft(X),Ft(R),Ft(j),Ft(P));var dt=g.getItemModel(m),xt=!!dt.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:QE(y,m,w,_,c,xt),initBaseline:w>_?R[a]:P[a],ends:st,brushRect:Lt(b,C,x)})}function Rt(Kt,Ut){var Bt=[];return Bt[i]=Ut,Bt[a]=Kt,isNaN(Ut)||isNaN(Kt)?[NaN,NaN]:t.dataToPoint(Bt)}function wt(Kt,Ut,Bt){var Gt=Ut.slice(),Qt=Ut.slice();Gt[i]=Op(Gt[i]+n/2,1,!1),Qt[i]=Op(Qt[i]-n/2,1,!0),Bt?Kt.push(Gt,Qt):Kt.push(Qt,Gt)}function Lt(Kt,Ut,Bt){var Gt=Rt(Kt,Bt),Qt=Rt(Ut,Bt);return Gt[i]-=n/2,Qt[i]-=n/2,{x:Gt[0],y:Gt[1],width:a?n:Qt[0]-Gt[0],height:a?Qt[1]-Gt[1]:n}}function Ft(Kt){return Kt[i]=Op(Kt[i],1),Kt}}function p(v,g){for(var m=za(v.count*4),y=0,x,w=[],_=[],b,C=g.getStore(),M=!!r.get(["itemStyle","borderColorDoji"]);(b=v.next())!=null;){var k=C.get(s,b),P=C.get(u,b),R=C.get(c,b),j=C.get(d,b),X=C.get(h,b);if(isNaN(k)||isNaN(j)||isNaN(X)){m[y++]=NaN,y+=3;continue}m[y++]=QE(C,b,P,R,c,M),w[i]=k,w[a]=j,x=t.dataToPoint(w,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,w[a]=X,x=t.dataToPoint(w,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function QE(r,t,e,n,i,a){var o;return e>n?o=-1:e<n?o=1:o=a?0:t>0?r.get(i,t-1)<=n?1:-1:1,o}function BZ(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=xe(We(r.get("barMaxWidth"),i),i),o=xe(We(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?xe(s,i):Math.max(Math.min(i/2,a),o)}const VZ=NZ;function zZ(r){r.registerChartView(MZ),r.registerSeriesModel(AZ),r.registerPreprocessor(IZ),r.registerVisual(OZ),r.registerLayout(VZ)}function qE(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var HZ=function(r){Yt(t,r);function t(e,n){var i=r.call(this)||this,a=new uh(e,n),o=new ze;return i.add(a),i.add(o),i.updateData(e,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,i=e.color,a=e.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=qr(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}qE(o,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}qE(i,e)},t.prototype.highlight=function(){fo(this)},t.prototype.downplay=function(){po(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var i=this,a=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),s=e.getItemModel(n),l=e.getItemVisual(n,"symbol"),u=ec(e.getItemVisual(n,"symbolSize")),c=e.getItemVisual(n,"style"),d=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",d)});var f=Sl(e.getItemVisual(n,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[1]);var p=e.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var v={};v.showEffectOn=a.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=n/e.count(),v.z=a.getShallow("z")||0,v.zlevel=a.getShallow("zlevel")||0,v.symbolType=l,v.color=d,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?v.showEffectOn!=="render"&&i.startEffectAnimation(v):g==="normal"&&v.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=v,Xr(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(ze);const FZ=HZ;var WZ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new ch(FZ)},t.prototype.render=function(e,n,i){var a=e.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,i=n&&n.getArea&&n.getArea();return e.get("clip",!0)?i:null},t.prototype.updateTransform=function(e,n,i){var a=e.getData();this.group.dirty();var o=dh("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=eB(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Lr);const jZ=WZ;var GZ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Va(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Wr);const UZ=GZ;function KZ(r){r.registerChartView(jZ),r.registerSeriesModel(UZ),r.registerLayout(dh("effectScatter"))}var YZ=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this)||this;return a.add(a.createLine(e,n,i)),a._updateEffectSymbol(e,n),a}return t.prototype.createLine=function(e,n,i){return new WS(e,n,i)},t.prototype._updateEffectSymbol=function(e,n){var i=e.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");ce(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=qr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,a,n))},t.prototype._updateEffectAnimation=function(e,n,i){var a=this.childAt(1);if(a){var o=e.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),d=xn(n.get("delay"),function(f){return f/e.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;Re(d)?h=d(i):h=d,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,i,a,o){if(n>0){e.__t=0;var s=this,l=e.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});a||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Wo(e.__p1,e.__cp1)+Wo(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,i){this.childAt(0).updateData(e,n,i),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,i=e.__p2,a=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Sn,c=u0;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var d=e.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=e.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);e.rotation=-Math.atan2(h,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Wo(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*Wo(n,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,n){this.childAt(0).updateLayout(e,n);var i=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,i,n)},t}(ze);const tL=YZ;var XZ=function(r){Yt(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createPolyline(e,n,i),a}return t.prototype._createPolyline=function(e,n,i){var a=e.getItemLayout(n),o=new li({shape:{points:a}});this.add(o),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};lr(o,s,a,n),this._updateCommonStl(e,n,i)},t.prototype._updateCommonStl=function(e,n,i){var a=this.childAt(0),o=e.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var d=o.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),c=d.get("disabled"),l=d.get("focus"),u=d.get("blurScope")}a.useStyle(e.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var h=a.ensureState("emphasis");h.style=s,Xr(this,l,u,c)},t.prototype.updateLayout=function(e,n){var i=this.childAt(0);i.setShape("points",e.getItemLayout(n))},t}(ze);const eL=XZ;var ZZ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,n,i){return new eL(e,n,i)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=Wo(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<1?e.__t:2-e.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),d=i[l],h=i[l+1];e.x=d[0]*(1-c)+c*h[0],e.y=d[1]*(1-c)+c*h[1];var f=e.__t<1?h[0]-d[0]:d[0]-h[0],p=e.__t<1?h[1]-d[1]:d[1]-h[1];e.rotation=-Math.atan2(p,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(tL);const $Z=ZZ;var JZ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),QZ=function(r){Yt(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JZ},t.prototype.buildPath=function(e,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){e.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],d=i[o++],h=i[o++];if(e.moveTo(u,c),a>0){var f=(u+d)/2-(c-h)*a,p=(c+h)/2-(d-u)*a;e.quadraticCurveTo(f,p,d,h)}else e.lineTo(d,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var d=a[u++],h=a[u++],f=1;f<c;f++){var p=a[u++],v=a[u++];if(Qo(d,h,p,v,s,e,n))return l}l++}else for(var l=0,u=0;u<a.length;){var d=a[u++],h=a[u++],p=a[u++],v=a[u++];if(o>0){var g=(d+p)/2-(h-v)*o,m=(h+v)/2-(p-d)*o;if(V_(d,h,g,m,p,v,s,e,n))return l}else if(Qo(d,h,p,v,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],d=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(d,o),l=Math.max(d,l)}e=this._rect=new Xe(a,o,s,l)}return e},t}(rr),qZ=function(){function r(){this.group=new ze}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new QZ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=He(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const t$=qZ;var e$={seriesType:"lines",plan:Yu(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(e){for(var u=0,c=i.start;c<i.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var d=0,h=[],c=i.start;c<i.end;c++){var f=r.getLineCoords(c,o);e&&(s[d++]=f);for(var p=0;p<f;p++)h=t.dataToPoint(o[p],!1,h),s[d++]=h[0],s[d++]=h[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var v=a.getItemModel(c),f=r.getLineCoords(c,o),g=[];if(e)for(var m=0;m<f;m++)g.push(t.dataToPoint(o[m]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var y=v.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}a.setItemLayout(c,g)}}}}}};const rL=e$;var r$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateLineDraw(a,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var d=e.get("clip",!0)&&lh(e.coordinateSystem,!1,e);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateLineDraw(a,e);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,i){var a=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=rL.reset(e,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new t$:new GS(o?a?$Z:eL:a?tL:WS),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(Lr);const n$=r$;var i$=typeof Uint32Array>"u"?Array:Uint32Array,a$=typeof Float64Array>"u"?Array:Float64Array;function nL(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=de(t,function(e){var n=[e[0].coord,e[1].coord],i={coords:n};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),Hg([i,e[0],e[1]])}))}var o$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],nL(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(nL(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=vf(this._flatCoords,n.flatCoords),this._flatCoordsOffset=vf(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],a=this._flatCoordsOffset[e*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),vr(e[0])){for(var i=e.length,a=new i$(i),o=new a$(i),s=0,l=0,u=0,c=0;c<i;){u++;var d=e[c++];a[l++]=s+n,a[l++]=d;for(var h=0;h<d;h++){var f=e[c++],p=e[c++];o[s++]=f,o[s++]=p,c>i}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){if(0)var i;var a=new kn(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;a.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),a},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=a.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),gn("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Wr);const s$=o$;function $v(r){return r instanceof Array||(r=[r,r]),r}var l$={seriesType:"lines",reset:function(r){var t=$v(r.get("symbol")),e=$v(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function i(a,o){var s=a.getItemModel(o),l=$v(s.getShallow("symbol",!0)),u=$v(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const u$=l$;function c$(r){r.registerChartView(n$),r.registerSeriesModel(s$),r.registerLayout(rL),r.registerVisual(u$)}var d$=256,h$=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ji.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,h=d.getContext("2d"),f=t.length;d.width=e,d.height=n;for(var p=0;p<f;++p){var v=t[p],g=v[0],m=v[1],y=v[2],x=i(y);h.globalAlpha=x,h.drawImage(s,g-c,m-c)}if(!d.width||!d.height)return d;for(var w=h.getImageData(0,0,d.width,d.height),_=w.data,b=0,C=_.length,M=this.minOpacity,k=this.maxOpacity,P=k-M;b<C;){var x=_[b+3]/256,R=Math.floor(x*(d$-1))*4;if(x>0){var j=o(x)?l:u;x>0&&(x=x*P+M),_[b++]=j[R],_[b++]=j[R+1],_[b++]=j[R+2],_[b++]=j[R+3]*x*256}else b+=4}return h.putImageData(w,0,0),d},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ji.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},r}();const f$=h$;function p$(r,t,e){var n=r[1]-r[0];t=de(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&e[s]}}function v$(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(n){return n>=t[0]&&n<=t[1]}}function iL(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var g$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):iL(o)&&this._renderOnGeo(o,e,a,i)},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,i,a){var o=n.coordinateSystem;o&&(iL(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){as(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,i,a,o){var s=e.coordinateSystem,l=El(s,"cartesian2d"),u,c,d,h;if(l){var f=s.getAxis("x"),p=s.getAxis("y");u=f.getBandWidth()+.5,c=p.getBandWidth()+.5,d=f.scale.getExtent(),h=p.scale.getExtent()}for(var v=this.group,g=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),x=e.getModel(["select","itemStyle"]).getItemStyle(),w=e.get(["itemStyle","borderRadius"]),_=vn(e),b=e.getModel("emphasis"),C=b.get("focus"),M=b.get("blurScope"),k=b.get("disabled"),P=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],R=i;R<a;R++){var j=void 0,X=g.getItemVisual(R,"style");if(l){var st=g.get(P[0],R),dt=g.get(P[1],R);if(isNaN(g.get(P[2],R))||isNaN(st)||isNaN(dt)||st<d[0]||st>d[1]||dt<h[0]||dt>h[1])continue;var xt=s.dataToPoint([st,dt]);j=new or({shape:{x:xt[0]-u/2,y:xt[1]-c/2,width:u,height:c},style:X})}else{if(isNaN(g.get(P[1],R)))continue;j=new or({z2:1,shape:s.dataToRect([g.get(P[0],R)]).contentShape,style:X})}if(g.hasItemOption){var Rt=g.getItemModel(R),wt=Rt.getModel("emphasis");m=wt.getModel("itemStyle").getItemStyle(),y=Rt.getModel(["blur","itemStyle"]).getItemStyle(),x=Rt.getModel(["select","itemStyle"]).getItemStyle(),w=Rt.get(["itemStyle","borderRadius"]),C=wt.get("focus"),M=wt.get("blurScope"),k=wt.get("disabled"),_=vn(Rt)}j.shape.r=w;var Lt=e.getRawValue(R),Ft="-";Lt&&Lt[2]!=null&&(Ft=Lt[2]+""),In(j,_,{labelFetcher:e,labelDataIndex:R,defaultOpacity:X.opacity,defaultText:Ft}),j.ensureState("emphasis").style=m,j.ensureState("blur").style=y,j.ensureState("select").style=x,Xr(j,C,M,k),j.incremental=o,o&&(j.states.emphasis.hoverLayer=!0),v.add(j),g.setItemGraphicEl(R,j),this._progressiveEls&&this._progressiveEls.push(j)}},t.prototype._renderOnGeo=function(e,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new f$;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=e.getViewRect().clone(),d=e.getRoamTransform();c.applyTransform(d);var h=Math.max(c.x,0),f=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-h,m=v-f,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(C,M,k){var P=e.dataToPoint([C,M]);return P[0]-=h,P[1]-=f,P.push(k),P}),w=i.getExtent(),_=i.type==="visualMap.continuous"?v$(w,i.option.range):p$(w,i.getPieceList(),i.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new Mn({style:{width:g,height:m,x:h,y:f,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Lr);const m$=g$;var y$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Va(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Id.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Wr);const x$=y$;function S$(r){r.registerChartView(m$),r.registerSeriesModel(x$)}var w$=["itemStyle","borderWidth"],aL=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],g1=new yo,b$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:aL[+c],categoryDim:aL[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var v=hL(o,p),g=oL(o,p,v,h),m=fL(o,h,g);o.setItemGraphicEl(p,m),a.add(m),gL(m,h,g)}}).update(function(p,v){var g=s.getItemGraphicEl(v);if(!o.hasValue(p)){a.remove(g);return}var m=hL(o,p),y=oL(o,p,m,h),x=vL(o,y);g&&x!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(p,null),g=null),g?D$(g,h,y):g=fL(o,h,y,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=y,a.add(g),gL(g,h,y)}).remove(function(p){var v=s.getItemGraphicEl(p);v&&pL(s,p,v.__pictorialSymbolMeta.animationModel,v)}).execute();var f=e.get("clip",!0)?lh(e.coordinateSystem,!1,e):null;return f?a.setClipPath(f):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var i=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl(function(o){pL(a,He(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(Lr);function oL(r,t,e,n){var i=r.getItemLayout(t),a=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,d=e.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?e:null,hoverScale:d&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};_$(e,a,i,n,h),C$(r,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),T$(e,h.symbolScale,u,n,h);var f=h.symbolSize,p=Sl(e.get("symbolOffset"),f);return M$(e,f,i,a,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function _$(r,t,e,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[a.wh]<=0),c;if(ce(o)){var d=[m1(s,o[0])-l,m1(s,o[1])-l];d[1]<d[0]&&d.reverse(),c=d[u]}else o!=null?c=m1(s,o)-l:t?c=n.coordSysExtent[a.index][u]-l:c=e[a.wh];i.boundingLength=c,t&&(i.repeatCutLength=e[a.wh]),i.pxSign=c>0?1:-1}function m1(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function C$(r,t,e,n,i,a,o,s,l,u){var c=l.valueDim,d=l.categoryDim,h=Math.abs(e[d.wh]),f=r.getItemVisual(t,"symbolSize"),p;ce(f)?p=f.slice():f==null?p=["100%","100%"]:p=[f,f],p[d.index]=xe(p[d.index],h),p[c.index]=xe(p[c.index],n?h:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function T$(r,t,e,n,i){var a=r.get(w$)||0;a&&(g1.attr({scaleX:t[0],scaleY:t[1],rotation:e}),g1.updateTransform(),a/=g1.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function M$(r,t,e,n,i,a,o,s,l,u,c,d){var h=c.categoryDim,f=c.valueDim,p=d.pxSign,v=Math.max(t[f.index]+s,0),g=v;if(n){var m=Math.abs(l),y=xn(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var w=xe(y,t[f.index]),_=Math.max(v+w*2,0),b=x?0:w*2,C=v_(n),M=C?n:mL((m+b)/_),k=m-M*v;w=k/2/(x?M:Math.max(M-1,1)),_=v+w*2,b=x?0:w*2,!C&&n!=="fixed"&&(M=u?mL((Math.abs(u)+b)/_):0),g=M*_-b,d.repeatTimes=M,d.symbolMargin=w}var P=p*(g/2),R=d.pathPosition=[];R[h.index]=e[h.wh]/2,R[f.index]=o==="start"?P:o==="end"?l-P:l/2,a&&(R[0]+=a[0],R[1]+=a[1]);var j=d.bundlePosition=[];j[h.index]=e[h.xy],j[f.index]=e[f.xy];var X=d.barRectShape=ie({},e);X[f.wh]=p*Math.max(Math.abs(e[f.wh]),Math.abs(R[f.index]+P)),X[h.wh]=e[h.wh];var st=d.clipShape={};st[h.xy]=-e[h.xy],st[h.wh]=c.ecSize[h.wh],st[f.xy]=0,st[f.wh]=e[f.wh]}function sL(r){var t=r.symbolPatternSize,e=qr(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function lL(r,t,e,n){var i=r.__pictorialBundle,a=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,d=a[t.valueDim.index]+o+e.symbolMargin*2;for(y1(r,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?xc(v,null,p(c),e,n):xc(v,null,{scaleX:0,scaleY:0},e,n,function(){i.remove(v)}),c++});c<u;c++){var h=sL(e);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,i.add(h);var f=p(c);xc(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},e,n)}function p(v){var g=s.slice(),m=e.pxSign,y=v;return(e.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-v),g[l.index]=d*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function uL(r,t,e,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?xc(a,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(a=r.__pictorialMainPath=sL(e),i.add(a),xc(a,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function cL(r,t,e){var n=ie({},t.barRectShape),i=r.__pictorialBarRect;i?xc(i,null,{shape:n},t,e):(i=r.__pictorialBarRect=new or({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function dL(r,t,e,n){if(e.symbolClip){var i=r.__pictorialClipPath,a=ie({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)lr(i,{shape:a},s,l);else{a[o.wh]=0,i=new or({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],F[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function hL(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=A$,e.isAnimationEnabled=I$,e}function A$(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function I$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fL(r,t,e,n){var i=new ze,a=new ze;return i.add(a),i.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?lL(i,t,e):uL(i,t,e),cL(i,e,n),dL(i,t,e,n),i.__pictorialShapeStr=vL(r,e),i.__pictorialSymbolMeta=e,i}function D$(r,t,e){var n=e.animationModel,i=e.dataIndex,a=r.__pictorialBundle;lr(a,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,i),e.symbolRepeat?lL(r,t,e,!0):uL(r,t,e,!0),cL(r,e,!0),dL(r,t,e,!0)}function pL(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];y1(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),U(a,function(o){ts(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function vL(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function y1(r,t,e){U(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function xc(r,t,e,n,i,a){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&F[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,a)}function gL(r,t,e){var n=e.dataIndex,i=e.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),d=a.get("blurScope"),h=a.get("scale");y1(r,function(v){if(v instanceof Mn){var g=v.style;v.useStyle(ie({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else v.useStyle(e.style);var m=v.ensureState("emphasis");m.style=o,h&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=e.z2});var f=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,In(p,vn(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:cc(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:f}),Xr(r,c,d,a.get("disabled"))}function mL(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const k$=b$;var P$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=es(Sv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Sv);const E$=P$;function L$(r){r.registerChartView(k$),r.registerSeriesModel(E$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,je(d2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,h2("pictorialBar"))}var R$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function h(g){return g.name}var f=new xo(this._layersSeries||[],l,h,h),p=[];f.add(Te(v,this,"add")).update(Te(v,this,"update")).remove(Te(v,this,"remove")).execute();function v(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var w=[],_=[],b,C=l[m].indices,M=0;M<C.length;M++){var k=a.getItemLayout(C[M]),P=k.x,R=k.y0,j=k.y;w.push(P,R),_.push(P,R+j),b=a.getItemVisual(C[M],"style")}var X,st=a.getItemLayout(C[0]),dt=e.getModel("label"),xt=dt.get("margin"),Rt=e.getModel("emphasis");if(g==="add"){var wt=p[m]=new ze;X=new xD({shape:{points:w,stackedOnPoints:_,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),wt.add(X),s.add(wt),e.isAnimationEnabled()&&X.setClipPath(O$(X.getBoundingRect(),e,function(){X.removeClipPath()}))}else{var wt=x[y];X=wt.childAt(0),s.add(wt),p[m]=wt,lr(X,{shape:{points:w,stackedOnPoints:_}},e),na(X)}In(X,vn(e),{labelDataIndex:C[M-1],defaultText:a.getName(C[M-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),X.setTextConfig({position:null,local:!0});var Lt=X.getTextContent();Lt&&(Lt.x=st.x-xt,Lt.y=st.y0+st.y/2),X.useStyle(b),a.setItemGraphicEl(m,X),An(X,e),Xr(X,Rt.get("focus"),Rt.get("blurScope"),Rt.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(Lr);function O$(r,t,e){var n=new or({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Fr(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}const N$=R$;var x1=2,B$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new fh(Te(this.getData,this),Te(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,i={},a=K0(e,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];a.buckets.each(function(h,f){o.push({name:f,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var d=o[l].dataList[c][0]+"";i[d]=l}for(var d in i)i.hasOwnProperty(d)&&i[d]!==l&&(i[d]=l,e[n]=[d,0,u],n++)}return e},t.prototype.getInitialData=function(e,n){for(var i=this.getReferringComponents("singleAxis",sn).models[0],a=i.get("type"),o=Ir(e.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Pe(),c=0,d=0;d<s.length;++d)l.push(s[d][x1]),u.get(s[d][x1])||(u.set(s[d][x1],c),c++);var h=ac(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:tv(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new kn(h,this);return f.initData(s),f},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),i=[],a=0;a<n;++a)i[a]=a;var o=e.mapDimension("single"),s=K0(i,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(d,h){return e.get(o,d)-e.get(o,h)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,n,i){ce(e)||(e=e?[e]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var d=Number.MAX_VALUE,h=-1,f=o[c].indices.length,p=0;p<f;++p){var v=a.get(e[0],o[c].indices[p]),g=Math.abs(v-n);g<=d&&(u=v,d=g,h=o[c].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=a.getName(e),s=a.get(a.mapDimension("value"),e);return gn("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Wr);const V$=B$;function z$(r,t){r.eachSeriesByType("themeRiver",function(e){var n=e.getData(),i=e.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=e.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=xe(s[0],o.height),s[1]=xe(s[1],o.height);var u=o.height-s[0]-s[1];yL(n,e,u)}else{s[0]=xe(s[0],o.width),s[1]=xe(s[1],o.width);var c=o.width-s[0]-s[1];yL(n,e,c)}n.setLayout("layoutInfo",a)})}function yL(r,t,e){if(r.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=r.mapDimension("single"),o=r.mapDimension("value"),s=de(i,function(g){return de(g.indices,function(m){var y=n.dataToPoint(r.get(a,m));return y[1]=r.get(o,m),y})}),l=H$(s),u=l.y0,c=e/l.max,d=i.length,h=i[0].indices.length,f,p=0;p<h;++p){f=u[p]*c,r.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:f,y:s[0][p][1]*c});for(var v=1;v<d;++v)f+=s[v-1][p][1]*c,r.setItemLayout(i[v].indices[p],{layerIndex:v,x:s[v][p][0],y0:f,y:s[v][p][1]*c})}}function H$(r){for(var t=r.length,e=r[0].length,n=[],i=[],a=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<e;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<e;++c){var d=n[c]+i[c];d>a&&(a=d)}return{y0:i,max:a}}function F$(r){r.registerChartView(N$),r.registerSeriesModel(V$),r.registerLayout(z$),r.registerProcessor(hh("themeRiver"))}var xL={color:"fill",borderColor:"stroke"},W$={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ao=cr(),j$=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return Va(null,this)},t.prototype.getDataParams=function(e,n,i){var a=r.prototype.getDataParams.call(this,e,n);return i&&(a.info=Ao(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Wr);const G$=j$;function U$(r,t){return t=t||[0,0],de(["x","y"],function(e,n){var i=this.getAxis(e),a=t[n],o=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function K$(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Te(U$,r)}}}function Y$(r,t){return t=t||[0,0],de([0,1],function(e){var n=t[e],i=r[e]/2,a=[],o=[];return a[e]=n-i,o[e]=n+i,a[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)}function X$(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:Te(Y$,r)}}}function Z$(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-i)-e.dataToCoord(n+i))}function $$(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Te(Z$,r)}}}function J$(r,t){return t=t||[0,0],de(["Radius","Angle"],function(e,n){var i="get"+e+"Axis",a=this[i](),o=t[n],s=r[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function Q$(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Te(J$,r)}}}function q$(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,i){return r.dataToPoint(n,i)}}}}var blt={};function SL(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||De(r,"text")))}function wL(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},De(n,"text")&&(o.text=n.text),De(n,"rich")&&(o.rich=n.rich),De(n,"textFill")&&(o.fill=n.textFill),De(n,"textStroke")&&(o.stroke=n.textStroke),De(n,"fontFamily")&&(o.fontFamily=n.fontFamily),De(n,"fontSize")&&(o.fontSize=n.fontSize),De(n,"fontStyle")&&(o.fontStyle=n.fontStyle),De(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=De(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),De(n,"textPosition")&&(i.position=n.textPosition),De(n,"textOffset")&&(i.offset=n.textOffset),De(n,"textRotation")&&(i.rotation=n.textRotation),De(n,"textDistance")&&(i.distance=n.textDistance)}return bL(o,r),U(o.rich,function(l){bL(l,l)}),{textConfig:i,textContent:a}}function bL(r,t){t&&(t.font=t.textFont||t.font,De(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),De(t,"textAlign")&&(r.align=t.textAlign),De(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),De(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),De(t,"textWidth")&&(r.width=t.textWidth),De(t,"textHeight")&&(r.height=t.textHeight),De(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),De(t,"textPadding")&&(r.padding=t.textPadding),De(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),De(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),De(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),De(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),De(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),De(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),De(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function _L(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var i=n.textPosition.indexOf("inside")>=0,a=r.fill||"#000";CL(n,t);var o=n.textFill==null;return i?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,U(t.rich,function(s){CL(s,s)}),n}function CL(r,t){t&&(De(t,"fill")&&(r.textFill=t.fill),De(t,"stroke")&&(r.textStroke=t.fill),De(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),De(t,"font")&&(r.font=t.font),De(t,"fontStyle")&&(r.fontStyle=t.fontStyle),De(t,"fontWeight")&&(r.fontWeight=t.fontWeight),De(t,"fontSize")&&(r.fontSize=t.fontSize),De(t,"fontFamily")&&(r.fontFamily=t.fontFamily),De(t,"align")&&(r.textAlign=t.align),De(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),De(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),De(t,"width")&&(r.textWidth=t.width),De(t,"height")&&(r.textHeight=t.height),De(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),De(t,"padding")&&(r.textPadding=t.padding),De(t,"borderColor")&&(r.textBorderColor=t.borderColor),De(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),De(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),De(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),De(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),De(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),De(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),De(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),De(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),De(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),De(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}function _lt(r,t){if(0)var e}var TL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ML=nr(TL),Clt=ba(Aa,function(r,t){return r[t]=1,r},{}),Tlt=Aa.join(", "),Jv=["","style","shape","extra"],Sc=cr();function S1(r,t,e,n,i){var a=r+"Animation",o=Lu(r,n,i)||{},s=Sc(t).userDuring;return o.duration>0&&(o.during=s?Te(iJ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),ie(o,e[a]),o}function Qv(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Sc(r),u=t.style;l.userDuring=t.during;var c={},d={};if(oJ(r,t,d),DL("shape",t,d),DL("extra",t,d),!a&&s&&(aJ(r,t,c),IL("shape",r,t,c),IL("extra",r,t,c),sJ(r,t,u,c)),d.style=u,tJ(r,d,o),rJ(r,t),s)if(a){var h={};U(Jv,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(h[p]=h[p]||{}),ie(p?h[p]:h,v.enterFrom))});var f=S1("enter",r,t,e,i);f.duration>0&&r.animateFrom(h,f)}else eJ(r,t,i||0,e,c);AL(r,t),u?r.dirty():r.markRedraw()}function AL(r,t){for(var e=Sc(r).leaveToProps,n=0;n<Jv.length;n++){var i=Jv[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=Sc(r).leaveToProps={}),i&&(e[i]=e[i]||{}),ie(i?e[i]:e,a.leaveTo))}}function qv(r,t,e,n){if(r){var i=r.parent,a=Sc(r).leaveToProps;if(a){var o=S1("update",r,t,e,0);o.done=function(){i.remove(r),n&&n()},r.animateTo(a,o)}else i.remove(r),n&&n()}}function Yl(r){return r==="all"}function tJ(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function eJ(r,t,e,n,i){if(i){var a=S1("update",r,t,n,e);a.duration>0&&r.animateFrom(i,a)}}function rJ(r,t){De(t,"silent")&&(r.silent=t.silent),De(t,"ignore")&&(r.ignore=t.ignore),r instanceof Li&&De(t,"invisible")&&(r.invisible=t.invisible),r instanceof rr&&De(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Ga={},nJ={setTransform:function(r,t){return Ga.el[r]=t,this},getTransform:function(r){return Ga.el[r]},setShape:function(r,t){var e=Ga.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Ga.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Ga.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Ga.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Ga.el.extra||(Ga.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Ga.el.extra;if(t)return t[r]}};function Mlt(r){}function iJ(){var r=this,t=r.el;if(t){var e=Sc(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Ga.el=t,n(nJ)}}function IL(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),Yl(l))ie(o,a);else for(var u=kr(l),c=0;c<u.length;c++){var d=u[c],h=a[d];o[d]=h}else if(Yl(s)||tr(s,r)>=0){!o&&(o=n[r]={});for(var f=nr(a),c=0;c<f.length;c++){var d=f[c],h=a[d];lJ(i[d],h)&&(o[d]=h)}}}}}function DL(r,t,e){var n=t[r];if(n)for(var i=e[r]={},a=nr(n),o=0;o<a.length;o++){var s=a[o];i[s]=id(n[s])}}function aJ(r,t,e){for(var n=t.transition,i=Yl(n)?Aa:kr(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function oJ(r,t,e){for(var n=0;n<ML.length;n++){var i=ML[n],a=TL[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var n=0;n<Aa.length;n++){var s=Aa[n];t[s]!=null&&(e[s]=t[s])}}function sJ(r,t,e,n){if(e){var i=r.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!Yl(o)){var l=kr(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],d=i[c];a[c]=d}}else if(r.getAnimationStyleProps&&(Yl(s)||Yl(o)||tr(s,"style")>=0)){var h=r.getAnimationStyleProps(),f=h?h.style:null;if(f){!a&&(a=n.style={});for(var p=nr(e),u=0;u<p.length;u++){var c=p[u];if(f[c]){var d=i[c];a[c]=d}}}}}}}function lJ(r,t){return En(r)?r!==t:r!=null&&isFinite(r)}var Alt,kL=cr(),uJ=["percent","easing","shape","style","extra"];function PL(r){r.stopAnimation("keyframe"),r.attr(kL(r))}function tg(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(ce(t)){U(t,function(s){tg(r,s,e)});return}var n=t.keyframes,i=t.duration;if(e&&i==null){var a=Lu("enter",e,0);i=a&&a.duration}if(!(!n||!i)){var o=kL(r);U(Jv,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(c,d){return c.percent-d.percent}),U(n,function(c){var d=r.animators,h=s?c[s]:c;if(h){var f=nr(h);if(s||(f=Ir(f,function(g){return tr(uJ,g)<0})),!!f.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var p=0;p<d.length;p++)d[p]!==l&&d[p].targetName===l.targetName&&d[p].stopTracks(f);s&&(o[s]=o[s]||{});var v=s?o[s]:o;U(f,function(g){v[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(i*c.percent,h,f,c.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var Io="emphasis",gs="normal",w1="blur",b1="select",ms=[gs,Io,w1,b1],_1={normal:["itemStyle"],emphasis:[Io,"itemStyle"],blur:[w1,"itemStyle"],select:[b1,"itemStyle"]},C1={normal:["label"],emphasis:[Io,"label"],blur:[w1,"label"],select:[b1,"label"]},cJ=["x","y"],dJ="e\0\0",Gi={normal:{},emphasis:{},blur:{},select:{}},hJ={cartesian2d:K$,geo:X$,single:$$,polar:Q$,calendar:q$};function T1(r){return r instanceof rr}function M1(r){return r instanceof Li}function fJ(r,t){t.copyTransform(r),M1(t)&&M1(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,T1(t)&&T1(r)&&t.setShape(r.shape))}var pJ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=LL(e,s,n,i);o||l.removeAll(),s.diff(o).add(function(d){D1(i,null,d,u(d,a),e,l,s)}).remove(function(d){var h=o.getItemGraphicEl(d);h&&qv(h,Ao(h).option,e)}).update(function(d,h){var f=o.getItemGraphicEl(h);D1(i,f,d,u(d,a),e,l,s)}).execute();var c=e.get("clip",!0)?lh(e.coordinateSystem,!1,e):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,i,a,o){var s=n.getData(),l=LL(n,s,i,a),u=this._progressiveEls=[];function c(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var d=e.start;d<e.end;d++){var h=D1(null,null,d,l(d,o),n,this.group,s);h&&(h.traverse(c),u.push(h))}},t.prototype.eachRendered=function(e){as(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(Lr);const vJ=pJ;function A1(r){var t=r.type,e;if(t==="path"){var n=r.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=VL(n);e=$u(a,null,i,n.layout||"center"),Ao(e).customPathData=a}else if(t==="image")e=new Mn({}),Ao(e).customImagePath=r.style.image;else if(t==="text")e=new ar({});else if(t==="group")e=new ze;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=fy(t);if(!o){var s="";_r(s)}e=new o}return Ao(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function I1(r,t,e,n,i,a,o){PL(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=cJ);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;De(u,"textFill")&&(u.fill=u.textFill),De(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=T1(t)?l.decal:null;r&&d&&(d.dirty=!0,c=nc(d,r)),l.__decalPattern=c}if(M1(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Qv(t,n,a,{dataIndex:e,isInit:o,clearStyle:!0}),tg(t,n.keyframeAnimation,a)}function EL(r,t,e,n,i){var a=t.isGroup?null:t,o=i&&i[r].cfg;if(a){var s=a.ensureState(r);if(n===!1){var l=a.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),ol(a)}}function gJ(r,t,e){if(!r.isGroup){var n=r,i=e.currentZ,a=e.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<ms.length;s++)mJ(n,t,ms[s])}}function mJ(r,t,e){var n=e===gs,i=n?t:eg(t,e),a=i?i.z2:null,o;a!=null&&(o=n?r:r.ensureState(e),o.z2=a||0)}function LL(r,t,e,n){var i=r.get("renderItem"),a=r.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):hJ[a.type](a));for(var s=Ne({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:b,ordinalRawValue:_,styleEmphasis:C,visual:P,barLayout:R,currentSeriesIndices:j,font:X},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:yJ(r.getData())},u,c,d={},h={},f={},p={},v=0;v<ms.length;v++){var g=ms[v];f[g]=r.getModel(_1[g]),p[g]=r.getModel(C1[g])}function m(st){return st===u?c||(c=t.getItemModel(st)):t.getItemModel(st)}function y(st,dt){return t.hasItemOption?st===u?d[dt]||(d[dt]=m(st).getModel(_1[dt])):m(st).getModel(_1[dt]):f[dt]}function x(st,dt){return t.hasItemOption?st===u?h[dt]||(h[dt]=m(st).getModel(C1[dt])):m(st).getModel(C1[dt]):p[dt]}return function(st,dt){return u=st,c=null,d={},h={},i&&i(Ne({dataIndexInside:st,dataIndex:t.getRawIndex(st),actionType:dt?dt.type:null},l),s)};function w(st,dt){return dt==null&&(dt=u),t.getStore().get(t.getDimensionIndex(st||0),dt)}function _(st,dt){dt==null&&(dt=u),st=st||0;var xt=t.getDimensionInfo(st);if(!xt){var Rt=t.getDimensionIndex(st);return Rt>=0?t.getStore().get(Rt,dt):void 0}var wt=t.get(xt.name,dt),Lt=xt&&xt.ordinalMeta;return Lt?Lt.categories[wt]:wt}function b(st,dt){dt==null&&(dt=u);var xt=t.getItemVisual(dt,"style"),Rt=xt&&xt.fill,wt=xt&&xt.opacity,Lt=y(dt,gs).getItemStyle();Rt!=null&&(Lt.fill=Rt),wt!=null&&(Lt.opacity=wt);var Ft={inheritColor:_e(Rt)?Rt:"#000"},Kt=x(dt,gs),Ut=Or(Kt,null,Ft,!1,!0);Ut.text=Kt.getShallow("show")?We(r.getFormattedLabel(dt,gs),cc(t,dt)):null;var Bt=ap(Kt,Ft,!1);return k(st,Lt),Lt=_L(Lt,Ut,Bt),st&&M(Lt,st),Lt.legacy=!0,Lt}function C(st,dt){dt==null&&(dt=u);var xt=y(dt,Io).getItemStyle(),Rt=x(dt,Io),wt=Or(Rt,null,null,!0,!0);wt.text=Rt.getShallow("show")?_a(r.getFormattedLabel(dt,Io),r.getFormattedLabel(dt,gs),cc(t,dt)):null;var Lt=ap(Rt,null,!0);return k(st,xt),xt=_L(xt,wt,Lt),st&&M(xt,st),xt.legacy=!0,xt}function M(st,dt){for(var xt in dt)De(dt,xt)&&(st[xt]=dt[xt])}function k(st,dt){st&&(st.textFill&&(dt.textFill=st.textFill),st.textPosition&&(dt.textPosition=st.textPosition))}function P(st,dt){if(dt==null&&(dt=u),De(xL,st)){var xt=t.getItemVisual(dt,"style");return xt?xt[xL[st]]:null}if(De(W$,st))return t.getItemVisual(dt,st)}function R(st){if(a.type==="cartesian2d"){var dt=a.getBaseAxis();return xF(Ne({axis:dt},st))}}function j(){return e.getCurrentSeriesIndices()}function X(st){return Cm(st,e)}}function yJ(r){var t={};return U(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function D1(r,t,e,n,i,a,o){if(!n){a.remove(t);return}var s=k1(r,t,e,n,i,a);return s&&o.setItemGraphicEl(e,s),s&&Xr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function k1(r,t,e,n,i,a){var o=-1,s=t;t&&RL(t,n,i)&&(o=tr(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=A1(n),s&&fJ(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Gi.normal.cfg=Gi.normal.conOpt=Gi.emphasis.cfg=Gi.emphasis.conOpt=Gi.blur.cfg=Gi.blur.conOpt=Gi.select.cfg=Gi.select.conOpt=null,Gi.isLegacy=!1,SJ(u,e,n,i,l,Gi),xJ(u,e,n,i,l),I1(r,u,e,n,Gi,i,l),De(n,"info")&&(Ao(u).info=n.info);for(var c=0;c<ms.length;c++){var d=ms[c];if(d!==gs){var h=eg(n,d),f=P1(n,h,d);EL(d,u,h,f,Gi)}}return gJ(u,n,i),n.type==="group"&&wJ(r,u,e,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function RL(r,t,e){var n=Ao(r),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&TJ(a)&&VL(a)!==n.customPathData||i==="image"&&De(o,"image")&&o.image!==n.customImagePath}function xJ(r,t,e,n,i){var a=e.clipPath;if(a===!1)r&&r.getClipPath()&&r.removeClipPath();else if(a){var o=r.getClipPath();o&&RL(o,a,n)&&(o=null),o||(o=A1(a),r.setClipPath(o)),I1(null,o,t,a,null,n,i)}}function SJ(r,t,e,n,i,a){if(!r.isGroup){OL(e,null,a),OL(e,Io,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=A1(o),r.setTextContent(c)),I1(null,c,t,o,null,n,i);for(var d=o&&o.style,h=0;h<ms.length;h++){var f=ms[h];if(f!==gs){var p=a[f].conOpt;EL(f,c,p,P1(o,p,f),null)}}d?c.dirty():c.markRedraw()}}}}function OL(r,t,e){var n=t?eg(r,t):r,i=t?P1(r,n,Io):r.style,a=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?eg(s,t):s:null;if(i&&(e.isLegacy||SL(i,a,!!o,!!l))){e.isLegacy=!0;var u=wL(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?e[t]:e.normal;d.cfg=o,d.conOpt=l}function eg(r,t){return t?r?r[t]:null:r}function P1(r,t,e){var n=t&&t.style;return n==null&&e===Io&&r&&(n=r.styleEmphasis),n}function wJ(r,t,e,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){_J({api:r,oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,seriesModel:i,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var d=a[c],h=t.childAt(c);d?(d.ignore==null&&(d.ignore=!1),k1(r,h,e,d,i,t)):h.ignore=!0}for(var f=t.childCount()-1;f>=c;f--){var p=t.childAt(f);bJ(t,p,i)}}}function bJ(r,t,e){t&&qv(t,Ao(r).option,e)}function _J(r){new xo(r.oldChildren,r.newChildren,NL,NL,r).add(BL).update(BL).remove(CJ).execute()}function NL(r,t){var e=r&&r.name;return e!=null?e:dJ+t}function BL(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;k1(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function CJ(r){var t=this.context,e=t.oldChildren[r];e&&qv(e,Ao(e).option,t.seriesModel)}function VL(r){return r&&(r.pathData||r.d)}function TJ(r){return r&&(De(r,"pathData")||De(r,"d"))}function MJ(r){r.registerChartView(vJ),r.registerSeriesModel(G$)}function E1(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,i={},a=n.position,o=n.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[a],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),xn(t.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=t.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-h:h,i.z2=1,i}var AJ=["axisLine","axisTickLabel","axisName"],IJ=["splitArea","splitLine"],DJ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ze;var l=E1(e),u=new _o(e,l);U(AJ,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),U(IJ,function(c){e.get([c,"show"])&&kJ[c](this,this.group,this._axisGroup,e)},this),Vd(s,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)},t.prototype.remove=function(){lI(this)},t.type="singleAxis",t}(kl),kJ={splitLine:function(r,t,e,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),d=[],h=0,f=i.getTicksCoords({tickModel:a}),p=[],v=[],g=0;g<f.length;++g){var m=i.toGlobalCoord(f[g].coord);c?(p[0]=m,p[1]=u.y,v[0]=m,v[1]=u.y+u.height):(p[0]=u.x,p[1]=m,v[0]=u.x+u.width,v[1]=m);var y=new wn({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});Ju(y.shape,l);var x=h++%s.length;d[x]=d[x]||[],d[x].push(y)}for(var w=o.getLineStyle(["color"]),g=0;g<d.length;++g)t.add(zi(d[g],{style:Ne({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(r,t,e,n){sI(r,e,n,n)}};const PJ=DJ;var zL=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(gr);en(zL,sc.prototype);const L1=zL;var EJ=function(r){Yt(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,n){return this.coordinateSystem.pointToData(e)[0]},t}(ha);const LJ=EJ;var HL=["single"],RJ=function(){function r(t,e,n){this.type="single",this.dimension="single",this.dimensions=HL,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=this.dimension,a=new LJ(i,th(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},r.prototype.update=function(t,e){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();U(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),Ml(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=ln({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=e.inverse?1:0;e.setExtent(i[a],i[1-a]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+e}:function(o){return i-o+e},t.toLocalCoord=a?function(o){return o-e}:function(o){return i-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],a=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(t,e,n){var i=FL(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=FL(e);return i===this?this.pointToData(n):null},r}();function FL(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const OJ=RJ;function NJ(r,t){var e=[];return r.eachComponent("singleAxis",function(n,i){var a=new OJ(n,r,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",sn).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),e}var BJ={create:NJ,dimensions:HL};const VJ=BJ;var WL=["x","y"],zJ=["width","height"],HJ=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=R1(l,1-rg(s)),c=l.dataToPoint(n)[0],d=a.get("type");if(d&&d!=="none"){var h=Cx(a),f=FJ[d](s,c,u);f.style=h,e.graphicKey=f.type,e.pointer=f}var p=E1(i);SI(n,e,p,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=E1(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Tx(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.coordinateSystem,l=rg(o),u=R1(s,l),c=[e.x,e.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=R1(s,1-l),h=(d[1]+d[0])/2,f=[h,h];return f[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},t}(_x),FJ={line:function(r,t,e){var n=Mx([t,e[0]],[t,e[1]],rg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:wI([t-n/2,e[0]],[n,i],rg(r))}}};function rg(r){return r.isHorizontal()?0:1}function R1(r,t){var e=r.getRect();return[e[WL[t]],e[WL[t]]+e[zJ[t]]]}const WJ=HJ;var jJ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(Zr);function GJ(r){Ze(ah),kl.registerAxisPointerClass("SingleAxisPointer",WJ),r.registerComponentView(jJ),r.registerComponentView(PJ),r.registerComponentModel(L1),lc(r,"single",L1,L1.defaultOption),r.registerCoordinateSystem("single",VJ)}var UJ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,i){var a=Fu(e);r.prototype.init.apply(this,arguments),jL(e,a)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),jL(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(gr);function jL(r,t){var e=r.cellSize,n;ce(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var i=de([0,1],function(a){return vV(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});rs(r,t,{type:"box",ignoreSize:i})}const KJ=UJ;var YJ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,a),this._renderLines(e,s,l,a),this._renderYearText(e,s,l,a),this._renderMonthText(e,u,l,a),this._renderWeekText(e,u,s,l,a)},t.prototype._renderDayRect=function(e,n,i){for(var a=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,d=new or({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(d)}},t.prototype._renderLines=function(e,n,i,a){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=n.start,h=0;d.time<=n.end.time;h++){p(d.formatedDate),h===0&&(d=s.getDateInfo(n.start.y+"-"+n.start.m));var f=d.date;f.setMonth(f.getMonth()+1),d=s.getDateInfo(f)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(e,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(e,n,i){var a=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(e,n,i){var a=new li({z2:20,shape:{points:e},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,n,i){for(var a=e.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return _e(e)&&e?dV(e,n):Re(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,i,a){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,f={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],d],right:[u[h][0],d]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},m=this._formatterLabel(v,g),y=new ar({z2:30,style:Or(o,{text:m})});y.attr(this._yearTextPositionControl(y,f[l],i,l,s)),a.add(y)}},t.prototype._monthTextPositionControl=function(e,n,i,a,o){var s="left",l="top",u=e[0],c=e[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,i,a){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||_e(s))&&(s&&(n=Dm(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,f=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v<d[h].length-1;v++){var g=d[h][v].slice(),m=this._firstDayOfMonth[v];if(p){var y=this._firstDayPoints[v];g[f]=(y[f]+d[0][v+1][f])/2}var x=o.get("formatter"),w=s[+m.m-1],_={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},b=this._formatterLabel(x,_),C=new ar({z2:30,style:ie(Or(o,{text:b}),this._monthTextPositionControl(g,p,i,u,l))});a.add(C)}}},t.prototype._weekTextPositionControl=function(e,n,i,a,o){var s="center",l="middle",u=e[0],c=e[1],d=i==="start";return n==="horizontal"?(u=u+a+(d?1:-1)*o[0]/2,s=d?"right":"left"):(c=c+a+(d?1:-1)*o[1]/2,l=d?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,i,a,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),d=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||_e(c)){c&&(n=Dm(c)||n);var f=n.get(["time","dayOfWeekShort"]);c=f||de(n.get(["time","dayOfWeekAbbr"]),function(_){return _[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];d=xe(d,Math.min(v[1],v[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,d=-d);for(var g=0;g<7;g++){var m=l.getNextNDay(p,g),y=l.dataToRect([m.time],!1).center,x=g;x=Math.abs((g+h)%7);var w=new ar({z2:30,style:ie(Or(s,{text:c[x]}),this._weekTextPositionControl(y,a,u,d,v))});o.add(w)}}},t.type="calendar",t}(Zr);const XJ=YJ;var O1=864e5,ZJ=function(){function r(t,e,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=ra(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];U([0,1],function(d){c(a,d)&&(o[i[d]]=a[d]*s[d])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ln(o,l);U([0,1],function(d){c(a,d)||(a[d]=u[i[d]]/s[d])});function c(d,h){return d[h]!=null&&d[h]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(t,e){ce(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+O1))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},r.prototype.convertToPixel=function(t,e,n){var i=GL(e);return i===this?i.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=GL(e);return i===this?i.pointToData(n):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(ce(t)&&t.length===1&&(t=t[0]),ce(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var i=Math.floor(e[1].time/O1)-Math.floor(e[0].time/O1)+1,a=new Date(e[0].time),o=a.getDate(),s=e[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-e[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-e[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+e[0].day+6)/7),d=n?-c+1:c-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:c,nthWeek:d,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var a=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var a=new r(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function GL(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const $J=ZJ;function JJ(r){r.registerComponentModel(KJ),r.registerComponentView(XJ),r.registerCoordinateSystem("calendar",$J)}function QJ(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function UL(r,t){var e;return U(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function qJ(r,t,e){var n=ie({},e),i=r[t],a=e.$action||"merge";if(a==="merge")if(i){if(0)var o;Je(i,n,!0),rs(i,n,{ignoreSize:!0}),$C(e,i),ng(e,i),ng(e,i,"shape"),ng(e,i,"style"),ng(e,i,"extra"),e.clipPath=i.clipPath}else r[t]=n;else a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var KL=["transition","enterFrom","leaveTo"],tQ=KL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ng(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?KL:tQ,i=0;i<n.length;i++){var a=n[i];r[a]==null&&t[a]!=null&&(r[a]=t[a])}}function eQ(r,t){if(r&&(r.hv=t.hv=[UL(t,["left","right"]),UL(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var rQ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=i},t.prototype.optionUpdated=function(e,n){var i=this.option,a=(n?i:e).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=__(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];U(l,function(c,d){var h=c.newOption;h&&(u.push(h),QJ(c,h),qJ(o,d,h),eQ(o[d],h))},this),i.elements=Ir(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,n,i){U(e,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(gr),YL={path:null,compoundPath:null,group:ze,image:Mn,text:ar},Ui=cr(),nQ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=Pe()},t.prototype.render=function(e,n,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=e.get("z"),s=e.get("zlevel");U(n,function(l){var u=dn(l.id,null),c=u!=null?i.get(u):null,d=dn(l.parentId,null),h=d!=null?i.get(d):a,f=l.type,p=l.style;f==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var v=l.textContent,g=l.textConfig;if(p&&SL(p,f,!!g,!!v)){var m=wL(p,f,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!v&&m.textContent&&(v=m.textContent)}var y=iQ(l),x=l.$action||"merge",w=x==="merge",_=x==="replace";if(w){var b=!c,C=c;b?C=XL(u,h,l.type,i):(C&&(Ui(C).isNew=!1),PL(C)),C&&(Qv(C,y,e,{isInit:b}),ZL(C,l,o,s))}else if(_){ig(c,l,i,e);var M=XL(u,h,l.type,i);M&&(Qv(M,y,e,{isInit:!0}),ZL(M,l,o,s))}else x==="remove"&&(AL(c,l),ig(c,l,i,e));var k=i.get(u);if(k&&v)if(w){var P=k.getTextContent();P?P.attr(v):k.setTextContent(new ar(v))}else _&&k.setTextContent(new ar(v));if(k){var R=l.clipPath;if(R){var j=R.type,X=void 0,b=!1;if(w){var st=k.getClipPath();b=!st||Ui(st).type!==j,X=b?N1(j):st}else _&&(b=!0,X=N1(j));k.setClipPath(X),Qv(X,R,e,{isInit:b}),tg(X,R.keyframeAnimation,e)}var dt=Ui(k);k.setTextConfig(g),dt.option=l,aQ(k,e,l),Qu({el:k,componentModel:e,itemName:k.name,itemTooltipOption:l.tooltip}),tg(k,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var i=e.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var d=i[c],h=dn(d.id,null),f=h!=null?o.get(h):null;if(!(!f||!f.isGroup)){var p=f.parent,v=p===a,g=Ui(f),m=Ui(p);g.width=xe(g.option.width,v?s:m.width)||0,g.height=xe(g.option.height,v?l:m.height)||0}}for(var c=i.length-1;c>=0;c--){var d=i[c],h=dn(d.id,null),f=h!=null?o.get(h):null;if(f){var p=f.parent,m=Ui(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},w=gp(f,d,y,null,{hv:d.hv,boundingMode:d.bounding},x);if(!Ui(f).isNew&&w){for(var _=d.transition,b={},C=0;C<u.length;C++){var M=u[C],k=x[M];_&&(Yl(_)||tr(_,M)>=0)?b[M]=k:f[M]=k}lr(f,b,e,0)}else f.attr(x)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(i){ig(i,Ui(i).option,n,e._lastGraphicModel)}),this._elMap=Pe()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Zr);function N1(r){var t=De(YL,r)?YL[r]:fy(r),e=new t({});return Ui(e).type=r,e}function XL(r,t,e,n){var i=N1(e);return t.add(i),n.set(r,i),Ui(i).id=r,Ui(i).isNew=!0,i}function ig(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){ig(a,t,e,n)}),qv(r,t,n),e.removeKey(Ui(r).id))}function ZL(r,t,e,n){r.isGroup||U([["cursor",Li.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];De(t,a)?r[a]=We(t[a],i[1]):r[a]==null&&(r[a]=i[1])}),U(nr(t),function(i){if(i.indexOf("on")===0){var a=t[i];r[i]=Re(a)?a:null}}),De(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function iQ(r){return r=ie({},r),U(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ZC),function(t){delete r[t]}),r}function aQ(r,t,e){var n=He(r).eventData;!r.silent&&!r.ignore&&!n&&(n=He(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function oQ(r){r.registerComponentModel(rQ),r.registerComponentView(nQ),r.registerPreprocessor(function(t){var e=t.graphic;ce(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var $L=["x","y","radius","angle","single"],sQ=["cartesian2d","polar","singleAxis"];function lQ(r){var t=r.get("coordinateSystem");return tr(sQ,t)>=0}function ys(r){return r+"Axis"}function Ilt(r){return r+"AxisIndex"}function Dlt(r){return r+"AxisId"}function uQ(r,t){var e=Pe(),n=[],i=Pe();r.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(h,f){var p=e.get(h);p&&p[f]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,h){(e.get(d)||e.set(d,[]))[h]=!0})}return n}function JL(r){var t=r.ecModel,e={infoList:[],infoMap:Pe()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(ys(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var B1=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),cQ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=QL(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=QL(e);Je(this.option,e,!0),Je(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;U([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=Pe(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return U($L,function(i){var a=this.getReferringComponents(ys(i),A3);if(a.specified){n=!0;var o=new B1;U(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var d=u[0];if(d){var h=new B1;if(h.add(d.componentIndex),e.set(c,h),a=!1,c==="x"||c==="y"){var f=d.getReferringComponents("grid",sn).models[0];f&&U(u,function(p){d.componentIndex!==p.componentIndex&&f===p.getReferringComponents("grid",sn).models[0]&&h.add(p.componentIndex)})}}}a&&U($L,function(u){if(a){var c=i.findComponents({mainType:ys(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var d=new B1;d.add(c[0].componentIndex),e.set(u,d),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");U([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(ys(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){U(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(ys(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;U([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;U(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(gr);function QL(r){var t={};return U(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Oh=cQ;var dQ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Oh);const hQ=dQ;var fQ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t}(Zr);const V1=fQ;var pQ=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(V1);const vQ=pQ;var wc=U,qL=Ei,gQ=function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(lQ(e)){var n=ys(this._dimName),i=e.getReferringComponents(n,sn).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Ve(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;wc(["start","end"],function(h,f){var p=t[h],v=t[h+"Value"];a[f]==="percent"?(p==null&&(p=o[f]),v=i.parse(Cr(p,o,e))):(u=!0,v=v==null?e[f]:i.parse(v),p=Cr(v,e,o)),l[f]=v==null||isNaN(v)?e[f]:v,s[f]=p==null||isNaN(p)?o[f]:p}),qL(l),qL(s);var c=this._minMaxSpan;u?d(l,s,e,o,!1):d(s,l,o,e,!0);function d(h,f,p,v,g){var m=g?"Span":"ValueSpan";Gl(0,h,p,"all",c["min"+m],c["max"+m]);for(var y=0;y<2;y++)f[y]=Cr(h[y],p,v,!0),g&&(f[y]=i.parse(f[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=mQ(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;wc(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var d=u.getStore(),h=de(c,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var p,v,g,m=0;m<c.length;m++){var y=d.get(h[m],f),x=!isNaN(y),w=y<o[0],_=y>o[1];if(x&&!w&&!_)return!0;x&&(g=!0),w&&(p=!0),_&&(v=!0)}return g&&p&&v})}else wc(c,function(f){if(a==="empty")l.setData(u=u.map(f,function(v){return s(v)?v:NaN}));else{var p={};p[f]=o,u.selectRange(p)}});wc(c,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;wc(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Cr(n[0]+o,n,[0,100],!0):a!=null&&(o=Cr(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=u_(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function mQ(r,t,e){var n=[1/0,-1/0];wc(e,function(o){WF(n,o.getData(),t)});var i=r.getAxisModel(),a=S2(i.axis.scale,i,n).calculate();return[a.min,a.max]}const yQ=gQ;var xQ={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(ys(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new yQ(i,a,s,r),e.push(o.__dzAxisProxy))});var n=Pe();return U(e,function(i){U(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const SQ=xQ;function wQ(r){r.registerAction("dataZoom",function(t,e){var n=uQ(e,t);U(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var tR=!1;function z1(r){tR||(tR=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,SQ),wQ(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function bQ(r){r.registerComponentModel(hQ),r.registerComponentView(vQ),z1(r)}var Ki=function(){function r(){}return r}(),eR={};function bc(r,t){eR[r]=t}function rR(r){return eR[r]}var _Q=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;U(this.option.feature,function(n,i){var a=rR(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),Je(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(gr);const CQ=_Q;var TQ=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),d=[];U(u,function(p,v){d.push(v)}),new xo(this._featureNames||[],d).add(h).update(h).remove(je(h,null)).execute(),this._featureNames=d;function h(p,v){var g=d[p],m=d[v],y=u[g],x=new Er(y,e,e.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(MQ(g))w={onclick:x.option.onclick,featureName:g};else{var _=rR(g);if(!_)return;w=new _}c[g]=w}else if(w=c[m],!w)return;w.uid=Nu("toolbox-feature"),w.model=x,w.ecModel=n,w.api=i;var b=w instanceof Ki;if(!g&&m){b&&w.dispose&&w.dispose(n,i);return}if(!x.get("show")||b&&w.unusable){b&&w.remove&&w.remove(n,i);return}f(x,w,g),x.setIconStatus=function(C,M){var k=this.option,P=this.iconPaths;k.iconStatus=k.iconStatus||{},k.iconStatus[C]=M,P[C]&&(M==="emphasis"?fo:po)(P[C])},w instanceof Ki&&w.render&&w.render(x,n,i,a)}function f(p,v,g){var m=p.getModel("iconStyle"),y=p.getModel(["emphasis","iconStyle"]),x=v instanceof Ki&&v.getIcons?v.getIcons():p.get("icon"),w=p.get("title")||{},_,b;_e(x)?(_={},_[g]=x):_=x,_e(w)?(b={},b[g]=w):b=w;var C=p.iconPaths={};U(_,function(M,k){var P=zd(M,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(m.getItemStyle());var R=P.ensureState("emphasis");R.style=y.getItemStyle();var j=new ar({style:{text:b[k],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:Cm({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});P.setTextContent(j),Qu({el:P,componentModel:e,itemName:k,formatterParamsExtra:{title:b[k]}}),P.__title=b[k],P.on("mouseover",function(){var X=y.getItemStyle(),st=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";j.setStyle({fill:y.get("textFill")||X.fill||X.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),P.setTextConfig({position:y.get("textPosition")||st}),j.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",k])!=="emphasis"&&i.leaveEmphasis(this),j.hide()}),(p.get(["iconStatus",k])==="emphasis"?fo:po)(P),o.add(P),P.on("click",Te(v.onclick,v,n,i,k)),C[k]=P})}qW(o,e,i),o.add(jI(o.getBoundingRect(),e)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=p.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!Re(x)&&v){var w=x.style||(x.style={}),_=sd(v,ar.makeFont(w)),b=p.x+o.x,C=p.y+o.y+s,M=!1;C+_.height>i.getHeight()&&(m.position="top",M=!0);var k=M?-5-_.height:s+10;b+_.width/2>i.getWidth()?(m.position=["100%",k],w.align="right"):b-_.width/2<0&&(m.position=[0,k],w.align="left")}})},t.prototype.updateView=function(e,n,i,a){U(this._features,function(o){o instanceof Ki&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){U(this._features,function(i){i instanceof Ki&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){U(this._features,function(i){i instanceof Ki&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(Zr);function MQ(r){return r.indexOf("my")===0}const AQ=TQ;var IQ=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=pr.browser;if(Re(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),f=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];f&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var w=x.contentWindow,_=w.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),w.focus(),_.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var b=i.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',M=window.open();M.document.write(C),M.document.title=a}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Ki);const DQ=IQ;var nR="__ec_magicType_stack__",klt=null,Plt=null,kQ=[["line","bar"],["stack"]],PQ=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return U(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(iR[i]){var s={series:[]},l=function(d){var h=d.subType,f=d.id,p=iR[i](h,f,d,a);p&&(Ne(p,d.option),s.series.push(p));var v=d.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=d.getReferringComponents(y,sn).models[0],w=x.componentIndex;s[y]=s[y]||[];for(var _=0;_<=w;_++)s[y][w]=s[y][w]||{};s[y][w].boundaryGap=i==="bar"}}};U(kQ,function(d){tr(d,i)>=0&&U(d,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Je({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Ki),iR={line:function(r,t,e,n){if(r==="bar")return Je({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Je({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===nR;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Je({id:t,stack:i?"":nR},n.get(["option","stack"])||{},!0)}};Ba({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const EQ=PQ;var ag=new Array(60).join("-"),_c=" ";function LQ(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function RQ(r){var t=[];return U(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(de(e.series,function(f){return f.name})),l=[i.model.getCategories()];U(e.series,function(f){var p=f.getRawData();l.push(f.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(_c)],c=0;c<l[0].length;c++){for(var d=[],h=0;h<l.length;h++)d.push(l[h][c]);u.push(d.join(_c))}t.push(u.join("\n"))}),t.join("\n\n"+ag+"\n\n")}function OQ(r){return de(r,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+_c:"")+i.join(_c))}),n.join("\n")}).join("\n\n"+ag+"\n\n")}function NQ(r){var t=LQ(r);return{value:Ir([RQ(t.seriesGroupByCategoryAxis),OQ(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+ag+"\n\n"),meta:t.meta}}function og(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function BQ(r){var t=r.slice(0,r.indexOf("\n"));if(t.indexOf(_c)>=0)return!0}var H1=new RegExp("["+_c+"]+","g");function VQ(r){for(var t=r.split(/\n+/g),e=og(t.shift()).split(H1),n=[],i=de(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=og(t[a]).split(H1);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function zQ(r){for(var t=r.split(/\n+/g),e=og(t.shift()),n=[],i=0;i<t.length;i++){var a=og(t[i]);if(a){var o=a.split(H1),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:e,data:n}}function HQ(r,t){var e=r.split(new RegExp("\n*"+ag+"\n*","g")),n={series:[]};return U(e,function(i,a){if(BQ(i)){var o=VQ(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=zQ(i);n.series.push(o)}}),n}var FQ=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var d=a.get("optionToContent"),h=a.get("contentToOption"),f=NQ(e);if(Re(d)){var p=d(n.getOption());_e(p)?u.innerHTML=p:yu(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),c.value=f.value,u.appendChild(c)}var g=f.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var _=this;function b(){i.removeChild(o),_._dom=null}t0(x,"click",b),t0(w,"click",function(){if(h==null&&d!=null||h!=null&&d==null){b();return}var C;try{Re(h)?C=h(u,n.getOption()):C=HQ(c.value,g)}catch(M){throw b(),new Error("Data view format error "+M)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),b()}),x.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=x.style.cssText=y,!a.get("readOnly")&&m.appendChild(w),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Ki);function WQ(r,t){return de(r,function(e,n){var i=t&&t[n];if(Be(i)&&!ce(i)){var a=Be(e)&&!ce(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=Ne(e,i),o&&delete e.name,e}else return e})}Ba({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];U(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(ie({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:WQ(n.data,a)})}}),t.mergeOption(Ne({series:e},r.newOption))});const jQ=FQ;var aR=U,oR=cr();function GQ(r,t){var e=F1(r);aR(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function UQ(r){var t=F1(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return aR(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function KQ(r){oR(r).snapshots=null}function YQ(r){return F1(r).length}function F1(r){var t=oR(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var XQ=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){KQ(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Ki);Ba({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const ZQ=XQ;var $Q=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],JQ=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=sR(e,t);U(QQ,function(o,s){(!n||!n.include||tr(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=j1[n.brushType](0,a,i);n.__rangeOffset={offset:dR[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){U(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&U(a.coordSyses,function(o){var s=j1[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){U(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=j1[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?dR[n.brushType](a.values,o.offset,qQ(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return de(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:UE(i),isTargetByCursor:YE(i,t,n.coordSysModel),getLinearBrushOtherExtent:KE(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&tr(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=sR(e,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<lR.length;l++)if(lR[l](i,o))return o}return!0},r}();function W1(r){return r[0]>r[1]&&r.reverse(),r}function sR(r,t){return hd(r,t,{includeMainTypes:$Q})}var QQ={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=Pe(),o={},s={};!e&&!n&&!i||(U(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),U(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),U(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];U(u.getCartesians(),function(d,h){(tr(e,d.getAxis("x").model)>=0||tr(n,d.getAxis("y").model)>=0)&&c.push(d)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:uR.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){U(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:uR.geo})})}},lR=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],uR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(yl(r)),t}},j1={lineX:je(cR,0),lineY:je(cR,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[W1([i[0],a[0]]),W1([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=de(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function cR(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=W1(de([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var dR={lineX:je(hR,0),lineY:je(hR,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return de(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function hR(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function qQ(r,t){var e=fR(r),n=fR(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function fR(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const G1=JQ;var U1=U,tq=b3("toolbox-dataZoom_"),Elt=null,eq=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new c1(i.getZr()),this._brushController.on("brush",Te(this._onBrush,this)).mount()),iq(e,n,this,a,i),nq(e,n)},t.prototype.onclick=function(e,n,i){rq[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new G1(K1(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,d){if(d.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[h],d,c)}}),GQ(a,i),this._dispatchZoomAction(i);function s(u,c,d){var h=c.getAxis(u),f=h.model,p=l(u,f,a),v=p.findRepresentativeAxisProxy(f).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(d=Gl(0,d.slice(),h.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var h;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var p=f.getAxisModel(u,c.componentIndex);p&&(h=f)}),h}},t.prototype._dispatchZoomAction=function(e){var n=[];U1(e,function(i,a){n.push(Ve(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Ki),rq={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(UQ(this.ecModel))}};function K1(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function nq(r,t){r.setIconStatus("back",YQ(t)>1?"emphasis":"normal")}function iq(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new G1(K1(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}wV("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=K1(n),o=hd(r,a);U1(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),U1(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:tq+u+d};h[c]=d,i.push(h)}return i});const aq=eq;function oq(r){r.registerComponentModel(CQ),r.registerComponentView(AQ),bc("saveAsImage",DQ),bc("magicType",EQ),bc("dataView",jQ),bc("dataZoom",aq),bc("restore",ZQ),Ze(bQ)}var sq=["rect","polygon","keep","clear"];function lq(r,t){var e=kr(r?r.brush:[]);if(e.length){var n=[];U(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=r&&r.toolbox;ce(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),uq(s),t&&!s.length&&s.push.apply(s,sq)}}function uq(r){var t={};U(r,function(e){t[e]=1}),r.length=0,U(t,function(e,n){r.push(n)})}var pR=U;function vR(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Y1(r,t,e){var n={};return pR(t,function(a){var o=n[a]=i();pR(r[a],function(s,l){if(Pn.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new Pn(u),l==="opacity"&&(u=Ve(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Pn(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function gR(r,t,e){var n;U(e,function(i){t.hasOwnProperty(i)&&vR(t[i])&&(n=!0)}),n&&U(e,function(i){t.hasOwnProperty(i)&&vR(t[i])?r[i]=Ve(t[i]):delete r[i]})}function cq(r,t,e,n,i,a){var o={};U(r,function(d){var h=Pn.prepareVisualTypes(t[d]);o[d]=h});var s;function l(d){return yy(e,s,d)}function u(d,h){eA(e,s,d,h)}a==null?e.each(c):e.each([a],c);function c(d,h){s=a==null?d:h;var f=e.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var p=n.call(i,d),v=t[p],g=o[p],m=0,y=g.length;m<y;m++){var x=g[m];v[x]&&v[x].applyVisual(d,l,u)}}}function dq(r,t,e,n){var i={};return U(r,function(a){var o=Pn.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(_){return yy(s,d,_)}function c(_,b){eA(s,d,_,b)}for(var d,h=s.getStore();(d=o.next())!=null;){var f=s.getRawDataItem(d);if(!(f&&f.visualMap===!1))for(var p=n!=null?h.get(l,d):d,v=e(p),g=t[v],m=i[v],y=0,x=m.length;y<x;y++){var w=m[y];g[w]&&g[w].applyVisual(p,u,c)}}}}}function hq(r){var t=r.brushType,e={point:function(n){return mR[t].point(n,e,r)},rect:function(n){return mR[t].rect(n,e,r)}};return e}var mR={lineX:yR(0),lineY:yR(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&Ol(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var i=r.x,a=r.y,o=r.width,s=r.height,l=n[0];if(Ol(n,i,a)||Ol(n,i+o,a)||Ol(n,i,a+s)||Ol(n,i+o,a+s)||Xe.create(r).contain(l[0],l[1])||Hd(i,a,i+o,a,n)||Hd(i,a,i,a+s,n)||Hd(i+o,a,i+o,a+s,n)||Hd(i,a+s,i+o,a+s,n))return!0}}};function yR(r){var t=["x","y"],e=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[r];return Nh(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[r]],n[t[r]]+n[e[r]]];return s[1]<s[0]&&s.reverse(),Nh(s[0],o)||Nh(s[1],o)||Nh(o[0],s)||Nh(o[1],s)}}}}function Nh(r,t){return t[0]<=r&&r<=t[1]}const Llt=null;var xR=["inBrush","outOfBrush"],X1="__ecBrushSelect",Z1="__ecInBrushSelectEvent";function SR(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new G1(t.option,r);e.setInputRanges(t.areas,r)})}function fq(r,t,e){var n=[],i,a;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),SR(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ve(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,d=[],h=[],f=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var v=de(o.areas,function(_){var b=mq[_.brushType],C=Ne({boundingRect:b?b(_):void 0},_);return C.selectors=hq(C),C}),g=Y1(o.option,xR,function(_){_.mappingMethod="fixed"});ce(c)&&U(c,function(_){d[_]=1});function m(_){return c==="all"||!!d[_]}function y(_){return!!_.length}r.eachSeries(function(_,b){var C=f[b]=[];_.subType==="parallel"?x(_,b):w(_,b,C)});function x(_,b){var C=_.coordinateSystem;p=p||C.hasAxisBrushed(),m(b)&&C.eachActiveState(_.getData(),function(M,k){M==="active"&&(h[k]=1)})}function w(_,b,C){if(!(!_.brushSelector||gq(o,b))&&(U(v,function(k){o.brushTargetManager.controlSeries(k,_,r)&&C.push(k),p=p||y(C)}),m(b)&&y(C))){var M=_.getData();M.each(function(k){wR(_,C,M,k)&&(h[k]=1)})}}r.eachSeries(function(_,b){var C={seriesId:_.id,seriesIndex:b,seriesName:_.name,dataIndex:[]};l.selected.push(C);var M=f[b],k=_.getData(),P=m(b)?function(R){return h[R]?(C.dataIndex.push(k.getRawIndex(R)),"inBrush"):"outOfBrush"}:function(R){return wR(_,M,k,R)?(C.dataIndex.push(k.getRawIndex(R)),"inBrush"):"outOfBrush"};(m(b)?p:y(M))&&cq(xR,g,k,P)})}),pq(t,i,a,n,e)}function pq(r,t,e,n,i){if(i){var a=r.getZr();if(!a[Z1]){a[X1]||(a[X1]=vq);var o=qu(a,X1,e,t);o(r,n)}}}function vq(r,t){if(!r.isDisposed()){var e=r.getZr();e[Z1]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[Z1]=!1}}function wR(r,t,e,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(r.brushSelector(n,e,o.selectors,o))return!0}}function gq(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(ce(e)?tr(e,t)<0:t!==e)}var mq={rect:function(r){return bR(r.range)},polygon:function(r){for(var t,e=r.range,n=0,i=e.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=e[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&bR(t)}};function bR(r){return new Xe(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var yq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new c1(n.getZr())).on("brush",Te(this._onBrush,this)).mount()},t.prototype.render=function(e,n,i,a){this.model=e,this._updateController(e,n,i,a)},t.prototype.updateTransform=function(e,n,i,a){SR(n),this._updateController(e,n,i,a)},t.prototype.updateVisual=function(e,n,i,a){this.updateTransform(e,n,i,a)},t.prototype.updateView=function(e,n,i,a){this._updateController(e,n,i,a)},t.prototype._updateController=function(e,n,i,a){(!a||a.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ve(i),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ve(i),$from:n})},t.type="brush",t}(Zr);const xq=yq;var Sq="#ddd",wq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&gR(i,e,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Sq},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=de(e,function(n){return _R(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=_R(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(gr);function _R(r,t){return Je({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Er(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const bq=wq;var _q=["rect","polygon","lineX","lineY","keep","clear"],Cq=function(r){Yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,U(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,i){this.render(e,n,i)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),i={};return U(e.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(e,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:_q.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Ki);const Tq=Cq;function Mq(r){r.registerComponentView(xq),r.registerComponentModel(bq),r.registerPreprocessor(lq),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,fq),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rn),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rn),bc("brush",Tq)}var Aq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(gr),Iq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=We(e.get("textBaseline"),e.get("textVerticalAlign")),c=new ar({style:Or(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),h=e.get("subtext"),f=new ar({style:Or(s,{text:h,fill:s.getTextColor(),y:d.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),v=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!p&&!g,f.silent=!v&&!g,p&&c.on("click",function(){pp(p,"_"+e.get("target"))}),v&&f.on("click",function(){pp(v,"_"+e.get("subtarget"))}),He(c).eventData=He(f).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(c),h&&a.add(f);var m=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=ln(y,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),f.setStyle(w),m=a.getBoundingRect();var _=x.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var C=new or({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t}(Zr);function Dq(r){r.registerComponentModel(Aq),r.registerComponentView(Iq)}var kq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],i=e.axisType,a=this._names=[],o;i==="category"?(o=[],U(n,function(u,c){var d=dn(Du(u),""),h;Be(u)?(h=Ve(u),h.value=c):h=c,o.push(h),a.push(d)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new kn([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(gr);const CR=kq;var TR=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=es(CR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(CR);en(TR,$m.prototype);const Pq=TR;var Eq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Zr);const Lq=Eq;var Rq=function(r){Yt(t,r);function t(e,n,i,a){var o=r.call(this,e,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ha);const Oq=Rq;var $1=Math.PI,MR=cr(),Nq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,i){if(this.model=e,this.api=i,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,e);e.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return gn("nameValue",{noName:!0,value:c})},U(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,e)},this),this._renderAxisLabel(a,s,l,e),this._position(a,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var i=e.get(["label","position"]),a=e.get("orient"),o=Vq(e,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":_e(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:$1/2},d=a==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),f=h.get("show",!0),p=f?h.get("itemSize"):0,v=f?h.get("itemGap"):0,g=p+v,m=e.get(["label","rotate"])||0;m=m*$1/180;var y,x,w,_=h.get("position",!0),b=f&&h.get("showPlayBtn",!0),C=f&&h.get("showPrevBtn",!0),M=f&&h.get("showNextBtn",!0),k=0,P=d;_==="left"||_==="bottom"?(b&&(y=[0,0],k+=g),C&&(x=[k,0],k+=g),M&&(w=[P-p,0],P-=g)):(b&&(y=[P-p,0],P-=g),C&&(x=[0,0],k+=g),M&&(w=[P-p,0],P-=g));var R=[k,P];return e.get("inverse")&&R.reverse(),{viewRect:o,mainLength:d,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:w,axisExtent:R,controlSize:p,controlGap:v}},t.prototype._position=function(e,n){var i=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=wi(),l=o.x,u=o.y+o.height;Ca(s,s,[-l,-u]),Vs(s,s,-$1/2),Ca(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),d=y(i.getBoundingRect()),h=y(a.getBoundingRect()),f=[i.x,i.y],p=[a.x,a.y];p[0]=f[0]=c[0][0];var v=e.labelPosOpt;if(v==null||_e(v)){var g=v==="+"?0:1;x(f,d,c,1,g),x(p,h,c,1,1-g)}else{var g=v>=0?0:1;x(f,d,c,1,g),p[1]=f[1]+v}i.setPosition(f),a.setPosition(p),i.rotation=a.rotation=e.rotation,m(i),m(a);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function x(w,_,b,C,M){w[C]+=b[C][M]-_[C][M]}},t.prototype._createAxis=function(e,n){var i=n.getData(),a=n.get("axisType"),o=Bq(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Oq("value",o,e.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new ze;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new wn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ie({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new wn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ne({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],U(l,function(u){var c=i.dataToCoord(u.value),d=s.getItemModel(u.value),h=d.getModel("itemStyle"),f=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:Te(o._changeTimeline,o,u.value)},g=AR(d,h,n,v);g.ensureState("emphasis").style=f.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),vo(g);var m=He(g);d.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],U(u,function(c){var d=c.tickValue,h=l.getItemModel(d),f=h.getModel("label"),p=h.getModel(["emphasis","label"]),v=h.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new ar({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:Te(o._changeTimeline,o,d),silent:!1,style:Or(f,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});m.ensureState("emphasis").style=Or(p),m.ensureState("progress").style=Or(v),n.add(m),vo(m),MR(m).dataIndex=d,o._tickLabels.push(m)})}},t.prototype._renderControl=function(e,n,i,a){var o=e.controlSize,s=e.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),d=a.get("inverse",!0);h(e.nextBtnPosition,"next",Te(this._changeTimeline,this,d?"-":"+")),h(e.prevBtnPosition,"prev",Te(this._changeTimeline,this,d?"+":"-")),h(e.playPosition,c?"stop":"play",Te(this._handlePlayClick,this,!c),!0);function h(f,p,v,g){if(f){var m=ea(We(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=zq(a,p+"Icon",y,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),vo(x)}}},t.prototype._renderCurrentPointer=function(e,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=Te(u._handlePointerDrag,u),d.ondragend=Te(u._handlePointerDragend,u),IR(d,u._progressLine,s,i,a,!0)},onUpdate:function(d){IR(d,u._progressLine,s,i,a)}};this._currentPointer=AR(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var i=this._toAxisCoord(e)[0],a=this._axis,o=Ei(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=e.model;e._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var n=this._mainGroup.getLocalTransform();return sa(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-e);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var n=this.model.getCurrentIndex();e==="+"?e=n+1:e==="-"&&(e=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<e);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",MR(i[a]).dataIndex<=e)},t.type="timeline.slider",t}(Lq);function Bq(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Yy({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new m2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ls}}function Vq(r,t){return ln(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function zq(r,t,e,n){var i=n.style,a=zd(r.get(["controlStyle",t]),n||{},new Xe(e[0],e[1],e[2],e[3]));return i&&a.setStyle(i),a}function AR(r,t,e,n,i,a){var o=t.get("color");if(i)i.setColor(o),e.add(i),a&&a.onUpdate(i);else{var s=r.get("symbol");i=qr(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),e.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=Je({rectHover:!0,z2:100},n,!0);var u=ec(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Sl(r.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var d=r.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function IR(r,t,e,n,i,a){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",e));if(a||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const Hq=Nq;function Fq(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ne({currentIndex:i.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function Wq(r){var t=r&&r.timeline;ce(t)||(t=t?[t]:[]),U(t,function(e){e&&jq(e)})}function jq(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),DR(r),Xl(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});Xl(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!Xl(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}U(r.data||[],function(i){Be(i)&&!ce(i)&&(!Xl(i,"value")&&Xl(i,"name")&&(i.value=i.name),DR(i))})}function DR(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};U(n,function(o,s){!a[s]&&!Xl(i,s)&&(i[s]=o)}),e.label&&!Xl(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function Xl(r,t){return r.hasOwnProperty(t)}function Gq(r){r.registerComponentModel(Pq),r.registerComponentView(Hq),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Fq(r),r.registerPreprocessor(Wq)}function J1(r,t){if(!r)return!1;for(var e=ce(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function sg(r){Ys(r,"label",["show"])}var lg=cr(),kR=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(pr.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=lg(s)[o];if(!l||!l.data){lg(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&sg(l),U(l.data,function(c){c instanceof Array?(sg(c[0]),sg(c[1])):sg(c)}),u=this.createMarkerModelFromSeries(l,this,n),ie(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),lg(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return gn("section",{header:this.name,blocks:[gn("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,n){return lg(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(gr);en(kR,$m.prototype);const xs=kR;var Uq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(xs);const Kq=Uq;function Q1(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Yq(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function ug(r,t,e,n,i,a){var o=[],s=So(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=tw(t,l,r),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(e,c),o[a]=t.get(l,c);var d=t.get(n,c),h=Ia(t.get(n,c));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,d]}var q1={min:je(ug,"min"),max:je(ug,"max"),average:je(ug,"average"),median:je(ug,"median")};function Bh(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!Yq(t)&&!ce(t.coord)&&ce(i)){var a=PR(t,e,n,r);if(t=Ve(t),t.type&&q1[t.type]&&a.baseAxis&&a.valueAxis){var o=tr(i,a.baseAxis.dim),s=tr(i,a.valueAxis.dim),l=q1[t.type](e,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!ce(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)q1[u[c]]&&(u[c]=tw(e,e.mapDimension(i[c]),u[c]));return t}}function PR(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(Xq(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Xq(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Vh(r,t){return r&&r.containData&&t.coord&&!Q1(t)?r.containData(t.coord):!0}function Zq(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Q1(t)&&!Q1(e)?r.containZone(t.coord,e.coord):!0}function ER(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return ns(o,t[a])}:function(e,n,i,a){return ns(e.value,t[a])}}function tw(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var ew=cr(),$q=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=Pe()},t.prototype.render=function(e,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){ew(s).keep=!1}),n.eachSeries(function(s){var l=xs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!ew(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){ew(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;U(e,function(a){var o=xs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?fC(l):gm(l))})}})},t.type="marker",t}(Zr);const rw=$q;function LR(r,t,e){var n=t.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=xe(a.get("x"),e.getWidth()),l=xe(a.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(n){var u=r.get(n.dimensions[0],i),c=r.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var Jq=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=xs.getMarkerModelFromSeries(a,"markPoint");o&&(LR(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new ch),d=Qq(o,e,n);n.setData(d),LR(n.getData(),e,a),d.each(function(h){var f=d.getItemModel(h),p=f.getShallow("symbol"),v=f.getShallow("symbolSize"),g=f.getShallow("symbolRotate"),m=f.getShallow("symbolOffset"),y=f.getShallow("symbolKeepAspect");if(Re(p)||Re(v)||Re(g)||Re(m)){var x=n.getRawValue(h),w=n.getDataParams(h);Re(p)&&(p=p(x,w)),Re(v)&&(v=v(x,w)),Re(g)&&(g=g(x,w)),Re(m)&&(m=m(x,w))}var _=f.getModel("itemStyle").getItemStyle(),b=Gd(l,"color");_.fill||(_.fill=b),d.setItemVisual(h,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(h){h.traverse(function(f){He(f).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(rw);function Qq(r,t,e){var n;r?n=de(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return ie(ie({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new kn(n,e),a=de(e.get("data"),je(Bh,t));r&&(a=Ir(a,je(Vh,r)));var o=ER(!!r,n);return i.initData(a,null,o),i}const qq=Jq;function ttt(r){r.registerComponentModel(Kq),r.registerComponentView(qq),r.registerPreprocessor(function(t){J1(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var ett=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(xs);const rtt=ett;var cg=cr(),ntt=function(r,t,e,n){var i=r.getData(),a;if(ce(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=xn(n.yAxis,n.xAxis);else{var u=PR(n,i,t,r);s=u.valueAxis;var c=jy(i,u.valueDataDim);l=tw(i,c,o)}var d=s.dim==="x"?0:1,h=1-d,f=Ve(n),p={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,p.coord[h]=1/0;var v=e.get("precision");v>=0&&vr(l)&&(l=+l.toFixed(Math.min(v,20))),f.coord[d]=p.coord[d]=l,a=[f,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[Bh(r,a[0]),Bh(r,a[1]),ie({},a[2])];return g[2].type=g[2].type||null,Je(g[2],g[0]),Je(g[2],g[1]),g};function dg(r){return!isNaN(r)&&!isFinite(r)}function RR(r,t,e,n){var i=1-r,a=n.dimensions[r];return dg(t[i])&&dg(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function itt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(RR(1,e,n,r)||RR(0,e,n,r)))return!0}return Vh(r,t[0])&&Vh(r,t[1])}function nw(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=xe(o.get("x"),i.getWidth()),u=xe(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=a.dimensions,d=r.get(c[0],t),h=r.get(c[1],t);s=a.dataToPoint([d,h])}if(El(a,"cartesian2d")){var f=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;dg(r.get(c[0],t))?s[0]=f.toGlobalCoord(f.getExtent()[e?0:1]):dg(r.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var att=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=xs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=cg(o).from,u=cg(o).to;l.each(function(c){nw(l,c,!0,a,i),nw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new GS);this.group.add(c.group);var d=ott(o,e,n),h=d.from,f=d.to,p=d.line;cg(n).from=h,cg(n).to=f,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");ce(v)||(v=[v,v]),ce(g)||(g=[g,g]),ce(m)||(m=[m,m]),ce(y)||(y=[y,y]),d.from.each(function(w){x(h,w,!0),x(f,w,!1)}),p.each(function(w){var _=p.getItemModel(w).getModel("lineStyle").getLineStyle();p.setItemLayout(w,[h.getItemLayout(w),f.getItemLayout(w)]),_.stroke==null&&(_.stroke=h.getItemVisual(w,"style").fill),p.setItemVisual(w,{fromSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(w,"symbolOffset"),fromSymbolRotate:h.getItemVisual(w,"symbolRotate"),fromSymbolSize:h.getItemVisual(w,"symbolSize"),fromSymbol:h.getItemVisual(w,"symbol"),toSymbolKeepAspect:f.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(w,"symbolOffset"),toSymbolRotate:f.getItemVisual(w,"symbolRotate"),toSymbolSize:f.getItemVisual(w,"symbolSize"),toSymbol:f.getItemVisual(w,"symbol"),style:_})}),c.updateData(p),d.line.eachItemGraphicEl(function(w){He(w).dataModel=n,w.traverse(function(_){He(_).dataModel=n})});function x(w,_,b){var C=w.getItemModel(_);nw(w,_,b,e,a);var M=C.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=Gd(l,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:We(C.get("symbolOffset",!0),y[b?0:1]),symbolRotate:We(C.get("symbolRotate",!0),m[b?0:1]),symbolSize:We(C.get("symbolSize"),g[b?0:1]),symbol:We(C.get("symbol",!0),v[b?0:1]),style:M})}this.markKeep(c),c.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(rw);function ott(r,t,e){var n;r?n=de(r&&r.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return ie(ie({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new kn(n,e),a=new kn(n,e),o=new kn([],e),s=de(e.get("data"),je(ntt,t,r,e));r&&(s=Ir(s,je(itt,r)));var l=ER(!!r,n);return i.initData(de(s,function(u){return u[0]}),null,l),a.initData(de(s,function(u){return u[1]}),null,l),o.initData(de(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const stt=att;function ltt(r){r.registerComponentModel(rtt),r.registerComponentView(stt),r.registerPreprocessor(function(t){J1(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var utt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(xs);const ctt=utt;var hg=cr(),dtt=function(r,t,e,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Bh(r,i),s=Bh(r,a),l=o.coord,u=s.coord;l[0]=xn(l[0],-1/0),l[1]=xn(l[1],-1/0),u[0]=xn(u[0],1/0),u[1]=xn(u[1],1/0);var c=Hg([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function fg(r){return!isNaN(r)&&!isFinite(r)}function OR(r,t,e,n){var i=1-r;return fg(t[i])&&fg(e[i])}function htt(r,t){var e=t.coord[0],n=t.coord[1],i={coord:e,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return El(r,"cartesian2d")?e&&n&&(OR(1,e,n,r)||OR(0,e,n,r))?!0:Zq(r,i,a):Vh(r,i)||Vh(r,a)}function NR(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=xe(o.get(e[0]),i.getWidth()),u=xe(o.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=r.getValues(["x0","y0"],t),d=r.getValues(["x1","y1"],t),h=a.clampData(c),f=a.clampData(d),p=[];e[0]==="x0"?p[0]=h[0]>f[0]?d[0]:c[0]:p[0]=h[0]>f[0]?c[0]:d[0],e[1]==="y0"?p[1]=h[1]>f[1]?d[1]:c[1]:p[1]=h[1]>f[1]?c[1]:d[1],s=n.getMarkerPosition(p,e,!0)}else{var v=r.get(e[0],t),g=r.get(e[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(El(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=r.get(e[0],t),g=r.get(e[1],t);fg(v)?s[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):fg(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var BR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ftt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=xs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=de(BR,function(d){return NR(s,l,d,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ze});this.group.add(c.group),this.markKeep(c);var d=ptt(o,e,n);n.setData(d),d.each(function(h){var f=de(BR,function(M){return NR(d,h,M,e,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(d.get("x0",h)),p.parse(d.get("x1",h))],x=[v.parse(d.get("y0",h)),v.parse(d.get("y1",h))];Ei(y),Ei(x);var w=!(g[0]>y[1]||g[1]<y[0]||m[0]>x[1]||m[1]<x[0]),_=!w;d.setItemLayout(h,{points:f,allClipped:_});var b=d.getItemModel(h).getModel("itemStyle").getItemStyle(),C=Gd(l,"color");b.fill||(b.fill=C,_e(b.fill)&&(b.fill=Pf(b.fill,.4))),b.stroke||(b.stroke=C),d.setItemVisual(h,"style",b)}),d.diff(hg(c).data).add(function(h){var f=d.getItemLayout(h);if(!f.allClipped){var p=new si({shape:{points:f.points}});d.setItemGraphicEl(h,p),c.group.add(p)}}).update(function(h,f){var p=hg(c).data.getItemGraphicEl(f),v=d.getItemLayout(h);v.allClipped?p&&c.group.remove(p):(p?lr(p,{shape:{points:v.points}},n,h):p=new si({shape:{points:v.points}}),d.setItemGraphicEl(h,p),c.group.add(p))}).remove(function(h){var f=hg(c).data.getItemGraphicEl(h);c.group.remove(f)}).execute(),d.eachItemGraphicEl(function(h,f){var p=d.getItemModel(f),v=d.getItemVisual(f,"style");h.useStyle(d.getItemVisual(f,"style")),In(h,vn(p),{labelFetcher:n,labelDataIndex:f,defaultText:d.getName(f)||"",inheritColor:_e(v.fill)?Pf(v.fill,1):"#000"}),An(h,p),Xr(h,null,null,p.get(["emphasis","disabled"])),He(h).dataModel=n}),hg(c).data=d,c.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(rw);function ptt(r,t,e){var n,i,a=["x0","y0","x1","y1"];if(r){var o=de(r&&r.dimensions,function(u){var c=t.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return ie(ie({},d),{name:u,ordinalMeta:null})});i=de(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new kn(i,e)}else i=[{name:"value",type:"float"}],n=new kn(i,e);var s=de(e.get("data"),je(dtt,t,r,e));r&&(s=Ir(s,je(htt,r)));var l=r?function(u,c,d,h){var f=u.coord[Math.floor(h/2)][h%2];return ns(f,i[h])}:function(u,c,d,h){return ns(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const vtt=ftt;function gtt(r){r.registerComponentModel(ctt),r.registerComponentView(vtt),r.registerPreprocessor(function(t){J1(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var mtt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=es(Oh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Oh);const ytt=mtt;var iw=cr();function xtt(r,t,e){iw(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function Stt(r,t){for(var e=iw(r).coordSysRecordMap,n=e.keys(),i=0;i<n.length;i++){var a=n[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||VR(e,o))}}}function VR(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function wtt(r,t){var e={model:t,containsPoint:je(_tt,t),dispatchAction:je(btt,r),dataZoomInfoMap:null,controller:null},n=e.controller=new vh(r.getZr());return U(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function btt(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function _tt(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function Ctt(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Ttt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=iw(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Pe());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=JL(a);U(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,wtt(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Pe());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){VR(i,a);return}var c=Ctt(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),qu(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Mtt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),xtt(i,e,{pan:Te(aw.pan,this),zoom:Te(aw.zoom,this),scrollMove:Te(aw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Stt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(V1),aw={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=ow[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Gl(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:zR(function(r,t,e,n,i,a){var o=ow[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:zR(function(r,t,e,n,i,a){var o=ow[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function zR(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,i);if(Gl(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var ow={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const Att=Mtt;function HR(r){z1(r),r.registerComponentModel(ytt),r.registerComponentView(Att),Ttt(r)}var Itt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=es(Oh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Oh);const Dtt=Itt;var zh=or,FR=7,ktt=1,sw=30,Ptt=7,Hh="horizontal",WR="vertical",Ett=5,Ltt=["line","bar","candlestick","scatter"],Rtt={easing:"cubicOut",duration:100,delay:0},Ott=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=Te(this._onBrush,this),this._onBrushEnd=Te(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),qu(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Fd(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new ze;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?Ptt:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Hh?{right:s.width-o.x-o.width,top:s.height-sw-FR-a,width:o.width,height:sw}:{right:FR,top:o.y,width:sw,height:o.height},u=Fu(e.option);U(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=ln(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===WR&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Hh&&!o?{scaleY:l?1:-1,scaleX:1}:i===Hh&&o?{scaleY:l?1:-1,scaleX:-1}:i===WR&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new zh({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new zh({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Te(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var d=o.getDataExtent(l),h=(d[1]-d[0])*.3;d=[d[0]-h,d[1]+h];var f=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),w;o.each([l],function(k,P){if(x>0&&P%x){y+=m;return}var R=k==null||isNaN(k)||k==="",j=R?0:Cr(k,d,f,!0);R&&!w&&P?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!R&&w&&(v.push([y,0]),g.push([y,0])),v.push([y,j]),g.push([y,j]),y+=m,w=R}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(k){var P=_.getModel(k?"selectedDataBackground":"dataBackground"),R=new ze,j=new si({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),X=new li({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(j),R.add(X),R}for(var C=0;C<3;C++){var M=b(C===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();U(l,function(u){if(!i&&!(n!==!0&&tr(Ltt,u.get("type"))<0)){var c=a.getComponent(ys(o),s).axis,d=Ntt(o),h,f=u.coordinateSystem;d!=null&&f.getOtherAxis&&(h=f.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),i={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),h=n.filler=new zh({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new zh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:ktt,fill:"rgba(0,0,0,0)"}})),U([0,1],function(x){var w=l.get("handleIcon");!Fp[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=qr(w,-1,0,2,2,null,!0);_.attr({cursor:jR(this._orient),draggable:!0,drift:Te(this._onDragMove,this,x),ondragend:Te(this._onDragEnd,this),onmouseover:Te(this._showDataInfo,this,!0),onmouseout:Te(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),C=l.get("handleSize");this._handleHeight=xe(C,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),vo(_);var M=l.get("handleColor");M!=null&&(_.style.fill=M),o.add(i[x]=_);var k=l.getModel("textStyle");e.add(a[x]=new ar({silent:!0,invisible:!0,style:Or(k,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:k.getTextColor(),font:k.getFont()}),z2:10}))},this);var f=h;if(d){var p=xe(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new or({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=qr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));f=n.moveZone=new or({invisible:!0,shape:{y:s[1]-y,height:p+y}}),f.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(f)}f.attr({draggable:!0,cursor:jR(this._orient),drift:Te(this._onDragMove,this,"all"),ondragstart:Te(this._showDataInfo,this,!0),ondragend:Te(this._onDragEnd,this),onmouseover:Te(this._showDataInfo,this,!0),onmouseout:Te(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Cr(e[0],[0,100],n,!0),Cr(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Gl(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Cr(s.minSpan,l,o,!0):null,s.maxSpan!=null?Cr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ei([Cr(a[0],o,l,!0),Cr(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=Ei(i.slice()),o=this._size;U([0,1],function(f){var p=n.handles[f],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[f]+(f?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var d=l[c],h=d.getClipPath();h||(h=new or,d.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,d=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],u),this._formatLabel(d[1],u)]}}var h=Ei(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(p){var v=yl(i.handles[p].parent,this.group),g=Np(p===0?"right":"left",v),m=this._handleWidth/2+Ett,y=sa([h[p]+(p===0?-m:m),this._size[1]/2],v);a[p].setStyle({x:y[0],y:y[1],verticalAlign:o===Hh?"middle":g,align:o===Hh?g:"center",text:s[p]})}},t.prototype._formatLabel=function(e,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return Re(a)?a(e,s):_e(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!e),i[1].attr("invisible",!e),n.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,n,i,a){this._dragging=!0,io(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=sa([n,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new Ye(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ei([Cr(i.x,o,s,!0),Cr(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(io(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new zh({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Rtt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=JL(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(V1);function Ntt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function jR(r){return r==="vertical"?"ns-resize":"ew-resize"}const Btt=Ott;function GR(r){r.registerComponentModel(Dtt),r.registerComponentView(Btt),z1(r)}function Vtt(r){Ze(HR),Ze(GR)}var ztt={get:function(r,t,e){var n=Ve((Htt[r]||{})[t]);return e&&ce(n)?n[n.length-1]:n}},Htt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const UR=ztt;var KR=Pn.mapVisual,Ftt=Pn.eachVisual,Wtt=ce,YR=U,jtt=Ei,Gtt=Cr,Utt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&gR(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=Te(e,this),this.controllerVisuals=Y1(this.option.controller,n,e),this.targetVisuals=Y1(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=kr(e),n},t.prototype.eachTargetSeries=function(e,n){U(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&e.call(n,a)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(i){i===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],ce(e)&&(e=e.slice(),u=!0);var c=n?e:u?[d(e[0]),d(e[1])]:d(e);if(_e(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Re(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+c[1]:e[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=jtt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var i=e.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Je(a,i),Je(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(d){Wtt(n.color)&&!d.inRange&&(d.inRange={color:n.color.slice().reverse()}),d.inRange=d.inRange||{color:e.get("gradientColor")}}function u(d,h,f){var p=d[h],v=d[f];p&&!v&&(v=d[f]={},YR(p,function(g,m){if(Pn.isValidType(m)){var y=UR.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(d){var h=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,f=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";YR(this.stateList,function(m){var y=this.itemSize,x=d[m];x||(x=d[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=h&&Ve(h)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=f&&Ve(f)||(s?y[0]:[y[0],y[0]])),x.symbol=KR(x.symbol,function(b){return b==="none"?g:b});var w=x.symbolSize;if(w!=null){var _=-1/0;Ftt(w,function(b){b>_&&(_=b)}),x.symbolSize=KR(w,function(b){return Gtt(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(gr);const pg=Utt;var XR=[20,140],Ktt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=XR[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=XR[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):ce(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),U(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=Ei((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]<e[0]&&(n[0]=e[0]),n[1]<e[0]&&(n[1]=e[0]),n},t.prototype.getValueState=function(e){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=e)&&(n[1]>=i[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(e){var n=ZR(this,"outOfRange",this.getExtent()),i=ZR(this,"inRange",this.option.range.slice()),a=[];function o(f,p){a.push({value:f,color:e(f,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var d=1;s<u;s++,d=0)d&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var d=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(d&&(a.length&&o(a[a.length-1].value,"outOfRange"),d=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=es(pg.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(pg);function ZR(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,i=(e[1]-e[0])/n,a=e[0],o=[],s=0;s<=n&&a<e[1];s++)o.push(a),a+=i;return o.push(e[1]),o}const Ytt=Ktt;var Xtt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n},t.prototype.render=function(e,n,i,a){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,i,a)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,i=Hu(n.get("padding")||0),a=e.getBoundingRect();e.add(new or({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(f){return s[f]}function c(f,p){s[f]=p}var d=o.controllerVisuals[a||o.getValueState(e)],h=Pn.prepareVisualTypes(d);return U(h,function(f){var p=d[f];i.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=d.__alphaForOpacity),Pn.dependsOn(f,n)&&p&&p.applyVisual(e,u,c)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,i=this.api;gp(e,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,n,i,a){},t.type="visualMap",t}(Zr);const $R=Xtt;var JR=[["left","right","width"],["top","bottom","height"]];function QR(r,t,e){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=JR[o],l=[0,null,10],u={},c=0;c<3;c++)u[JR[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:n[s[c]];var d=[["x","width",3],["y","height",0]][o],h=ln(u,a,n.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+h[d[1]]*.5<a[d[1]]*.5?0:1]}function vg(r,t){return U(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Ua=Cr,Ztt=U,qR=Math.min,lw=Math.max,$tt=12,Jtt=6,Qtt=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,n){r.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=Te(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Te(this._hideIndicator,this)},t.prototype.doRender=function(e,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,n=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(n);var i=e.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),d=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new ar({style:Or(f,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":d,align:h==="horizontal"?d:"center",text:a})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=QR(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new ze;u.add(c),c.add(i.outOfRange=tO()),c.add(i.inRange=tO(null,s?rO(this._orient):null,Te(this._dragHandle,this,"all",!1),Te(this._dragHandle,this,"all",!0))),c.setClipPath(new or({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var d=n.textStyleModel.getTextRect("\u56FD"),h=lw(d.width,d.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),e.add(u)},t.prototype._createHandle=function(e,n,i,a,o,s){var l=Te(this._dragHandle,this,i,!1),u=Te(this._dragHandle,this,i,!0),c=ea(e.get("handleSize"),a[0]),d=qr(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=rO(this._orient);d.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){io(m.event)}}),d.x=a[0]/2,d.useStyle(e.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),sl(d,!0),n.add(d);var f=this.visualMapModel.textStyleModel,p=new ar({cursor:h,draggable:!0,drift:l,onmousemove:function(m){io(m.event)},ondragend:u,style:Or(f,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[i]=d,g.handleLabelPoints[i]=v,g.handleLabels[i]=p},t.prototype._createIndicator=function(e,n,i,a,o){var s=ea(e.get("indicatorSize"),i[0]),l=qr(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Mn){var c=l.style;l.useStyle(ie({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var d=this.visualMapModel.textStyleModel,h=new ar({silent:!0,invisible:!0,style:Or(d,{x:0,y:0,text:""})});this.group.add(h);var f=[(o==="horizontal"?a/2:Jtt)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():eO(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),i=e.getExtent(),a=[0,e.itemSize[1]];this._handleEnds=[Ua(n[0],i,a,!0),Ua(n[1],i,a,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Gl(n,a,o,e,0);var s=i.getExtent();this._dataInterval=[Ua(a[0],o,s,!0),Ua(a[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Bd(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var i=100,a=[],o=(e[1]-e[0])/i;a.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=e[0]+o*s;if(l>e[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(e,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,i=this.visualMapModel.get("inverse");return new ze(n==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();Ztt([0,1],function(c){var d=o[c];d.setStyle("fill",n.handlesColor[c]),d.y=e[c];var h=Ua(e[c],[0,l[1]],u,!0),f=this.getControllerVisual(h,"symbolSize");d.scaleX=d.scaleY=f/l[0],d.x=l[0]-f/2;var p=sa(i.handleLabelPoints[c],yl(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var h={convertOpacityToAlpha:!0},f=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),v=Ua(e,s,u,!0),g=l[0]-p/2,m={x:d.x,y:d.y};d.y=v,d.x=g;var y=sa(c.indicatorLabelPoint,yl(d,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?w:"middle",align:b?"center":w});var C={x:g,y:v,style:{fill:f}},M={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var k={duration:100,easing:"cubicInOut",additive:!0};d.x=m.x,d.y=m.y,d.animateTo(C,k),x.animateTo(M,k)}else d.attr(C),x.attr(M);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var R=0;R<P.length;R++)this.api.enterBlur(P[R])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,a=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);a[1]=qR(lw(0,a[1]),i[1]),e._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();e=qR(lw(o[0],e),o[1]);var l=qtt(i,s,o),u=[e-l,e+l],c=Ua(e,o,s,!0),d=[Ua(u[0],o,s,!0),Ua(u[1],o,s,!0)];u[0]<o[0]&&(d[0]=-1/0),u[1]>o[1]&&(d[1]=1/0),n&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var h=this._hoverLinkDataIndices,f=[];(n||eO(i))&&(f=this._hoverLinkDataIndices=i.findTargetDataIndices(d));var p=T3(h,f);this._dispatchHighDown("downplay",vg(p[0],i)),this._dispatchHighDown("highlight",vg(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(xl(e.target,function(l){var u=He(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",vg(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,n,i,a){var o=yl(n,a?null:this.group);return ce(e)?sa(e,o,i):Np(e,o,i)},t.prototype._dispatchHighDown=function(e,n){n&&n.length&&this.api.dispatchAction({type:e,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}($R);function tO(r,t,e,n){return new si({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(i){io(i.event)},ondragend:n})}function qtt(r,t,e){var n=$tt/2,i=r.get("hoverLinkDataSize");return i&&(n=Ua(i,t,e,!0)/2),n}function eO(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function rO(r){return r==="vertical"?"ns-resize":"ew-resize"}const tet=Qtt;var eet={type:"selectDataRange",event:"dataRangeSelected",update:"update"},ret=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},net=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||e.push(dq(n.stateList,n.targetVisuals,Te(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(Te(iet,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(e);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function iet(r,t,e,n){for(var i=t.targetVisuals[n],a=Pn.prepareVisualTypes(i),o={color:Gd(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,d,h)}return o.color;function d(f){return o[f]}function h(f,p){o[f]=p}}var nO=U;function aet(r){var t=r&&r.visualMap;ce(t)||(t=t?[t]:[]),nO(t,function(e){if(e){Cc(e,"splitList")&&!Cc(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&ce(n)&&nO(n,function(i){Be(i)&&(Cc(i,"start")&&!Cc(i,"min")&&(i.min=i.start),Cc(i,"end")&&!Cc(i,"max")&&(i.max=i.end))})}})}function Cc(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var iO=!1;function aO(r){iO||(iO=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(eet,ret),U(net,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(aet))}function oO(r){r.registerComponentModel(Ytt),r.registerComponentView(tet),aO(r)}var oet=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],set[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ve(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=de(this._pieceList,function(l){return l=Ve(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},i=Pn.listVisualTypes(),a=this.isCategory();U(e.pieces,function(s){U(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),U(n,function(s,l){var u=!1;U(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&U(this.stateList,function(c){(e[c]||(e[c]={}))[l]=UR.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var i=this.option,a=this._pieceList,o=(n?i:e).selected||{};if(i.selected=o,U(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;U(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Ve(e)},t.prototype.getValueState=function(e){var n=Pn.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Pn.findPieceIndex(l,i);c===e&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var i=e.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,d){var h=a.getRepresentValue({interval:c});d||(d=a.getValueState(h));var f=e(h,d);c[0]===-1/0?i[0]=f:c[1]===1/0?i[1]=f:n.push({value:c[0],color:f},{value:c[1],color:f})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return U(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=es(pg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(pg),set={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(e)!==a&&e<5;)e++;t.precision=e,a=+a.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),p_(r),U(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;U(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),sO(t,r)},pieces:function(r){var t=this.option;U(t.pieces,function(e,n){Be(e)||(e={value:e});var i={text:"",index:n};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var a=i.value=e.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],d=0;d<2;d++){for(var h=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&o[d]==null;f++)o[d]=e[h[f]],s[d]=l[f],c[d]=f===2;o[d]==null&&(o[d]=u[d])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Pn.retrieveVisuals(e),r.push(i)},this),sO(t,r),p_(r),U(r,function(e){var n=e.close,i=[["<","\u2264"][n[1]],[">","\u2265"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function sO(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const uet=oet;var cet=function(r){Yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),d=c.endsText,h=xn(n.get("showLabel",!0),!d);d&&this._renderEndsText(e,d[0],u,h,l),U(c.viewPieceList,function(f){var p=f.piece,v=new ze;v.onclick=Te(this._onItemClick,this,p),this._enableHoverLink(v,f.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),h){var m=this.visualMapModel.getValueState(g);v.add(new ar({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}e.add(v)},this),d&&this._renderEndsText(e,d[1],u,h,l),dl(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var i=this;e.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:vg(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return QR(e,this.api,e.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,n,i,a,o){if(n){var s=new ze,l=this.visualMapModel.textStyleModel;s.add(new ar({style:Or(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=de(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),a=e.get("orient"),o=e.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(e,n,i){e.add(qr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ve(i.selected),s=n.getSelectedMapKey(e);a==="single"||a===!0?(o[s]=!0,U(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}($R);const det=cet;function lO(r){r.registerComponentModel(uet),r.registerComponentView(det),aO(r)}function het(r){Ze(oO),Ze(lO)}var fet={label:{enabled:!0},decal:{show:!1}},uO=cr(),pet={};function vet(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Ve(fet);Je(n.label,r.getLocaleModel().get("aria"),!1),Je(e.option,n,!1),i(),a();function i(){var u=e.getModel("decal"),c=u.get("show");if(c){var d=Pe();r.eachSeries(function(h){if(!h.isColorBySeries()){var f=d.get(h.type);f||(f={},d.set(h.type,f)),uO(h).scope=f}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(Re(h.enableAriaDecal)){h.enableAriaDecal();return}var f=h.getData();if(h.isColorBySeries()){var y=Fm(h.ecModel,h.name,pet,r.getSeriesCount()),x=f.getVisual("decal");f.setVisual("decal",w(x,y))}else{var p=h.getRawData(),v={},g=uO(h).scope;f.each(function(_){var b=f.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],C=p.getName(_)||_+"",M=Fm(h.ecModel,C,g,m),k=f.getItemVisual(b,"decal");f.setItemVisual(b,"decal",w(k,M))})}function w(_,b){var C=_?ie(ie({},b),_):b;return C.dirty=!0,C}})}}function a(){var u=r.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=Ne(c.option,u),!!c.get("enabled")){var d=t.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),f=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(h,p),g;if(!(h<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],w=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:h}),r.eachSeries(function(M,k){if(k<v){var P=void 0,R=M.get("name"),j=R?"withName":"withoutName";P=h>1?c.get(["series","multiple",j]):c.get(["series","single",j]),P=o(P,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var X=M.getData();if(X.count()>f){var st=c.get(["data","partialData"]);P+=o(st,{displayCnt:f})}else P+=c.get(["data","allData"]);for(var dt=c.get(["data","separator","middle"]),xt=c.get(["data","separator","end"]),Rt=[],wt=0;wt<X.count();wt++)if(wt<f){var Lt=X.getName(wt),Ft=X.getValues(wt),Kt=c.get(["data",Lt?"withName":"withoutName"]);Rt.push(o(Kt,{name:Lt,value:Ft.join(dt)}))}P+=Rt.join(dt)+xt,x.push(P)}});var _=c.getModel(["series","multiple","separator"]),b=_.get("middle"),C=_.get("end");g+=x.join(b)+C,d.setAttribute("aria-label",g)}}}function o(u,c){if(!_e(u))return u;var d=u;return U(c,function(h,f){d=d.replace(new RegExp("\\{\\s*"+f+"\\s*\\}","g"),h)}),d}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function get(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},U(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function met(r){r.registerPreprocessor(get),r.registerVisual(r.PRIORITY.VISUAL.ARIA,vet)}var cO={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},yet=function(){function r(t){var e=this._condVal=_e(t)?new RegExp(t):P5(t)?t:null;if(e==null){var n="";_r(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return _e(e)?this._condVal.test(t):vr(e)?this._condVal.test(t+""):!1},r}(),xet=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),wet=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),bet=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),_et=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),Cet=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r}();function uw(r,t){if(r===!0||r===!1){var e=new xet;return e.value=r,e}var n="";return hO(r)||_r(n),r.and?dO("and",r,t):r.or?dO("or",r,t):r.not?Tet(r,t):Met(r,t)}function dO(r,t,e){var n=t[r],i="";ce(n)||_r(i),n.length||_r(i);var a=r==="and"?new wet:new bet;return a.children=de(n,function(o){return uw(o,e)}),a.children.length||_r(i),a}function Tet(r,t){var e=r.not,n="";hO(e)||_r(n);var i=new _et;return i.child=uw(e,t),i.child||_r(n),i}function Met(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=nr(r),o=r.parser,s=o?BT(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=De(cO,u)?cO[u]:u,d=r[u],h=s?s(d):d,f=uz(c,h)||c==="reg"&&new yet(h);f||_r(e),i.push(f)}}i.length||_r(e);var p=new Cet;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function hO(r){return Be(r)&&!En(r)}var Aet=function(){function r(t,e){this._cond=uw(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function Iet(r,t){return new Aet(r,t)}var Det={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=Iet(r.config,{valueGetterAttrMap:Pe({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;De(s,"dimension")||_r(l);var c=t.getDimensionInfo(u);return c||_r(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},Rlt="",ket={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=kr(e);i.length||_r(n);var a=[];U(i,function(c){var d=c.dimension,h=c.order,f=c.parser,p=c.incomparable;if(d==null&&_r(n),h!=="asc"&&h!=="desc"&&_r(n),p&&p!=="min"&&p!=="max"){var v="";_r(v)}if(h!=="asc"&&h!=="desc"){var g="";_r(g)}var m=t.getDimensionInfo(d);m||_r(n);var y=f?BT(f):null;f&&!y&&_r(n),a.push({dimIdx:m.index,parser:y,comparator:new zT(h,p)})});var o=t.sourceFormat;o!==Ln&&o!==Bi&&_r(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,d){for(var h=0;h<a.length;h++){var f=a[h],p=t.retrieveValueFromItem(c,f.dimIdx),v=t.retrieveValueFromItem(d,f.dimIdx);f.parser&&(p=f.parser(p),v=f.parser(v));var g=f.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function Pet(r){r.registerTransform(Det),r.registerTransform(ket)}var Ka=La.CMD;function Tc(r,t){return Math.abs(r-t)<1e-5}function cw(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,l=0;function u(X,st){i&&i.length>2&&n.push(i),i=[X,st]}function c(X,st,dt,xt){Tc(X,dt)&&Tc(st,xt)||i.push(X,st,dt,xt,dt,xt)}function d(X,st,dt,xt,Rt,wt){var Lt=Math.abs(st-X),Ft=Math.tan(Lt/4)*4/3,Kt=st<X?-1:1,Ut=Math.cos(X),Bt=Math.sin(X),Gt=Math.cos(st),Qt=Math.sin(st),re=Ut*Rt+dt,se=Bt*wt+xt,le=Gt*Rt+dt,me=Qt*wt+xt,ye=Rt*Ft*Kt,ue=wt*Ft*Kt;i.push(re-ye*Bt,se+ue*Ut,le+ye*Qt,me-ue*Gt,le,me)}for(var h,f,p,v,g=0;g<e;){var m=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(m===Ka.L||m===Ka.C||m===Ka.Q)&&(i=[s,l])),m){case Ka.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case Ka.L:h=t[g++],f=t[g++],c(a,o,h,f),a=h,o=f;break;case Ka.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Ka.Q:h=t[g++],f=t[g++],p=t[g++],v=t[g++],i.push(a+2/3*(h-a),o+2/3*(f-o),p+2/3*(h-p),v+2/3*(f-v),p,v),a=p,o=v;break;case Ka.A:var x=t[g++],w=t[g++],_=t[g++],b=t[g++],C=t[g++],M=t[g++]+C;g+=1;var k=!t[g++];h=Math.cos(C)*_+x,f=Math.sin(C)*b+w,y?(s=h,l=f,u(s,l)):c(a,o,h,f),a=Math.cos(M)*_+x,o=Math.sin(M)*b+w;for(var P=(k?-1:1)*Math.PI/2,R=C;k?R>M:R<M;R+=P){var j=k?Math.max(R+P,M):Math.min(R+P,M);d(R,j,x,w,_,b)}break;case Ka.R:s=a=t[g++],l=o=t[g++],h=s+t[g++],f=l+t[g++],u(h,l),c(h,l,h,f),c(h,f,s,f),c(s,f,s,l),c(s,l,h,l);break;case Ka.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function dw(r,t,e,n,i,a,o,s,l,u){if(Tc(r,e)&&Tc(t,n)&&Tc(i,o)&&Tc(a,s)){l.push(o,s);return}var c=2/u,d=c*c,h=o-r,f=s-t,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var v=e-r,g=n-t,m=i-o,y=a-s,x=v*v+g*g,w=m*m+y*y;if(x<d&&w<d){l.push(o,s);return}var _=h*v+f*g,b=-h*m-f*y,C=x-_*_,M=w-b*b;if(C<d&&_>=0&&M<d&&b>=0){l.push(o,s);return}var k=[],P=[];Yo(r,e,i,o,.5,k),Yo(t,n,a,s,.5,P),dw(k[0],P[0],k[1],P[1],k[2],P[2],k[3],P[3],l,u),dw(k[4],P[4],k[5],P[5],k[6],P[6],k[7],P[7],l,u)}function Eet(r,t){var e=cw(r),n=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],d=a[u++],h=a[u++],f=a[u++],p=a[u++],v=a[u++];dw(s,l,c,d,h,f,p,v,o,t),s=p,l=v}n.push(o)}return n}function fO(r,t,e){var n=r[t],i=r[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,d=e-c;if(d>0)for(var u=0;u<d;u++)l[u%o]+=1;return l}function pO(r,t,e){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),d=fO([l,u],c?0:1,t),h=(c?s:u)/d.length,f=0;f<d.length;f++)for(var p=(c?u:s)/d[f],v=0;v<d[f];v++){var g={};c?(g.startAngle=a+h*f,g.endAngle=a+h*(f+1),g.r0=n+p*v,g.r=n+p*(v+1)):(g.startAngle=a+p*v,g.endAngle=a+p*(v+1),g.r0=n+h*f,g.r=n+h*(f+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function Let(r,t,e){for(var n=r.width,i=r.height,a=n>i,o=fO([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",d=r[s]/o.length,h=0;h<o.length;h++)for(var f=r[l]/o[h],p=0;p<o[h];p++){var v={};v[u]=h*d,v[c]=p*f,v[s]=d,v[l]=f,v.x+=r.x,v.y+=r.y,e.push(v)}}function vO(r,t,e,n){return r*n-e*t}function Ret(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,c=o-i,d=s-a,h=vO(c,d,l,u);if(Math.abs(h)<1e-6)return null;var f=r-i,p=t-a,v=vO(f,p,c,d)/h;return v<0||v>1?null:new Ye(v*l+r,v*u+t)}function Oet(r,t,e){var n=new Ye;Ye.sub(n,e,t),n.normalize();var i=new Ye;Ye.sub(i,r,t);var a=i.dot(n);return a}function Mc(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Net(r,t,e){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],l=Ret(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:Oet(l,t,e),pt:l,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}for(var h=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],p=[h],v=[f],a=u.idx+1;a<=c.idx;a++)Mc(p,r[a].slice());Mc(p,f),Mc(p,h);for(var a=c.idx+1;a<=u.idx+n;a++)Mc(v,r[a%n].slice());return Mc(v,h),Mc(v,f),[{points:p},{points:v}]}function gO(r){var t=r.points,e=[],n=[];Jf(t,e,n);var i=new Xe(e[0],e[1],n[0]-e[0],n[1]-e[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Ye,c=new Ye;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),Net(t,u,c)}function gg(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);gg(r,a[0],i,n),gg(r,a[1],e-i,n)}return n}function Bet(r,t){for(var e=[],n=0;n<t;n++)e.push(ly(r));return e}function Vet(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function zet(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Het(r,t){var e=[],n=r.shape,i;switch(r.type){case"rect":Let(n,t,e),i=or;break;case"sector":pO(n,t,e),i=oi;break;case"circle":pO({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),i=oi;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=de(Eet(r.getUpdatedPathProxy(),o),function(m){return zet(m)}),l=s.length;if(l===0)gg(gO,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var c=0,d=de(s,function(m){var y=[],x=[];Jf(m,y,x);var w=(x[1]-y[1])*(x[0]-y[0]);return c+=w,{poly:m,area:w}});d.sort(function(m,y){return y.area-m.area});for(var h=t,u=0;u<l;u++){var f=d[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(f.area/c*t);p<0||(gg(gO,{points:f.poly},p,e),h-=p)}}i=si;break}if(!i)return Bet(r,t);for(var v=[],u=0;u<e.length;u++){var g=new i;g.setShape(e[u]),Vet(r,g),v.push(g)}return v}function Fet(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var i=[],a=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[o[0],o[1]],h=l,f=2;f<s;){var p=o[f-2],v=o[f-1],g=o[f++],m=o[f++],y=o[f++],x=o[f++],w=o[f++],_=o[f++];if(h<=0){d.push(g,m,y,x,w,_);continue}for(var b=Math.min(h,c-1)+1,C=1;C<=b;C++){var M=C/b;Yo(p,g,y,w,M,i),Yo(v,m,x,_,M,a),p=i[3],v=a[3],d.push(i[1],a[1],i[2],a[2],p,v),g=i[5],m=a[5],y=i[6],x=a[6]}h-=b-1}return o===r?[d,t]:[r,d]}function mO(r,t){for(var e=r.length,n=r[e-2],i=r[e-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function Wet(r,t){for(var e,n,i,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],c=void 0,d=void 0;l?u?(e=Fet(l,u),c=e[0],d=e[1],n=c,i=d):(d=mO(i||l,l),c=l):(c=mO(n||u,u),d=u),a.push(c),o.push(d)}return[a,o]}function yO(r){for(var t=0,e=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],l=r[o+1],u=r[a],c=r[a+1],d=s*c-u*l;t+=d,e+=(s+u)*d,n+=(l+c)*d}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function jet(r,t,e,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var c=u*6,d=0,h=0;h<s;h+=2){var f=h===0?c:(c+h-2)%l+2,p=r[f]-e[0],v=r[f+1]-e[1],g=t[h]-n[0],m=t[h+1]-n[1],y=g-p,x=m-v;d+=y*y+x*x}d<a&&(a=d,o=u)}return o}function Get(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function Uet(r,t,e,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],l=t[o],u=yO(s),c=yO(l);a==null&&(a=u[2]<0!=c[2]<0);var d=[],h=[],f=0,p=1/0,v=[],g=s.length;a&&(s=Get(s));for(var m=jet(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var w=(m+x)%y+2;d[x+2]=s[w]-u[0],d[x+3]=s[w+1]-u[1]}if(d[0]=s[m]-u[0],d[1]=s[m+1]-u[1],e>0)for(var _=n/e,b=-n/2;b<=n/2;b+=_){for(var C=Math.sin(b),M=Math.cos(b),k=0,x=0;x<s.length;x+=2){var P=d[x],R=d[x+1],j=l[x]-c[0],X=l[x+1]-c[1],st=j*M-X*C,dt=j*C+X*M;v[x]=st,v[x+1]=dt;var xt=st-P,Rt=dt-R;k+=xt*xt+Rt*Rt}if(k<p){p=k,f=b;for(var wt=0;wt<v.length;wt++)h[wt]=v[wt]}}else for(var Lt=0;Lt<g;Lt+=2)h[Lt]=l[Lt]-c[0],h[Lt+1]=l[Lt+1]-c[1];i.push({from:d,to:h,fromCp:u,toCp:c,rotation:-f})}return i}function mg(r){return r.__isCombineMorphing}function Olt(r){return r.__morphT>=0}var xO="__mOriginal_";function yg(r,t,e){var n=xO+t,i=r[n]||r[t];r[n]||(r[n]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Fh(r,t){var e=xO+t;r[e]&&(r[t]=r[e],r[e]=null)}function SO(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function wO(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=Wet(cw(e),cw(n)),a=i[0],o=i[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&SO(a,s),l&&SO(o,l),yg(t,"updateTransform",{replace:u}),t.transform=null;var c=Uet(a,o,10,Math.PI),d=[];yg(t,"buildPath",{replace:function(h){for(var f=t.__morphT,p=1-f,v=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,w=m.rotation*f,_=m.fromCp,b=m.toCp,C=Math.sin(w),M=Math.cos(w);Sf(v,_,b,f);for(var k=0;k<y.length;k+=2){var P=y[k],R=y[k+1],j=x[k],X=x[k+1],st=P*p+j*f,dt=R*p+X*f;d[k]=st*M-dt*C+v[0],d[k+1]=st*C+dt*M+v[1]}var xt=d[0],Rt=d[1];h.moveTo(xt,Rt);for(var k=2;k<y.length;){var j=d[k++],X=d[k++],wt=d[k++],Lt=d[k++],Ft=d[k++],Kt=d[k++];xt===j&&Rt===X&&wt===Ft&&Lt===Kt?h.lineTo(Ft,Kt):h.bezierCurveTo(j,X,wt,Lt,Ft,Kt),xt=Ft,Rt=Kt}}}})}function hw(r,t,e){if(!r||!t)return t;var n=e.done,i=e.during;wO(r,t),t.__morphT=0;function a(){Fh(t,"buildPath"),Fh(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Ne({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},e)),t}function Ket(r,t,e,n,i,a){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,d=0;(r&u)>0&&(c=1),(t&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function xg(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=de(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),e=Math.min(d,e),n=Math.max(c,n),i=Math.max(d,i),[c,d]}),o=de(a,function(s,l){return{cp:s,z:Ket(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function bO(r){return Het(r.path,r.count)}function fw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Yet(r,t,e){var n=[];function i(_){for(var b=0;b<_.length;b++){var C=_[b];mg(C)?i(C.childrenRef()):C instanceof rr&&n.push(C)}}i(r);var a=n.length;if(!a)return fw();var o=e.dividePath||bO,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),fw();n=xg(n),s=xg(s);for(var l=e.done,u=e.during,c=e.individualDelay,d=new so,h=0;h<a;h++){var f=n[h],p=s[h];p.parent=t,p.copyTransform(d),c||wO(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(_){for(var b=0;b<s.length;b++)s[b].addSelfToZr(_)}yg(t,"addSelfToZr",{after:function(_){v(_)}}),yg(t,"removeSelfFromZr",{after:function(_){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(_)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Fh(t,"addSelfToZr"),Fh(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},h=0;h<m;h++){var w=c?Ne({delay:(e.delay||0)+c(h,m,n[h],s[h]),done:x},e):e;hw(n[h],s[h],w)}else t.__morphT=0,t.animateTo({__morphT:1},Ne({during:function(_){for(var b=0;b<m;b++){var C=s[b];C.__morphT=t.__morphT,C.dirtyShape()}u&&u(_)},done:function(){g();for(var _=0;_<r.length;_++)Fh(r[_],"updateTransform");l&&l()}},e));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function Xet(r,t,e){var n=t.length,i=[],a=e.dividePath||bO;function o(f){for(var p=0;p<f.length;p++){var v=f[p];mg(v)?o(v.childrenRef()):v instanceof rr&&i.push(v)}}if(mg(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(ly(i[l++%s]));i.length=n}else{i=a({path:r,count:n});for(var c=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),fw()}i=xg(i),t=xg(t);for(var d=e.individualDelay,u=0;u<n;u++){var h=d?Ne({delay:(e.delay||0)+d(u,n,i[u],t[u])},e):e;hw(i[u],t[u],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function _O(r){return ce(r[0])}function CO(r,t){for(var e=[],n=r.length,i=0;i<n;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var Zet={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=ly(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function pw(r,t,e,n,i,a){if(!r.length||!t.length)return;var o=Lu("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;_O(r)&&(u=r,c=t),_O(t)&&(u=t,c=r);function d(m,y,x,w,_){var b=m.many,C=m.one;if(b.length===1&&!_){var M=y?b[0]:C,k=y?C:b[0];if(mg(M))d({many:[M],one:k},!0,x,w,!0);else{var P=s?Ne({delay:s(x,w)},l):l;hw(M,k,P),a(M,k,M,k,P)}}else for(var R=Ne({dividePath:Zet[e],individualDelay:s&&function(Rt,wt,Lt,Ft){return s(Rt+x,w)}},l),j=y?Yet(b,C,R):Xet(C,b,R),X=j.fromIndividuals,st=j.toIndividuals,dt=X.length,xt=0;xt<dt;xt++){var P=s?Ne({delay:s(xt,dt)},l):l;a(X[xt],st[xt],y?b[xt]:m.one,y?m.one:b[xt],P)}}for(var h=u?u===r:r.length>t.length,f=u?CO(c,u):CO(h?t:r,[h?r:t]),p=0,v=0;v<f.length;v++)p+=f[v].many.length;for(var g=0,v=0;v<f.length;v++)d(f[v],h,g,p),g+=f[v].many.length}function Zl(r){if(!r)return[];if(ce(r)){for(var t=[],e=0;e<r.length;e++)t.push(Zl(r[e]));return t}var n=[];return r.traverse(function(i){i instanceof rr&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var TO=1e4,$et=0,MO=1,AO=2,Jet=cr();function Qet(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var i=r.getDimensionInfo(e[n]);if(i&&i.otherDims[t]===0)return e[n]}}function qet(r,t,e){var n=r.getDimensionInfo(e),i=n&&n.ordinalMeta;if(n){var a=r.get(n.name,t);return i&&i.categories[a]||a+""}}function IO(r,t,e,n){var i=n?"itemChildGroupId":"itemGroupId",a=Qet(r,i);if(a){var o=qet(r,t,a);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function DO(r){var t=[];return U(r,function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>TO))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:IO(n,o,i,!1),childGroupId:IO(n,o,i,!0),divide:e.divide,dataIndex:o})}),t}function vw(r,t,e){r.traverse(function(n){n instanceof rr&&Fr(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function gw(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Ac(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function trt(r,t,e){var n=Lu("update",e,t);n&&r.traverse(function(i){if(i instanceof Li){var a=G4(i);a&&i.animateFrom({style:a},n)}})}function ert(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var i=r[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function kO(r,t,e){var n=DO(r),i=DO(t);function a(x,w,_,b,C){(_||x)&&w.animateFrom({style:_&&_!==x?ie(ie({},_.style),x.style):x.style},C)}var o=!1,s=$et,l=Pe(),u=Pe();n.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<i.length;c++){var d=i[c].groupId;if(u.get(d)){s=MO;break}var h=i[c].childGroupId;if(h&&l.get(h)){s=AO;break}}function f(x,w){return function(_){var b=_.data,C=_.dataIndex;return w?b.getId(C):x?s===MO?_.childGroupId:_.groupId:s===AO?_.childGroupId:_.groupId}}var p=ert(n,i),v={};if(!p)for(var c=0;c<i.length;c++){var g=i[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(v[m.id]=!0)}function y(x,w){var _=n[w],b=i[x],C=b.data.hostModel,M=_.data.getItemGraphicEl(_.dataIndex),k=b.data.getItemGraphicEl(b.dataIndex);if(M===k){k&&trt(k,b.dataIndex,C);return}M&&v[M.id]||k&&(Ac(k),M?(Ac(M),gw(M),o=!0,pw(Zl(M),Zl(k),b.divide,C,x,a)):vw(k,C,x))}new xo(n,i,f(!0,p),f(!1,p),null,"multiple").update(y).updateManyToOne(function(x,w){var _=i[x],b=_.data,C=b.hostModel,M=b.getItemGraphicEl(_.dataIndex),k=Ir(de(w,function(P){return n[P].data.getItemGraphicEl(n[P].dataIndex)}),function(P){return P&&P!==M&&!v[P.id]});M&&(Ac(M),k.length?(U(k,function(P){Ac(P),gw(P)}),o=!0,pw(Zl(k),Zl(M),_.divide,C,x,a)):vw(M,C,_.dataIndex))}).updateOneToMany(function(x,w){var _=n[w],b=_.data.getItemGraphicEl(_.dataIndex);if(!(b&&v[b.id])){var C=Ir(de(x,function(k){return i[k].data.getItemGraphicEl(i[k].dataIndex)}),function(k){return k&&k!==b}),M=i[x[0]].data.hostModel;C.length&&(U(C,function(k){return Ac(k)}),b?(Ac(b),gw(b),o=!0,pw(Zl(b),Zl(C),_.divide,M,x[0],a)):U(C,function(k){return vw(k,M,x[0])}))}}).updateManyToMany(function(x,w){new xo(w,x,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,b){y(x[_],w[b])}).execute()}).execute(),o&&U(t,function(x){var w=x.data,_=w.hostModel,b=_&&e.getViewOfSeriesModel(_),C=Lu("update",_,0);b&&_.isAnimationEnabled()&&C&&C.duration>0&&b.group.traverse(function(M){M instanceof rr&&!M.animators.length&&M.animateFrom({style:{opacity:0}},C)})})}function PO(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function EO(r){return ce(r)?r.sort().join(","):r}function Ss(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function rrt(r,t){var e=Pe(),n=Pe(),i=Pe();U(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=PO(o),d=EO(c);n.set(d,{dataGroupId:l,data:u}),ce(c)&&U(c,function(h){i.set(h,{key:d,dataGroupId:l,data:u})})});function a(o){e.get(o)&&az("Duplicated seriesKey in universalTransition "+o)}return U(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=PO(o),c=EO(u),d=n.get(c);if(d)e.set(c,{oldSeries:[{dataGroupId:d.dataGroupId,divide:Ss(d.data),data:d.data}],newSeries:[{dataGroupId:s,divide:Ss(l),data:l}]});else if(ce(u)){var h=[];U(u,function(v){var g=n.get(v);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Ss(g.data),data:g.data})}),h.length&&e.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:Ss(l)}]})}else{var f=i.get(u);if(f){var p=e.get(f.key);p||(p={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Ss(f.data)}],newSeries:[]},e.set(f.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:Ss(l)})}}}}),e}function LO(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function nrt(r,t,e,n){var i=[],a=[];U(kr(r.from),function(o){var s=LO(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Ss(t.oldData[s]),groupIdDim:o.dimension})}),U(kr(r.to),function(o){var s=LO(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Ss(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&kO(i,a,n)}function irt(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){U(kr(n.seriesTransition),function(i){U(kr(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][bp]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var i=Jet(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)U(kr(a),function(f){nrt(f,i,n,e)});else{var o=rrt(i,n);U(o.keys(),function(f){var p=o.get(f);kO(p.oldSeries,p.newSeries,e)})}U(n.updatedSeries,function(f){f[bp]&&(f[bp]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],d=0;d<s.length;d++){var h=s[d].getData();h.count()<TO&&(l.push(s[d]),u.push(s[d].get("dataGroupId")),c.push(h))}})}Ze([O2]),Ze([LP]),Ze([MD,fD,ED,zD,OD,Ak,sY,jY,vX,BD,ND,xZ,$k,Wk,zZ,KZ,c$,S$,L$,F$,Bk,MJ]),Ze(PI),Ze(nP),Ze(Mk),Ze(GJ),Ze(XE),Ze(JJ),Ze(oQ),Ze(oq),Ze(WI),Ze(ah),Ze(Mq),Ze(Dq),Ze(Gq),Ze(ttt),Ze(ltt),Ze(gtt),Ze($I),Ze(Vtt),Ze(HR),Ze(GR),Ze(het),Ze(oO),Ze(lO),Ze(met),Ze(Pet),Ze(N2),Ze(irt),Ze(ax);function art(r){var t;if(typeof r=="string"){var e=new DOMParser;t=e.parseFromString(r,"text/xml")}else t=r;if(!t||t.getElementsByTagName("parsererror").length)return null;var n=fa(t,"gexf");if(!n)return null;for(var i=fa(n,"graph"),a=ort(fa(i,"attributes")),o={},s=0;s<a.length;s++)o[a[s].id]=a[s];return{nodes:srt(fa(i,"nodes"),o),links:lrt(fa(i,"edges"))}}function ort(r){return r?de(Sg(r,"attribute"),function(t){return{id:hn(t,"id"),title:hn(t,"title"),type:hn(t,"type")}}):[]}function srt(r,t){return r?de(Sg(r,"node"),function(e){var n=hn(e,"id"),i=hn(e,"label"),a={id:n,name:i,itemStyle:{normal:{}}},o=fa(e,"viz:size"),s=fa(e,"viz:position"),l=fa(e,"viz:color"),u=fa(e,"attvalues");if(o&&(a.symbolSize=parseFloat(hn(o,"value"))),s&&(a.x=parseFloat(hn(s,"x")),a.y=parseFloat(hn(s,"y"))),l&&(a.itemStyle.normal.color="rgb("+[hn(l,"r")|0,hn(l,"g")|0,hn(l,"b")|0].join(",")+")"),u){var c=Sg(u,"attvalue");a.attributes={};for(var d=0;d<c.length;d++){var h=c[d],f=hn(h,"for"),p=hn(h,"value"),v=t[f];if(v){switch(v.type){case"integer":case"long":p=parseInt(p,10);break;case"float":case"double":p=parseFloat(p);break;case"boolean":p=p.toLowerCase()==="true";break;default:}a.attributes[f]=p}}}return a}):[]}function lrt(r){return r?de(Sg(r,"edge"),function(t){var e=hn(t,"id"),n=hn(t,"label"),i=hn(t,"source"),a=hn(t,"target"),o={id:e,name:n,source:i,target:a,lineStyle:{normal:{}}},s=o.lineStyle.normal,l=fa(t,"viz:thickness"),u=fa(t,"viz:color");return l&&(s.width=parseFloat(l.getAttribute("value"))),u&&(s.color="rgb("+[hn(u,"r")|0,hn(u,"g")|0,hn(u,"b")|0].join(",")+")"),o}):[]}function hn(r,t){return r.getAttribute(t)}function fa(r,t){for(var e=r.firstChild;e;)if(e.nodeType!==1||e.nodeName.toLowerCase()!==t.toLowerCase())e=e.nextSibling;else return e;return null}function Sg(r,t){for(var e=r.firstChild,n=[];e;)e.nodeName.toLowerCase()===t.toLowerCase()&&n.push(e),e=e.nextSibling;return n}function urt(r){return r.sort(function(t,e){return t-e}),r}function mw(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function RO(r,t){t=t||{};for(var e=[],n=[],i=[],a=t.boundIQR,o=a==="none"||a===0,s=0;s<r.length;s++){i.push(s+"");var l=urt(r[s].slice()),u=mw(l,.25),c=mw(l,.5),d=mw(l,.75),h=l[0],f=l[l.length-1],p=(a==null?1.5:a)*(d-u),v=o?h:Math.max(h,u-p),g=o?f:Math.min(f,d+p);e.push([v,u,c,d,g]);for(var m=0;m<l.length;m++){var y=l[m];if(y<v||y>g){var x=[s,y];t.layout==="vertical"&&x.reverse(),n.push(x)}}}return{boxData:e,outliers:n,axisData:i}}var crt="1.0.0";qp&&(qp.version=crt,qp.gexf=Z,qp.prepareBoxplotData=RO);const drt=r=>{let{data:t,theme:e,boxWidth:n}=r;const i=t.map(s=>s.data),{boxData:a,outliers:o}=RO(i);return[{type:"boxplot",data:a,boxWidth:[0,n+"%"],itemStyle:{color:(0,Pr.tp)({theme:e,color:t[0].color,index:0}),borderColor:"#101010"},emphasis:{itemStyle:{color:(0,Pr.tp)({theme:e,color:t[0].color,index:0}),borderWidth:1,borderColor:"#101010"}}},{name:"outlier",type:"scatter",data:o,symbolSize:10,itemStyle:{color:(0,Pr.tp)({theme:e,color:t[0].color,index:0})}}]},hrt=r=>{const t={},e={},n=new Map;let i=!0;const a=[];r.forEach(u=>{const c=n.get(u.data[0]),d=n.get(u.data[1]);(!c||!d)&&(!c&&n.set(u.data[0],{color:u.color}),!d&&n.set(u.data[1],{color:u.targetColor}))});const o=Array.from(n.keys());(u=>{for(let c=0;c<u.length;c++){const d=u[c];t[d]={};for(let h=0;h<u.length;h++){const f=u[h];t[d][f]=0}}for(let c=0;c<r.length;c++){const d=r[c],[h,f]=d.data;t[h][f]=1}for(let c=0;c<u.length;c++)e[u[c]]=0})(o);const l=u=>{e[o[u]]=1;for(let c=0;c<o.length;c++)if(t[o[u]][o[c]]!==0)if(e[o[c]]===1){i=!1,a.push([o[u],o[c]]);continue}else{if(e[o[c]]===-1)continue;l(c)}e[o[u]]=-1};for(let u=0;u<o.length;u++)e[o[u]]!==-1&&l(u);return{isDAG:i,seriesMap:n,circleData:a}},frt=r=>{let{series:t,theme:e,labelText:n,labelNumber:i,prefixStr:a,suffixStr:o}=r;const s=t.filter(h=>!(!h.data[0]||!h.data[1]||Number(h.data[2])<=0||String(h.data[0])===String(h.data[1]))).map(h=>({...h,data:h.data.map((f,p)=>p===h.data.length-1?Number(f):String(f))})),{isDAG:l,seriesMap:u,circleData:c}=hrt(s),d=!l&&c!=null&&c.length?s.filter(h=>{const f=[h.data[0],h.data[1]];return!c.find(v=>v[0]===f[0]&&v[1]===f[1])}):s;return{data:Array.from(u.keys()).map((h,f)=>({name:h,itemStyle:{color:(0,Pr.tp)({theme:e,color:u.get(h).color,index:f})},label:{show:n.isVisible,...(0,Pr.$y)(n.textStyle).textStyle}})),links:d.map(h=>({source:String(h.data[0]),target:String(h.data[1]),value:Number(h.data[2]),lineStyle:{color:"source",opacity:.1},edgeLabel:{show:i.isVisible,formatter:f=>{let{value:p}=f;return""+a+p+o},...(0,Pr.$y)(i.textStyle).textStyle}}))}},prt=r=>{let{data:t,theme:e,labelText:n,labelNumber:i,unit:a}=r;const{prefixStr:o,suffixStr:s}=(0,ja.I)(a),{data:l,links:u}=frt({series:t,theme:e,labelText:n,labelNumber:i,prefixStr:o,suffixStr:s});return[{type:"sankey",layout:"none",emphasis:{focus:"adjacency"},nodeWidth:8,left:"center",top:"center",width:"80%",height:"80%",draggable:!1,data:l,links:u}]},vrt=(r,t)=>{const e=t===be.N.bubble_chart,n=new Map;for(let i=0;i<r.length;i++){const a=r[i];if(e&&a.data[a.data.length-1]==="-")continue;const o=n.get(a.name);o!=null&&o.data?n.set(a.name,{...o,data:o.data.concat([a.data])}):n.set(a.name,{data:[a.data],color:a.color})}return Array.from(n.keys()).map(i=>({name:i,data:n.get(i).data,color:n.get(i).color}))},OO=(r,t)=>{const{chartData:{series:e},chartConfig:n}=r,{chartType:i,chartCategory:a,chartTheme:o,smooth:s,chartBorderRadius:l,chartInnerRadius:u,foregroundColor:c,backgroundColor:d,progress:h,legend:f,suffix:p,prefix:v,minNum:g,maxNum:m,chartAnimation:y,bubbleRadius:x,minBubbleRadius:w,maxBubbleRadius:_,label:b,labelText:C,labelNumber:M,minFontSize:k,maxFontSize:P,boxWidth:R,barCategoryGap:j}=n,X=t&&y,st=[be.N.scatter_chart,be.N.bubble_chart].includes(i),dt=e.map(Ft=>{const Kt=Ft.data.map(Ut=>Ut||(st?"-":0));return{...Ft,data:Kt}}),xt=i==="radar_chart"||a==="normal"?[dt[0]]:st?vrt(dt,i):dt,Rt=dt.map(Ft=>({data:[Ft.data[0]],name:Ft.name,color:Ft.color})),wt={suffix:p,prefix:v};let Lt;switch(i){case be.N.bar_chart:case be.N.horizontal_bar_chart:case be.N.line_chart:case be.N.line_area_chart:Lt=PK({data:xt,theme:o,type:i,category:a,smooth:s,label:b,unit:wt,barCategoryGap:j});break;case be.N.mixed_bar_line_chart:Lt=OK({data:xt,theme:o,type:i,category:a,smooth:s,label:b,unit:wt,barCategoryGap:j});break;case be.N.pie_chart:case be.N.ring_chart:case be.N.nightingale_chart:Lt=EK({data:Rt,theme:o,type:i,legend:f,label:b,borderRadius:l,innerRadius:u,unit:wt});break;case be.N.progress_chart:Lt=LK({progress:h,innerRadius:u,foregroundColor:c,backgroundColor:d,label:b});break;case be.N.radar_chart:Lt=RK({data:dt,theme:o,type:i,label:b,unit:wt});break;case be.N.waterfall_chart:Lt=TK({data:e,theme:o,label:b,unit:wt,barCategoryGap:j});break;case be.N.scatter_chart:Lt=MK({data:xt,bubbleRadius:x,theme:o});break;case be.N.funnel_chart:Lt=AK({data:dt,label:b,theme:o});break;case be.N.gauge_chart:Lt=IK({progress:h,unit:wt,foregroundColor:c,backgroundColor:d,minNum:g,maxNum:m,canRunChartAnimation:X,label:b,labelText:C});break;case be.N.liquid_fill_gauge_chart:Lt=DK({data:dt,theme:o,label:b,canRunChartAnimation:X});break;case be.N.map_chart:Lt=kK(r);break;case be.N.bubble_chart:Lt=NK({data:xt,theme:o,minBubbleRadius:w,maxBubbleRadius:_});break;case be.N.radial_polar_chart:Lt=BK({data:xt,theme:o,category:a,label:b,unit:wt});break;case be.N.sunburst_chart:Lt=(0,VK.q)({data:e,theme:o,borderRadius:l,labelText:C,labelNumber:M,unit:wt});break;case be.N.word_cloud_chart:Lt=(0,zK.L)({data:xt,theme:o,minFontSize:k,maxFontSize:P});break;case be.N.boxplot_chart:Lt=drt({data:xt,theme:o,boxWidth:R});break;case be.N.sankey_chart:Lt=prt({data:xt,theme:o,labelText:C,labelNumber:M,unit:wt});break}return{series:Lt}},grt=r=>{const t=[];return r.forEach(e=>t.push(e.data)),Math.max.apply(null,t.flat())},NO=r=>{let t={};const{chartData:{xAxis:e,series:n},chartConfig:i}=r,{chartType:a,legend:o,axis:s}=i,l=(0,Mt.sG)(o),{textStyle:u}=(0,Pr.$y)(s.textStyle),c=grt(n);return a==="radar_chart"&&(t={radar:{indicator:e.map(d=>({name:d,max:c})),center:l.isVisible?[""+jv.x[l.x],""+jv.y[l.y]]:["50%","50%"],axisName:{show:s.isVisible,...u},splitArea:{show:!1},splitLine:{lineStyle:{color:(0,Bn.qy)("#E8E8E8")}},axisLine:{lineStyle:{color:"transparent"}}}}),{otherData:t}},mrt=r=>{let{type:t,show:e,prefixStr:n,category:i,textStyle:a,suffixStr:o,gridObj:s,minNum:l,maxNum:u,interval:c}=r,d;if(t===be.N.mixed_bar_line_chart)d=[{type:"value",axisLabel:{show:e,formatter:h=>""+n+h+(i==="accPer"?"%":o),...a},splitLine:{show:s.bdrIsVisible,lineStyle:{color:[(0,et.t0)(s.bdrColor)],type:s.bdrStyle,width:s.bdrWidth}},min:l,max:u,interval:c},{type:"value",axisLabel:{show:e,formatter:h=>""+n+h+(i==="accPer"?"%":o),...a},splitLine:{show:!1,lineStyle:{color:[(0,et.t0)(s.bdrColor)],type:s.bdrStyle,width:s.bdrWidth}},min:l,max:u,interval:c}];else{const h=[be.N.scatter_chart,be.N.bubble_chart].includes(t),f=h&&!e?{axisTick:{show:!1},axisLine:{show:!1}}:{};d=[{type:"value",axisLabel:{show:e,formatter:p=>h?p:""+n+p+(i==="accPer"?"%":o),...a},splitLine:{show:s.bdrIsVisible,lineStyle:{color:[(0,et.t0)(s.bdrColor)],type:s.bdrStyle,width:s.bdrWidth}},min:l,max:u,interval:c,...f}]}return d},yrt=r=>{let{type:t,show:e,textStyle:n,gridObj:i,xAxis:a,textAngle:o,prefixStr:s,suffixStr:l,isXAxisValue:u,minNum:c,maxNum:d,series:h}=r,f;if(u){const p=[be.N.scatter_chart,be.N.bubble_chart].includes(t);f={type:"value",axisLine:{show:e},axisLabel:{show:e,...n,interval:0,rotate:o,formatter:v=>p?v:""+s+v+l},axisTick:{show:e},splitLine:{show:i.bdrIsVisible,lineStyle:{color:[(0,et.t0)(i.bdrColor)],type:i.bdrStyle,width:i.bdrWidth}},min:c,max:d}}else{const p=t===be.N.boxplot_chart?{data:h.map(v=>v.name)}:{data:a};f={type:"category",axisLine:{show:e},axisLabel:{show:e,...n,interval:0,rotate:o},axisTick:{show:e},...p}}return f},xrt=r=>{let{show:t,textStyle:e,gridObj:n,xAxis:i,prefixStr:a,suffixStr:o,category:s,legend:l,minNum:u,maxNum:c,interval:d,textAngle:h}=r;const f=(0,Mt.sG)(l),v=!f.isVisible?[30,"85%"]:[30,"75%"];return{angleAxis:{type:"value",startAngle:75,axisLabel:{show:t,formatter:g=>""+a+g+(s==="accPer"?"%":o),...e},axisTick:{show:t},splitLine:{show:n.bdrIsVisible,lineStyle:{color:[(0,et.t0)(n.bdrColor)],type:n.bdrStyle,width:n.bdrWidth}},max:c,min:u,interval:d},radiusAxis:{type:"category",data:i,axisLabel:{show:t,...e,interval:0,rotate:h},axisTick:{show:t},z:10},polar:{radius:v,center:f.isVisible?[jv.x[f.x],"50%"]:["50%","50%"]}}},BO=r=>[be.N.pie_chart,be.N.ring_chart,be.N.progress_chart,be.N.radar_chart,be.N.nightingale_chart,be.N.funnel_chart,be.N.gauge_chart,be.N.liquid_fill_gauge_chart,be.N.map_chart,be.N.sunburst_chart,be.N.word_cloud_chart,be.N.sankey_chart].includes(r),Srt=[be.N.scatter_chart,be.N.bubble_chart,be.N.radial_polar_chart],VO=r=>{const{chartData:{xAxis:t,series:e},chartConfig:n}=r,{grid:i,chartType:a,chartCategory:o,prefix:s,suffix:l,axis:u,legend:c}=n,d={prefix:s,suffix:l},{isVisible:h,xAxis:{minNum:f,maxNum:p},yAxis:{minNum:v,maxNum:g},textAngle:m,interval:y}=u;if(BO(a))return{};const x=Srt.includes(a),{textStyle:w}=(0,Pr.$y)(u.textStyle),{prefixStr:_,suffixStr:b}=(0,ja.I)(d);if(a===be.N.radial_polar_chart)return xrt({show:h,textStyle:w,gridObj:i,xAxis:t,prefixStr:_,suffixStr:b,category:o,legend:c,minNum:v,maxNum:g,interval:y,textAngle:m});const C=yrt({type:a,show:h,textStyle:w,gridObj:i,xAxis:t,textAngle:m,prefixStr:_,suffixStr:b,isXAxisValue:x,minNum:f,maxNum:p,series:e}),M=mrt({type:a,show:h,prefixStr:_,category:o,textStyle:w,suffixStr:b,gridObj:i,minNum:v,maxNum:g,interval:y});return{xAxis:a===be.N.horizontal_bar_chart?M:C,yAxis:a===be.N.horizontal_bar_chart?C:M}},wrt=r=>[be.N.map_chart,be.N.sunburst_chart,be.N.word_cloud_chart,be.N.sankey_chart].includes(r),zO=r=>{const{chartConfig:t}=r,{legend:e,chartType:n}=t;if(wrt(n))return{};const{textStyle:i}=(0,Pr.$y)(e.textStyle),a=(0,Mt.sG)(e),o={show:a.isVisible,orient:a.x==="center"?"horizontal":"vertical",x:a.x,y:a.y,textStyle:i};return{legend:o,grid:{show:!1,top:o.show&&a.y==="top"?"15%":"5%",left:o.show&&a.x==="left"?"20%":"5%",bottom:o.show&&a.y==="bottom"?"15%":"5%",right:o.show&&a.x==="right"?"20%":"5%",containLabel:!0}}},yw=(r,t,e)=>{const{chartConfig:{chartAnimation:n}}=r,{tooltip:i}=RP(r,e),{series:a}=OO(r,t),o=VO(r),{legend:s,grid:l}=zO(r),{otherData:u}=NO(r);return{...o,series:a,legend:s,tooltip:i,grid:l,...u,animation:t&&n}};var xw=T(18816);const brt=r=>{r.setAttribute("data-mark","echarts-div")},Nlt=()=>{for(const r of document.querySelectorAll("[data-mark=echarts-div] svg"))r.style.transform="translateZ(0)";requestAnimationFrame(()=>{for(const r of document.querySelectorAll("[data-mark=echarts-div] svg"))r.style.transform=""})},HO=K.Ay.div.withConfig({displayName:"styles__StyledCommonChart",componentId:"sc-d8j7wg-0"})(["position:relative;"]);Ze([PI,WI,$I,fD,MD,ED,OD,ND,BD,zD,Ak,Bk,Wk,$k,LP]);const Sw=r=>{const{chartConfig:t,chartData:e,textV0:n}=r,i={width:r.w,height:r.h,chartType:t.chartType,chartCategory:t.chartCategory,chartTheme:t.chartTheme,grid:t.grid,showToolTip:t.isShowToolTip,showAxis:t.isShowAxis,legend:t.legend,chartData:e,xAxis:e.xAxis,textV0:n,prefix:t.prefix,suffix:t.suffix,progress:t.progress,chartInnerRadius:t.chartInnerRadius,chartBorderRadius:t.chartBorderRadius,smooth:t.smooth,animation:t.animation,maxNum:t.maxNum,minNum:t.minNum,chartAnimation:t.chartAnimation,mapAdCode:t.mapAdCode,axis:t.axis,bubbleRadius:t.bubbleRadius,minBubbleRadius:t.minBubbleRadius,maxBubbleRadius:t.maxBubbleRadius,label:t.label,labelText:t.labelText,labelNumber:t.labelNumber,minFontSize:t.minFontSize,maxFontSize:t.maxFontSize,boxWidth:t.boxWidth,barCategoryGap:t.barCategoryGap,hoverStyle:t.hoverStyle,toolTipStyle:t.toolTipStyle,mapSolidColor:t.mapSolidColor,backgroundColor:t.backgroundColor,foregroundColor:t.foregroundColor},a=(f,p,v)=>{p.clear();const g=yw(f,v,p);p.setOption(g)},o=(f,p)=>{let{width:v,height:g}=f;p==null||p.resize({width:v,height:g})},s=(f,p,v)=>{const g=OO(f,v);p.setOption(g,{replaceMerge:["series"]})},l=(f,p)=>{const v=VO(f);p.setOption(v,{replaceMerge:["xAxis","yAxis"]})},u=(f,p)=>{const v=RP(f,p);p.setOption(v,{replaceMerge:["tooltip"]})},c=(f,p)=>{const v=zO(f);p.setOption(v,{replaceMerge:["legend"]})},d=(f,p)=>{const{otherData:v}=NO(f);p.setOption({...v},{replaceMerge:["radar"]})},h=(f,p,v)=>{const{chartConfig:{chartAnimation:g}}=f;p==null||p.setOption({animation:v&&g})};return{mount:async(f,p)=>{const v=document.createElement("div");brt(v);const g=Ny(v,null,{renderer:"svg",width:r.w,height:r.h});if(r.chartConfig.chartType===be.N.map_chart){const y=xw.h["Map"+r.chartConfig.mapAdCode];let x="";y.hasMLG()?x=y.getMLG():x=await y.loadMLG(),Qp("MAP_CHART",x)}const m=yw(r,p,g);return g.setOption(m),f.appendChild(v),g},update:async(f,p,v)=>{var g,m,y,x;if(f.chartConfig.chartType===be.N.map_chart){const w=xw.h["Map"+f.chartConfig.mapAdCode];let _="";w.hasMLG()?_=w.getMLG():_=await w.loadMLG(),Qp("MAP_CHART",_);const b=!i.textV0&&f.textV0||f.textV0&&i.textV0&&(f.textV0.textColor!==i.textV0.textColor||f.textV0.fontSize!==i.textV0.fontSize);(f.chartConfig.mapAdCode!==i.mapAdCode||JSON.stringify(f.chartConfig.hoverStyle)!==JSON.stringify(i.hoverStyle)||!Yr()(f.chartConfig.grid,i.grid)||b||f.chartConfig.isShowAxis!==i.showAxis||f.chartConfig.mapSolidColor!==i.mapSolidColor)&&s(f,p,v)}else f.chartConfig.chartType===be.N.radar_chart&&(JSON.stringify(f.chartData)!==JSON.stringify(i.chartData)||JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)||!Yr()(f.chartConfig.axis,i.axis))&&d(f,p);(f.w!==i.width||f.h!==i.height)&&o({width:f.w,height:f.h},p),f.chartConfig.chartType!==i.chartType&&a(f,p,v),(f.chartConfig.chartCategory!==i.chartCategory||f.chartConfig.chartTheme!==i.chartTheme||f.chartConfig.smooth!==i.smooth||JSON.stringify(f.chartData)!==JSON.stringify(i.chartData)||JSON.stringify(f.chartConfig.prefix)!==JSON.stringify(i.prefix)||JSON.stringify(f.chartConfig.suffix)!==JSON.stringify(i.suffix)||f.chartConfig.chartBorderRadius!==i.chartBorderRadius||f.chartConfig.chartInnerRadius!==i.chartInnerRadius||JSON.stringify(f.chartConfig.progress)!==JSON.stringify(i.progress)||JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)&&[be.N.pie_chart,be.N.ring_chart,be.N.nightingale_chart].includes(f.chartConfig.chartType)||f.chartConfig.bubbleRadius!==i.bubbleRadius||f.chartConfig.minBubbleRadius!==i.minBubbleRadius||f.chartConfig.maxBubbleRadius!==i.maxBubbleRadius||JSON.stringify(f.chartConfig.label)!==JSON.stringify(i.label)||JSON.stringify(f.chartConfig.labelText)!==JSON.stringify(i.labelText)||JSON.stringify(f.chartConfig.labelNumber)!==JSON.stringify(i.labelNumber)||f.chartConfig.minFontSize!==i.minFontSize||f.chartConfig.maxFontSize!==i.maxFontSize||f.chartConfig.boxWidth!==i.boxWidth||f.chartConfig.barCategoryGap!==i.barCategoryGap||f.chartConfig.backgroundColor!==i.backgroundColor||f.chartConfig.foregroundColor!==i.foregroundColor)&&(h(f,p,v),s(f,p,v)),(!Yr()(f.chartConfig.grid,i.grid)||!Yr()(f.chartData.xAxis,i.xAxis)||!Yr()(f.chartConfig.axis,i.axis)||f.chartConfig.maxNum!==i.maxNum||f.chartConfig.minNum!==i.minNum||JSON.stringify(f.chartConfig.prefix)!==JSON.stringify(i.prefix)||JSON.stringify(f.chartConfig.suffix)!==JSON.stringify(i.suffix)||JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)&&f.chartConfig.chartType===be.N.radial_polar_chart||JSON.stringify(f.chartData)!==JSON.stringify(i.chartData)&&f.chartConfig.chartType===be.N.boxplot_chart||f.chartConfig.chartCategory!==i.chartCategory)&&(BO(f.chartConfig.chartType)||l(f,p)),(f.chartConfig.isShowToolTip!==i.showToolTip||f.chartConfig.chartCategory!==i.chartCategory||JSON.stringify(f.chartConfig.prefix)!==JSON.stringify(i.prefix)||JSON.stringify(f.chartConfig.suffix)!==JSON.stringify(i.suffix)||JSON.stringify(f.chartConfig.toolTipStyle)!==JSON.stringify(i.toolTipStyle)||f.chartConfig.chartType===be.N.boxplot_chart&&(g=f.chartData)!=null&&(g=g.series)!=null&&g.length&&(m=i.chartData)!=null&&(m=m.series)!=null&&m.length&&((y=f.chartData)==null||(y=y.series[0])==null?void 0:y.color)!==((x=i.chartData)==null||(x=x.series[0])==null?void 0:x.color)||f.chartConfig.chartType===be.N.liquid_fill_gauge_chart&&JSON.stringify(f.chartData)!==JSON.stringify(i.chartData))&&u(f,p),JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)&&c(f,p),f.chartConfig.chartType===be.N.gauge_chart&&(f.chartConfig.maxNum!==i.maxNum||f.chartConfig.minNum!==i.minNum||f.chartConfig.backgroundColor!==i.backgroundColor||f.chartConfig.foregroundColor!==i.foregroundColor)&&s(f,p,v),f.chartConfig.chartAnimation!==i.chartAnimation&&(a(f,p,!0),f.chartConfig.chartType===be.N.liquid_fill_gauge_chart&&s(f,p,v))},updateAnimation:(f,p,v)=>{a(f,p,v)},destroy:()=>{}}};class FO extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"state",{prevWidget:null}),(0,ge.A)(this,"setWidgetRef",t=>this.widgetRef=t),(0,ge.A)(this,"handleClickOutSide",t=>{var e,n,i,a;const{editChartDataCid:o,widget:{key:s,hotAttr:l},mode:u}=this.props,{chartConfig:{chartType:c}}=l;if(u!=="design"||o!==s||![be.N.progress_chart,be.N.gauge_chart].includes(c))return;const d=t.target;this.widgetRef.contains(d)||d!=null&&(e=d.closest)!=null&&e.call(d,".mb-right-panel")||d!=null&&(n=d.closest)!=null&&n.call(d,"[type=color-panel]")||d!=null&&(i=d.closest)!=null&&i.call(d,".--mb--color-picker")||d!=null&&(a=d.closest)!=null&&a.call(d,".SelectOption")||MB.action("entry:chart:out:edit")})}async componentDidMount(){const{mode:t,widget:e,editChartDataCid:n}=this.props,{key:i,hotAttr:a}=e,o=n===i;if(this.chartsInstance=await Sw(a).mount(this.widgetRef,o),t==="preview"){const s=MB.runnerController.resetHandler.getWStatus(i,"option");s&&(s.tooltip=this.chartsInstance.getOption().tooltip,this.chartsInstance.setOption(s)),this.unsubscribeChartsOption=MB.runnerController.resetHandler.subscribeChartsOption(()=>{MB.runnerController.resetHandler.updateWStatusMap(i,{option:this.chartsInstance.getOption()})})}}async componentDidUpdate(t){var e,n;const i=this.props.editChartDataCid===this.props.widget.key,a=(e=t.widget)==null?void 0:e.hotAttr,o=(n=this.props.widget)==null?void 0:n.hotAttr;if(!Yr()(a==null?void 0:a.chartData,o==null?void 0:o.chartData)||JSON.stringify(a==null?void 0:a.chartConfig)!==JSON.stringify(o==null?void 0:o.chartConfig)||JSON.stringify(a==null?void 0:a.textV0)!==JSON.stringify(o==null?void 0:o.textV0)||(a==null?void 0:a.w)!==(o==null?void 0:o.w)||(a==null?void 0:a.h)!==(o==null?void 0:o.h)){if(!this.chartsInstance)return;await Sw(a).update(o,this.chartsInstance,i);return}if((o==null?void 0:o.chartConfig.chartType)===be.N.liquid_fill_gauge_chart&&t.editChartDataCid!==this.props.editChartDataCid){if(!this.chartsInstance)return;Sw(o).updateAnimation(o,this.chartsInstance,i)}}componentWillUnmount(){var t,e;this.props.mode==="preview"&&((t=this.unsubscribeChartsOption)==null||t.call(this)),(e=this.chartsInstance)==null||e.dispose()}render(){const{widget:{hotAttr:{w:t,h:e},key:n},editChartDataCid:i}=this.props,a={width:t,height:e,pointerEvents:i===n?"auto":"none"};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(HO,{style:a,ref:this.setWidgetRef}),(0,S.jsx)(Gr.A,{target:document,onMouseDown:(0,Gr.t)(this.handleClickOutSide,{capture:!0})})]})}}const _rt=r=>{const{w:t,h:e,chartConfig:{chartType:n,mapAdCode:i}}=r,a=document.createElement("div"),o=Ny(a,null,{renderer:"svg",width:t,height:e});if(n===be.N.map_chart){const l=xw.h["Map"+i];l.hasMLG()&&Qp("MAP_CHART",l.getMLG())}const s=yw(r,!1,o);return o.setOption(s),o.getDom().outerHTML},Crt=r=>{const{widget:{hotAttr:t}}=r,e=(0,I.useMemo)(()=>_rt(t),[]);return(0,S.jsx)(HO,{dangerouslySetInnerHTML:{__html:e}})};var ww=T(60651);const Trt=(0,I.memo)(r=>{let{widget:t,mode:e}=r;return e==="snapshot"?(0,S.jsx)(Crt,{widget:t}):e==="design"?(0,S.jsx)(Mrt,{widget:t,mode:e}):(0,S.jsx)(FO,{widget:t,editChartDataCid:t.key,mode:e})}),Mrt=r=>{const t=(0,we.d4)(ww.tp);return(0,S.jsx)(FO,{widget:r.widget,mode:"design",editChartDataCid:t})},Art=Trt;var Irt=T(15651),WO=T(27784),hi=T(40486),jO=T(76613),GO=T(70933),Drt=T(67588),krt=T(67934);const Prt=K.Ay.a.withConfig({displayName:"InteractionMarker__StyledInteractionMarker",componentId:"sc-im5chm-0"})(["display:flex;position:absolute;right:0;top:0;transform:scale(var(--scale-revert));transform-origin:top right;.svg-icon{width:10px;height:10px;color:#d3e9f8;transition:width 0.2s,height 0.2s;}&:hover{.svg-icon{width:15px;height:15px;}}"]),Ert=(r,t)=>{let{interactionKey:e}=t;const n=(0,krt.vy)(r),i=(0,Drt.Jv)(r),a=n.includes(e),o=(0,GO.X_)(r);return{showLinkMark:a||i===jO.N_.displaySetting.show_mark||i===jO.N_.displaySetting.show_mark_and_line,scale:o}},UO=r=>{let{showLinkMark:t,scale:e,className:n="",markerStyle:i={},parentSize:a,handleMarkerClicked:o}=r;if(!t||a&&a*e/100<1)return null;const s={transform:"scale("+100/e+")",...i};return(0,S.jsx)(Prt,{className:n,style:s,onClick:o,onMouseDown:l=>l.stopPropagation(),children:(0,S.jsx)(xr.C,{name:"icon/link/mark"})})};UO.displayName="InteractionMarker";const pa=(0,we.Ng)(Ert)(UO),KO=(0,I.memo)(r=>{const{treeData:t,widget:{key:e,hotAttr:{carousel:n}}}=r,{isEditingCombo:i,editingPanelCid:a,sdkStore:o}=t,{slides:s}=n,l=s[0];if(!(l!=null&&l.linkCids))return null;const u=(0,Xt.ER)(o,e,l.linkCids,i,a);if(!(u!=null&&u.length))return null;const{firstUiInteractiveIta:c}=(0,hi.HW)(u,l.linkCids);return c?(0,S.jsx)(pa,{interactionKey:c.key,markerStyle:(0,ht.OO)(e)?{pointerEvents:"none"}:null},c.key):null});KO.displayName="CarouselInteractionMarker";const Lrt=KO,YO=K.Ay.div.withConfig({displayName:"styles__StyledCarousel",componentId:"sc-1xa75c7-0"})(["height:100%;.pointers{position:absolute;display:flex;justify-content:center;align-items:center;width:100%;height:30px;top:auto !important;right:auto !important;bottom:0 !important;left:0 !important;transform:translateX(0) !important;}.pointer{background-color:rgb(51,51,51);display:block;width:8px;height:8px;border-radius:4px;margin:0 10px 0 0;}&.vertical{.pointer{margin:10px 0 0 0;}.pointers{flex-direction:column;width:30px;height:100%;top:0 !important;right:0 !important;bottom:auto !important;left:auto !important;transform:translateY(0) !important;}.slick-slider{.slick-track{display:block !important;}.slick-dots{width:30px;height:100%;flex-direction:column;right:0;}}}.slick-slider{height:100%;.slick-list{height:100% !important;.slick-track{height:100% !important;display:flex;.slick-slide{height:100%;> div{height:100%;}}}}.slick-dots{position:absolute;bottom:0;width:100%;height:30px;display:flex !important;justify-content:center;align-items:center;li{display:flex;span{display:none;}}}.image-wrapper{position:relative;span{svg.icon{width:32px;height:32px;}}}}"]);class XO extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"genPointers",t=>(e,n)=>{const i=n===t,a="pointer "+(i?"active":""),{widget:{hotAttr:o}}=this.props,{carousel:s}=o,{pointerBg:l,pointerFg:u}=s,c={backgroundColor:i?(0,et.t0)(u):(0,et.t0)(l)};return(0,S.jsx)("i",{style:c,className:a},"pointer-"+n)}),(0,ge.A)(this,"genPointersActiveAtStart",t=>(e,n)=>this.genPointers(t)(e,n))}render(){const{widget:{hotAttr:t}}=this.props,{carousel:e}=t,{slides:n,showPointers:i,vertical:a,displayIndex:o=0}=e,{asset:s,fillType:l}=n[o]||{};return(0,S.jsx)(YO,{className:V()("carousel-wrapper",{vertical:a}),style:(0,ot.Nb)(t),children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(WO.A,{src:(0,on.Kf)(s),fillType:l}),i&&(0,S.jsx)("div",{className:"pointers",children:n.map(this.genPointersActiveAtStart(o))})]})})}}const Rrt=(0,I.memo)(r=>{let{widget:t,treeData:e}=r;const{key:n,hotAttr:i}=t,{slides:a,autoShift:o,interval:s,vertical:l,showPointers:u,displayIndex:c=0}=i.carousel,[d,h]=(0,I.useState)(c),f=(0,I.useRef)(),p=(0,I.useRef)(i.carousel);p.current=i.carousel;const{isEditingCombo:v,editingPanelCid:g,sdkStore:m}=e,y=u&&a.length!==1,x=(0,I.useMemo)(()=>(0,Xt.DS)(m,n,v,g),[m,n,v,g,i.interactions]),w=(M,k)=>{let{asset:P,linkCids:R,fillType:j}=M;const{interactiveCids:X,itaClassName:st}=(0,hi.HW)(x,R),dt={pointerEvents:"auto",...(0,ot.Nb)(i)};return(0,S.jsx)(WO.A,{dataContainerCid:n,src:(0,on.Kf)(P),link_cid:X,className:st,style:dt,fillType:j},"slide-"+k)},_=(0,I.useCallback)(M=>{h(M),m.overwriteItem({key:n,hotAttr:{carousel:{...p.current,displayIndex:M}}})},[]),b=(0,I.useMemo)(()=>({vertical:l,verticalSwiping:l,autoplay:o,autoplaySpeed:s,pauseOnHover:!1,dots:y,infinite:!0,arrows:!1,slidesToShow:1,slidesToScroll:1,initialSlide:c,beforeChange:(M,k)=>_(k),afterChange:M=>{var k;const P=(k=m.getHotItem(n))==null?void 0:k.hotAttr.carousel.slides[M];P!=null&&P.linkCids&&MB.runnerController.eventHandler.addHiInteractions(n,["timer"])},customPaging:M=>{var k,P;const R=M===((k=(P=f.current)==null||(P=P.innerSlider)==null?void 0:P.state.currentSlide)!=null?k:d),j="pointer "+(R?"active":""),{pointerBg:X,pointerFg:st}=p.current,dt={backgroundColor:R?(0,et.t0)(st):(0,et.t0)(X)};return(0,S.jsx)("i",{style:dt,className:j},"pointer-"+M)}}),[l,o,s,y]);(0,I.useEffect)(()=>{o&&setTimeout(()=>{var M;(M=f.current)==null||M.slickPlay()},50)},[o]);const C=a.length===1?[...a,...a]:a;return(0,S.jsx)(YO,{className:V()("carousel-wrapper isPreview",{vertical:l}),children:(0,S.jsx)(Irt.A,{...b,ref:f,children:C.map(w)})})}),Ort=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;return n==="preview"?(0,S.jsx)(Rrt,{widget:t,treeData:e}):n==="snapshot"?(0,S.jsx)(XO,{widget:t}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(XO,{widget:t}),(0,S.jsx)(Lrt,{widget:t,treeData:e})]})});var Do=T(39563);const Nrt=(0,I.memo)(r=>{const{treeData:t,widget:e}=r,{sdkStore:n,isEditingCombo:i,editingPanelCid:a}=t,{key:o,hotAttr:s}=e,{tableData:{columns:l,rows:u},w:c,widthList:d,heightList:h}=s;let f=u,p=l;const v=(0,Do.SS)(s);v&&(p=d.map(y=>({width:y})),f=h.map(y=>({height:y})));let g=0;const m=v?Xt.wI:Xt.je;return(0,S.jsx)(S.Fragment,{children:f.map((y,x)=>{var w;g+=x===0?0:(w=f[x-1])==null?void 0:w.height;let _=0;return p.map((b,C)=>{var M;_+=(M=p[C])==null?void 0:M.width;const k=m(n,o,x,C,i,a).find(hi.fS);if(!k)return null;const P={top:g,right:c-_};return(0,S.jsx)(pa,{interactionKey:k.key,markerStyle:P},k.key)})})})});var Dr=T(40860),fi=T(47921),$l=T(15776);const ZO=K.Ay.div.withConfig({displayName:"tableCellStyle__StyledTableCell",componentId:"sc-1xp3tol-0"})(["&.tdDiv{align-items:flex-start;justify-content:center;}&.clickable{cursor:pointer}&.isPreview{position:relative;}"]);var wg=T(78401),Wh=T(83535);class Brt extends I.PureComponent{render(){var t;const{tableCid:e,cell:n,stringStyle:i,isPreview:a,isLineEnd:o,isColumnEnd:s,inspectMode:l,x:u,y:c,isShowInnerBorderH:d,isShowInnerBorderV:h,getRuntimeInteractionsPerTableCell:f}=this.props;let p="",v="",g="";const m=f(c,u).filter(x=>x.interactive)||[];a&&(v=m.map(x=>x.key).join(","),p=(m==null?void 0:m.length)>0?(0,Wh.t$)(m):"",g=(0,Wh.XY)(m));const y=l?{"data-x":u,"data-y":c}:{};return(0,S.jsx)(ZO,{...y,"data-container-cid":e,"data-link_cid":v,className:"tdDiv tdDiv-has-text td-need-overflow tdDiv-need-pos "+(a?"isPreview":"")+" "+p,"data-type":"td-div",style:(0,Dr.To)({stringStyle:i,isLineEnd:o,isColumnEnd:s,isShowInnerBorderH:d,isShowInnerBorderV:h,isPreview:a}),dangerouslySetInnerHTML:{__html:""+(0,wg.rB)().process(n)+(a&&((t=v)==null?void 0:t.length)>0?'<div class="region gesture '+g+'"/>':"")}})}}class bw extends I.PureComponent{constructor(t){super(t),(0,ge.A)(this,"tableContextMenu",c=>{const{widget:d,selectionTableCellInfo:h}=this.props,{x:f,y:p}=c.target.dataset,{clientX:v,clientY:g}=c;(0,$l.G)({x:f,y:p,widget:d,selectTableCellInfo:h}),MB.action("entry:contextmenu:withtype",{position:{top:g,left:v}}),(0,Dr.t0)({isShowTableMenu:!0})}),(0,ge.A)(this,"handleUpdateInspectInfo",(c,d)=>{const{widget:h}=this.props;c.stopPropagation();const{clientX:f,clientY:p}=c,v=document.elementFromPoint(f,p);if(!v)return;const g=v.getAttribute("data-x"),m=v.getAttribute("data-y");g&&m&&MB.action("table:update:inspect:info",{[d]:{key:h.key,x:Number(g),y:Number(m)}})}),(0,ge.A)(this,"handleInspectMouseLeave",c=>{MB.action("table:update:inspect:info",{hoverCellInfo:null})});const{selectionTableCellInfo:e,widget:n,selectCopyCell:i}=this.props,{rows:a,columns:o}=n.hotAttr.tableData,{selectArea:s,firstCell:l,copyArea:u}=(0,Dr.dY)(e,a,o,i);this.state={selectArea:s,firstCell:l,copyArea:u}}componentDidUpdate(t,e,n){const{selectionTableCellInfo:i,selectCopyCell:a,widget:o}=this.props,{tableData:s}=o.hotAttr,{tableData:l}=t.widget.hotAttr;if(t.selectionTableCellInfo!==i||t.selectCopyCell!==a||l.rows!==s.rows||l.columns!==s.columns){const{rows:u,columns:c}=s,{selectArea:d,firstCell:h,copyArea:f}=(0,Dr.dY)(i,u,c,a);this.setState({selectArea:d,firstCell:h,copyArea:f})}}render(){const{widget:t,isPreview:e,editCell:n,onlyView:i,inspectMode:a,getRuntimeInteractionsPerTableCell:o}=this.props,{tableData:s,tableConfig:l}=t.hotAttr,{data:u,rows:c,columns:d,cellStyles:h,mergeCells:f}=s,p=l==null?void 0:l.innerBorderH.bdrIsVisible,v=l==null?void 0:l.innerBorderV.bdrIsVisible,{selectArea:g,firstCell:m,copyArea:y}=this.state,x=(0,Dr.$)(f);let w,_;return n&&(w=Number(n.x),_=Number(n.y)),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"jexcel_toolbar"}),(0,S.jsxs)("div",{className:"jexcel_content jexcel-table-v1",children:[(0,S.jsxs)("table",{className:"jexcel jexcel_hidden_index",cellPadding:"0",cellSpacing:"0",unselectable:"yes",children:[(0,S.jsx)("colgroup",{children:d.map((b,C)=>(0,S.jsx)("col",{width:b.width},C))}),(0,S.jsx)("thead",{className:"resizable",children:(0,S.jsxs)("tr",{children:[(0,S.jsx)("td",{className:"jexcel_selectall"}),d.map((b,C)=>(0,S.jsx)("td",{"data-x":C,children:fi.A.getColumnName(C)},C))]})}),(0,S.jsx)("tbody",{className:Dr.hG[l.styleType],children:u.map((b,C)=>{const M=c[C]?c[C].height:30;return(0,S.jsx)("tr",{"data-y":C,style:{height:M},children:b.map((k,P)=>{const R=P+"-"+C,[j,X]=f[R]||[1,1],st=w===P&&_===C,dt=P===b.length-1,xt=C===u.length-1;return x.includes(R)?null:(0,S.jsx)("td",{className:"td-need-pos td-need-overflow","data-x":P,"data-y":C,"data-xy":R,onContextMenu:e?null:this.tableContextMenu,colSpan:j,rowSpan:X,onClick:a?Rt=>this.handleUpdateInspectInfo(Rt,"selectCellInfo"):void 0,onMouseEnter:a?Rt=>this.handleUpdateInspectInfo(Rt,"hoverCellInfo"):void 0,onMouseLeave:a?this.handleInspectMouseLeave:void 0,children:!st&&(0,S.jsx)(Brt,{x:P,y:C,inspectMode:a,tableCid:t.key,getRuntimeInteractionsPerTableCell:o,cell:k,isPreview:e,isLineEnd:dt,isColumnEnd:xt,stringStyle:h[C][P],isShowInnerBorderH:p,isShowInnerBorderV:v})},P)})},C)})})]}),!i&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"jexcel_select_border",style:g,children:(0,S.jsx)("div",{className:"firstCell",style:m})}),(0,S.jsx)("div",{className:"jexcel_corner_warp",style:g,children:(0,S.jsx)("div",{className:"jexcel_corner",unselectable:"on",children:(0,S.jsx)("div",{className:"jexcel_corner_bg"})})})]}),(0,S.jsx)("div",{className:"jexcel_copy_border",style:y}),(0,S.jsx)("textarea",{className:"jexcel_textarea",id:"jexcel_textarea"})]})]})}}const Vrt=(0,I.memo)(r=>{var t;const{tableCid:e,cellText:n,isPreview:i,x:a,y:o,getRuntimeInteractionsPerTableCell:s,cellReactStyle:l,isNeedPos:u,isEditCell:c}=r;let d="",h="",f="";const p=s(a,o).filter(m=>m.interactive)||[];i&&(h=p.map(m=>m.key).join(","),d=(p==null?void 0:p.length)>0?(0,Wh.t$)(p):"",f=(0,Wh.XY)(p));const v=n!=="",g=c?"":""+(0,wg.rB)().process(n)+(i&&((t=h)==null?void 0:t.length)>0?'<div class="region gesture '+f+'"/>':"");return(0,S.jsx)(ZO,{"data-x":o,"data-y":a,"data-container-cid":e,"data-link_cid":h,className:V()("tdDiv",""+d,{isPreview:i,"tdDiv-need-pos":u,"tdDiv-has-text":v,"tdDiv-no-text":!v}),"data-type":"td-div",style:l,dangerouslySetInnerHTML:{__html:g}})}),zrt=(0,I.memo)(r=>{const{x:t,y:e,isEditCell:n,height:i,isPreview:a,handleTableContextMenu:o,colSpan:s,rowSpan:l,inspectMode:u,widgetKey:c,cellText:d,cellStyle:h,getRuntimeInteractionsPerTableCell:f,isLineEnd:p,isColumnEnd:v,isNeedOverflow:g=!0,isNeedPosTotal:m,handleInspectMouseLeave:y,isShowInnerBorderH:x,isShowInnerBorderV:w,innerBorderWidthH:_,handleUpdateInspectInfo:b}=r,C=e+"-"+t;let M=m||Number(s)>1||Number(l)>1;const k=h.padding!==void 0;!M&&k&&(M=!0);let P=M?"td-need-pos":"";return(g||k)&&(P+=" td-need-overflow"),M||(Number(t)===0?h.height=i:h.height=i-_),d||delete h.padding,(0,S.jsx)("td",{style:{height:i},className:P,"data-x":e,"data-y":t,"data-xy":C,onContextMenu:a?null:o,colSpan:s,rowSpan:l,onClick:u?R=>b(R,"selectCellInfo"):void 0,onMouseEnter:u?R=>b(R,"hoverCellInfo"):void 0,onMouseLeave:u?y:void 0,children:(0,S.jsx)(Vrt,{x:t,y:e,tableCid:c,getRuntimeInteractionsPerTableCell:f,cellText:d,isPreview:a,cellReactStyle:h,isNeedPos:M,isEditCell:n})},C)}),_w=r=>{const{widget:t,isPreview:e,editCell:n,inspectMode:i,getRuntimeInteractionsPerTableCell:a,selectionTableCellInfo:o,selectCopyCell:s,isEdit:l,onlyView:u}=r,{key:c,hotAttr:d}=t,{tableConfig:h,cells:f,heightList:p,widthList:v,table:g,tableData:{mergeCells:m}}=d,{innerBorderH:y,innerBorderV:x}=h,w=(0,I.useRef)(o);w.current=o;const _=(0,I.useRef)(null),b=(0,I.useRef)(new Map),C=(0,I.useMemo)(()=>{if(y.bdrIsVisible&&(0,et.BN)(y.bdrColor).A<255||x.bdrIsVisible&&(0,et.BN)(x.bdrColor).A<255)return!0},[y,x]),M=(0,I.useCallback)(Bt=>{const{x:Gt,y:Qt}=Bt.target.dataset,{clientX:re,clientY:se}=Bt;(0,$l.G)({x:Gt,y:Qt,widget:t,selectTableCellInfo:w.current}),MB.action("entry:contextmenu:withtype",{position:{top:se,left:re}}),(0,Dr.t0)({isShowTableMenu:!0})},[d,m]),k=(0,I.useCallback)((Bt,Gt)=>{Bt.stopPropagation();const{clientX:Qt,clientY:re}=Bt,se=document.elementFromPoint(Qt,re),le=se.getAttribute("data-x"),me=se.getAttribute("data-y");le&&me&&MB.action("table:update:inspect:info",{[Gt]:{key:c,x:Number(le),y:Number(me)}})},[c]),P=(0,I.useCallback)(Bt=>{MB.action("table:update:inspect:info",{hoverCellInfo:null})},[]),[R,j]=(0,I.useState)(v),[X,st]=(0,I.useState)(p);(0,I.useEffect)(()=>{(0,Dr.O6)(X,p)&&st(p)},[X,p]),(0,I.useEffect)(()=>{(0,Dr.O6)(R,v)&&j(v)},[R,v]);const[dt,xt]=(0,I.useState)({selectArea:null,firstCell:null,copyArea:null});(0,I.useEffect)(()=>{const{selectArea:Bt,firstCell:Gt,copyArea:Qt}=(0,Dr.dY)(o,X.map(re=>({height:re})),R.map(re=>({width:re})),s);xt({selectArea:Bt,firstCell:Gt,copyArea:Qt})},[o,s,X,R]);const Rt=(0,I.useMemo)(()=>(0,Dr.$)(m),[m]);let wt,Lt;n&&(Lt=Number(n.x),wt=Number(n.y));const Ft="jexcel jexcel_hidden_index "+Dr.hG[h.styleType],Kt=(0,I.useMemo)(()=>R.map((Bt,Gt)=>(0,S.jsx)("col",{width:Bt},Gt)),[R]),Ut=(0,I.useMemo)(()=>{const Bt=p.some(se=>se<9),Gt=y.bdrIsVisible?y.bdrWidth:0,Qt=y.bdrIsVisible,re=x.bdrIsVisible;return g.map((se,le)=>{const me=p[le];return b.current.set(le,!1),(0,S.jsx)("tr",{"data-y":le,style:{height:me},children:se.map((ye,ue)=>{var fe,Ie;const Me=ue+"-"+le,[Ue,Ge]=m[Me]||[1,1],Sr=wt===le&&Lt===ue,wr=ue+Ue===v.length,dr=le+Ge===p.length,Mr=f[ye];if(!Mr||Rt.includes(Me))return null;const br=(0,Dr.To)({stringStyle:Mr.style,isLineEnd:wr,isColumnEnd:dr,isShowInnerBorderH:Qt,isShowInnerBorderV:re,isPreview:e});return br.background&&parseFloat((fe=(Ie=br.background.split(",")[3])==null?void 0:Ie.trim())!=null?fe:1)<1&&b.current.set(le,!0),(0,S.jsx)(zrt,{cellStyle:br,cellText:Mr.data,colSpan:Ue,getRuntimeInteractionsPerTableCell:a,handleTableContextMenu:M,handleInspectMouseLeave:P,height:me,inspectMode:i,isColumnEnd:dr,isEditCell:Sr,isLineEnd:wr,isPreview:e,rowSpan:Ge,widgetKey:c,x:le,y:ue,innerBorderWidthH:Gt,isShowInnerBorderH:Qt,isShowInnerBorderV:re,isNeedPosTotal:Bt,handleUpdateInspectInfo:k},Me)})},le)})},[f,a,k,Rt,i,e,M,c,g,X,R,P,y,x,wt,Lt]);return(0,I.useEffect)(()=>{if(!b.current||!_.current)return;if(C){_.current.style.background="none",b.current.forEach((Gt,Qt)=>{const re=_.current.querySelector('tr[data-y="'+Qt+'"]');re&&(re.style.background="none")});return}let Bt=!1;b.current.forEach((Gt,Qt)=>{Gt&&(Bt=!0);const re=_.current.querySelector('tr[data-y="'+Qt+'"]');re&&(re.style.background=Gt?"none":"#fff")}),_.current.style.background=Bt?"none":"#fff"},[Ut,C]),(0,S.jsxs)("div",{className:"jexcel_content jexcel-table-v2",children:[(0,S.jsxs)("table",{className:Ft,cellPadding:"0",cellSpacing:"0",unselectable:"yes",ref:_,children:[(0,S.jsx)("colgroup",{children:Kt}),(0,S.jsx)("tbody",{className:Dr.hG[h.styleType],children:Ut})]}),l&&!u&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"jexcel_select_border",style:dt.selectArea,children:(0,S.jsx)("div",{className:"firstCell",style:dt.firstCell})}),(0,S.jsx)("div",{className:"jexcel_corner_warp",style:dt.selectArea,children:(0,S.jsx)("div",{className:"jexcel_corner",unselectable:"on",children:(0,S.jsx)("div",{className:"jexcel_corner_bg"})})})]}),(0,S.jsx)("div",{className:"jexcel_copy_border",style:dt.copyArea})]})},Cw=K.Ay.div.withConfig({displayName:"style__StyledTable",componentId:"sc-1m4nft3-0"})(["position:relative;width:100%;height:100%;&.is-dragging{cursor:grabbing;}.table_border{border:",";position:absolute;box-sizing:content-box;top:-",";left:-",";}.table-container{.jexcel_content thead{display:none;}&.jexcel_container{padding:0;width:100%;height:100%;position:absolute;top:0;left:0;.jexcel_content{padding:0;.jexcel_select_border{position:absolute;pointer-events:none;border:1px solid #298DF8;z-index:5;overflow:hidden;.firstCell{position:absolute;top:-2px;left:-2px;pointer-events:none;box-shadow:0 0 0 99999px rgba(41,141,248,0.15);}}.jexcel_corner_warp{position:absolute;pointer-events:none;z-index:6;.jexcel_corner{position:absolute;bottom:-3px;right:-3px;cursor:crosshair;top:unset;left:unset;background:#ffffff;pointer-events:all;width:6px;height:6px;border:none;padding:1px;box-shadow:0px 2px 4px 0px rgba(0,0,0,0.09);&:focus{outline:none;}.jexcel_corner_bg{background:#298DF8;width:6px;height:6px;pointer-events:none;position:absolute;}}}.jexcel_copy_border{position:absolute;pointer-events:none;border:1px dashed #298DF8;top:-2000px;left:-2000px;}}table{box-sizing:border-box;border:none;tbody{tr{color:#101010;td{line-height:20px;&.td-need-pos{position:relative;}padding:0;border-left:",";border-top:",';border-right-width:0px;border-bottom-width:0px;&[data-x="0"]{border-left:none;}&.td-need-overflow{overflow:hidden;.tdDiv-has-text{overflow:hidden;}}.tdDiv-has-text{&.tdDiv-need-pos{position:absolute;}height:100%;width:100%;top:0;left:0;display:flex;flex-direction:column;pointer-events:none;white-space:pre-wrap;padding:4px;background:#fff;word-break:break-all;&.isPreview{pointer-events:all;}}.tdDiv-no-text{height:100%;width:100%;background:#fff;}}&:first-child{td{border-top:none;}}}&.default{td{.tdDiv{background:#FFFFFF;}}}&.hasBorderInterlacing,&.noBorderInterlacing{tr:nth-child(odd){.tdDiv{background:#F2F2F2ff;}}}&.topLeftBg,&.topBg{tr:first-child{.tdDiv{background:#e8e8e8ff;}}}&.topLeftBg,&.leftBg{tr{td{&[data-x="0"]{.tdDiv{background:#e8e8e8ff;}}}}}}}}}.cover{position:absolute;z-index:11;width:100%;height:100%;left:0;top:0;}.jexcel_textarea{display:none;}'],r=>r.outerBorder.bdrIsVisible?r.outerBorder.borderWidth+" solid "+r.outerBorder.borderColor:"none",r=>r.outerBorder.bdrIsVisible?""+r.outerBorder.borderWidth:0,r=>r.outerBorder.bdrIsVisible?""+r.outerBorder.borderWidth:0,r=>r.innerBorderV.bdrIsVisible?r.innerBorderV.borderWidth+" solid "+r.innerBorderV.borderColor:"none",r=>r.innerBorderH.bdrIsVisible?r.innerBorderH.borderWidth+" solid "+r.innerBorderH.borderColor:"none"),Hlt={};class Hrt extends I.PureComponent{render(){const{widget:t,getRuntimeInteractionsPerTableCell:e}=this.props,{key:n,hotAttr:i}=t,{w:a,h:o}=i,{innerBorderV:s,innerBorderH:l,outerBorder:u}=(0,Dr.xf)(i);return(0,S.jsxs)(Cw,{innerBorderH:l,innerBorderV:s,outerBorder:u,children:[(0,S.jsx)("div",{className:"table_border",style:{width:a,height:o}}),(0,S.jsx)("div",{className:"table-container jexcel_container","data-cid":n,children:(0,Do.SS)(i)?(0,S.jsx)(_w,{widget:t,getRuntimeInteractionsPerTableCell:e,isPreview:!0}):(0,S.jsx)(bw,{widget:t,getRuntimeInteractionsPerTableCell:e,isPreview:!0})})]})}}const Frt=K.Ay.div.withConfig({displayName:"style__StyledTableEditor",componentId:"sc-1jscjt7-0"})(["position:absolute;z-index:2;#text_editor{width:100%;height:100%;outline:none;display:flex;flex-direction:column;overflow:hidden;align-items:center;justify-content:center;color:#101010;cursor:text;background-color:#fff;-webkit-user-select:text;user-select:text;line-height:20px;padding:4px;user-modify:read-write-plaintext-only;word-break:break-all;}"]);var Wrt=T(25582),ko=T.n(Wrt),Br=T(57479);class $O extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"state",{editorText:this.props.editorText}),(0,ge.A)(this,"handleMouseDown",t=>{t.stopPropagation()}),(0,ge.A)(this,"handleKeyDown",t=>{const{handleSelectNextOnEnter:e,isOpenEditor:n,onOpenEditor:i,selectionTableCellInfo:a}=this.props,{selectionLeftTopInfo:{x:o,y:s}}=a,l=t.ctrlKey||t.metaKey;if((0,he.C2)(t)&&!l&&!n&&i({x:o,y:s,isNeedOldText:!1,notSelectAll:!0}),t.key===Br._.Tab&&t.preventDefault(),!n){t.key===Br._.Enter&&t.preventDefault();return}const u=t.key===Br._.Escape,c=t.key===Br._.Enter,d=t.key===Br._.Alt,h=t.metaKey||t.ctrlKey,f=t.shiftKey;if(d){t.preventDefault(),t.stopPropagation();return}if(t.key===Br._.Tab){this.closeEditor();return}if(c&&!f){e(this.getEditorContent()),this.$elem.innerHTML="",t.preventDefault();return}u||h&&c?this.closeEditor():n&&h&&!["z","Z","x","c","v","a"].includes(t.key)&&t.preventDefault()}),(0,ge.A)(this,"setElementRef",t=>this.$elem=t),(0,ge.A)(this,"closeEditor",()=>{const{closeEditor:t,isOpenEditor:e}=this.props;e&&(t(this.getEditorContent()),this.$elem.innerHTML="")})}componentDidMount(){setTimeout(()=>{this.selectAll()})}componentDidUpdate(t){const{selectionTableCellInfo:e,isOpenEditor:n,notSelectAll:i,editorText:a}=this.props,{isOpenEditor:o}=t;e&&setTimeout(()=>{document.activeElement&&document.activeElement.tagName!=="INPUT"&&this.$elem&&this.$elem.focus()}),!o&&n&&(this.$elem.innerHTML=a||"&nbsp"),!o&&n&&!i&&this.selectAll()}selectAll(){const{notSelectAll:t}=this.props,e=this.$elem;if(e)if(e.focus(),!t&&e.childNodes.length>0){const n=document.createRange(),i=window.getSelection();n.setStartBefore(e.childNodes[0]),n.setEndAfter(e.childNodes[e.childNodes.length-1]),i.removeAllRanges(),i.addRange(n)}else{const n=document.createRange();n.selectNodeContents(e),n.collapse(!1);const i=window.getSelection();if(i.anchorOffset!==0)return;i.removeAllRanges(),i.addRange(n)}}componentWillUnmount(){this.closeEditor()}getEditorContent(){return this.$elem.innerHTML.replace(/&nbsp;/g,"")}render(){let{styleWarp:t,editorStyle:e,editorText:n}=this.props;return n||(n="&nbsp"),(0,S.jsx)(Frt,{style:t,children:(0,S.jsx)("div",{contentEditable:!0,id:"text_editor",style:{...e,cursor:"text"},ref:this.setElementRef,dangerouslySetInnerHTML:{__html:n},onMouseDown:this.handleMouseDown,onKeyDown:this.handleKeyDown,onBlur:this.closeEditor})})}}(0,ge.A)($O,"propTypes",{styleWarp:ko().object,editorStyle:ko().object,selectionTableCellInfo:ko().object,closeEditor:ko().func,onOpenEditor:ko().func,notSelectAll:ko().bool,isOpenEditor:ko().bool,handleSelectNextOnEnter:ko().func,editorText:ko().string});var Ic=T(40220),Dc=T(32286);const JO={styleWarp:{left:-2e3,top:-2e3,width:200,height:200},editorStyle:null,editorText:"",isCanEditInEditor:!1};class jrt extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"state",{isEdit:!1,isOpenEditor:!1,editorInfo:JO,editCell:null}),(0,ge.A)(this,"setElementRef",t=>this.$element=t),(0,ge.A)(this,"handleChangeStyle",t=>{let{attr:e,action:n}=t;const{selectionTableCellInfo:i}=this.props,{widget:a}=this.props,o=e==="textDecorationU"||e==="textDecorationS"?"textDecoration":e,s=(0,he.kO)(i,a.hotAttr)[o],l={boldType:1-s,fontStyle:!s||s==="normal"?"italic":"normal",fontSize:n==="increase"?s+1:s-1<1?1:s-1,textDecorationU:!s||s==="normal"||s==="none"||s==="line-through"?"underline":"normal",textDecorationS:!s||s==="normal"||s==="none"||s==="underline"?"line-through":"normal"};MB.action("entry:table:set:cell:attr:new",{attr:o,value:l[e]})}),(0,ge.A)(this,"newJexcelKeyDownControls",t=>{var e,n,i,a;const{selectionTableCellInfo:o}=this.props,{isOpenEditor:s}=this.state;if(!Ic.a.tableHandle||!o||s||!(0,Dr.Py)(t))return;const l=t.shiftKey,u=t.ctrlKey||t.metaKey,c=t.altKey;if(t.key===Br._.Tab){this.gotoNextAndEdit();return}if(t.key===Br._.Enter&&o){const{selectionLeftTopInfo:{x:d,y:h}}=o;this.openEditor(d,h);return}if(o){let d="";switch(t.keyCode){case Br.Ju.Up:d="up";break;case Br.Ju.Right:d="right";break;case Br.Ju.Down:d="down";break;case Br.Ju.Left:d="left";break;case Br.Ju.Backspace:case Br.Ju.Delete:if((e=MB.shortKeyCallbackBucket)!=null&&(n=e.deleteItaNodeCallback)!=null&&n.call(e)||(i=MB.shortKeyCallbackBucket)!=null&&(a=i.deleteVarNodeCallback)!=null&&a.call(i))break;d="delete";break;case Br.Ju.A:u&&!l&&(d="selectAll");break;case Br.Ju.C:u&&!l&&(d="copy");break;case Br.Ju.X:u&&!l&&(d="cut");break;case Br.Ju.Z:u&&!l?d="undo":u&&l&&(d="redo");break;case Br.Ju.V:u&&c&&!l&&(d="pasteProperties");break;case Br.Ju.B:u&&(t.preventDefault(),this.handleChangeStyle({attr:"boldType"}),(0,Dc.L)("command+b \u9009\u4E2D\u6574\u4F53"));break;case Br.Ju.I:u&&(t.preventDefault(),this.handleChangeStyle({attr:"fontStyle"}),(0,Dc.L)("command+i \u9009\u4E2D\u6574\u4F53"));break;case Br.Ju.U:u&&(t.preventDefault(),this.handleChangeStyle({attr:"textDecorationU"}),(0,Dc.L)("command+u \u9009\u4E2D\u6574\u4F53"));break;case Br.Ju.S:u&&l&&(t.preventDefault(),this.handleChangeStyle({attr:"textDecorationS"}),(0,Dc.L)("command+s \u9009\u4E2D\u6574\u4F53"));break;case Br.Ju.Dot:u&&l&&(t.preventDefault(),this.handleChangeStyle({attr:"fontSize",action:"increase"}),(0,Dc.L)("command+shift+. \u9009\u4E2D\u6574\u4F53"));break;case Br.Ju.Comma:u&&l&&(t.preventDefault(),this.handleChangeStyle({attr:"fontSize",action:"decrease"}),(0,Dc.L)("command+shift+, \u9009\u4E2D\u6574\u4F53"));break}[Br.Ju.Minus,Br.Ju.Equal].includes(t.keyCode)&&u&&t.preventDefault(),d&&(this.onTableKeyDown(d,{shiftKey:l,ctrlKey:u}),t.preventDefault())}}),(0,ge.A)(this,"onOpenEditor",t=>{let{x:e,y:n,isNeedOldText:i,notSelectAll:a=!1}=t;const{widget:{hotAttr:o}}=this.props,{cellStyles:s,data:l}=o.tableData;let u="",c="";if((0,Do.SS)(o)){const{cells:w,table:_}=o,b=(0,Do.j)(w,_,n,e);b&&(u=b.style,c=b.data)}else u=s[n][e],c=l[n][e];const d=this.el.el.querySelector('[data-xy="'+e+"-"+n+'"]>.tdDiv');if(!d||!this.$element)return;const h=this.$element.getBoundingClientRect(),{width:f,height:p,top:v,left:g}=d.getBoundingClientRect(),m=MB.getScale(),x={styleWarp:{width:f/m*100,height:p/m*100,top:(v-h.top)/m*100,left:(g-h.left)/m*100},editorStyle:{width:f/m*100,height:p/m*100,...(0,Dr.To)({stringStyle:u,isPreview:!1})},editorText:i?c:"",isOpenEditor:!0,notSelectAll:a};MB.action("reducer:flag:set:is-show-resizer",{isHideResizer:!0}),this.setState({isOpenEditor:!0,editorInfo:x,editCell:{x:e,y:n}})}),(0,ge.A)(this,"onPaste",t=>{var e,n,i,a;if((e=t.target)!=null&&(n=e.closest)!=null&&n.call(e,"input")||(i=t.target)!=null&&i.closest("textarea")||(a=t.target)!=null&&a.closest("#expression-editor"))return;const{selectionTableCellInfo:o}=this.props,{isOpenEditor:s}=this.state;o&&!s&&!(0,Dr.C1)("isInSetting")&&!MB.f.addActionInputFocus&&this.onTableKeyDown("paste",{text:(0,wg.rB)().process(t.clipboardData.getData("text"))})}),(0,ge.A)(this,"mouseUpControls",()=>{const{widget:t,selectCopyCell:e,selectionTableCellInfo:n}=this.props;(0,Dr.C1)("isEditTable")&&Ic.a.tableHandle&&(e&&(MB.action("entry:table:paste:copyselection",{widget:t,selectCopyCell:e,selectionTableCellInfo:n}),fi.A.current.selectedCorner=!1),(0,Dr.t0)({isMouseDownInTable:!1}))}),(0,ge.A)(this,"mouseDownControls",t=>{(0,Dr.t0)({isMouseDownInTable:!0}),fi.A.mouseDownControls(t)}),(0,ge.A)(this,"gotoNextAndEdit",()=>{const{selectionTableCellInfo:t,widget:e}=this.props;if(!t||!this.el)return;const{selectionLeftTopInfo:{x:n,y:i}}=t,{maxX:a,maxY:o}=(0,Dr.II)(e.hotAttr),s=n+1>a;if(s?i+1>o:i>o)return;let u={x1:s?0:n+1,y1:s?i+1:i};u=(0,he.n7)(e.hotAttr,u,"tab"),u&&((0,$l.Z)({widget:e,x1:u.x1,y1:u.y1,x2:u.x1,y2:u.y1}),this.onOpenEditor({x:u.x1,y:u.y1,isNeedOldText:!0}))}),(0,ge.A)(this,"openEditor",(t,e)=>{this.onOpenEditor({x:t,y:e,isNeedOldText:!0})}),(0,ge.A)(this,"closeEditor",t=>{const{editCell:e}=this.state,{widget:n,widget:{hotAttr:i}}=this.props;if(!e)return;const a=e.x,o=e.y;let s="";if((0,Do.SS)(i)){const{cells:l,table:u}=i,c=(0,Do.j)(l,u,o,a);c&&(s=c.data)}else s=i.tableData.data[o][a];s!==t&&MB.action("entry:table:set:value",{widget:n,text:t,position:{x:a,y:o}}),MB.action("reducer:flag:set:is-show-resizer",{isHideResizer:!1}),this.setState({isOpenEditor:!1,editCell:null,editorInfo:JO},()=>{this.lastClickEventRef&&this.handleDocDown(this.lastClickEvent)})}),(0,ge.A)(this,"handleSelectNextOnEnter",t=>{const{editCell:e}=this.state,{widget:n,widget:{hotAttr:i}}=this.props,a=Number(e.x),o=Number(e.y),l=i.tableData.data.length-1,u=o+1,c={x:a,y:u},d=(0,he.n7)(i,{x1:c.x,y1:c.y},"down");if(!d){setTimeout(()=>{this.closeEditor(t)});return}const{x1:h,y1:f}=d;f<=l&&(0,$l.Z)({widget:n,x1:h,y1:f,x2:h,y2:f}),setTimeout(()=>{this.closeEditor(t)})}),(0,ge.A)(this,"onSelection",(t,e,n,i,a)=>{const{widget:o,isResizeCell:s,onlyView:l,isMovingInDrag:u}=this.props;s||l||u||(0,$l.Z)({widget:o,x1:e,y1:n,x2:i,y2:a})}),(0,ge.A)(this,"onTableKeyDown",(t,e)=>{const{widget:n,selectionTableCellInfo:i}=this.props;MB.action("entry:table:key:down",{widget:n,eventType:t,options:e,selectTableCellInfo:i})}),(0,ge.A)(this,"onCopySelection",(t,e)=>{const{selectionTableCellInfo:n}=this.props,i=(0,he.qt)(n,{endX:Number(t),endY:Number(e)});(0,Dr.t0)({selectCopyCell:i})}),(0,ge.A)(this,"exitEditTable",()=>{var t,e;(t=this.removeRemoteChangeListener)==null||t.call(this),(0,Dr.t0)({selectTableCellInfo:null,isShowTableMenu:!1,widget:null,isEditTable:!1}),this.setState({isEdit:!1}),this.el.resetSelection(!0),(0,Dr.KN)("isEditTable",!1),(e=document.querySelector("#link-design"))==null||e.classList.remove("hide")}),(0,ge.A)(this,"handleDocDown",t=>{const{isOpenEditor:e}=this.state;if(e){this.lastClickEvent=t;return}else this.lastClickEvent=null;if((0,Dr.PK)(t)){if(MB.f.editing){setTimeout(()=>{this.exitEditTable()},500);return}this.exitEditTable()}}),(0,ge.A)(this,"stopEvent",t=>{const{isEdit:e}=this.state;e&&t.target.closest(".jexcel_container")&&t.stopPropagation()}),(0,ge.A)(this,"dblclick",t=>{const{onlyView:e,widget:n,isSelected:i}=this.props;if(!(e||n.hotAttr.isLock)&&i){const{clientX:a,clientY:o}=t;this.enterEditMode(a,o)}}),(0,ge.A)(this,"enterEditMode",(t,e)=>{var n;const{widget:i,sdkStore:a}=this.props;(0,Dr.t0)({isEditTable:!0}),this.setState({isEdit:!0},()=>{let o=document.elementFromPoint(t,e);const s=fi.A.getElement(o);s[0]?fi.A.current!==s[0].jexcel&&(fi.A.current&&fi.A.current.resetSelection(),fi.A.current=s[0].jexcel):fi.A.current&&(fi.A.current.resetSelection(!0),fi.A.current=null);const l=u=>{if(u.className&&u.classList.contains("jexcel_container"))return null;if(u.tagName==="TD")return u;if(u.parentNode)return l(u.parentNode)};if(o.tagName!=="TD"&&(o=l(o)),o){const u=o.getAttribute("data-x"),c=o.getAttribute("data-y");(0,$l.Z)({widget:i,x1:u,y1:c,x2:u,y2:c})}}),(n=document.querySelector("#link-design"))==null||n.classList.add("hide"),(0,Dr.KN)("isEditTable",!0),this.removeRemoteChangeListener=a.addSdkStoreChangeListener(this.handlerRemoteChange)}),(0,ge.A)(this,"handlerRemoteChange",t=>{let{changedKeyList:e,isRemote:n}=t;const{widget:i,selectionTableCellInfo:a,sdkStore:o}=this.props;if(!(!n||!a)&&e.includes(i.key))if(o.isTrashed(i.key))this.exitEditTable();else{const{selectionLeftTopInfo:{x:s,y:l},selectionRightBottomInfo:{x:u,y:c}}=a,d=o._getOriginHotItem(i.key),{maxX:h,maxY:f}=(0,Dr.II)(d.hotAttr);let p=u,v=c,g=s,m=l;s>h&&(g=h),u>h&&(p=h),l>f&&(m=f),c>f&&(v=f);const y={...d};(0,$l.Z)({widget:y,x1:g,y1:m,x2:p,y2:v})}}),(0,ge.A)(this,"handleClickCover",t=>{const{widget:e,isSelected:n,onlyView:i}=this.props;if(i||e.hotAttr.isLock||!n)return;t.stopPropagation(),(0,Dr.t0)({widget:e,selectTableCellInfo:null});const{metaKey:a,ctrlKey:o,clientX:s,clientY:l}=t;(a||o)&&this.enterEditMode(s,l)}),(0,ge.A)(this,"tableContainerHandleDbClick",t=>{const{onlyView:e}=this.props;e||fi.A.doubleClickControls(t)}),(0,ge.A)(this,"tableContainerHandleMouseOver",t=>{const{onlyView:e}=this.props;e||fi.A.mouseOverControls(t)})}componentDidMount(){const t={onselection:this.onSelection,onCopySelection:this.onCopySelection,onTableKeyDown:this.onTableKeyDown};this.el=(0,fi.A)(this.$element,t),this.el.openEditor=this.openEditor,this.el.corner=this.el.el.querySelector(".jexcel_corner"),(0,Ic.e)({tableHandle:this.el}),document.addEventListener("keydown",this.newJexcelKeyDownControls),document.addEventListener("mouseup",this.mouseUpControls),document.addEventListener("paste",this.onPaste)}componentWillUnmount(){var t,e;document.removeEventListener("keydown",this.newJexcelKeyDownControls),document.removeEventListener("mouseup",this.mouseUpControls),document.removeEventListener("paste",this.onPaste),(t=this.el)==null||t.destory(),this.el=null,(0,Ic.e)({tableHandle:null}),(e=this.removeRemoteChangeListener)==null||e.call(this)}componentDidUpdate(t){var e;const{widget:n,selectionTableCellInfo:i,isSingleSelected:a}=this.props,{selectionTableCellInfo:o}=t;o===null&&i!==null&&!this.state.isEdit&&this.setState({isEdit:!0}),a&&n.key!==((e=Ic.a.tableHandle)==null||(e=e.el)==null?void 0:e.getAttribute("data-cid"))&&((0,Dr.t0)({widget:n,selectTableCellInfo:null}),(0,Ic.e)({tableHandle:this.el})),o!==null&&i===null&&this.state.isEdit&&this.exitEditTable()}render(){const{isEdit:t,editorInfo:e,editCell:n}=this.state,{widget:i,selectionTableCellInfo:a,selectCopyCell:o,isSingleSelected:s,onlyView:l,inspectMode:u,getRuntimeInteractionsPerTableCell:c}=this.props,{key:d,hotAttr:h}=i,{w:f,h:p}=h,v=s&&a,{innerBorderV:g,innerBorderH:m,outerBorder:y}=(0,Dr.xf)(h);return(0,S.jsxs)(Cw,{onMouseDown:this.stopEvent,innerBorderH:m,innerBorderV:g,outerBorder:y,children:[(0,S.jsx)("div",{className:"table_border",style:{width:f,height:p}}),(0,S.jsx)("div",{ref:this.setElementRef,className:"table-container jexcel_container","data-cid":d,onMouseDown:u?void 0:this.mouseDownControls,onMouseOver:u?void 0:this.tableContainerHandleMouseOver,onDoubleClick:u?void 0:this.tableContainerHandleDbClick,children:(0,Do.SS)(h)?(0,S.jsx)(_w,{widget:i,selectCopyCell:o,selectionTableCellInfo:a,editCell:n,onlyView:l,inspectMode:u,getRuntimeInteractionsPerTableCell:c,isEdit:t}):(0,S.jsx)(bw,{widget:i,selectCopyCell:o,selectionTableCellInfo:a,editCell:n,onlyView:l,inspectMode:u,getRuntimeInteractionsPerTableCell:c,isEdit:t})}),u||l?null:t?(0,S.jsx)(Gr.A,{target:document.body,onMouseDown:(0,Gr.t)(this.handleDocDown,{capture:!0})}):(0,S.jsx)("div",{className:"cover",onClick:this.handleClickCover,onDoubleClick:this.dblclick}),v&&!l&&(0,S.jsx)($O,{...e,selectionTableCellInfo:a,closeEditor:this.closeEditor,onOpenEditor:this.onOpenEditor,handleSelectNextOnEnter:this.handleSelectNextOnEnter})]})}}var bg=T(4235),jh=T(70422);class Grt extends I.PureComponent{componentDidMount(){const{onlyView:t,widget:e,isSingleSelected:n}=this.props;t||e.hotAttr["!version"]!==3&&setTimeout(()=>{MB.action("entry:table:migrate",{key:e.key})},30),n&&MB.action("table:update:info",{widget:e})}componentDidUpdate(t){const{widget:e,isSingleSelected:n}=this.props;n&&this.props.widget!==t.widget&&MB.action("table:update:info",{widget:e})}render(){const{widget:t,onlyView:e,selectionTableCellInfo:n,selectCopyCell:i,getRuntimeInteractionsPerTableCell:a,isSelected:o,isSingleSelected:s,isResizeCell:l,inspectMode:u,isMovingInDrag:c,sdkStore:d}=this.props;return(0,S.jsx)(jrt,{widget:t,selectCopyCell:i,selectionTableCellInfo:n,isSelected:o,isSingleSelected:s,isResizeCell:l,getRuntimeInteractionsPerTableCell:a,onlyView:e,inspectMode:u,isMovingInDrag:c,sdkStore:d})}}const Urt=(0,we.Ng)((r,t)=>{const{widget:{key:e}}=t,n=(0,jh.zX)(r),i=(0,jh.g8)(r),a=(0,jh.nh)(r),o=(0,bg.p$)(r),s=(0,jh.fv)(r),l=(0,ww._b)(r),u=(0,jh.CY)(r),c=o.includes(e),d=c&&o.length===1;return a&&a.key===e?{selectionTableCellInfo:n,selectCopyCell:i,isResizeCell:s,isSelected:c,isSingleSelected:d,inspectMode:l,isMovingInDrag:u}:{selectionTableCellInfo:null,selectCopyCell:null,isResizeCell:s,isSelected:c,isSingleSelected:d,inspectMode:l,isMovingInDrag:u}})(Grt),Krt=r=>{let{widget:t,getRuntimeInteractionsPerTableCell:e}=r;const{key:n,hotAttr:i}=t,{w:a,h:o}=i,{innerBorderV:s,innerBorderH:l,outerBorder:u}=(0,Dr.xf)(i);return(0,S.jsxs)(Cw,{innerBorderH:l,innerBorderV:s,outerBorder:u,children:[(0,S.jsx)("div",{className:"table_border",style:{width:a,height:o}}),(0,S.jsx)("div",{className:"table-container jexcel_container","data-cid":n,children:(0,Do.SS)(i)?(0,S.jsx)(_w,{widget:t,getRuntimeInteractionsPerTableCell:e}):(0,S.jsx)(bw,{widget:t,getRuntimeInteractionsPerTableCell:e})})]})},Yrt=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{onlyView:o,sdkStore:s,editingPanelCid:l,isEditingCombo:u}=e,c=(0,I.useCallback)((d,h)=>(0,Do.SS)(a)?(0,Xt.wI)(s,i,d,h,u,l):(0,Xt.je)(s,i,d,h,u,l),[a,s,l,u,i]);if(n==="design")return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Urt,{onlyView:o,widget:t,getRuntimeInteractionsPerTableCell:c,sdkStore:s}),(0,S.jsx)(Nrt,{treeData:e,widget:t})]});if(n==="preview")return(0,S.jsx)(Hrt,{widget:t,getRuntimeInteractionsPerTableCell:c});if(n==="snapshot")return(0,S.jsx)(Krt,{widget:t,getRuntimeInteractionsPerTableCell:c})}),Xrt=r=>{let{widget:t}=r,e=t.hotAttr.w-10;return e<1&&(e=1),(0,S.jsx)("span",{style:{borderLeftWidth:e}})},Zrt=K.Ay.label.withConfig({displayName:"styles__StyledIOSCheck",componentId:"sc-l7zhje-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;cursor:inherit;input{position:absolute;left:0;top:0;opacity:0;cursor:pointer;}.CheckState{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;background-color:#fff;border:1px solid #c7c7cd;border-radius:50%;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;width:55%;height:36%;}input:checked + .CheckState{color:#fff;background-color:#0076ff;border-color:transparent;svg{opacity:1;}}input:not(:checked) + .CheckState{svg{opacity:0;}}&.is-preview{pointer-events:auto;cursor:pointer;}"]),$rt=r=>{let{widget:t,mode:e}=r;const{hotAttr:n,key:i}=t,{isChecked:a}=n,o=e==="preview";let s;return o?s={defaultChecked:a}:s={checked:a},(0,S.jsxs)(Zrt,{className:V()("iOS-Check",{"is-preview":o}),children:[(0,S.jsx)("input",{type:"checkbox",...s},i+a),(0,S.jsx)("span",{className:"CheckState",children:(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"8",viewBox:"0 0 13 8",children:(0,S.jsx)("path",{d:"M1 4.5L4.5 8l8-8"})})})]})},Jrt=K.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-gig5ve-0"})(['&::after{content:"\\00a0";position:absolute;bottom:-1px;left:0;height:1px;width:100%;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:inherit;display:block;}i.fa-search{position:absolute;top:7px;left:20px;line-height:32px;}.text_edit{position:absolute;top:7px;left:10px;right:10px;height:32px;border-radius:8px;background-color:white;input{border:none;width:100%;height:100%;line-height:100%;background-color:transparent;text-align:inherit;padding:0 26px;outline:none;color:inherit;&::-webkit-input-placeholder{color:inherit;}&::-moz-placeholder{color:inherit;}}}']),Qrt=r=>{let{widget:t}=r;const{textV0:e}=t.hotAttr;return(0,S.jsxs)(Jrt,{children:[(0,S.jsx)("div",{className:"text_edit",children:(0,S.jsx)("input",{type:"text",placeholder:e.text})}),(0,S.jsx)("i",{className:"fa fa-search"})]})},qrt=r=>{const{w:t,h:e,fill:n}=r,{sliderSize:i,iconSize:a,iconColor:o}=r.digitalStepper,s={width:i+"px",height:e+"px",fontSize:a+"px",backgroundColor:n.fillIsVisible?(0,et.t0)(n.solidColor):"transparent",color:(0,et.t0)(o),...(0,ot.Nb)(r),...(0,ot.Um)(r)},l=t-2*i;return{style:s,inputWidth:l}},tnt=(r,t)=>{const{min:e,max:n,value:i}=r,a=Number(t);let o=i;return isNaN(a)||(a<e?o=e:a>n?o=n:o=a),o},ent=r=>{const{textColor:t,fontSize:e}=r.digitalStepper;return{fontSize:e,color:(0,et.t0)(t)}},rnt=K.Ay.div.withConfig({displayName:"styles__StyledDigitalStepper",componentId:"sc-1jah72j-0"})(["width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;overflow:hidden;pointer-events:none;.digitalAction{display:inline-flex;justify-content:center;align-items:center;&.ban{opacity:0.4;}.action-icon{width:",";}}.digitalContent{width:","px;span{display:inline-block;width:100%;white-space:nowrap;display:flex;align-items:cnter;justify-content:center;}.input-number{font-size:inherit;font-family:inherit;color:inherit;text-align:center;pointer-events:auto !important;width:100%;height:100%;}}&.is-edit{cursor:pointer;pointer-events:auto;}"],r=>r.iconStyle.fontSize,r=>r.inputWidth),nnt=r=>{let{widget:t,mode:e,treeData:n}=r;const{key:i,hotAttr:a}=t,{digitalStepper:o,refVars:s}=a,{min:l,max:u,value:c}=o,{actions:d,editingEditableWidgetCid:h,sdkStore:f}=n,[p,v]=(0,I.useState)(c),[g,m]=(0,I.useState)(!1),y=(0,I.useRef)(null),x=(0,I.useRef)(null),w=e==="preview"||e==="design"&&i===h;(0,I.useEffect)(()=>{v(c)},[c]);const _=st=>{let dt=parseInt(st);if(v(dt),m(!1),e==="design")d.updateWidget([{key:i,hotAttr:{digitalStepper:{...o,value:dt}}}]);else if(e==="preview"){var xt;const wt=s==null||(xt=s.digitalStepper)==null?void 0:xt.value;if(Number.isNaN(dt)&&(dt=o.value),wt){var Rt;(Rt=MB.runnerController)==null||Rt.updateVariable(wt,dt)}else f.overwriteItem({key:i,hotAttr:{digitalStepper:{...o,value:dt}}})}},b=st=>{if(!w)return;const dt=Number(p);if(isNaN(dt)||st==="de"&&dt<=l||st==="in"&&dt>=u)return;const xt=st==="de"?dt-1:st==="in"?dt+1:dt;_(xt)},C=st=>{const{target:{value:dt}}=st;v(dt.trim())},M=()=>{m(!0)},k=st=>{let{target:dt}=st;y.current&&(y.current.contains(dt)||(x.current?x.current.blur():P()))},P=()=>{const st=tnt(o,p);_(st)},{style:R,inputWidth:j}=qrt(a),X=ent(a);return(0,S.jsxs)(rnt,{className:w?"is-edit":"",iconStyle:R,inputWidth:j,ref:y,children:[(0,S.jsx)("button",{style:R,className:V()("digitalAction canClickableHighWidget",{ban:p<=l}),onPointerDown:()=>b("de"),children:(0,S.jsx)(xr.C,{name:"design/digital/decrease",className:"action-icon"})}),(0,S.jsx)("div",{className:"digitalContent",style:X,children:w?(0,S.jsx)("form",{style:{width:"100%",height:"100%"},onSubmit:st=>st.preventDefault(),children:(0,S.jsx)("input",{value:p,className:"input-number",type:"text",ref:x,onFocus:M,onChange:C,onBlur:P})}):(0,S.jsx)("span",{children:p})}),(0,S.jsx)("button",{style:R,className:V()("digitalAction canClickableHighWidget",{ban:p>=u}),onPointerDown:()=>b("in"),children:(0,S.jsx)(xr.C,{name:"design/digital/increase",className:"action-icon"})}),g&&(0,S.jsx)(Gr.A,{target:document,onPointerDown:(0,Gr.t)(k,{capture:!0})})]})},Ylt=r=>new Array(r).fill(0).map((t,e)=>e+1),int=r=>{const{paginationMobile:t}=r,{textV0:e,checkedTextV0:n}=t,{fontFamily:i,...a}=(0,ot.Zv)({textV0:e}),{fontFamily:o,...s}=(0,ot.Zv)({textV0:n}),l={backgroundColor:(0,H.n7)(r),...a,...(0,ot.Nb)(r)},{bdrColor:u,bdrWidth:c,bdrStyle:d,bdrIsVisible:h}=r.border;h?(l.borderColor=(0,et.t0)(u),l.borderWidth=c,l.borderStyle=d):l.border="none";const f={...s,...(0,ot.Nb)(r)},p={...a};return{style:l,checkedStyle:f,spanStyle:p}},ant=K.Ay.div.withConfig({displayName:"styles__StyledPaginationMobile",componentId:"sc-q7lgo9-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden;.prev,.next{display:inline-flex;align-items:center;justify-content:center;width:64px;height:100%;white-space:nowrap;&.isDisabled{opacity:0.4;}}&.isEditing{.prev,.next{cursor:pointer;pointer-events:auto;}.prev,.next{&.isDisabled{cursor:not-allowed;}}}"]),ont=r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{paginationMobile:o,refVars:s}=a,{pagesNumber:l,curPage:u}=o,{actions:c,editingEditableWidgetCid:d,onlyView:h,sdkStore:f}=e,p=n==="preview"||n==="design"&&i===d&&!h,[v,g]=(0,I.useState)(u),m=v>l||v<1;(0,I.useEffect)(()=>{g(u)},[u]),(0,I.useEffect)(()=>{m&&g(1)},[m]);const y=k=>{var P;if(!p)return;const R=s==null||(P=s.paginationMobile)==null?void 0:P.curPage;if(n==="design"){const X={paginationMobile:{...o,curPage:k}};R&&k!==v&&(X.refVars={...s,paginationWeb:{...s.paginationWeb,curPage:void 0}}),c.updateWidget([{key:i,hotAttr:X}])}if(n==="preview")if(R){var j;(j=MB.runnerController)==null||j.updateVariable(R,k)}else f.overwriteItem({key:i,hotAttr:{paginationMobile:{...o,curPage:k}}})},x=()=>{Number(v)!==1&&_(Number(v)-1)},w=()=>{Number(v)!==l&&_(Number(v)+1)},_=k=>{p&&(g(k),y(k))},{style:b,checkedStyle:C,spanStyle:M}=int(a);return(0,S.jsxs)(ant,{className:p?"isEditing":"",children:[(0,S.jsx)("span",{className:V()("prev canClickableHighWidget",Number(v)===1?"isDisabled":""),style:b,onPointerDown:x,children:I18N.w.prev_page}),(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:C,children:v}),(0,S.jsxs)("span",{style:M,children:["/",l]})]}),(0,S.jsx)("span",{className:V()("next canClickableHighWidget",Number(v)===l?"isDisabled":""),style:b,onPointerDown:w,children:I18N.w.next_page})]})};let _g=function(r){return r.left="left",r.right="right",r}({});function snt(r,t,e){e===void 0&&(e=1);let n=[];const i=5+e*2;if(t<=i){for(let u=1;u<=t;u++)n.push({value:u,id:u});return n}let a=Math.max(1,r-e),o=Math.min(r+e,t);const s=3+2*e,l=t-s+1;r<=e+3&&(o=Math.max(1+e*2,s)),t-r<e+3&&(a=Math.min(t-e*2,l));for(let u=a;u<=o;u++)n.push({value:u,id:u});return r-1>=e+2&&(r!==3+e?n.unshift({value:"...",id:_g.left}):n.unshift({value:2,id:2})),t-r>=e+2&&(r!==t-2-e?n.push({value:"...",id:_g.right}):n.push({value:t-1,id:t-1})),a!==1&&n.unshift({value:1,id:1}),o!==t&&n.push({value:t,id:t}),n}const lnt=r=>{const{paginationWeb:t,h:e}=r,{checkedBorder:n,checkedBackgroundColor:i,isCheckedBackgroundVisible:a,checkedTextV0:o,textV0:s}=t,l=r.border,{fontFamily:u,...c}=(0,ot.Zv)({textV0:s}),{fontFamily:d,...h}=(0,ot.Zv)({textV0:o}),f={backgroundColor:(0,H.n7)(r),...c,...(0,ot.Um)({border:l,w:e,h:e}),...(0,ot.Nb)(r)},p={...h,...(0,ot.Nb)(r),...(0,ot.Um)({border:n,w:e,h:e}),backgroundColor:a?(0,et.t0)(i):""};return{style:f,checkedStyle:p}},unt=K.Ay.div.withConfig({displayName:"styles__StyledPaginationWeb",componentId:"sc-qcwwfk-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden;.prev,.next{display:inline-flex;align-items:center;justify-content:center;width:calc(80% / ",");height:100%;.icon{width:7px;}&.isDisabled{opacity:0.4;}}.next{svg{transform:rotate(180deg);}}.page{display:inline-flex;align-items:center;justify-content:center;width:calc(80% / ",");height:100%;white-space:nowrap;}&.isEditing{.page,.prev,.next{cursor:pointer;pointer-events:auto;}.prev,.next{&.isDisabled{cursor:not-allowed;}}}"],r=>r.itemNum+2,r=>r.itemNum+2),QO=3,cnt=r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{paginationWeb:o,refVars:s}=a,{pagesNumber:l,curPage:u}=o,{actions:c,editingEditableWidgetCid:d,onlyView:h,sdkStore:f}=e,p=n==="preview"||n==="design"&&i===d&&!h,[v,g]=(0,I.useState)(u),m=v>l||v<1;(0,I.useEffect)(()=>{g(u)},[u]),(0,I.useEffect)(()=>{m&&g(1)},[m]);const y=P=>{var R;if(!p)return;const j=s==null||(R=s.paginationWeb)==null?void 0:R.curPage;if(n==="design"){const st={paginationWeb:{...o,curPage:P}};j&&P!==v&&(st.refVars={...s,paginationWeb:{...s.paginationWeb,curPage:void 0}}),c.updateWidget([{key:i,hotAttr:st}])}if(n==="preview")if(j){var X;(X=MB.runnerController)==null||X.updateVariable(j,P)}else f.overwriteItem({key:i,hotAttr:{paginationWeb:{...o,curPage:P}}})},x=()=>{Number(v)!==1&&_(Number(v)-1)},w=()=>{Number(v)!==l&&_(Number(v)+1)},_=P=>{if(!p)return;let R=P;if(_g.right===P){const j=v+QO;R=j>l?l:j}else if(_g.left===P){const j=v-QO;R=j>1?j:1}g(R),y(R)},b=(P,R,j)=>P.value===Number(v)?j:R,{style:C,checkedStyle:M}=lnt(a),k=snt(u,l);return(0,S.jsxs)(unt,{className:p?"isEditing":"",itemNum:k.length,children:[(0,S.jsx)("span",{className:V()("prev canClickableHighWidget",Number(v)===1?"isDisabled":""),style:C,onPointerDown:x,children:(0,S.jsx)(xr.C,{name:"design/pagination/left_arrow"})}),k.map(P=>(0,S.jsx)("span",{style:b(P,C,M),className:"page canClickableHighWidget",onPointerDown:()=>_(P.id),children:P.value},P.id)),(0,S.jsx)("span",{className:V()("next canClickableHighWidget",Number(v)===l?"isDisabled":""),style:C,onPointerDown:w,children:(0,S.jsx)(xr.C,{name:"design/pagination/left_arrow"})})]})},dnt=K.Ay.input.withConfig({displayName:"style__StyledSlider",componentId:"sc-10g1ocj-0"})(["-webkit-appearance:none;width:100%;height:",";position:relative;flex-grow:1;flex-shrink:1;align-self:center;justify-self:center;background-color:transparent;pointer-events:"," !important;&::before{position:absolute;height:100%;width:","%;content:'';background-color:",";border-radius:",";}&::-webkit-slider-runnable-track{height:","px;border-radius:",";background-color:",";box-shadow:",";}&::-webkit-slider-thumb{position:relative;-webkit-appearance:none;width:","px;height:","px;border-radius:",";border:",";background-color:",";box-shadow:",";margin-top:","px;opacity:1;cursor:pointer;}&::-moz-range-track{height:","px;border-radius:",";background-color:",";box-shadow:",";}&::-moz-range-progress{height:","px;background-color:",";border-radius:",";}&::-moz-range-thumb{position:relative;-webkit-appearance:none;width:","px;height:","px;border-radius:",";border:",";background-color:",";box-shadow:",";margin-top:","px;opacity:1;cursor:pointer;}&:focus{outline:none;}"],r=>r.height,r=>r.editable?"auto":"none",r=>r.value,r=>r.trackForeground,r=>r.trackBorderRadius,r=>r.trackSize,r=>r.trackBorderRadius,r=>r.trackBackground,r=>r.trackShadow,r=>r.thumbSize,r=>r.thumbSize,r=>r.thumbBorderRadius,r=>r.thumbBorder,r=>r.thumbBackground,r=>r.thumbShadow,r=>(r.trackSize-r.thumbSize)/2,r=>r.trackSize,r=>r.trackBorderRadius,r=>r.trackBackground,r=>r.trackShadow,r=>r.trackSize,r=>r.trackForeground,r=>r.trackBorderRadius,r=>r.thumbSize,r=>r.thumbSize,r=>r.thumbBorderRadius,r=>r.thumbBorder,r=>r.thumbBackground,r=>r.thumbShadow,r=>(r.trackSize-r.thumbSize)/2),hnt=r=>{var t,e;let{widget:n,mode:i,treeData:a}=r;const{key:o,hotAttr:s}=n,{slider:l,w:u,h:c,refVars:d}=s,{thumbPosition:h}=l,{editingEditableWidgetCid:f,actions:p,sdkStore:v}=a,[g,m]=(0,I.useState)(h),y=i==="preview"||i==="design"&&o===f;(0,I.useEffect)(()=>{m(h)},[h]);const x=j=>{const{target:{value:X}}=j;if(m(X),i==="design"){var st;const Rt={slider:{...l,thumbPosition:X}};Number(X)!==h&&d!=null&&(st=d.slider)!=null&&st.thumbPosition&&(Rt.refVars={...d,slider:{...d.slider,thumbPosition:void 0}}),p.updateWidget([{key:o,hotAttr:Rt}])}if(i==="preview"){var dt;const Rt=(dt=n.hotAttr.refVars)==null||(dt=dt.slider)==null?void 0:dt.thumbPosition;if(Rt){var xt;(xt=MB.runnerController)==null||xt.updateVariable(Rt,X)}else v.overwriteItem({key:o,hotAttr:{slider:{...l,thumbPosition:X}}})}},w=l.trackBorderRadius+"px",_=l.isTrackBackgroundVisible?(0,et.t0)(l.trackBackgroundColor):"#fff",b=l.isTrackForegroundVisible?(0,et.t0)(l.trackForegroundColor):"#fff",C=(t=(0,ot.Ky)({shadow:l.trackShadow}))==null?void 0:t.boxShadow,M=l.thumbBorderRadius+"px",k=l.isThumbBackgroundVisible?(0,et.t0)(l.thumbBackgroundColor):"#fff",P=(0,ot.Zk)(l.thumbBorder,l.thumbSize/2),R=(e=(0,ot.Ky)({shadow:l.thumbShadow}))==null?void 0:e.boxShadow;return(0,S.jsx)(dnt,{width:u,height:c,trackBorderRadius:w,trackSize:l.trackSize,trackBackground:_,trackForeground:b,trackShadow:C,thumbBorderRadius:M,thumbSize:l.thumbSize,thumbBackground:k,thumbBorder:P,thumbShadow:R,editable:y,type:"range",value:g,onChange:x})};var fnt=T(41589),jr=T.n(fnt),$r=T(69986);const Gh=r=>{let{newOptionData:t}=r;(0,$r.sV)(t,e=>{e.data.designExpanded&&(e.data.designExpanded=!1)})},pnt=r=>{let{newOptionData:t,onUpdate:e}=r,n=null;(0,$r.sV)(t,a=>{a.data.selected&&n===null&&(n=a),a.data.designExpanded&&(a.data.designExpanded=!1)});const i=vnt(n,t);if(n!==null&&i){const a=i.split("-");if(a.length===1)t[a[0]].data={...n.data,designExpanded:!0};else{let o=t[a[0]];for(a.shift();a.length;){a.length&&(o.data.designExpanded=!0);const s=a.shift();o=o.children[s]}}}e(t)},vnt=(r,t)=>{if(!r)return"";let e="";const n=(i,a,o)=>{const s=o?o+"-"+a:""+a;return i===r&&(e=s),s};return(0,$r.qS)(t,n,""),e},Tw=r=>{let{option:t,path:e,newOptionData:n,onUpdate:i}=r;if(e.split("-").length===1)Gh({newOptionData:n}),n[e].data={...t.data,designExpanded:!0};else{const o=(s,l)=>{s.children.forEach((u,c)=>{parseInt(l)===c?u.data.designExpanded=!0:u.data.designExpanded=!1})};(0,$r.u2)({newOptionData:n,pathArr:e.split("-"),onUpdate:o})}i(n)},qO=r=>{let{option:t,isSelected:e,checked:n,path:i,newOptionData:a,isMultiple:o,onUpdate:s}=r;o||(0,$r.sV)(a,c=>{c.data.selected&&(c.data={...c.data,selected:!1})});const l=o?{...t.data,selected:e,checked:n}:{...t.data,selected:e},u=i.split("-");if(u.length===1)a[i].data=l;else{const c=d=>{d.data=l};(0,$r.PM)({newOptionData:a,pathArr:u,onUpdate:c})}s(a)},Mw=r=>{let{option:t,isSelected:e,checked:n,path:i,newOptionData:a,isMultiple:o,onUpdate:s}=r;qO({option:t,isSelected:e,checked:n,path:i,newOptionData:a,isMultiple:o,onUpdate:s})},Aw=r=>{let{option:t,isSelected:e,checked:n,path:i,newOptionData:a,isMultiple:o,onUpdate:s}=r;Tw({option:t,path:i,newOptionData:a,onUpdate:()=>{}}),qO({option:t,isSelected:e,checked:n,path:i,newOptionData:a,isMultiple:o,onUpdate:s})},gnt=r=>{let{newOptionData:t,text:e,onUpdate:n}=r;if(!e)return;const i=e.split("-");if(i.length<1)return;const a=i[0],o=iN(a);if(o.length<1)return;const s=kc(t,o.join("-"));s.children.length<1?(s.data.selected=!1,s.data.checked&&(s.data.checked=!1)):(0,$r.sV)(s.children,l=>{l.data.selected=!1,l.data.checked&&(l.data.checked=!1)}),n(t)},mnt=r=>{let{newOptionData:t,texts:e,onUpdate:n}=r;!e||e.length===0||(e.forEach(i=>{const a=i.split("-");if(a.length<1)return;const o=a[0],s=iN(o);if(s.length<1)return;const l=kc(t,s.join("-"));l.children.length<1?(l.data.selected=!1,l.data.checked&&(l.data.checked=!1)):(0,$r.sV)(l.children,u=>{u.data.selected=!1,u.data.checked&&(u.data.checked=!1)})}),n(t))},tN=r=>{let{option:t,path:e,selectStatus:n,newOptionData:i}=r;const a=e.split("-");let o=null;if(a.length===1)o=i[e];else{const s=l=>{o=l};(0,$r.PM)({newOptionData:i,pathArr:e.split("-"),onUpdate:s})}o&&(t.children.length?n==="select"||n==="half"?(0,$r.sV)(o.children,s=>{s.children.length<1?(s.data.checked=!1,s.data.selected=!1):s.data.checked=!1}):(0,$r.sV)(o.children,s=>{s.children.length<1?(s.data.checked=!0,s.data.selected=!0):s.data.checked=!0}):n==="select"?(o.data.checked=!1,o.data.selected=!1):(o.data.checked=!0,o.data.selected=!0))},ynt=(r,t)=>{const e=[],n=[],i=[],a=o=>{o.forEach((s,l)=>{n.push(l);const u=n.join("-"),c=s.data.selected===!0,d=t?c:!1;i.push(u),c&&e.push(u),t&&(s.data.checked=d),s.children&&a(s.children),n.pop()})};return a(r),{selectedPaths:e,allPaths:i}},kc=(r,t,e)=>{const n=t.split("-").map(Number),i=[];let a=null;return n.forEach(o=>{var s;const l=a?a.children:r;if(!l||!l[o]){a=null;return}a=l[o],i.push((s=a.data)==null?void 0:s.name)}),e?{node:a,nodePath:i}:a},eN=(r,t)=>{const{selectedPaths:e,allPaths:n}=ynt(r,t);let i="",a=[],o=[];return e.length<1?{defaultText:i,multipleTexts:a,formatMultipleTexts:o}:(i=xnt(r,e[0])||"",o=wnt(r,n),a=Snt(r,e),{defaultText:i,multipleTexts:a,formatMultipleTexts:o})},xnt=(r,t)=>{if(t.length<1)return"";const{nodePath:e=[]}=kc(r,t,!0);return e.join("/")},Snt=(r,t)=>{if(r.length<1)return[];const e=[];for(let i=0;i<t.length;i++){var n;const a=kc(r,t[i]);e.push(a?Uh(a==null||(n=a.data)==null?void 0:n.name,t[i]):"")}return e},wnt=(r,t)=>{if(r.length<1)return[];const e=[],n=new Map,i=(a,o)=>{const{children:s,data:l}=a;if(s!=null&&s.length){let u=!0;return s.forEach((c,d)=>{const h=o+"-"+d,f=i(c,h);u=u&&f,n.set(o,u)}),u}else{const u=l.selected===!0;return n.set(o,u),u}};return t.forEach(a=>{const o=kc(r,a);o&&i(o,a)}),t.forEach(a=>{const o=a.split("-"),s=kc(r,a),l=s==null?void 0:s.data.name;if(o.length>1){const u=o.slice(0,-1).join("-");n.get(a)&&!n.get(u)&&e.push(Uh(l,a))}else n.get(a)&&e.push(Uh(l,a))}),e},bnt=8,Iw=8,_nt=34,rN=10,Cnt=65,Tnt=r=>{const{fontFamily:t,fontWeight:e,fontSize:n,letterSpacing:i,textDecoration:a,bold:o}=r,s=(0,ya._y)(e,o);return"\n position: absolute;\n left: -9999px;\n top: -9999px;\n opacity: 0;\n display: flex;\n font-family: "+t+";\n font-weight: "+s+";\n font-size: "+n+"px;\n letter-spacing: "+i+"px;\n text-decoration: "+a+";\n "},Mnt="padding: 3px 5px; border: 1px solid rgb(187, 187, 187); margin: 3px; min-height: 28px;",Ant=(r,t)=>{const e=document.createElement("div");e.style.cssText=Tnt(t);const n=r.map(a=>{const o=document.createElement("div");return o.style.cssText=Mnt,o.textContent=a,e.append(o),o});document.body.appendChild(e);const i=n.map(a=>{const{width:o,height:s}=a.getBoundingClientRect();return{width:o+21,height:s}});return e.remove(),i},Int=(r,t,e)=>{var n;if(!t||t.length===0||!r)return[];const i=Ant(t.map(nN),e),a=(((n=i[0])==null?void 0:n.height)||0)+bnt,{width:o=0,height:s=0}=r,l=o-rN-_nt,u=s-rN;if(a===0||l===0||u===0)return[];const c=Math.floor(u/a),d=Math.max(1,c);let h=l,f=0,p=!1;const v=[];for(let y=1;y<=d;y++){var g;if(f>=t.length)break;let x=i[f],w=(((g=x)==null?void 0:g.width)||0)+Iw;if(h<w&&(h=l),y===d&&!p){const _=t.slice(f).reduce((b,C,M)=>{const k=i[f+M],P=((k==null?void 0:k.width)||0)+Iw;return b+P},0);!(f===t.length-1&&w<h)&&_>h&&(h-=Cnt,p=!0)}for(;h>=w&&f<t.length;)if(h=h-w,v.push(t[f]),f++,f<t.length){var m;x=i[f],w=(((m=x)==null?void 0:m.width)||0)+Iw}}return v},Uh=(r,t)=>{const e=t.split("-").join(",");return""+e+(e?"-":"")+r},nN=r=>{if(!r)return r;const t=r.split("-");return t.length<=1?r:t.slice(1).join("-")||r},iN=r=>r===""?[]:r.split(",")||[],Dw="dropmenu-snapshot-preload",Dnt="#"+Dw,Jlt=()=>{let r=document.querySelector(Dnt);if(!r){const t=document.createElement("style");t.textContent="\n #"+Dw+" {\n position: absolute;\n top: -10000px;\n left: -10000px;\n font-size: 12px;\n pointer-events: none;\n }\n ",document.head.appendChild(t),r=document.createElement("div"),r.id=Dw,document.body.appendChild(r)}return r};var aN=T(69623),knt=T(18250),oN=T.n(knt);const Pnt=K.Ay.div.withConfig({displayName:"styles__StyledMultipleItem",componentId:"sc-kw4j2m-0"})(["display:inline-flex;align-items:center;justify-content:space-between;padding:3px 5px;border:1px solid rgb(187,187,187);border-radius:4px;margin:3px;height:28px;white-space:pre;.close{cursor:pointer;margin-left:6px;circle{fill:#00122626;}}.close:hover{circle{fill:#0012264D;}}"]),Ent=K.Ay.div.withConfig({displayName:"styles__StyledDropMenuContainer",componentId:"sc-kw4j2m-1"})([".drop-box{position:absolute;display:flex;pointer-events:auto;}ul.dropMenuWidgetContent{padding-top:4px;min-height:182px;max-height:600px;border-radius:6px;font-weight:400;box-shadow:rgba(0,18,38,0.10) 0px 4px 10px 0px;z-index:999999;overflow-y:auto;overflow-x:hidden;background-color:",";color:",";li{display:flex;align-items:center;position:relative;padding:6px 10px;min-height:32px;line-height:initial;min-width:140px;max-width:360px;transition:background-color 0.1s ease;line-height:1.2;&:hover,&.isExpanded,&.isHalfChecked{background-color:",";}&.isSelected,&.isChecked{color:",";}.checkbox_selected{width:16px;margin-right:8px;}.select > :first-child,.half > :first-child{fill:rgba(22,132,252,1);}.no > :first-child{fill:rgba(204,204,204,1);}.svg-icon.expand{width:24px;transform:rotate(-90deg);margin-left:auto;&.ro{transform:rotate(-90deg);}}.name{font-size:14px;white-space:pre;overflow:hidden;text-overflow:ellipsis;margin-right:10px;}&.is-multiple-selected{margin-bottom:2px;span.name{flex:1;}}}::-webkit-scrollbar-thumb{background-color:rgb(222,224,226);border-radius:4px;&:hover{background-color:rgba(0,18,38,0.3);}}}.children-box{padding-top:4px;background-color:#fff;border-radius:6px;height:182px;overflow-y:auto;overflow-x:hidden;font-weight:400;box-shadow:0 9px 28px 8px rgba(0,0,0,0.05),0 6px 16px rgba(0,0,0,0.08),0 3px 6px -4px rgba(0,0,0,0.12);ul.children-box{width:100%;height:100%;}}"],r=>r.optionBgColor,r=>r.optionSelectTextColor,r=>r.optionHoverBgColor,r=>r.optionSelectedColor),Lnt=K.Ay.div.withConfig({displayName:"styles__StyledDropMenu",componentId:"sc-kw4j2m-2"})(["overflow:hidden;.dropMenuHeader{display:flex;height:100%;pointer-events:auto;padding:3px;div.text{white-space:pre;margin-right:8px;overflow:hidden;line-height:100%;display:flex;}.multiple-text{max-width:100%;max-height:100%;display:flex;flex-wrap:wrap;}.text{flex:1;}.header-dropmenu{width:24px;margin-right:10px;}}"]),Jl={SELECT:"select",HALF:"half",NO:"no"},Rnt=r=>{const{option:t,isRenderSlected:e,panelCid:n,fontSize:i,isMultiple:a,showLinkTag:o,widget:s,path:l,onToggle:u,onClick:c,handleCheckNode:d,onExpandItem:h,linkQueryArray:f,mode:p}=r,{data:v,children:g}=t,[m,y]=(0,I.useState)(!0),[x,w]=(0,I.useState)(Jl.NO),{hasInteractiveIta:_,firstInteractiveIta:b,interactiveCids:C,firstUiInteractiveIta:M,itaClassName:k}=(0,hi.HW)(f,v.linkCids),P=(0,I.useRef)(),R=(0,I.useCallback)(re=>{P.current&&clearTimeout(P.current),MB.runnerController&&MB.runnerController.setIsPreventEvent(!0),re(),P.current=setTimeout(()=>{MB.runnerController&&MB.runnerController.setIsPreventEvent(!1)},400)},[]);(0,I.useEffect)(()=>{if(a){var re;if(!((re=t.children)!=null&&re.length))w(t.data.checked?Jl.SELECT:Jl.NO);else{let se=0,le=0;(0,$r.qS)(t.children,(me,ye,ue)=>{var fe;const Ie=ue+"-"+ye;if(!((fe=me.children)!=null&&fe.length)){var Me;se+=1,(Me=me.data)!=null&&Me.checked&&(le+=1)}return Ie},l),se===le?w(Jl.SELECT):le>0&&le<se?w(Jl.HALF):w(Jl.NO)}}},[a,t.children,t.data.checked,l]);const j=re=>{c&&c(re,t,l,x),(0,cn.Fr)()||u&&u(re,a?void 0:!1,t)},X=re=>{p!=="preview"&&(re.stopPropagation(),re.preventDefault())},st=()=>y(!0),dt=()=>y(!1),xt=re=>{if(X(re),m){var se;re!=null&&(se=re.target)!=null&&(se=se.closest("svg"))!=null&&(se=se.className)!=null&&(se=se.baseVal)!=null&&(se=se.split(" "))!=null&&se.includes("prevent_toggle_in_checkbox")?R(()=>{d({option:t,path:l,selectStatus:x})}):j(re)}},Rt=re=>{(0,cn.Fr)()||X(re)},wt=re=>{(0,cn.Fr)()||X(re)},Lt=re=>{(0,cn.Fr)()||j(re)},Ft=()=>{h&&h({option:t,path:l})},Kt=(re,se)=>{(0,cn.Fr)()||(re.stopPropagation(),y(!1),R(()=>{d({option:t,path:l,selectStatus:se})}))},{designExpanded:Ut,selected:Bt}=t.data||{},Gt=t.children.length>0,Qt=V()("item",k,{isSelected:(v==null?void 0:v.selected)&&e&&!((g==null?void 0:g.length)>0),isExpanded:(g==null?void 0:g.length)>0&&(v==null?void 0:v.designExpanded),isChecked:a&&x===Jl.SELECT});return(0,S.jsxs)("li",{"data-cid":s==null?void 0:s.key,"data-container-cid":s==null?void 0:s.key,"data-link_cid":C,"data-panel_cid":n,className:Qt,onTouchStart:st,onTouchMove:dt,onTouchEnd:xt,onPointerDown:Rt,onMouseEnter:Ft,onPointerUp:wt,onClick:Lt,children:[a&&(0,S.jsx)(xr.C,{isColorPure:!0,className:V()("checkbox_selected","prevent_toggle_in_checkbox",x),onClick:re=>Kt(re,x),name:"tree_node/checkbox_"+x}),(0,S.jsx)("span",{className:"name",style:{fontSize:i},children:String(t.data.name).replace(/\n/g," ")}),M&&o&&(0,S.jsx)(pa,{interactionKey:M.key}),_&&(0,S.jsx)("div",{className:"gesture"}),Gt&&(0,S.jsx)(xr.C,{className:V()("expand",{ro:!Ut}),name:"design/dropMenu/dropDown"})]})},Ont=5,sN=(r,t)=>r!=null&&r.length?r.map((e,n)=>{var i;const a=t==null?void 0:t[n];return a?{data:{...e.data,name:(i=a.data)==null?void 0:i.name},children:sN(e.children,a.children)}:e}):t,Nnt=r=>{const{x:t,y:e,optionData:n,optionColor:i,widget:a,onToggle:o,handleCloseAllFirstLevel:s,handleCheckNode:l,mode:u}=r,c=a.hotAttr.optionData,d=(0,I.useMemo)(()=>sN(n,c),[n,c]),h=(0,I.useRef)(null),f=(0,et.t0)(i.optionBgColor),p=(0,et.t0)(i.optionHoverBgColor),v=(0,et.t0)(i.optionSelectTextColor),g=(0,et.t0)(i.optionSelectedColor),m=(0,I.useCallback)(M=>{const P=M.target.closest("ul");P&&(P.clientHeight<P.scrollHeight||P.clientWidth<P.scrollWidth)&&M.stopPropagation()},[]);(0,I.useEffect)(()=>{const M=h.current;return M&&M.addEventListener("wheel",m,{passive:!1,capture:!0}),()=>{M&&M.removeEventListener("wheel",m,{capture:!0})}},[m]),(0,I.useEffect)(()=>{if(u==="preview"){const M=document.querySelector(".design-widget-portal-menu");M&&MB.runnerController.initMouseEventHandler(M)}},[]);const y=(0,I.useCallback)(M=>{h.current&&!h.current.contains(M.target)&&!r.parentElement.contains(M.target)&&(s&&s(),o(M,!1))},[s,o,r.parentElement]);let x=!1;const w=function(M,k){k===void 0&&(k="");const{linkQueryArray:P,isEdit:R,fontSize:j,text:X,isMultiple:st,showLinkTag:dt,onClick:xt,onExpandItem:Rt}=r;return M.map((wt,Lt)=>{const Ft=""+k+Lt;let Kt=!0;return!st&&wt.data.selected&&(x?Kt=!1:x=!0),(0,S.jsx)(Rnt,{mode:u,path:Ft,widget:a,isRenderSlected:Kt,linkQueryArray:P,isEdit:R,option:wt,fontSize:j,text:X,isMultiple:st,showLinkTag:dt,onToggle:o,onClick:xt,onExpandItem:Rt,handleCheckNode:l},Ft)})},_=function(M,k,P){return k===void 0&&(k=1),P===void 0&&(P=""),k>Ont?[]:M.flatMap((R,j)=>{const X=""+P+j;return R.data.designExpanded&&R.children?[(0,S.jsx)("ul",{className:V()("dropMenuWidgetContent pcanvas",{"children-box":k>0}),"data-cid":sdkStore.locUpColdCanvasKey(a.key),children:w(R.children,X+"-")},"ul-"+k+"-"+X),..._(R.children,k+1,X+"-")]:[]})},b={left:t,top:e},C=sdkStore.locUpColdCanvasKey(a.key);return(0,S.jsxs)(Ent,{className:"tree-node design-widget-portal-menu",optionBgColor:f,optionHoverBgColor:p,optionSelectedColor:g,optionSelectTextColor:v,children:[(0,S.jsxs)("div",{className:"drop-box",style:b,ref:h,children:[(0,S.jsx)("ul",{className:V()("dropMenuWidgetContent pcanvas"),"data-cid":C,children:w(d)}),_(d)]}),(0,S.jsx)(Gr.A,{target:document,onPointerDown:(0,Gr.t)(y,{capture:!0})})]})},lN=r=>{let{text:t,onClick:e}=r;const n=i=>{i.stopPropagation(),i.preventDefault(),e(t)};return(0,S.jsxs)(Pnt,{children:[(0,S.jsx)("span",{children:nN(t)}),(0,S.jsx)(xr.C,{className:"close prevent_toggle_in_drop_menu",size:15,name:"art_board/dropdown_menu/close",isColorPure:!0,onClick:n})]})},Kh=r=>String(r).replace(/\n/g," ");class kw extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"isClearExpandStatusInPreview",!1),(0,ge.A)(this,"state",{text:this.props.widget.hotAttr.textV0.text,multipleTexts:[],formatMultipleTexts:[],prevProps:{multipleTexts:"",formatMultipleTexts:"",text:""},isShowDropMenu:!1,x:0,y:0}),(0,ge.A)(this,"$portalElem",document.createElement("div")),(0,ge.A)(this,"setElementRef",t=>this.element=t),(0,ge.A)(this,"handleAppendPortal",()=>{const{getPortalParent:t}=this.props;this.$protalParent=t==null?void 0:t(),this.$protalParent&&(this.$protalParent.appendChild(this.$portalElem),this.handleCalcPortalPosition())}),(0,ge.A)(this,"handleRemovePortal",()=>{var t;(t=this.$protalParent)!=null&&t.contains(this.$portalElem)&&this.$protalParent.removeChild(this.$portalElem)}),(0,ge.A)(this,"handleCalcPortalPosition",()=>{const{widget:{hotAttr:{h:t}}}=this.props;if(!this.$protalParent)return;const n=this.element.parentElement.getBoundingClientRect(),i=this.$protalParent.getBoundingClientRect(),a=n.height/Math.max(t,1),o=(n.left-i.left)/a,s=(n.bottom-i.top)/a;this.setState({x:o,y:s})}),(0,ge.A)(this,"handleToggle",(t,e,n)=>{var i,a,o;if(t!=null&&(i=t.target)!=null&&(i=i.closest("svg"))!=null&&(i=i.className)!=null&&(i=i.baseVal)!=null&&(i=i.split(" "))!=null&&i.includes("prevent_toggle_in_drop_menu")){if((0,cn.Fr)()){var s;!((s=MB)==null||(s=s.runnerController)==null)&&s.toggleScrollBar&&MB.runnerController.toggleScrollBar(!1)}return}const{isEdit:l,runnerOptionData:u,onToggleWidgetMaskModal:c,onUpdate:d,widget:{hotAttr:{optionData:h,textV0:f,dropMenu:{isMultiple:p,dropMenuEcho:v}}}}=this.props;if(!l)return;const g=jr()(u||h),m=oN()(e)?e:!this.state.isShowDropMenu;if(m)this.handleAppendPortal(),!p&&this.props.mode==="preview"&&pnt({newOptionData:g,onUpdate:d}),!this.isClearExpandStatusInPreview&&p&&this.props.mode==="preview"&&(this.clearExpanded(g),this.isClearExpandStatusInPreview=!0);else if(!p){var y;v||this.setState({text:f.text}),!(n!=null&&(y=n.children)!=null&&y.length)&&this.handleRemovePortal()}if(c&&c(m),!(p&&e===void 0)){if(n!=null&&(a=n.data)!=null&&a.designExpanded&&n!=null&&(o=n.children)!=null&&o.length){this.setState({isShowDropMenu:!0});return}this.setState({isShowDropMenu:m})}}),(0,ge.A)(this,"handleHover",(t,e)=>{if(!(0,cn.Fr)()&&(t.stopPropagation(),t.preventDefault(),this.handleToggle(t,e),!e&&this.props.mode!=="preview")){const n=jr()(this.props.widget.hotAttr.optionData);this.clearExpanded(n)}}),(0,ge.A)(this,"handleItemClick",(t,e,n,i)=>{var a;const{widget:{hotAttr:o},runnerOptionData:s,onUpdate:l,onExpandItem:u}=this.props,{dropMenu:{dropMenuEcho:c,isMultiple:d},optionData:h}=o;if(d&&t!=null&&(a=t.target)!=null&&(a=a.closest("svg"))!=null&&(a=a.className)!=null&&(a=a.baseVal)!=null&&(a=a.split(" "))!=null&&a.includes("prevent_toggle_in_checkbox"))return;c||this.setState({isShowDropMenu:!1});const f=jr()(s||h);if((0,cn.Fr)())if(d){var y;if((e==null||(y=e.children)==null?void 0:y.length)<1){const x=Uh(e.data.name,n);this.state.multipleTexts.includes(x)?(this.setState({multipleTexts:this.state.multipleTexts.filter(w=>w!==x)}),Aw({option:e,isSelected:!1,checked:!1,path:n,newOptionData:f,isMultiple:d,onUpdate:l})):(this.setState({multipleTexts:[...this.state.multipleTexts,x]}),Aw({option:e,isSelected:!0,checked:!0,path:n,newOptionData:f,isMultiple:d,onUpdate:l}))}else u({option:e,path:n,designExpanded:!0})}else{var m;(e==null||(m=e.children)==null?void 0:m.length)>=1?(this.setState({isShowDropMenu:!0}),u({option:e,path:n,designExpanded:!0})):(this.setState({text:e.data.name,isShowDropMenu:!1}),this.props.mode!=="preview"&&Gh({newOptionData:f}),Aw({option:e,isSelected:!0,path:n,newOptionData:f,isMultiple:d,onUpdate:l}))}else if(d){var g;if((e==null||(g=e.children)==null?void 0:g.length)<1){const x=Uh(e.data.name,n);this.state.multipleTexts.includes(x)?(this.setState({multipleTexts:this.state.multipleTexts.filter(w=>w!==x)}),Mw({option:e,isSelected:!1,checked:!1,path:n,newOptionData:f,isMultiple:d,onUpdate:l})):(this.setState({multipleTexts:[...this.state.multipleTexts,x]}),Mw({option:e,isSelected:!0,checked:!0,path:n,newOptionData:f,isMultiple:d,onUpdate:l}))}}else{var p,v;e!=null&&(p=e.data)!=null&&p.designExpanded&&e!=null&&(v=e.children)!=null&&v.length?this.setState({isShowDropMenu:!0}):(this.setState({text:e.data.name,isShowDropMenu:!1}),this.props.mode!=="preview"&&Gh({newOptionData:f}),Mw({option:e,isSelected:!0,path:n,newOptionData:f,isMultiple:d,onUpdate:l}))}}),(0,ge.A)(this,"clearExpanded",t=>{const{onUpdate:e}=this.props;Gh({newOptionData:t}),e(t)}),(0,ge.A)(this,"handleRemoveMultipleItem",t=>{const{isEdit:e,runnerOptionData:n,onUpdate:i,widget:a}=this.props;if(!e)return;this.setState({multipleTexts:this.state.multipleTexts.filter(s=>s!==t)});const o=jr()(n||a.hotAttr.optionData);gnt({newOptionData:o,text:t,onUpdate:i})}),(0,ge.A)(this,"handleRemoveAllMultipleItem",t=>{const{isEdit:e,runnerOptionData:n,onUpdate:i,widget:a}=this.props;if(!e||t.length<1)return;this.setState({multipleTexts:this.state.multipleTexts.filter(s=>!t.includes(s))});const o=jr()(n||a.hotAttr.optionData);mnt({newOptionData:o,texts:t,onUpdate:i})})}static getDerivedStateFromProps(t,e){let{prevProps:n}=e;const i={prevProps:{...n}};let a=!1;const{optionData:o,dropMenu:s,textV0:l}=t.widget.hotAttr,{defaultText:u,multipleTexts:c,formatMultipleTexts:d}=eN(t.runnerOptionData||o,s.isMultiple);if(s.isMultiple){c.join(",")!==n.multipleTexts&&(a=!0,i.multipleTexts=c,i.prevProps.multipleTexts=c.join(","));const h=d.join(",");h!==n.formatMultipleTexts&&(a=!0,i.formatMultipleTexts=d,i.prevProps.formatMultipleTexts=h)}else{const h=s.dropMenuEcho&&u||l.text;h!==n.text&&(a=!0,i.text=h,i.prevProps.text=h)}return a?i:null}componentDidUpdate(t,e){const{optionData:n,dropMenu:i,textV0:a}=this.props.widget.hotAttr;if(t.isEdit&&!this.props.isEdit){const{defaultText:o,multipleTexts:s,formatMultipleTexts:l}=eN(n);this.setState({text:i.dropMenuEcho&&o||a.text,multipleTexts:s,formatMultipleTexts:l})}if(this.props.mode!=="preview"&&this.state.isShowDropMenu&&!e.isShowDropMenu){const o=jr()(n);this.clearExpanded(o)}}render(){const{isShowDropMenu:t,x:e,y:n,text:i,formatMultipleTexts:a,multipleTexts:o}=this.state,{widget:s,widget:{key:l,hotAttr:u},treeData:c,runnerOptionData:d,isEdit:h,showLinkTag:f,onExpandItem:p,handleCloseAllFirstLevel:v,handleCheckNode:g,mode:m}=this.props,{w:y,h:x,textV0:w,dropMenu:_,optionData:b,optionColor:C,border:M}=u,k=d||b,{fontSize:P,verticalAlign:R,horizontalAlign:j,text:X}=w,{dropMenuEcho:st,mutualWay:dt,isMultiple:xt}=_,Rt=y-M.bdrWidth*2,wt=x-M.bdrWidth*2,Lt={width:Rt,height:wt,cursor:h?"pointer":""},Ft=c?(0,Xt.DS)(c.sdkStore,l,c.isEditingCombo,c.editingPanelCid):[],Kt=Int(Lt,a,w),Ut=a.length-Kt.length;return(0,S.jsxs)(Lnt,{ref:this.setElementRef,style:Lt,onMouseEnter:dt==="hover"?Bt=>this.handleHover(Bt,!0):void 0,onMouseLeave:dt==="hover"?Bt=>this.handleHover(Bt,!1):void 0,children:[(0,S.jsxs)("header",{style:{alignItems:R},className:V()("dropMenuHeader canClickableHighWidget",{isShowDropMenu:t}),onPointerDown:dt==="click"?Bt=>this.handleToggle(Bt,null):void 0,children:[(0,S.jsxs)("div",{className:"text "+(xt?"multiple-text":""),style:{justifyContent:j},children:[xt?a.length===0?Kh(X):Kt.map(Bt=>(0,S.jsx)(lN,{text:Kh(Bt),onClick:this.handleRemoveMultipleItem},Bt)):Kh(h?st?i:X:i),xt&&Ut>0&&o.length!==0&&(0,S.jsx)(lN,{text:Ut<10?"+"+Ut+"...":Ut<100?"+"+Ut+"..":"+"+Ut,onClick:()=>this.handleRemoveAllMultipleItem(a.slice(-Ut))})]}),(0,S.jsx)(xr.C,{className:"header-dropmenu",name:"design/dropMenu/dropDown"})]}),t&&h&&(0,aN.createPortal)((0,S.jsx)(Nnt,{widget:s,x:e,y:n,isEdit:h,optionData:k,optionColor:C,linkQueryArray:Ft,parentElement:this.element,fontSize:P,text:this.state.text,isMultiple:xt,showLinkTag:f,onClick:this.handleItemClick,onToggle:this.handleToggle,onExpandItem:p,handleCloseAllFirstLevel:v,handleCheckNode:g,mode:m}),this.$portalElem)]})}}const Bnt=r=>{const{widget:t,widget:{key:e,hotAttr:{optionData:n}},treeData:i,mode:a}=r,[o,s]=(0,I.useState)(n),l=(0,I.useRef)(n),u=()=>document.querySelector(".preview-modal-portal-root #simulator #event-container")||document.querySelector("#simulator #event-container"),c=p=>MB.runnerController.toggleScrollBar(!p),d=p=>{let{option:v,path:g}=p;const m=jr()(o||n);Tw({option:v,path:g,newOptionData:m,onUpdate:s})},h=p=>{let{option:v,path:g,selectStatus:m}=p;const y=jr()(o||n);tN({newOptionData:y,option:v,path:g,selectStatus:m}),s(y)},f=p=>{s(p),i.sdkStore.overwriteItem({key:e,hotAttr:{optionData:p}})};return(0,I.useEffect)(()=>{Yr()(l.current,n)||(s(n),l.current=n)},[n]),(0,S.jsx)(kw,{isEdit:!0,widget:t,treeData:i,mode:a,runnerOptionData:o,getPortalParent:u,onToggleWidgetMaskModal:c,onExpandItem:d,handleCheckNode:h,onUpdate:f})},Vnt=r=>{const{widget:{key:t,hotAttr:{optionData:e,dropMenu:{isMultiple:n}}},treeData:i}=r,a=(0,I.useRef)(n),o=()=>document.querySelector("#canvas"),s=d=>{i.actions.updateWidget([{key:t,hotAttr:{optionData:d}}])},l=()=>{const d=jr()(e);Gh({newOptionData:d}),s(d)},u=d=>{let{option:h,path:f}=d;const p=jr()(e);Tw({option:h,path:f,newOptionData:p,onUpdate:s})},c=d=>{let{option:h,path:f,selectStatus:p}=d;const v=jr()(e);tN({newOptionData:v,option:h,path:f,selectStatus:p}),s(v)};return(0,I.useEffect)(()=>{if(a.current===!0&&n===!1){const d=jr()(e);let h=!1;(0,$r.sV)(d,f=>{f.data.selected===!0&&(h?f.data.selected=!1:h=!0)}),s(d)}a.current=n},[n,e]),(0,S.jsx)(kw,{isEdit:i.editingEditableWidgetCid===t,showLinkTag:!0,getPortalParent:o,handleCloseAllFirstLevel:l,onExpandItem:u,handleCheckNode:c,onUpdate:s,...r})},znt=r=>(0,S.jsx)(kw,{isEdit:!1,showLinkTag:!1,onExpandItem:()=>{},handleCheckNode:()=>{},onUpdate:()=>{},...r}),Hnt=(0,I.memo)(r=>{const{mode:t}=r;return t==="preview"?(0,S.jsx)(Bnt,{...r}):t==="design"?(0,S.jsx)(Vnt,{...r}):(0,S.jsx)(znt,{...r})});var uN=T(17573),va=T(4914),Pw=T(33421);class Cg extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"state",{isEditing:!1}),(0,ge.A)(this,"setInputEditRef",t=>this.$editInput=t),(0,ge.A)(this,"handleToggleIsEditText",t=>{const{canEditText:e,hiKey:n}=this.props;e&&(0,Pw.RC)(n)&&this.setState({isEditing:oN()(t)?t:!this.state.isEditing},()=>{this.$editInput&&this.$editInput.select()})}),(0,ge.A)(this,"handleBlurInput",t=>{const{key:e}=t;e===Br._.Enter&&this.handleToggleIsEditText(!1)}),(0,ge.A)(this,"handleFocus",t=>{t.preventDefault(),t.stopPropagation(),t.target.select(),t.target.scrollLeft=0}),(0,ge.A)(this,"handleStopPropagation",t=>{const{canEditText:e}=this.props;e&&t.stopPropagation()})}render(){const{value:t,onChangeValue:e,inputStyle:n,canEditText:i}=this.props,{isEditing:a}=this.state,o=a&&i,s=String(t).replace(/\n/g," ");return(0,S.jsxs)(Fnt,{className:V()("editable-span-wrap",{"is-editing":o}),children:[(0,S.jsx)("span",{className:V()("editable-span",{"can-edit":i,"is-empty":!s}),onDoubleClick:()=>this.handleToggleIsEditText(!0),onPointerDown:this.handleStopPropagation,onMouseEnter:this.handleStopPropagation,onClick:this.handleStopPropagation,children:s}),o&&(0,S.jsx)("input",{style:n,className:"editable-input",onChange:e,onBlur:()=>this.handleToggleIsEditText(!1),value:t,ref:this.setInputEditRef,onPointerDown:l=>l.stopPropagation(),onKeyDown:this.handleBlurInput,onFocus:this.handleFocus,onClick:l=>l.stopPropagation()})]})}}const Fnt=K.Ay.div.withConfig({displayName:"AdvancedEditableSpan__StyledEditableSpan",componentId:"sc-1oeq7lx-0"})(["&.editable-span-wrap{position:relative;display:flex;overflow:hidden;line-height:1.4;&.is-editing{.editable-input{border:1px dashed #1684FC;}.editable-span{visibility:hidden;}}.is-empty{height:1.4em;width:100%;min-width:4px;}.editable-span{border:1px solid transparent;white-space:nowrap;cursor:pointer;&.can-edit{&:hover{border:1px dashed #1684FC;}}}.editable-input{position:absolute;left:0;width:100%;height:100%;display:inline-block;pointer-events:auto;border:1px solid transparent;}}"]),Tg=(0,I.memo)(r=>{const{cid:t,path:e,viewBox:n,className:i}=r,a=(0,I.useMemo)(()=>(0,Mi.RY)({key:t,iconData:{path:e}}),[t,e]);return(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,dangerouslySetInnerHTML:{__html:(a==null?void 0:a.innerHTML)||e||""},viewBox:n})}),cN=r=>{let{navigationMenuKey:t,expandBackground:e,firstLevel:n,onMouseEnterExpand:i,path:a,node:o,level:s,isShowIcon:l,canExpandOneMenu:u,isEdit:c,onExpandItem:d,onSelectedItem:h,onUpdate:f,canEditText:p,navigationMenuType:v,getPortalParent:g,isCreatePortalList:m,treeData:y,showLinkTag:x,renderMode:w,onlyView:_,navigationMenu:b,widget:C,isPreview:M,optionDataSelected:k,optionDataDesignUnExpanded:P,onRemoveFirstOptionPortal:R}=r;const j={backgroundColor:v===va.ue.navigationMenu&&s>1?"transparent":e};return(0,I.useEffect)(()=>{if(M){const X=document.querySelector(".preview-content-container .design-widget-portal-menu");X&&MB.runnerController.initMouseEventHandler(X)}},[]),(0,S.jsx)("div",{className:V()("childrenListWrap",{firstLevel:n}),style:j,onMouseEnter:(0,cn.Fr)()?void 0:X=>i(!0,X),onMouseLeave:(0,cn.Fr)()?void 0:X=>i(!1,X),onClick:v!==va.ue.navigationMenu?R:void 0,children:(0,S.jsx)("ul",{className:V()("childrenList",{pcanvas:m}),children:o.children.map((X,st)=>(0,S.jsx)(pN,{widget:C,navigationMenuKey:t,path:a+"-"+st,node:X,parent:o,level:s+1,isShowIcon:l,canExpandOneMenu:u,isEdit:c,onSelectedItem:h,onExpandItem:d,onUpdate:f,canEditText:p,navigationMenuType:v,getPortalParent:g,treeData:y,showLinkTag:x,renderMode:w,onlyView:_,navigationMenu:b,optionDataSelected:k,optionDataDesignUnExpanded:P,isPreview:M},a+"-"+st))})})},dN=K.Ay.div.withConfig({displayName:"styles__StyledNavigationMenu",componentId:"sc-7418kp-0"})(["ul.navigationMenuList{width:100%;height:100%;list-style:none;overflow-x:hidden;overflow-y:auto;}li.menuItem{list-style:none;margin-bottom:4px;margin-top:4px;&.renderMode2{margin:0;}.content{display:flex;justify-content:space-between;align-items:center;position:relative;width:100%;min-width:24px;.svg-icon.expand{transform:rotate(180deg);margin-left:8px;min-width:1em;margin-right:16px;&.ro{transform:rotate(0deg);}}.leftContent{display:flex;align-items:center;overflow:hidden;flex:1;.editable-span-wrap{flex:1;}.icon-wrap{display:flex;width:1em;min-width:1em;height:1em;margin-right:9px;svg{width:100%;height:100%;}}.editable-span-wrap .editable-span{white-space:pre;}}.selectedRight{position:absolute;right:0;width:3px;height:100%;}}}"]),hN=(0,K.Ay)(dN).withConfig({displayName:"styles__StyledNavigationMenuV",componentId:"sc-7418kp-1"})(["position:absolute;ul.navigationMenuList{position:absolute;}li.menuItem{position:relative;.content{padding-left:16px !important;.selectedRight{display:none;}.svg-icon.expand{transform:rotate(-90deg);&.ro{transform:rotate(-90deg);}}}}.childrenListWrap{position:absolute;top:0;right:-4px;transform:translateX(100%);box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;z-index:",';min-width:160px;max-width:280px;&::before{position:absolute;top:0;right:0;bottom:0;left:-7px;z-index:99999999;width:10px;height:100%;opacity:.0001;content:" ";display:table;}ul.childrenList{width:100%;height:100%;}}'],r=>r.zIndex),Wnt=(0,K.Ay)(hN).withConfig({displayName:"styles__StyledNavigationMenuH",componentId:"sc-7418kp-2"})(["border-right:none !important;width:100%;height:100%;ul.navigationMenuList{overflow:hidden;display:flex;align-items:center;justify-content:",";}li.menuItem{height:100%;display:flex;align-items:center;.content{min-width:unset;&.firstLevel{height:100% !important;padding:0 20px;.selectedRight{display:inline-block;background-color:#1684fc;bottom:0;width:100%;height:3px;left:0;}.expand.svg-icon{display:none;}}}}.childrenListWrap{&.firstLevel{top:4px;right:auto;left:0;transform:translateX(0);&::before{top:-7px;width:100%;height:10px;}}}"],r=>r.align);class fN extends I.PureComponent{render(){const{navigationMenuType:t,children:e,style:n,className:i,align:a}=this.props;return t===1?(0,S.jsx)(hN,{className:i,style:n,zIndex:z.Q.STICKY_Z,children:e}):t===2?(0,S.jsx)(Wnt,{className:i,style:n,zIndex:z.Q.STICKY_Z,align:a,children:e}):(0,S.jsx)(dN,{className:i,style:n,children:e})}}var an=T(92465);class pN extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"$portalElem",document.createElement("div")),(0,ge.A)(this,"createItemLiRef",t=>this.$itemLi=t),(0,ge.A)(this,"state",{isShowPortal:!1,x:0,y:0,hoverOptionCid:""}),(0,ge.A)(this,"findChildrenSelected",t=>{const{node:{children:e},widget:{hotAttr:n},optionDataSelected:i}=this.props;return(t||e).find(o=>o.children.length>0?this.findChildrenSelected(o.children):(0,an.lt)({optionData:o,optionDataSelected:i,widgetVersion:n["!version"]}))}),(0,ge.A)(this,"handleUpdateHoverOptionCid",t=>this.setState({hoverOptionCid:t})),(0,ge.A)(this,"handleRemoveFirstOptionPortal",()=>{this.handleUpdateHoverOptionCid(""),this.handleRemovePortal()}),(0,ge.A)(this,"handleClickExpand",async t=>{if(this.props.onlyView)return;this.preventTimer&&clearTimeout(this.preventTimer),MB.runnerController&&MB.runnerController.setIsPreventEvent(!1);const{onExpandItem:e,onSelectedItem:n,path:i,node:a,level:o,navigationMenuType:s,onCloseAllFirstLevel:l,treeData:u,widget:c}=this.props;if(!a.children.length){const d=(0,Xt.DS)(u.sdkStore,c.key,u.isEditingCombo,u.editingPanelCid),{firstInteractiveIta:h}=(0,hi.HW)(d,a.data.linkCids);h&&s!==va.ue.navigationMenu&&o!==1&&this.handleRemovePortal(),await(n==null?void 0:n({node:a,path:i})),this.handleRemoveFirstOptionPortal();return}s===va.ue.navigationMenu&&(MB.runnerController&&MB.runnerController.setIsPreventEvent(!0),e==null||e({node:a,path:i}),this.preventTimer=setTimeout(()=>{MB.runnerController&&MB.runnerController.setIsPreventEvent(!1)},400))}),(0,ge.A)(this,"handlePointerDown",t=>{this.props.isPreview||t.preventDefault()}),(0,ge.A)(this,"handleClick",t=>{this.handleClickExpand(t)}),(0,ge.A)(this,"handleCalcPortalPosition",()=>{var t;if(!this.$portalParent)return;const e=(t=this.$itemLi)==null?void 0:t.closest(".widget.wNavigationMenu");if(!e)return;const{widget:{hotAttr:{h:n}},navigationMenuType:i}=this.props,a=i===va.ue.navigationMenuH,o=this.$itemLi.getBoundingClientRect(),s=e.getBoundingClientRect(),l=this.$portalParent.getBoundingClientRect(),u=s.height/Math.max(n,1),c=a?(o.left-l.left)/u:(s.right-l.left)/u,d=a?(s.bottom-l.top)/u:(o.top-l.top)/u;this.setState({x:c,y:d})}),(0,ge.A)(this,"handleAppendPortal",()=>{var t;const{getPortalParent:e}=this.props;this.$portalParent=e==null?void 0:e(),(t=this.$portalParent)==null||t.appendChild(this.$portalElem),this.setState({isShowPortal:!0}),this.handleCalcPortalPosition()}),(0,ge.A)(this,"handleRemovePortal",()=>{var t;(t=this.$portalParent)!=null&&t.contains(this.$portalElem)&&(this.$portalParent.removeChild(this.$portalElem),this.setState({isShowPortal:!1}))}),(0,ge.A)(this,"handleMouseEnterExpand",t=>{const{onlyView:e,navigationMenuType:n,path:i,node:a}=this.props;e||n===va.ue.navigationMenu||!a.children.length||(t?(this.handleUpdateHoverOptionCid(a.data.cid),this.handleAppendPortal()):(this.handleUpdateHoverOptionCid(""),this.handleRemovePortal()))}),(0,ge.A)(this,"handleChangeName",t=>{t.stopPropagation();const{node:e,onUpdate:n,parent:i,path:a}=this.props,o={...e.data,name:t.target.value};n==null||n({data:o,path:a,parent:i})}),(0,ge.A)(this,"handleClickOutSide",t=>{this.$portalElem.contains(t.target)||this.setState({isShowPortal:!1})}),(0,ge.A)(this,"getOtherStyle",()=>{const{navigationMenu:t,level:e,node:n,widget:{hotAttr:i},optionDataSelected:a}=this.props,{isMenuBackgroundVisible:o,menuBackground:s,navigationMenuType:l,menuHeight:u,isSubMenuBackground:c,subMenuBackground:d,activeMenuItemBackground:h,subMenuHeight:f,isActiveMenuItemBackgroundVisible:p,menuText:v,subMenuText:g,activeMenuText:m}=t||{},y=e===1,x=(0,et.t0)(m.textV0.textColor),w=(0,an.lt)({optionData:n,optionDataSelected:a,widgetVersion:i["!version"]}),_=c?(0,et.t0)(d):"transparent",b=p?(0,et.t0)(h):"transparent",C=o?(0,et.t0)(s):"transparent",M=(0,ot.Zv)(y?v:g),k={...M,height:u+"px"},P={...M,color:x,height:y?u+"px":f+"px",backgroundColor:y?l===va.ue.navigationMenuH?b:C:"transparent"},R={...(0,ot.Zv)(m),height:y?u+"px":f+"px",backgroundColor:b||_},j={...M,height:f+"px",backgroundColor:_},X=!!this.findChildrenSelected(null),st=w?R:X?P:y?k:j;return{paddingLeft:16+(e-1)*24+"px",...st}})}componentDidMount(){const{parent:t,widget:{key:e,hotAttr:n},optionDataSelected:i,onSelectedItem:a}=this.props;if((0,ht.OO)(e)&&n["!version"]===2){var o;(t==null||(o=t.children)==null?void 0:o.length)>0&&i!=null&&i.includes(t.data.cid)&&setTimeout(()=>{typeof a=="function"&&a({node:t.children[0]})},16)}}render(){const{navigationMenuKey:t,canEditText:e,node:n,node:{children:i,data:{cid:a,name:o,icon:s,linkCids:l}},level:u,navigationMenu:c,treeData:d,showLinkTag:h,renderMode:f,widget:{key:p,hotAttr:v},optionDataSelected:g,optionDataDesignUnExpanded:m,isPreview:y}=this.props,{navigationMenuType:x,isShowIcon:w,isSubMenuBackground:_,subMenuBackground:b,activeMenuItemTextColor:C}=c||{},{isShowPortal:M,hoverOptionCid:k}=this.state,P=(0,Xt.DS)(d.sdkStore,p,d.isEditingCombo,d.editingPanelCid),R=v["!version"],j=i.length>0,X=u===1,st=(0,an.XZ)({optionData:n,optionDataDesignUnExpanded:m,widgetVersion:R}),dt=(0,an.lt)({optionData:n,optionDataSelected:g,widgetVersion:R}),xt=x===va.ue.navigationMenu?st&&j:k===n.data.cid,Rt=s&&w&&X,wt=(0,et.t0)(C),Lt=_?(0,et.t0)(b):"transparent",Ft=this.getOtherStyle(),{height:Kt,paddingLeft:Ut,...Bt}=Ft,Gt={backgroundColor:wt},{hasInteractiveIta:Qt,interactiveCids:re,firstUiInteractiveIta:se,hasUiInteractiveIta:le,itaClassName:me}=(0,hi.HW)(P,l),ye=h&&!j&&le,ue=!!this.findChildrenSelected(null),fe=x===va.ue.navigationMenuH&&ue||dt,Ie=x!==va.ue.navigationMenu&&X;let Me={};if(Ie&&M){const{x:Ue,y:Ge}=this.state;Me={position:"absolute",top:Ge,left:Ue}}return(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)("li",{className:V()("menuItem canClickableHighWidget",{selected:dt,renderMode2:f===2}),ref:this.createItemLiRef,children:[(0,S.jsxs)("div",{className:V()("content",me,{firstLevel:X}),style:Ft,onPointerDown:(0,cn.Fr)()&&x!==va.ue.navigationMenu&&j?()=>this.handleMouseEnterExpand(!0):this.handlePointerDown,onClick:this.handleClick,onMouseEnter:(0,cn.Fr)()?void 0:()=>this.handleMouseEnterExpand(!0),onMouseLeave:(0,cn.Fr)()?void 0:()=>this.handleMouseEnterExpand(!1),"data-container-cid":t,"data-link_cid":j?"":re,children:[(0,S.jsxs)("div",{className:"leftContent",children:[Rt&&(0,S.jsx)("span",{className:"icon-wrap",children:(0,S.jsx)(Tg,{cid:a,className:V()("svg-icon fill",{"pure-svg-icon":s.path.includes("<style>")}),path:s.path,viewBox:s.viewBox})}),(0,S.jsx)(Cg,{hiKey:t,canEditText:e,value:o,onChangeValue:this.handleChangeName,inputStyle:Bt})]}),j&&(0,S.jsx)(xr.C,{className:V()("expand",{ro:!st}),name:"angle_up"}),!!fe&&(0,S.jsx)("div",{className:"selectedRight",style:Gt}),ye&&se&&(0,S.jsx)(pa,{interactionKey:se.key}),!j&&Qt&&y&&(0,S.jsx)("div",{className:"region gesture"})]}),xt&&(Ie?M?(0,aN.createPortal)((0,S.jsx)(fN,{style:{cursor:"pointer",...Me},navigationMenuType:x,className:"design-widget-portal-menu",children:(0,S.jsx)(cN,{expandBackground:Lt,firstLevel:X,onMouseEnterExpand:this.handleMouseEnterExpand,onRemoveFirstOptionPortal:this.handleRemoveFirstOptionPortal,isCreatePortalList:Ie,showLinkTag:h,...this.props})}),this.$portalElem):null:(0,S.jsx)(cN,{expandBackground:Lt,firstLevel:X,onMouseEnterExpand:this.handleMouseEnterExpand,showLinkTag:h,...this.props})),(0,cn.Fr)()&&(0,S.jsx)(Gr.A,{target:document,onPointerDown:(0,Gr.t)(this.handleClickOutSide,{capture:!0})})]})})}}class Ew extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"setScrollElement",t=>this.$scrollElement=t),(0,ge.A)(this,"handleWheel",t=>{this.$scrollElement.clientHeight===this.$scrollElement.scrollHeight&&this.$scrollElement.clientWidth===this.$scrollElement.scrollWidth||t.stopPropagation()}),(0,ge.A)(this,"handleScroll",t=>{this.props.isPreview&&this.$scrollElement&&MB.runnerController.resetHandler.updateWScrollMap(this.props.widget.key,{scrollTop:this.$scrollElement.scrollTop,scrollLeft:this.$scrollElement.scrollLeft})})}componentDidMount(){const{widget:{key:t,hotAttr:e},onlyView:n,isPreview:i}=this.props;if(i){this.$scrollElement.addEventListener("scroll",this.handleScroll);const a=MB.runnerController.resetHandler.getWScrollMap(t);a&&this.$scrollElement&&(this.$scrollElement.scrollTop=a.scrollTop||0,this.$scrollElement.scrollLeft=a.scrollLeft||0)}else this.$scrollElement.addEventListener("wheel",this.handleWheel,!0);n||e["!version"]!==2&&(0,uN.Tx)()&&setTimeout(()=>{MB.action&&MB.action("entry:navigationMenu:migrate",{key:t})},30)}componentDidUpdate(t){const{optionData:e,widget:{hotAttr:{w:n,h:i}}}=t,{optionData:a,isEditing:o,widget:{key:s,hotAttr:{navigationMenu:l,w:u,h:c}},isPreview:d}=this.props;d||l.align!=="flex-start"||(o||!Yr()(e,a)||n!==u||i!==c)&&MB.action("entry:widget:change",{flatChgList:[{key:s,hotAttr:{navigationMenu:{...l,align:"space-between"}}}]})}componentWillUnmount(){this.props.isPreview?this.$scrollElement.removeEventListener("scroll",this.handleScroll):this.$scrollElement.removeEventListener("wheel",this.handleWheel,!0)}render(){const{optionData:t,canEditText:e,onExpandItem:n,onSelectedItem:i,onUpdate:a,showLinkTag:o,onlyView:s}=this.props,{treeData:l,widget:u,isEditing:c,getPortalParent:d,optionDataSelected:h,optionDataDesignUnExpanded:f,isPreview:p}=this.props,{key:v,hotAttr:{w:g,h:m,navigationMenu:y,renderMode:x}}=u,{align:w,isMenuBackgroundVisible:_,menuBackground:b,menuBorder:C,navigationMenuType:M,canExpandOneMenu:k,isShowIcon:P,menuShadow:R}=y,X={...{width:g,height:m},pointerEvents:c?"auto":"none",cursor:c?"pointer":"",backgroundColor:_?(0,et.t0)(b):"transparent",borderRight:C.bdrIsVisible?C.bdrWidth+"px "+C.bdrStyle+" "+(0,et.t0)(C.bdrColor):"none",...(0,ot.Ky)({shadow:R})};return(0,S.jsx)(fN,{style:X,align:w,navigationMenuType:M,children:(0,S.jsx)("ul",{className:"navigationMenuList scrollable-widget",ref:this.setScrollElement,children:t.map((st,dt)=>(0,S.jsx)(pN,{widget:u,navigationMenuKey:v,path:""+dt,navigationMenu:y,canExpandOneMenu:k,isShowIcon:P,node:st,parent:null,level:1,isEdit:c,onExpandItem:n,onSelectedItem:i,onUpdate:a,canEditText:e,navigationMenuType:M,getPortalParent:d,treeData:l,showLinkTag:o,renderMode:x,onlyView:s,optionDataSelected:h,optionDataDesignUnExpanded:f,isPreview:p},""+dt))})})}}class jnt extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"onUpdate",t=>{var e,n;const{treeData:i,widget:{key:a}}=this.props;(e=i.actions)==null||(n=e.updateWidget)==null||n.call(e,[{key:a,hotAttr:t}])}),(0,ge.A)(this,"handleExpandItem",t=>{let{node:e,path:n}=t;const{widget:i,widget:{hotAttr:a}}=this.props,{optionData:o,navigationMenu:s,optionDataDesignUnExpanded:l}=a,{navigationMenuType:u,canExpandOneMenu:c}=s,d=jr()(o);a["!version"]===2?(0,an.E3)({node:e,widget:a,optionDataDesignUnExpanded:l,onUpdate:this.onUpdate}):(0,an.eh)({node:e,path:n,newOptionData:d,canExpandOneMenu:c,onUpdate:this.onUpdate})}),(0,ge.A)(this,"handleSelectedItem",t=>{let{node:e,path:n}=t;const{widget:{hotAttr:i}}=this.props,{optionData:a,optionDataSelected:o}=i,s=jr()(a);i["!version"]===2?(0,an.hZ)({node:e,optionDataSelected:o,onUpdate:this.onUpdate}):(0,an.Bf)({node:e,path:n,newOptionData:s,onUpdate:this.onUpdate})}),(0,ge.A)(this,"handleUpdate",t=>{let{data:e,path:n,parent:i}=t;const{widget:a}=this.props,{optionData:o}=a.hotAttr,s=n.split("-"),l=s[s.length-1],u=jr()(o);if(!i)u[l].data=e;else{const c=d=>{d.data=e};(0,$r.PM)({newOptionData:u,pathArr:s,onUpdate:c})}this.onUpdate({optionData:u})}),(0,ge.A)(this,"getPortalParent",()=>document.querySelector("#canvas"))}render(){const{isEditing:t,treeData:e,showLinkTag:n,onlyView:i}=this.props,{widget:a}=this.props,{optionData:o,optionDataSelected:s,optionDataDesignUnExpanded:l}=a.hotAttr;return(0,S.jsx)(Ew,{optionData:o,treeData:e,isEditing:t,onExpandItem:this.handleExpandItem,onSelectedItem:this.handleSelectedItem,onUpdate:this.handleUpdate,canEditText:!i,getPortalParent:this.getPortalParent,showLinkTag:n,onlyView:i,widget:a,optionDataSelected:s,optionDataDesignUnExpanded:l})}}const Gnt=r=>{let{widget:t,treeData:e}=r;const{key:n,hotAttr:i,hotAttr:{optionData:a,optionDataDesignUnExpanded:o,optionDataSelected:s,navigationMenu:{canExpandOneMenu:l}}}=t,[u,c]=(0,I.useState)({optionData:a,optionDataDesignUnExpanded:o,optionDataSelected:s}),d=(0,I.useRef)(u),h=()=>document.querySelector(".preview-modal-portal-root #simulator #event-container")||document.querySelector("#simulator #event-container"),f=g=>{const m={...u,...g};c(m),e.sdkStore.overwriteItem({key:n,hotAttr:m})},p=g=>{let{node:m,path:y}=g;const x=jr()(u.optionData),w=u.optionDataDesignUnExpanded||[];i["!version"]===2?(0,an.E3)({node:m,widget:i,optionDataDesignUnExpanded:w,onUpdate:f}):(0,an.eh)({node:m,path:y,newOptionData:x,canExpandOneMenu:l,onUpdate:f})},v=g=>{let{node:m,path:y}=g;const x=jr()(u.optionData),w=u.optionDataSelected;i["!version"]===2?(0,an.hZ)({node:m,optionDataSelected:w,onUpdate:f}):(0,an.Bf)({node:m,path:y,newOptionData:x,onUpdate:f})};return(0,I.useEffect)(()=>{d.current!==u&&((0,$r.a9)(d.current,u,n),d.current=u)},[u]),(0,I.useEffect)(()=>{if(!Yr()(d.current.optionData,a)||!Yr()(d.current.optionDataSelected,s)){const g={optionData:a,optionDataDesignUnExpanded:o,optionDataSelected:s};(0,$r.a9)(d.current,g,n),d.current=g,c(g)}},[a,o,s]),(0,S.jsx)(Ew,{widget:t,isEditing:!0,onExpandItem:p,onSelectedItem:v,optionData:u.optionData,optionDataDesignUnExpanded:u.optionDataDesignUnExpanded,optionDataSelected:u.optionDataSelected,canEditText:!1,treeData:e,getPortalParent:h,isPreview:!0})},Lw=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{editingEditableWidgetCid:i,onlyView:a}=e,{key:o,hotAttr:s}=t;if(n==="design"){const l=i===o;return(0,S.jsx)(jnt,{widget:t,treeData:e,isEditing:l,showLinkTag:!0,onlyView:a})}if(n==="preview")return(0,S.jsx)(Gnt,{widget:t,treeData:e});if(n==="snapshot")return(0,S.jsx)(Ew,{widget:t,optionData:s.optionData,treeData:e,isEditing:!1,optionDataSelected:s==null?void 0:s.optionDataSelected,optionDataDesignUnExpanded:s==null?void 0:s.optionDataDesignUnExpanded})}),Unt=K.Ay.section.withConfig({displayName:"style__StyledCollapse",componentId:"sc-1xuj02u-0"})(["height:100%;overflow:hidden auto;pointer-events:",";"],r=>r.isInteractive?"auto":"none"),Knt=K.Ay.details.withConfig({displayName:"style__StyledDetails",componentId:"sc-1xuj02u-1"})(["overflow:hidden;border-left:",";border-right:",";&:first-child{border-top-left-radius:",";border-top-right-radius:",";border-top:",";}&:last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";border-bottom:",";}summary{list-style:none;.summary{display:flex;width:auto;height:46px;align-items:center;text-align:center;border-bottom:",";cursor:pointer;span{overflow:hidden;white-space:pre;text-overflow:ellipsis;&:hover{outline:1px dashed #1648fc;}}input{outline:1px dashed #1648fc;width:100%;}}::-webkit-details-marker{display:none;}::marker{display:none;}}&:last-child{summary{height:","px;}}div.content-wrapper{display:flex;position:relative;align-items:center;padding:16px;height:auto;border-bottom:",";text-align:left;.content{padding:0;width:100%;white-space:pre-wrap;word-break:break-word;line-height:normal;-webkit-user-select:text;user-select:text;&:focus{outline:none;}&[contenteditable=true],&:hover{outline:1px dashed #1684fc;}}}&.left{.summary::before{font-size:14px;flex-shrink:0;width:40px;height:16px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'%3E%3Cpath d='M6.39777 5.66281L0.360269 0.947189C0.344493 0.934768 0.325533 0.92705 0.305568 0.924919C0.285603 0.922788 0.265441 0.926332 0.247399 0.935143C0.229357 0.943955 0.214166 0.957676 0.203571 0.974732C0.192976 0.991787 0.187406 1.01149 0.187501 1.03156V2.06683C0.187501 2.13246 0.218305 2.1954 0.269198 2.23558L5.09063 6.00031L0.269198 9.76505C0.216966 9.80522 0.187501 9.86817 0.187501 9.9338V10.9691C0.187501 11.0588 0.290626 11.1083 0.360269 11.0534L6.39777 6.33781C6.44908 6.29779 6.4906 6.24658 6.51915 6.1881C6.5477 6.12962 6.56254 6.06539 6.56254 6.00031C6.56254 5.93523 6.5477 5.87101 6.51915 5.81253C6.4906 5.75404 6.44908 5.70284 6.39777 5.66281Z' fill='%23","'/%3E%3C/svg%3E\");}}&.right{summary{.summary{padding-left:16px;}}summary{.summary::after{font-size:14px;flex-shrink:0;margin-left:auto;width:40px;height:20px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M10.982 0.571533H9.97754C9.90924 0.571533 9.84495 0.605015 9.80478 0.659926L5.99986 5.90457L2.19495 0.659926C2.15477 0.605015 2.09049 0.571533 2.02218 0.571533H1.01772C0.930667 0.571533 0.879774 0.670641 0.930667 0.741623L5.65299 7.25189C5.82442 7.48761 6.17531 7.48761 6.3454 7.25189L11.0677 0.741623C11.12 0.670641 11.0691 0.571533 10.982 0.571533Z' fill='%23","'/%3E%3C/svg%3E\");}}}&[open]{&.left{summary{.summary::before{font-size:14px;flex-shrink:0;width:40px;height:18px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M10.982 0.571533H9.97754C9.90924 0.571533 9.84495 0.605015 9.80478 0.659926L5.99986 5.90457L2.19495 0.659926C2.15477 0.605015 2.09049 0.571533 2.02218 0.571533H1.01772C0.930667 0.571533 0.879774 0.670641 0.930667 0.741623L5.65299 7.25189C5.82442 7.48761 6.17531 7.48761 6.3454 7.25189L11.0677 0.741623C11.12 0.670641 11.0691 0.571533 10.982 0.571533Z' fill='%23","'/%3E%3C/svg%3E\");}}}&.right{summary{.summary::after{font-size:14px;flex-shrink:0;margin-left:auto;width:40px;height:20px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.018 7.42847L2.02246 7.42847C2.09077 7.42847 2.15505 7.39499 2.19523 7.34007L6.00014 2.09543L9.80506 7.34007C9.84523 7.39498 9.90952 7.42847 9.97782 7.42847L10.9823 7.42847C11.0693 7.42847 11.1202 7.32936 11.0693 7.25838L6.34702 0.748109C6.17559 0.512394 5.8247 0.512394 5.65461 0.748109L0.932285 7.25838C0.880054 7.32936 0.930946 7.42847 1.018 7.42847Z' fill='%23","'/%3E%3C/svg%3E\")}}}&:last-child{summary{height:46px;}div.content-wrapper:last-child{border-bottom:none;}}}&:not([open]):last-child{summary{border-bottom:none;}}"],r=>r.border,r=>r.border,r=>r.borderRadius[0]+"px",r=>r.borderRadius.length===1?r.borderRadius[0]+"px":r.borderRadius[1]+"px",r=>r.border,r=>r.borderRadius.length===1?r.borderRadius[0]+"px":r.borderRadius[3]+"px",r=>r.borderRadius.length===1?r.borderRadius[0]+"px":r.borderRadius[2]+"px",r=>r.border,r=>r.border,r=>46-r.borderWidth,r=>r.border,r=>r.arrowColor,r=>r.arrowColor,r=>r.arrowColor,r=>r.arrowColor);var vN=T(9680);function gN(r,t,e,n){const i=jr()(r);t&&i.forEach((o,s)=>{Number(n)!==s&&Object.assign(o,{data:{...o.data,designExpanded:!1}})});const a={...e.data,designExpanded:!e.data.designExpanded};return i[n]={...e,data:a},i}const Ynt=r=>{const{borderRadius:t,borderRadiusIsVisible:e}=r;return e?typeof t=="object"?Object.values(t).map(n=>""+(parseInt(n)||0)):[""+t]:[0]},Xnt=r=>{let{index:t,title:e,titleStyle:n,isInteractive:i,editable:a,collapseKey:o,onSummaryClick:s,onTitleChange:l}=r;const[u,c]=(0,I.useState)(!1),d=(0,I.useRef)(null),h=(0,I.useRef)(null),f=g=>{d.current&&d.current.contains(g.target)||!u||c(!1)},p=g=>{g.preventDefault(),!(d.current&&d.current.contains(g.target))&&(h.current&&h.current.contains(g.target)||s==null||s(g,e,t))},v=()=>{(0,Pw.RC)(o)&&c(!0)};return(0,S.jsxs)("summary",{onPointerDown:p,onClick:g=>g.preventDefault(),children:[(0,S.jsx)("span",{"data-path":t,style:n,className:"summary canClickableHighWidget",children:u?(0,S.jsx)("input",{ref:d,style:{...n,pointerEvents:a&&i?"auto":"none"},defaultValue:e.data.name,onChange:g=>l==null?void 0:l(g.currentTarget.value,t)}):(0,S.jsx)("span",{ref:h,style:{pointerEvents:a&&i?"auto":"none"},onDoubleClick:v,children:e.data.name})}),(0,S.jsx)(Gr.A,{target:document,onMouseDown:(0,Gr.t)(f,{capture:!0})})]})},Znt=(0,I.memo)(r=>{let{index:t,collapseKey:e,title:n,content:{data:{linkCids:i,name:a}},contentStyle:o,isInteractive:s,editable:l,links:u,handleContentChange:c,showLinkTag:d,isPreview:h}=r;const[f,p]=(0,I.useState)(!1),v=(0,I.useRef)(null),{hasInteractiveIta:g,interactiveCids:m,firstUiInteractiveIta:y,itaClassName:x}=(0,hi.HW)(u,i),w=()=>{var P;const R=((P=v.current)==null?void 0:P.textContent)||"";p(!1),c==null||c(n,R,t)},_=P=>{const{key:R,shiftKey:j}=P,X=R===" ";R===Br._.Enter&&!j&&f&&w(),X&&(0,wg.kI)(P)},b=P=>{var R;(R=v.current)!=null&&R.contains(P.target)||!f||f&&w()},C=P=>{P.stopPropagation(),P.preventDefault();let R="";P.clipboardData&&P.clipboardData.getData&&(R=P.clipboardData.getData("text/plain")),document.execCommand("insertText",!1,R)},M=P=>{v.current&&(v.current.textContent=P.currentTarget.textContent)},k=P=>{P.preventDefault(),P.stopPropagation(),(0,Pw.RC)(e)&&l&&p(!0)};return(0,I.useLayoutEffect)(()=>{var P;const R=(P=v.current)==null?void 0:P.childNodes[0];if(f&&R){const j=document.createRange();j.setStart(R,R.length);const X=document.getSelection();X==null||X.removeAllRanges(),X==null||X.addRange(j)}},[f]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{"data-container-cid":e,"data-link_cid":m,className:V()("content-wrapper",x),onDoubleClick:k,style:o,children:(0,S.jsxs)("div",{ref:v,className:V()("content",x),onKeyDown:_,onInput:M,contentEditable:f,onPaste:C,style:{...o,pointerEvents:l&&s?"auto":"none",cursor:f&&"text"},suppressContentEditableWarning:!0,children:[a,y&&d&&(0,S.jsx)(pa,{interactionKey:y.key},y.key),g&&h&&(0,S.jsx)("div",{className:"region gesture"})]})}),(0,S.jsx)(Gr.A,{target:document,onMouseDown:(0,Gr.t)(b,{capture:!0})})]})}),mN=r=>{let{widget:t,editable:e,isInteractive:n,optionData:i,onContentChange:a,onTitleChange:o,onSummaryClick:s,showLinkTag:l,isPreview:u,links:c}=r;const d=(0,I.useRef)(null),{key:h,hotAttr:f}=t,{border:p,collapse:v,optionData:g}=f,{titleBackground:m,isTitleBackgroundVisible:y,isContentBackgroundVisible:x,isContentBackground:w,markerPosition:_,titleText:b,contentText:C}=v,M=Ynt(f),k=p.bdrIsVisible?p.bdrWidth+"px "+p.bdrStyle+" "+(0,et.t0)(p.bdrColor):void 0,P=y?(0,et.t0)(m):"transparent",R=x?(0,et.t0)(w):"transparent",j={backgroundColor:P,...(0,ot.Zv)(b),justifyContent:""},X=(0,et.Sd)(j.color).toString(16).padStart(8,"0").slice(0,-2),st={backgroundColor:R,...(0,ot.Zv)(C),lineHeight:"normal"};(0,I.useEffect)(()=>{const xt=wt=>{u&&MB.runnerController.resetHandler.updateWScrollMap(h,{scrollTop:wt.target.scrollTop,scrollLeft:wt.target.scrollLeft})},Rt=d.current;if(u&&Rt){Rt.addEventListener("scroll",xt);const wt=MB.runnerController.resetHandler.getWScrollMap(h);wt&&Rt&&(Rt.scrollTop=wt.scrollTop||0,Rt.scrollLeft=wt.scrollLeft||0)}return()=>{u&&Rt&&Rt.removeEventListener("scroll",xt)}},[u,h]);const dt=u?void 0:xt=>{xt.currentTarget.clientHeight===xt.currentTarget.scrollHeight&&xt.currentTarget.clientWidth===xt.currentTarget.scrollWidth||xt.stopPropagation()};return(0,S.jsx)(Unt,{className:"scrollable-widget",isInteractive:n,onWheelCapture:dt,ref:d,children:i.map((xt,Rt)=>{var wt;return(0,S.jsxs)(Knt,{open:xt.data.designExpanded,className:_,border:k,borderRadius:M,borderWidth:p.bdrWidth,color:j.color,arrowColor:X,children:[(0,S.jsx)(Xnt,{collapseKey:h,index:Rt,title:xt,isInteractive:n,editable:e,titleStyle:j,onSummaryClick:s,onTitleChange:o}),(wt=xt.children)==null?void 0:wt.map((Lt,Ft)=>(0,S.jsx)(Znt,{collapseKey:h,index:Ft,title:xt,editable:e,content:Lt,isInteractive:n,isPreview:u,contentStyle:st,links:c,handleContentChange:a,showLinkTag:l},""+Ft+Lt.data.name))]},""+Rt+xt.data.designExpanded)})})},$nt=r=>{let{widget:t,links:e,overwriteItem:n}=r;const{key:i,hotAttr:{optionData:a,collapse:{canExpandOneMenu:o}}}=t,[s,l]=(0,I.useState)(a),u=(0,I.useRef)(a),c=(d,h,f)=>{d.preventDefault(),d.stopPropagation();const p=gN(s,o,h,f);l(p),n({key:i,hotAttr:{optionData:p}})};return(0,I.useEffect)(()=>{u.current!==s&&((0,$r.a9)({optionData:u.current},{optionData:s},i),u.current=a)},[s]),(0,I.useEffect)(()=>{Yr()(u.current,a)||((0,$r.a9)({optionData:u.current},{optionData:a},i),u.current=a,l(a))},[a]),(0,S.jsx)(mN,{links:e,optionData:s,widget:t,onSummaryClick:c,isInteractive:!0,isPreview:!0,editable:!1})},Jnt=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{optionData:o,collapse:{canExpandOneMenu:s},refVars:l}=a,{editingEditableWidgetCid:u,onlyView:c,actions:d,sdkStore:h,isEditingCombo:f,editingPanelCid:p}=e,v=n==="design"&&u===i,g=(0,I.useCallback)((w,_,b)=>{var C,M;if(n!=="design"||c)return;w.children[b].data.name=_;const k={optionData:o},P=o.indexOf(w),R=l==null||(C=l.optionData)==null?void 0:C[P];if(R){var j;const X=(j=R.children)==null||(j=j[b])==null||(j=j.data)==null?void 0:j.name;X&&(0,vN.U_)(X)!==_&&(R.children[b].data.name=void 0,k.refVars=l)}d==null||(M=d.updateWidget)==null||M.call(d,[{key:i,hotAttr:k}])},[n,a]),m=(0,I.useCallback)((w,_)=>{var b,C;if(n!=="design"||c)return;o[_].data.name=w;const M={optionData:o},k=l==null||(b=l.optionData)==null?void 0:b[_];if(k){var P;const R=(P=k.data)==null?void 0:P.name;R&&(0,vN.U_)(R)!==w&&(k.data.name=void 0,M.refVars=l)}d==null||(C=d.updateWidget)==null||C.call(d,[{key:i,hotAttr:M}])},[n,a]),y=(0,I.useCallback)((w,_,b)=>{var C;if(n!=="design"||c)return;w.preventDefault(),w.stopPropagation();const M=gN(o,s,_,b);d==null||(C=d.updateWidget)==null||C.call(d,[{key:i,hotAttr:{optionData:M}}])},[n,a]),x=(0,Xt.DS)(h,i,f,p);return n==="preview"?(0,S.jsx)($nt,{widget:t,links:x,overwriteItem:h.overwriteItem}):(0,S.jsx)(mN,{widget:t,editable:n==="design",isInteractive:v,optionData:o,showLinkTag:n==="design",links:x,onContentChange:g,onTitleChange:m,onSummaryClick:y})}),Qnt=K.Ay.section.withConfig({displayName:"style__StyledSegmentedControl",componentId:"sc-z45s7o-0"})(["display:flex;align-items:center;overflow:hidden;"]),qnt=K.Ay.button.withConfig({displayName:"style__StyledControlButton",componentId:"sc-z45s7o-1"})(["flex-basis:100%;position:relative;display:flex;justify-content:center;align-items:center;height:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:pre;min-width:fit-content;"]);function yN(r,t){return r.map((e,n)=>({...e,data:{...e.data,selected:n===t}}))}const tit=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{w:o,h:s,optionData:l,segmentedControl:u,border:c}=a,{text:d,checkedText:h,backgroundColor:f,checkedBackgroundColor:p,isCheckedBackgroundVisible:v,isBackgroundVisible:g}=u,{editingEditableWidgetCid:m,actions:y,sdkStore:x,isEditingCombo:w,editingPanelCid:_}=e,b=n==="design"&&m===i,C=n==="design",M=n==="preview",k=b||M,P=(0,ot.Um)(a,!0),[R,j]=(0,I.useState)(l),X=(0,I.useRef)(l);(0,I.useEffect)(()=>{Yr()(X.current,l)||(j(l),X.current=l)},[l]);const st=wt=>{if(b){var Lt;const Ft=yN(l,wt);y==null||(Lt=y.updateWidget)==null||Lt.call(y,[{key:t.key,hotAttr:{optionData:Ft}}]),j(Ft)}else{const Ft=yN(R,wt);j(Ft),M&&x.overwriteItem({key:i,hotAttr:{optionData:Ft}})}},dt=(wt,Lt)=>{const Ft=c!=null&&c.bdrIsVisible?c.bdrWidth+"px "+P.borderStyle+" "+P.borderColor:"none",Kt=wt?(0,ot.Zv)(h):(0,ot.Zv)(d),Ut=wt?(0,ot.Lt)(v,p):(0,ot.Lt)(g,f);return Lt===0?{...Kt,backgroundColor:Ut}:{...Kt,borderLeft:Ft,backgroundColor:Ut}},xt={pointerEvents:k?"auto":"none",width:o,height:s,...P,...(0,ot.Nb)(a)},Rt=n==="snapshot"?[]:(0,Xt.DS)(x,i,w,_);return(0,S.jsx)(Qnt,{style:xt,children:R.map((wt,Lt)=>{var Ft;const{hasInteractiveIta:Kt,hasUiInteractiveIta:Ut,interactiveCids:Bt,firstUiInteractiveIta:Gt,itaClassName:Qt}=(0,hi.HW)(Rt,wt.data.linkCids),re=((Ft=l[Lt])==null?void 0:Ft.data.name)||wt.data.name;return(0,S.jsxs)(qnt,{"data-container-cid":i,"data-cid":wt.data.cid,className:V()("canClickableHighWidget",Qt),"data-link_cid":Bt,style:dt(wt.data.selected,Lt),onClick:()=>st(Lt),children:[String(re).replace(/\n/g," "),Ut&&C&&(0,S.jsx)(pa,{interactionKey:Gt.key}),Kt&&M&&(0,S.jsx)("div",{className:"region gesture"})]},Lt)})})}),eit=r=>{const{text:t,checkedText:e}=r.tabs,n=(0,ot.Zv)(t),i=(0,ot.Zv)(e),a=rit(r);return{normalStyle:n,selectedStyle:i,switchLineStyle:a}},rit=r=>{const{checkedBorder:t}=r.tabs,e={},{bdrColor:n,bdrWidth:i,bdrStyle:a,bdrIsVisible:o}=t;return o?(e.borderTopColor=(0,et.t0)(n),e.borderTopWidth=i+"px",e.borderTopStyle=a):e.border="none",e},nit=K.Ay.ul.withConfig({displayName:"styles__StyledTabs",componentId:"sc-why8kz-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;list-style-type:none;pointer-events:none;&.is-edit{pointer-events:auto;cursor:pointer;}li{white-space:pre;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative;height:100%;min-width:fit-content;&.selected{&::after{content:'';display:inline-block;position:absolute;bottom:0;left:0;width:100%;height:0;border-left:none;border-bottom:none;border-right:none;border-top-color:",";border-top-width:",";border-top-style:",";}}}&.tdunderline{li:not(.selected){text-decoration:underline;}}&.tdoverline{li:not(.selected){text-decoration:overline;}}&.tdline-through{li:not(.selected){text-decoration:line-through;}}"],r=>r.switchLineStyle.borderTopColor,r=>r.switchLineStyle.borderTopWidth,r=>r.switchLineStyle.borderTopStyle),iit=(r,t)=>r.map((e,n)=>n===t?{...e,data:{...e.data,selected:!0}}:{...e,data:{...e.data,selected:!1}}),ait=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{optionData:o}=a,{editingEditableWidgetCid:s,sdkStore:l,isEditingCombo:u,editingPanelCid:c,actions:d}=e,h=n==="design",f=n==="preview",p=f||n==="design"&&s===i,v=n==="snapshot"?[]:(0,Xt.DS)(l,i,u,c),{selectedStyle:g,switchLineStyle:m,normalStyle:y}=eit(a),[x,w]=(0,I.useState)(o),_=(0,I.useRef)(o);(0,I.useEffect)(()=>{Yr()(_.current,o)||(w(o),_.current=o)},[o]);const b=C=>{const M=iit(x,C);h&&d.updateWidget([{key:i,hotAttr:{optionData:M}}]),w(M),f&&l.overwriteItem({key:i,hotAttr:{optionData:M}})};return(0,S.jsx)(nit,{switchLineStyle:m,className:p?"is-edit":"",children:x.map((C,M)=>{let{data:{name:k,linkCids:P,selected:R}}=C;const{hasInteractiveIta:j,firstUiInteractiveIta:X,interactiveCids:st,itaClassName:dt}=(0,hi.HW)(v,P);return(0,S.jsxs)("li",{"data-container-cid":i,"data-link_cid":st,className:V()("canClickableHighWidget",dt,{selected:R}),style:R?g:y,onPointerDown:()=>b(M),children:[k,h&&X&&(0,S.jsx)(pa,{interactionKey:X.key}),j&&f&&(0,S.jsx)("div",{className:"region gesture"})]},M)})})});var oit=T(15305);const sit=K.Ay.ul.withConfig({displayName:"styles__StyledMobileTabBars",componentId:"sc-7n6j7h-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-around;list-style-type:none;li{white-space:nowrap;display:inline-flex;align-items:center;flex-direction:column;justify-content:center;overflow:hidden;position:relative;height:100%;width:calc(100% + 2px);min-width:fit-content;.editable-span,.editable-input{color:",";font-size:","px;font-style:",";letter-spacing:","px;text-decoration:",";font-family:",";font-weight:",";}.editable-span-wrap .editable-span{white-space:pre;}.icon-wrap{color:",";font-size:",";.svg-icon{",";width:1em;}}&.selected{.editable-span,.editable-input{color:",";}.icon-wrap{color:",";}}}"],r=>r.textV0Style.color,r=>r.textV0Style.fontSize,r=>r.textV0Style.fontStyle,r=>r.textV0Style.letterSpacing,r=>r.textV0Style.textDecoration,r=>r.textV0Style.fontFamily,r=>r.textV0Style.fontWeight,r=>r.styleProps.iconColor,r=>r.styleProps.iconSize,oit.s,r=>r.styleProps.selectedTextColor,r=>r.styleProps.selectedIconColor),lit=(r,t)=>r.map((e,n)=>n===t?{...e,data:{...e.data,selected:!0}}:{...e,data:{...e.data,selected:!1}}),uit=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{mobileTabBars:o,optionData:s,refVars:l}=a,{checkedTextColor:u,checkedIconColor:c,isShowSelectedText:d,isShowSelectedIcon:h,iconColor:f,iconSize:p,fontSize:v,textColor:g,isShowText:m,isShowIcon:y}=o,{editingEditableWidgetCid:x,sdkStore:w,isEditingCombo:_,editingPanelCid:b,actions:C}=e,[M,k]=(0,I.useState)(s),P=(0,I.useRef)(s),R=n==="design"&&x===i,j=n==="preview",X=j?M:s;(0,I.useEffect)(()=>{j&&(Yr()(P.current,s)||(k(s),P.current=s))},[j,s]);const st=(Ft,Kt)=>{var Ut;if(n!=="design")return;const Bt=jr()(s),Gt=Bt[Kt].data.name;Bt[Kt].data.name=Ft;let Qt=!1;Gt!==String(Ft)&&l!=null&&(Ut=l.optionData)!=null&&(Ut=Ut[Kt])!=null&&(Ut=Ut.data)!=null&&Ut.name&&(l.optionData[Kt].data.name=void 0,Qt=!0);const re={optionData:Bt};Qt&&(re.refVars=l),C.updateWidget([{key:t.key,hotAttr:re}])},dt=Ft=>{const Kt=lit(X,Ft);R&&C.updateWidget([{key:i,hotAttr:{optionData:Kt}}]),j&&(k(Kt),e.sdkStore.overwriteItem({key:i,hotAttr:{optionData:Kt}}))},xt=n==="snapshot"?[]:(0,Xt.DS)(w,i,_,b),Rt={textColor:(0,et.t0)(g),fontSize:v+"px",iconSize:p+"px",iconColor:(0,et.t0)(f),selectedTextColor:d?(0,et.t0)(u):"rgba(0, 0, 0, 0)",selectedIconColor:h?(0,et.t0)(c):"rgba(0, 0, 0, 0)",...(0,ot.Um)(a),isEdit:R},wt={pointerEvents:j||R?"auto":"none",cursor:j||R?"pointer":"",background:(0,H.n7)(a)},Lt=(0,ot.Zv)(a);return(0,S.jsx)(sit,{style:wt,styleProps:Rt,textV0Style:Lt,children:X.map((Ft,Kt)=>{var Ut;let{data:{name:Bt,linkCids:Gt,icon:Qt,selected:re}}=Ft;const{hasInteractiveIta:se,interactiveCids:le,firstUiInteractiveIta:me,itaClassName:ye}=(0,hi.HW)(xt,Gt),ue=Qt&&y;return(0,S.jsxs)("li",{"data-container-cid":i,"data-link_cid":le,className:V()("canClickableHighWidget",ye,{selected:re}),onPointerDown:()=>dt(Kt),children:[ue&&(0,S.jsx)("span",{className:"icon-wrap",children:(0,S.jsx)(Tg,{className:V()("svg-icon",{"pure-svg-icon":(Ut=Qt.path)==null?void 0:Ut.includes("<style>")}),cid:i+"-"+Kt,path:Qt.path,viewBox:Qt.viewBox},Kt)}),m&&(0,S.jsx)(Cg,{hiKey:i,value:Bt,canEditText:!j,onChangeValue:fe=>st(fe.currentTarget.value,Kt)}),me&&!j&&(0,S.jsx)(pa,{interactionKey:me.key}),se&&j&&(0,S.jsx)("div",{className:"region gesture"})]},Kt)})})}),cit=K.Ay.section.withConfig({displayName:"styles__StyledSelectionControlGroup",componentId:"sc-1f544n9-0"})(["position:relative;width:","px;height:","px;display:flex;flex-flow:row wrap;align-items:flex-start;align-content:space-between;overflow:hidden;div.radio,div.checkbox{display:flex;overflow:hidden;position:relative;align-items:center;white-space:nowrap;cursor:pointer;&.editable{input{pointer-events:auto;}}&:not(.label-editable){input{pointer-events:none;}}&.disabled:not(.label-editable){input{cursor:not-allowed !important;}}input[type=radio],input[type=checkbox]{min-width:","px;min-height:","px;margin-right:8px;& + div{color:",";font-size:","px;}&.checked + div{color:",";}&.disabled{color:#ccc;& + div{color:#ccc;}}}span{user-select:none;}.editable-span-wrap .editable-span{white-space:pre;}}"],r=>r.width,r=>r.height,r=>r.fontSize,r=>r.fontSize,r=>r.textColor,r=>r.fontSize,r=>r.checkedTextColor),dit=K.Ay.input.attrs({type:"radio"}).withConfig({displayName:"styles__StyledRadio",componentId:"sc-1f544n9-1"})(["appearance:none;border-radius:50%;border:1px solid ",";background-clip:content-box;cursor:pointer;&.disabled{border:1px solid #ccc;background-color:#f5f5f5;}&.checked{border:1px solid ",";background-color:",";padding:calc(1em / 5.3);&.disabled{border:1px solid #ccc;box-shadow:inset 0 0 0 calc(1em / 5) #f5f5f5;background-color:#ccc;}}"],r=>r.borderColor,r=>r.checkedBgColor,r=>r.checkedBgColor),hit=K.Ay.input.attrs({type:"checkbox"}).withConfig({displayName:"styles__StyledCheckbox",componentId:"sc-1f544n9-2"})(["appearance:none;border-radius:12.5%;border:1px solid ",";background-clip:border-box;cursor:pointer;&.disabled{border:1px solid #ccc;background-color:#f5f5f5;}&.checked{border:1px solid ",";background-color:",";background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.60536 12.2219L6.58774 12.2396L3.1879 8.8397L4.62057 7.40703L6.60542 9.39188L11.3794 4.61786L12.8121 6.05054L6.62304 12.2396L6.60536 12.2219Z' fill='white'/%3E%3C/svg%3E%0A\");background-size:contain;background-repeat:no-repeat;&.disabled{border:1px solid #ccc;background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.60536 12.2219L6.58774 12.2396L3.1879 8.8397L4.62057 7.40703L6.60542 9.39188L11.3794 4.61786L12.8121 6.05054L6.62304 12.2396L6.60536 12.2219Z' fill='%23CCCCCC'/%3E%3C/svg%3E%0A\");background-color:#f5f5f5;}}"],r=>r.borderColor,r=>r.checkedBgColor,r=>r.checkedBgColor),fit={radio:dit,checkbox:hit};function xN(r,t,e){return r.map((n,i)=>i===t?{...n,data:{...n.data,selected:e==="radio"?!0:!n.data.selected}}:e==="radio"?{...n,data:{...n.data,selected:!1}}:{...n})}const pit=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,{w:o,h:s,optionData:l,selectionControl:u,refVars:c}=a,[d,h]=(0,I.useState)(l),f=(0,I.useRef)(l),{type:p,layout:v,textColor:g,checkedTextColor:m,gap:y,isDisabled:x,fontSize:w,borderColor:_,checkedBorderColor:b,isBorderVisible:C,isCheckedBorderVisible:M,isTextVisible:k,isCheckedTextVisible:P}=u,{editingEditableWidgetCid:R,sdkStore:j,isEditingCombo:X,editingPanelCid:st,actions:dt}=e,xt=n==="design",Rt=n==="preview",Lt=xt&&R===i||Rt,Ft=n==="snapshot"?[]:(0,Xt.DS)(j,i,X,st),Kt=(ue,fe)=>{xt&&(ue.preventDefault(),dt==null||dt.updateWidget([{key:i,hotAttr:{optionData:xN(l,fe,p)}}]))},Ut=(ue,fe)=>{if(ue.preventDefault(),!u.isDisabled&&Lt&&!xt){const Ie=xN(d,fe,p);h(Ie),j.overwriteItem({key:i,hotAttr:{optionData:Ie}})}},Bt=(ue,fe)=>{if(!xt)return;const Ie=ue.currentTarget.value;let Me=!1;const Ge={optionData:[...jr()(a.optionData).map((Sr,wr)=>{if(fe===wr){var dr,Mr;return Ie!==String((dr=Sr.data)==null?void 0:dr.name)&&c!=null&&(Mr=c.optionData)!=null&&(Mr=Mr[wr])!=null&&(Mr=Mr.data)!=null&&Mr.name&&(c.optionData[wr].data.name=void 0,Me=!0),{...Sr,data:{...Sr.data,name:Ie}}}return Sr})]};Me&&(Ge.refVars=c),dt==null||dt.updateWidget([{key:i,hotAttr:Ge}])},Gt=k?(0,et.t0)(g):"transparent",Qt=P?(0,et.t0)(m):"transparent",re=C?(0,et.t0)(_):"transparent",se=M?(0,et.t0)(b):"transparent",le=v==="column"?{flex:"0 0 "+y+"px"}:{},me={pointerEvents:Lt?"auto":"none",columnGap:v==="row"?y+"px":void 0};(0,I.useEffect)(()=>{Yr()(f.current,l)||(h(l),f.current=l)},[l]);const ye=fit[p];return(0,S.jsx)(cit,{layout:v,gap:y,width:o,height:s,fontSize:w,style:me,textColor:Gt,checkedTextColor:Qt,children:d.map((ue,fe)=>{var Ie,Me;const{hasInteractiveIta:Ue,interactiveCids:Ge,firstUiInteractiveIta:Sr,itaClassName:wr}=(0,hi.HW)(Ft,ue.data.linkCids),dr=x?"":wr,Mr=(Ie=(Me=l[fe])==null?void 0:Me.data.name)!=null?Ie:ue.data.name;return(0,S.jsxs)("div",{"data-cid":i,"data-link_cid":Ge,"data-index":fe,className:V()(p,"canClickableHighWidget",dr,{"label-editable":xt,disabled:x,editable:Lt}),onClick:br=>Ut(br,fe),style:le,children:[(0,S.jsx)(ye,{"data-index":fe,className:V()({disabled:x,checked:ue.data.selected}),onClick:br=>br.stopPropagation(),borderColor:re,checkedBgColor:se,disabled:!xt&&x,onChange:br=>Kt(br,fe)},ue.data.selected),(0,S.jsx)(Cg,{hiKey:i,value:Mr,onChangeValue:xt?br=>Bt==null?void 0:Bt(br,fe):void 0,canEditText:xt}),Sr&&xt&&(0,S.jsx)(pa,{interactionKey:Sr.key}),Ue&&Rt&&(0,S.jsx)("div",{className:"region gesture"})]},fe)})})});var vit=T(86769);const SN=K.Ay.div.withConfig({displayName:"styles__StyledAudio",componentId:"sc-hfa9zv-0"})(["background-color:#e8e8e8;display:flex;pointer-events:auto;button.play-pause{width:36px;height:36px;border-radius:50%;background-color:#fff;margin-left:12px;align-self:center;&[data-state=pause]{svg{&.play{display:block;width:10px;height:13px;margin-left:14px;margin-right:12px;}&.pause{display:none;}}}&[data-state=play]{svg{&.play{display:none;}&.pause{display:block;width:20px;height:20px;margin-left:8px;margin-right:8px;}}}}span.progress{display:flex;align-self:center;margin-left:12px;span{line-height:20px;font-weight:500;}.current-time,.duration{min-width:35px;}}input[type=range]{-webkit-appearance:none;position:relative;min-width:24px;flex-grow:1;flex-shrink:1;align-self:center;margin:0 12px;background-color:transparent;}input[type=range]::before{position:absolute;height:100%;width:0;content:'';background-color:#7d8b94;border-radius:100px;}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:100px;background-color:rgba(164,173,179,0.6);}input[type=range]::-webkit-slider-thumb{position:relative;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.23);margin-top:-6px;opacity:1;cursor:pointer;}input[type=range]::-moz-range-track{height:4px;border-radius:100px;background-color:rgba(164,173,179,0.6);}input[type=range]::-moz-range-progress{height:4px;border-radius:100px;background-color:#7d8b94;}input[type=range]::-moz-range-thumb{position:relative;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.23);margin-top:-6px;opacity:1;cursor:pointer;}input[type=range]:focus{outline:none;}button.mute-control{margin-left:auto;margin-right:23px;pointer-events:none;svg{display:block;margin:auto;height:18px;width:18px;}}"]);function Mg(r){const t=Math.floor(r/3600),e=t<10?"0"+t:""+t,n=Math.floor(r%3600/60),i=n<10?"0"+n:""+n,a=Math.floor(r%60),o=a<10?"0"+a:""+a;return t>1?e+":"+i+":"+o:i+":"+o}class git extends I.PureComponent{constructor(t){super(t),(0,ge.A)(this,"audioEl",I.createRef()),(0,ge.A)(this,"handleMetaDataLoaded",e=>{this.setState({duration:e.target.duration,audioLoaded:!0})}),this.state={duration:0,audioLoaded:!1}}render(){const{widget:{key:t,hotAttr:e}}=this.props,{w:n,h:i,audio:{audioSrc:a}}=e,{audioLoaded:o}=this.state,s={width:n,height:i,...wN(e)},l={color:o?"#415058":"#7d8b94"};return(0,S.jsxs)(SN,{style:s,children:[(0,S.jsxs)("button",{className:"play-pause","data-state":"pause",style:{pointerEvents:"none"},children:[(0,S.jsx)(xr.C,{className:"play",name:"design/audio/play",style:l}),(0,S.jsx)(xr.C,{className:"pause",name:"design/audio/pause"})]}),(0,S.jsxs)("span",{className:"progress",children:[(0,S.jsx)("span",{className:"current-time",style:l,children:Mg(0)}),(0,S.jsx)("span",{style:l,children:"\xA0/\xA0"}),(0,S.jsx)("span",{className:"duration",style:l,children:Mg(this.state.duration)})]}),(0,S.jsx)("input",{type:"range",defaultValue:"0",min:"0",max:"100"}),(0,S.jsx)("button",{className:"mute-control",children:(0,S.jsx)(xr.C,{name:"design/audio/mute-control"})}),(0,S.jsx)("audio",{ref:this.audioEl,preload:"metadata",hidden:!0,onLoadedMetadata:this.handleMetaDataLoaded,children:(0,S.jsx)("source",{src:a})})]})}}class mit extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"handleProgressChange",t=>{if(!this.props.audio)return;const e=t.currentTarget,{widget:{key:n,hotAttr:i},audio:a,duration:o,dispatch:s}=this.props,{audio:{audioSrc:l}}=i;s({type:"entry:runner:update:audio",payload:{key:n+"-"+l,currentTime:e.value/100*o}}),a.audioObj.currentTime=e.value/100*o}),(0,ge.A)(this,"handlePlayButtonClick",async()=>{if(!this.props.audio)return;const{audio:{audioObj:t}}=this.props;t.currentTime===0||t.paused||t.ended?await t.play():t.pause()})}render(){const{widget:{key:t,hotAttr:e},audioState:n,duration:i,currentTime:a,previewAudioLoaded:o}=this.props,{w:s,h:l,v:u}=e,c={"--progress":a/i*100+"%"},d={width:s,height:l,...wN(e)},h={color:o?"#415058":"#7d8b94"},f=u||vit.A.getCurrentWidgetOpacity(t)==="1";return(0,S.jsxs)(SN,{style:d,children:[(0,S.jsxs)("button",{className:"play-pause","data-state":f?n:"pause",onClick:this.handlePlayButtonClick,style:{pointerEvents:"auto"},children:[(0,S.jsx)(xr.C,{className:"play",name:"design/audio/play",style:h}),(0,S.jsx)(xr.C,{className:"pause",name:"design/audio/pause"})]}),(0,S.jsxs)("span",{className:"progress",children:[(0,S.jsx)("span",{className:"current-time",style:h,children:Mg(a)}),(0,S.jsx)("span",{style:h,children:"\xA0/\xA0"}),(0,S.jsx)("span",{className:"duration",style:h,children:Mg(i)})]}),(0,S.jsx)("input",{type:"range",value:Math.floor(a/(i||1)*100),min:"0",max:"100",onChange:this.handleProgressChange,style:c,className:"audio-progress"}),(0,S.jsx)("button",{className:"mute-control",children:(0,S.jsx)(xr.C,{name:"design/audio/mute-control"})})]})}}const yit=(r,t)=>{const e=(0,Es.mf)(r),{widget:{key:n}}=t,{audioList:i,runnerCacheTag:a}=e,o=i.find(s=>s.key===n);return{audio:o,duration:o?o.duration:0,currentTime:o?o.currentTime:0,previewAudioLoaded:o?o.previewAudioLoaded:!1,audioState:o?o.audioState:"pause",runnerCacheTag:a}},xit=(0,we.Ng)(yit)(mit);function wN(r){return{display:r.audio.isHidden?"none":void 0,overflow:"hidden",...(0,ot.Ky)(r),...(0,ot.Nb)(r)}}const Sit=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t;return n==="preview"?(0,S.jsx)(xit,{widget:t},i+a.text):(0,S.jsx)(git,{widget:t})});var bN=T(68370);class _N extends I.PureComponent{render(){var t;const{widget:e,getPointsArr:n}=this.props,{type:i,w:a,h:o,richTextV1:{paddingTuple:s},border:{bdrIsVisible:l,bdrWidth:u,bdrStyle:c,bdrColor:d},shadow:h,fill:f,polygon:p,star:v,borderRadiusIsVisible:g,borderRadiusIsRound:m}=e.hotAttr,y=i===z.x.WPolygon?p.sideNum:v.sideNum,x=g?m?Math.min(a,o)/2:i===z.x.WPolygon?p.cornerRadius:v.cornerRadius:0,w=(t=v==null?void 0:v.radius)!=null?t:0,_=(0,et.t0)(d),b={solid:"0 0",dotted:u+" "+u,dashed:u*2+" "+u},C={stroke:l?_:void 0,strokeWidth:u,strokeDasharray:b[c]},M={display:"flex",width:a-u*2,height:o-u*2},k=n({width:a,height:o,sides:y,radius:w/100,borderWidth:u});let P;h.shadowIsVisible&&(P="drop-shadow("+h.offsetX+"px "+h.offsetY+"px "+h.blurRadius+"px "+(0,et.t0)(h.shadowColor)+")");const R=(0,H.$8)(f,{w:a,h:o}),j=(0,xi.rM)(R),X=(0,xi.Q)(R),st=Math.floor(Math.random()*1e5);return(0,S.jsxs)("svg",{width:a,height:o,style:{overflow:"visible",filter:P||"none"},x:u/2,y:u/2,children:[(0,S.jsx)("defs",{children:R.type===ti.LA.LinearGradient?(0,S.jsx)("linearGradient",{id:st,x1:0,x2:1,y1:0,y2:0,gradientTransform:j,children:X.sort((dt,xt)=>dt.point-xt.point).map((dt,xt)=>(0,S.jsx)("stop",{stopColor:dt.hex,stopOpacity:dt.alpha,offset:dt.point},xt))}):R.type===ti.LA.RadialGradient?(0,S.jsx)("radialGradient",{id:st,cx:0,cy:0,r:1,gradientTransform:j,children:X.map((dt,xt)=>(0,S.jsx)("stop",{stopColor:dt.hex,stopOpacity:dt.alpha,offset:dt.point},xt))}):null}),(0,S.jsx)("path",{d:(0,bN.J)(k,Number(x)),style:C,fill:R.v?R.type!==ti.LA.Solid?"url(#"+st+")":eo.Q.toRGBAStr(R.color):"rgba(255, 255, 255, 0)"}),(0,S.jsx)("foreignObject",{width:Math.abs(a-u*2),height:Math.abs(o-u*2-s.pT),x:u/2,y:u/2,style:{overflow:"visible"},children:(0,S.jsx)(Jr.Ay,{widget:e,styles:M})})]})}}class wit extends I.PureComponent{render(){const{widget:t}=this.props,{w:e,h:n}=t.hotAttr;return(0,S.jsx)("svg",{width:e,height:n,style:{overflow:"visible"},children:(0,S.jsx)(_N,{widget:t,getPointsArr:bN.b})})}}const bit=wit;var _it=T(38006);class Cit extends I.PureComponent{render(){const{widget:t}=this.props,{w:e,h:n}=t.hotAttr;return(0,S.jsx)("svg",{width:e,height:n,style:{overflow:"visible"},children:(0,S.jsx)(_N,{widget:t,getPointsArr:_it.z})})}}const Tit=Cit;var Mit=T(77728),Ait=T(43605),CN=T(39306);const Iit=K.Ay.div.withConfig({displayName:"styles__StyledArrow",componentId:"sc-1cc5bni-0"})([".arrow-svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;.arrow-svg-path,.arrow-svg-ellipse{pointer-events:auto;}}.rich-text{overflow:visible !important;white-space:pre-wrap;word-break:keep-all;position:absolute;top:0;}"]);class Dit extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"getStrokeDashArray",(t,e)=>{if(t==="solid")return"";if(t==="dotted")return e+" "+e;if(t==="dashed"){if(e===1)return"3 2";if(e===2)return"6 4";if(e>2)return e*2+" "+e}}),(0,ge.A)(this,"getStrokePath",(t,e,n,i,a)=>{const{widget:o}=this.props,{angle:s}=(0,Ait.hz)(o.hotAttr),{x:l,y:u}=n.arrowPointFrom;s>90&&s<180&&l===1&&u===0&&([a,i]=[i,a]);const c=s*Math.PI/180,[d,h]=[Math.cos(c),Math.sin(c)];let f=null,p=[0,0],v=[0,0];return s===0?(f="M "+i+" "+.5+" L "+(t-a)+" "+.5,p=[i/2,0],v=[t-a/2,0]):s<90?(f="M "+i*d+" "+i*h+" L "+(t-a*d)+" "+(e-a*h),p=[i*d/2,i*h/2],v=[t-a*d/2,e-a*h/2]):s===90?(f="M "+.5+" "+i+" L "+.5+" "+(e-a),p=[0,i/2],v=[0,a/2]):s<180?(f="M "+(t+a*d)+" "+a*h+" L "+-i*d+" "+(e-i*h),p=[t+a*d/2,a*h/2],v=[-i*d/2,e-i*h/2]):s===180?(f="M "+(t-i)+" "+.5+" L "+a+" "+.5,p=[t-i/2,0],v=[a/2,0]):s<270?(f="M "+(t+i*d)+" "+(e+i*h)+" L "+-a*d+" "+(0-a*h),p=[t+i*d/2,e+i*h/2],v=[-a*d/2,0-a*h/2]):s===270?(f="M "+.5+" "+(e-i)+" L "+.5+" "+a,p=[0,e-i/2],v=[0,a/2]):(f="M "+i*d+" "+(e+i*h)+" L "+(t-a*d)+" "+(0-a*h)+" ",p=[i*d/2,e+i*h/2],v=[t-a*d/2,0-a*h/2]),{d:f,leftCxCy:p,rightCxCy:v}}),(0,ge.A)(this,"getMarketAndMarkerOptions",(t,e,n,i,a)=>{const o=(0,CN.Xh)(e),s=t?"ArrowTriangleArrowToLeft_"+e+"_"+n:"ArrowTriangleArrowToRight_"+e+"_"+n,{w:l,h:u}=(0,CN.Lv)(e,i),c="0 0 "+l+" "+u,d="url(#"+s+")",h=(0,S.jsx)("marker",{id:s,dangerouslySetInnerHTML:{__html:o.getPath(l,u,i,a)},viewBox:c,refX:o.getRefX&&o.getRefX(l)||0,refY:u/2,markerUnits:"userSpaceOnUse",markerWidth:l,markerHeight:u,orient:t?"auto-start-reverse":"auto"});return{markerInfo:d,marker:h,reduceLength:o.lineWidth(l)}})}render(){const{widget:t,mode:e}=this.props,{key:n,hotAttr:i}=t,{w:a,h:o,arrow:s,shadow:l,screenstate_cid:u,arrow:{arrowStroke:{bdrWidth:c,bdrStyle:d,bdrColor:h}}}=i,f=(0,et.t0)(h),p=Number.parseInt(c);let v;l.shadowIsVisible&&(v="drop-shadow("+l.offsetX+"px "+l.offsetY+"px "+l.blurRadius+"px "+(0,et.t0)(l.shadowColor)+")");const{arrowPointFromType:g,arrowPointToType:m}=s;let y=null,x=null,w=null,_=null,b=0,C=0;const M=""+e+n+u;g&&p&&({markerInfo:y,marker:w,reduceLength:b}=this.getMarketAndMarkerOptions(!0,g,M,p,f)),m&&p&&({markerInfo:x,marker:_,reduceLength:C}=this.getMarketAndMarkerOptions(!1,m,M,p,f));const{d:k,leftCxCy:P,rightCxCy:R}=this.getStrokePath(a,o,s,b,C),j=this.getStrokeDashArray(d,p),X={filter:v||"none"};return(0,S.jsxs)(Iit,{children:[(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"arrow-svg",style:X,children:[(0,S.jsxs)("defs",{children:[w,_]}),(0,S.jsx)("path",{d:k,stroke:f,strokeWidth:c,strokeDasharray:j,markerStart:y,markerEnd:x}),(0,S.jsx)("ellipse",{fill:"transparent",rx:b/2,ry:b/2,cx:P[0],cy:P[1],className:"arrow-svg-ellipse"}),(0,S.jsx)("ellipse",{fill:"transparent",rx:C/2,ry:C/2,cx:R[0],cy:R[1],className:"arrow-svg-ellipse"}),(0,S.jsx)("path",{d:k,stroke:"transparent",strokeWidth:"10",className:"arrow-svg-path"})]}),(0,S.jsx)(Jr.Ay,{widget:t,isAutoSize:!0})]})}}const kit=Dit,Pit=K.Ay.svg.withConfig({displayName:"styles__StyledTriangleSvg",componentId:"sc-1n3muse-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;"]),TN=r=>{const{widget:{key:t,hotAttr:e}}=r,{w:n,h:i,type:a,fill:o}=e,l="M "+{[z.x.WTriangleB]:[[n/2,0],[n,i],[0,i]],[z.x.WTriangleTL]:[[0,0],[n,0],[0,i]]}[a].map(v=>v.join(" ")).join(" L ")+" Z",u=(0,H.$8)(o,{w:n,h:i}),c=(0,xi.rM)(u),d=(0,xi.Q)(u),h=""+t+Math.floor(Math.random()*1e5),{type:f,v:p}=u;return(0,S.jsxs)(Pit,{xmlns:"http://www.w3.org/2000/svg",children:[(0,S.jsx)("defs",{children:f===ti.LA.LinearGradient?(0,S.jsx)("linearGradient",{id:h,x1:0,x2:1,y1:0,y2:0,gradientTransform:c,children:d.sort((v,g)=>v.point-g.point).map((v,g)=>(0,S.jsx)("stop",{stopColor:v.hex,stopOpacity:v.alpha,offset:v.point},g))}):f===ti.LA.RadialGradient?(0,S.jsx)("radialGradient",{id:h,cx:0,cy:0,r:1,gradientTransform:c,children:d.map((v,g)=>(0,S.jsx)("stop",{stopColor:v.hex,stopOpacity:v.alpha,offset:v.point},g))}):null}),(0,S.jsx)("path",{fill:p?f!==ti.LA.Solid?"url(#"+h+")":eo.Q.toRGBAStr(u.color):"rgba(255, 255, 255, 0)",d:l})]})};var Rw=T(18637),Eit=T(9207);const MN=K.Ay.div.withConfig({displayName:"styles__StylesVectorContainer",componentId:"sc-1n185bf-0"})(["width:100%;height:100%;&:not(.no-position){position:relative;}svg.vector{width:100%;height:100%;overflow:unset;position:absolute;top:0;left:0;}.rich-text{position:absolute;top:0;left:0;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;a{pointer-events:auto;cursor:inherit;color:",";}}&.wTriangle{display:flex;align-items:center;justify-content:center;svg.vector{position:relative;}}.is-hover-or-edit{path{stroke:",";}}"],r=>r.color,r=>r.theme.color_proto),Lit=r=>{const{widget:t}=r,{shadow:{shadowIsVisible:e,offsetX:n,offsetY:i,blurRadius:a,shadowColor:o},borderRadius:s,borderRadiusIsRound:l,w:u,h:c,richTextV1:{isClipText:d},borderRadiusIsVisible:h}=t.hotAttr,f=e?"drop-shadow("+n+"px "+i+"px "+a+"px "+(0,et.t0)(o)+")":"none",p={overflow:d?"hidden":"visible"},v=h?l?Math.min(u,c)/2:s:0,m={points:(0,Eit.S)({width:u,height:c,borderRadius:v}),closed:!0},{w:y,h:x}=(0,Rw.rj)(m);return(0,S.jsxs)(MN,{className:"wTriangle",children:[(0,S.jsx)("svg",{className:"vector",style:{filter:f,width:y,height:x},children:(0,S.jsx)(Rw.qz,{widget:t,vector:m})}),(0,S.jsx)(Jr.Ay,{widget:t,styles:p})]})},Rit=K.Ay.div.withConfig({displayName:"styles__StyledPlaceholderText",componentId:"sc-6cu1yr-0"})(["width:100%;height:100%;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;z-index:1;max-height:100%;overflow:hidden;position:absolute;top:0;left:0;display:flex;border-radius:inherit;.rich-text{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;z-index:1;position:absolute;top:0;}span.text{position:absolute;}p{padding:0;margin-bottom:5px;white-space:pre-wrap;&:last-child{margin-bottom:0;}}"]);class Oit extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"getStrokeDashArray",(t,e)=>{if(t==="solid")return"";if(t==="dotted")return e+" "+e;if(t==="dashed"){if(e===1)return"3 2";if(e===2)return"6 4";if(e>2)return e*2+" "+e}}),(0,ge.A)(this,"renderDiagonalLines",()=>{const{widget:{hotAttr:t}}=this.props,{w:e,h:n,border:{bdrIsVisible:i,bdrWidth:a}}=t;if(i){const{borderColor:o,borderWidth:s,borderStyle:l}=(0,ot.Um)(t),u=this.getStrokeDashArray(l,Number.parseInt(a)),c=e-a*2,d=n-a*2;return(0,S.jsxs)("svg",{className:"diagonalLines",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",width:c,height:d,children:[(0,S.jsx)("line",{x1:"0",y1:"0",x2:c,y2:d,stroke:o,strokeWidth:a,strokeDasharray:u}),(0,S.jsx)("line",{x1:"0",y1:d,x2:c,y2:"0",stroke:o,strokeWidth:a,strokeDasharray:u})]})}return null})}render(){const{widget:t}=this.props,{richTextV1:e}=t.hotAttr;return(0,S.jsxs)(Rit,{style:{overflow:e&&!e.isClipText?"visible":"hidden"},children:[this.renderDiagonalLines(),(0,S.jsx)(Jr.Ay,{widget:t})]})}}const Nit=Oit;var AN=T(86964);const Bit=(0,I.memo)(r=>{let{widget:t,mode:e}=r,n={};return e!=="preview"&&t.hotAttr.type==="wLr"&&(n=Vit),(0,S.jsx)("span",{style:n})}),Vit={background:AN.fm.color_hotspot.value_light,border:"1px solid "+AN.fm.color_comments.value_light,position:"absolute",height:"100%",width:"100%"},zit=Bit,Hit=r=>{const{widget:t,mode:e}=r,{shadow:{shadowIsVisible:n,offsetX:i,offsetY:a,blurRadius:o,shadowColor:s},richTextV1:{isClipText:l}}=t.hotAttr,u=n?"drop-shadow("+i+"px "+a+"px "+o+"px "+(0,et.t0)(s)+")":"none",c={overflow:l?"hidden":"visible"};return(0,S.jsxs)(MN,{children:[(0,S.jsx)("svg",{className:"vector",style:{filter:u},children:(0,S.jsx)(Rw.qz,{widget:t,mode:e})}),(0,S.jsx)(Jr.Ay,{widget:t,styles:c})]})};var IN=T(1002),DN=T(74945),Yh=T(30294);const Fit=K.Ay.div.withConfig({displayName:"styles__StyledElbowLineText",componentId:"sc-ub49xj-0"})(["width:max-content;position:absolute;box-sizing:border-box;padding:4px 8px;border-radius:2px;background:transparent;outline:none;border:none;&.isSelected{border:1px solid rgba(0,119,255,1);}&:hover{border:1px solid rgba(0,119,255,1);}.rich-text{background-color:transparent;width:max-content !important;height:auto !important;}.pre{margin:0;box-sizing:border-box;width:100%;white-space:pre-wrap;word-wrap:break-word;visibility:hidden;font-family:PingFangSC,helvetica,arial,sans-serif;}.line-comment-textarea{width:100%;height:100%;display:block;border:none;top:0;left:0;padding:4px 6px;box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;resize:none;font-family:PingFangSC,helvetica,arial,sans-serif;outline:none;overflow:hidden;text-align:center;user-select:none;}&.can-editing{pointer-events:auto;}"]),Wit=r=>{const{dPathList:t,elbowType:e,textPositionProportion:n}=r,{x:i,y:a}=(0,Yh.xd)(t,e,n);return{backgroundColor:"transparent",left:i,top:a,transform:"translateX(-50%) translateY(-50%)",border:"",borderRadius:6}},kN=r=>{const{onlyView:t,widget:e,widget:{key:n,hotAttr:{elbow:i}},isSelected:a,onMouseDownText:o}=r;return(0,xi.xc)(e.hotAttr)?(0,S.jsx)(Fit,{"data-cid":n,id:"elbow-text-dom-"+n,className:V()("line-edit-text-input line-comment-textarea",{"can-editing":!t,isSelected:!t&&a}),style:Wit(i),onMouseDown:o,"data-elbow-key":n,children:(0,S.jsx)(Jr.Ay,{widget:e})}):null},PN=5,jit=r=>{const t=[],e=r.getTotalLength();let n=0,i=r.getPointAtLength(0);for(;n<e;){n+=PN,n>e&&(n=e);const a=r.getPointAtLength(n);if(t.push({start:{x:i.x,y:i.y},end:{x:a.x,y:a.y},length:PN,totalLength:n}),i=a,n===e)break}return t},Git=(r,t)=>{const{start:e,end:n}=t,i=n.x-e.x,a=n.y-e.y,o=r.x-e.x,s=r.y-e.y,l=i*i+a*a;if(l===0)return e;let u=(o*i+s*a)/l;return u=Math.max(0,Math.min(1,u)),{x:e.x+u*i,y:e.y+u*a,t:u,segment:t}},Uit=(r,t,e)=>{let n=1/0,i;return r.forEach(a=>{const o=Git({x:t,y:e},a),s=Math.sqrt(Math.pow(t-o.x,2)+Math.pow(e-o.y,2));s<n&&(n=s,i=o)}),i},Kit=(r,t)=>{const e=r.getTotalLength(),i=(t.segment.totalLength-t.segment.length*(1-t.t))/e;return Number(i.toFixed(2))},Yit=(r,t)=>{const e=(0,DN.rP)(r),n=(0,DN.CP)(r),i=(0,bg.p$)(r),a=t.widget.key;return{isDraggingElbow:e,isDraggingElbowText:n,isSelected:i.includes(a)}},Xit=r=>{const{isEditing:t,textPosition:e,widget:n,onlyView:i,isSelected:a,mode:o}=r,s=(0,we.wA)(),{key:l,hotAttr:{elbow:{dPathList:u}}}=n,c=(0,I.useCallback)(d=>{if(i)return;d.preventDefault();const{svgElement:h,pathElement:f}=(0,Yh.he)(l);if(!h||!f)return;let p=!1;const v=d,g=h.getBoundingClientRect(),m=jit(f);let y=!0;const x=_=>{if(!y||(p=p||Math.abs(_.clientX-v.clientX)>1||Math.abs(_.clientY-v.clientY)>1,!p))return;const b=MB.getScale()/100,C=(_.clientX-g.left)/b,M=(_.clientY-g.top)/b,k=Uit(m,C,M);if(k){const P=Kit(f,k);s({type:"entry:elbow:update:textPositionProportion",payload:{key:l,textPositionProportion:P}})}},w=()=>{y=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",w),s({type:"elbow:update",payload:{isDraggingElbowText:!1,activeElbowKey:""}}),sdkStore.combineMerge("elbow-text-move")};document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),sdkStore.combineMergeMark("elbow-text-move")},[s,u,i]);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(IN.kX,{widget:n,textPosition:t?null:e,mode:o}),(0,S.jsx)(kN,{onlyView:i,widget:n,isSelected:a,onMouseDownText:c})]})},Zit=(0,we.Ng)(Yit)(Xit),$it=(0,I.memo)(r=>{let{widget:t,mode:e,treeData:n}=r;const{key:i,hotAttr:a}=t,{sdkStore:o,isEditingCombo:s,editingPanelCid:l,onlyView:u}=n,c=u||e!=="design";let d=!1;e==="preview"&&(0,Xt.Xr)(o,t.key,s,l).filter(v=>v.interactive).length!==0&&(d=!0);const[h,f]=(0,I.useState)(e==="snapshot"?(0,Yh.R3)({...a,key:i}):null);return(0,I.useEffect)(()=>{const p=(0,N.ux)(i);if(p&&typeof window.ResizeObserver<"u"){const v=new ResizeObserver(()=>{const g=(0,Yh.R3)({...a,key:i});f(g)});return v.observe(p),()=>v.disconnect()}else setTimeout(()=>{const v=(0,Yh.R3)({...a,key:i});f(v)},0)},[i,a]),e==="design"?(0,S.jsx)(Zit,{widget:t,onlyView:c,mode:e,textPosition:h}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(IN.kX,{widget:t,textPosition:h,isActive:!1,hasInteraction:d,mode:e}),(0,S.jsx)(kN,{onlyView:c,widget:t})]})});var Jit=T(11246);const Qit=r=>{const{widget:{hotAttr:t}}=r,e=(0,on.Kf)(t.kbImageSrc);return(0,S.jsx)("img",{style:{height:"100%",width:"100%"},src:e,className:"keyboard-img",alt:"keyboard",draggable:!1})};var EN=T(12211),LN=T(85691),RN=T(86594),tn=T(12410),ON=T(50365);const qit=(0,EN.Mz)([tn.X.query.getSelectedCellsInfo],r=>({selectedCellsInfo:r})),tat=r=>{let{database:t,swimConfig:e,swimlaneType:n}=r;const{selectedCellsInfo:i}=(0,we.d4)(qit),{isShowBigTitle:a}=e,o={selectedCellsInfo:i,isShowBigTitle:a};let s;n==="topBottom"?s=NN.calcSelectRange4topBottom(o,t):s=NN.calcSelectRange(o,t);const l=rat(s);return(0,S.jsx)(eat,{className:"database-select-border",style:l,children:(0,S.jsx)("div",{className:"firstCell"})})},eat=K.Ay.div.withConfig({displayName:"SelectHandle__StyledSwimlaneSelectHandle",componentId:"sc-16gawtw-0"})(["&.database-select-border{position:absolute;border:2px solid #298DF8;pointer-events:none;}"]),rat=r=>{let{top:t=0,left:e=0,width:n=0,height:i=0}=r;return{top:t,left:e,width:n,height:i}},NN={calcSelectRange:(r,t)=>{const{heightList:e,widthList:n}=t,{selectedCellsInfo:i,isShowBigTitle:a}=r,{x:o,y:s}=i.tl,{x:l,y:u}=i.br;let[c,d,h,f]=[0,0,0,0];if(a){if(o===0&&s===0)h=(0,ON.PM)(n),d=0;else{for(let p=1;p<=o;p++)d+=n[p-1];for(let p=o;p<=l;p++)h+=n[p]}for(let p=1;p<=s;p++)c+=e[p-1];for(let p=s;p<=u;p++)f+=e[p]}else{for(let p=0;p<o;p++)d+=n[p];for(let p=o;p<=l;p++)h+=n[p];for(let p=1;p<s;p++)c+=e[p];for(let p=s;p<=u;p++)f+=e[p]}return{top:c,left:d,width:h,height:f}},calcSelectRange4topBottom:(r,t)=>{const{heightList:e,widthList:n}=t,{selectedCellsInfo:i,isShowBigTitle:a}=r,{x:o,y:s}=i.tl,{x:l,y:u}=i.br;let[c,d,h,f]=[0,0,0,0],[p,v]=[1,0];if(a)if(p=0,v=1,o===0&&s===0)if(f=(0,ON.PM)(e),o===l&&s===u)h+=n[0];else for(let g=o;g<=l+1;g++)h+=n[g];else{for(let g=p;g<=o;g++)d+=n[g];for(let g=v;g<s;g++)c+=e[g-1];for(let g=o;g<=l;g++)h+=n[g+1];for(let g=s-1;g<u;g++)f+=e[g]}else{for(let g=p;g<=o;g++)d+=n[g];for(let g=1;g<s;g++)c+=e[g-1];for(let g=o;g<=l;g++)h+=n[g+1];for(let g=s-1;g<u;g++)f+=e[g]}return{top:c,left:d,width:h,height:f}}};var BN=T(43641);const nat=r=>{let{richTextV1:t}=r;const{fontSize:e,textColor:n,lineHeight:i,padding:a,fontDirection:o,underline:s,strikethrough:l,italic:u,bold:c,verticalAlign:d,horizontalAlign:h,letterSpacing:f}=t;let p="";return s&&(p="underline"),l&&(p+=(p?" ":"")+"line-through"),p===""&&(p="none"),{display:"flex",fontSize:e+"px",fontWeight:c?700:400,fontStyle:u?"italic":"normal",letterSpacing:f+"px",justifyContent:d,alignItems:(0,Jr.xC)(h),textAlign:h,boxShadow:"none",color:n,lineHeight:i+"px",...a,textDecoration:p,flexDirection:"column",wordBreak:"break-word",whiteSpace:"break-spaces",overflow:"hidden",writingMode:o}},Xh=r=>{const{swimlaneCell:t,x:e,y:n,w:i,h:a,border:o,rightPos:s="normal",bottomPos:l="normal",editingInfo:u}=r,{cellKey:c,textV1:d,fill:h,richTextV1:f}=t,[p,v]=(0,I.useState)((0,N.d0)({textV1:d,richTextV1:{paraSpacing:5}})),g=h.fillIsVisible?(0,et.t0)(h.solidColor):"transparent",{bdrColor:m,bdrStyle:y,bdrWidth:x,bdrIsVisible:w}=o,_=w?{borderColor:(0,et.t0)(m),borderWidth:x+"px "+(s==="last"?x:0)+"px "+(l==="last"?x:0)+"px "+x+"px",borderStyle:y}:{border:"none"},{isEditing:b,editingPos:C}=u,M=b&&C.x===e&&C.y===n,k={...nat({richTextV1:f})},P={width:i,height:a,background:g,..._,...k};return(0,I.useEffect)(()=>{v((0,N.d0)({textV1:d,richTextV1:{paraSpacing:5}}))},[d.blocks]),(0,S.jsx)(iat,{isNotShowContent:M,className:"database-cell","data-x":e,"data-y":n,"data-cell-key":c,style:P,dangerouslySetInnerHTML:{__html:p}})},iat=K.Ay.div.withConfig({displayName:"Databasecell__StyledCell",componentId:"sc-pgbzsf-0"})(["p{display:",";margin:0 !important;}"],r=>r.isNotShowContent?"none":""),aat=K.Ay.div.withConfig({displayName:"style__StyledSwimlane",componentId:"sc-vnavld-0"})(["display:",";.swimlane-big-title-container,.swimlane-title-container,.swimlane-content-container{display:flex;}.swimlane-left-right-container{display:flex;flex-direction:column;.swimlane-row-container{display:flex;}}"],r=>r.swimlaneType==="topBottom"?"flex":"unset"),VN=r=>{const{widget:{hotAttr:t},editingInfo:e}=r,{w:n,h:i,database:a,swimConfig:o,swimlaneType:s,border:l}=t,{cells:u,table:c,widthList:d,heightList:h}=a,{isShowBigTitle:f}=o;return(0,S.jsxs)(aat,{swimlaneType:s,children:[(0,S.jsx)("div",{className:"swimlane-big-title-container",children:f&&c[0].map((p,v)=>{const g={...u[p],cellKey:p};return s==="topBottom"?(0,S.jsx)(Xh,{x:v,y:0,cellType:"big-title",w:d[0],h:i,swimlaneCell:g,border:l,bottomPos:"last",editingInfo:e},v):(0,S.jsx)(Xh,{x:v,y:0,cellType:"big-title",w:n,h:h[0],swimlaneCell:g,border:l,rightPos:"last",editingInfo:e},v)})}),(0,S.jsx)("div",{className:"swimlane-table-container",children:s==="leftRight"?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"swimlane-title-container",children:c[1].map((p,v)=>{const g={...u[p],cellKey:p},m=v===c[1].length-1?"last":"normal";return(0,S.jsx)(Xh,{x:v,y:1,cellType:"title",w:d[v],h:h[1],swimlaneCell:g,border:l,rightPos:m,editingInfo:e},v)})}),(0,S.jsx)("div",{className:"swimlane-content-container",children:c[2].map((p,v)=>{const g={...u[p],cellKey:p},m=v===c[1].length-1?"last":"normal";return(0,S.jsx)(Xh,{x:v,y:2,cellType:"content",w:d[v],h:h[2],swimlaneCell:g,bottomPos:"last",border:l,rightPos:m,editingInfo:e},v)})})]}):(0,S.jsx)("div",{className:"swimlane-left-right-container",children:c.map((p,v)=>v===0?null:(0,S.jsx)("div",{className:"swimlane-row-container","data-row-index":v,children:p.map((g,m)=>{const y={...u[g],cellKey:g},x=m===c[v].length-1?"last":"normal",w=v===c.length-1?"last":"normal",_=m+1,b=v-1;return(0,S.jsx)(Xh,{x:m,y:v,cellType:"title",w:d[_],h:h[b],swimlaneCell:y,border:l,rightPos:x,bottomPos:w,editingInfo:e},m)})},v))})})]})};var Ow=T(43838);const oat=(0,EN.Mz)([tn.X.query.getIsDeepEditing,tn.X.query.getIsShallowEditing,tn.X.query.getSelectedCellsInfo,bg.p$,GO.lh,ww.IL],(r,t,e,n,i,a)=>({isDeepEditing:r,isShallowEditing:t,selectedCellsInfo:e,selection:n,editingCid:i,hoverItemKey:a})),sat=(0,I.memo)(r=>{const{widget:t,widget:{key:e,hotAttr:n}}=r,{database:i,swimConfig:a,swimlaneType:o}=n,{isDeepEditing:s,isShallowEditing:l,selection:u,selectedCellsInfo:c,editingCid:d,hoverItemKey:h}=(0,we.d4)(oat),f=(0,we.wA)();(0,I.useEffect)(()=>{if(u.length===1&&u[0]===e){const x=async w=>{const{type:_,content:b}=(0,Ow.V3)(w);if(await(0,Ow.$H)({hasNotice:!1}))f({type:tn.X.entryKey["entry:flow:swimlane:paste"],payload:{pasteType:_,content:b}});else{const C={pasteType:_,content:b};_==="html"&&await(0,Ow.EU)("swimlane")&&(C.pasteType="cell",C.content=b),f({type:tn.X.entryKey["entry:flow:swimlane:paste"],payload:C})}};return document.addEventListener("paste",x),()=>{document.removeEventListener("paste",x)}}},[l,u]);const p=x=>{if(s)return;if(h!==u[0]){f({type:"flow:flow:update:clear"});return}let w=JSON.parse(JSON.stringify(c));if(l){const C=x.target.closest(".database-cell");if(!C)return;const M=parseInt(C.getAttribute("data-x")),k=parseInt(C.getAttribute("data-y"));if(x.shiftKey){const P={x:M,y:k};w.br=P,f({type:tn.X.entryKey["entry:flow:selectedCellsInfo:br:update"],payload:{target:P,startSelectedCellsInfo:w}})}else{const P={tl:{x:M,y:k},br:{x:M,y:k}};w={...P},f({type:tn.X.entryKey["entry:flow:selectedCellsInfo:update"],payload:{selectedCellsInfo:P}})}}const _=C=>{const M=C.target.closest(".database-cell");if(!M)return;const k=parseInt(M.getAttribute("data-x")),P=parseInt(M.getAttribute("data-y")),R={x:k,y:P};f({type:tn.X.entryKey["entry:flow:selectedCellsInfo:br:update"],payload:{target:R,startSelectedCellsInfo:w}})},b=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",b)},v=x=>{l&&(f({type:"flow:update:state",payload:{isDeepEditing:!0}}),f({type:"set:editing:cid",payload:{cid:e}}))},g=d===e,m=c.tl,y={isEditing:g,editingPos:m};return(0,S.jsxs)("div",{onMouseDown:p,onDoubleClick:v,children:[l&&(0,S.jsx)(LN.NH,{sheet:lat}),(0,S.jsx)(VN,{widget:t,editingInfo:y}),(0,S.jsx)("div",{children:u.length===1&&l&&u[0]===e&&(0,S.jsx)(tat,{database:i,swimConfig:a,swimlaneType:o})})]})}),lat={keys:{up:()=>{MB.action(tn.X.entryKey["entry:flow:shallow:move"],{direction:"up"})},down:()=>{MB.action(tn.X.entryKey["entry:flow:shallow:move"],{direction:"down"})},left:()=>{MB.action(tn.X.entryKey["entry:flow:shallow:move"],{direction:"left"})},right:()=>{MB.action(tn.X.entryKey["entry:flow:shallow:move"],{direction:"right"})},tab:()=>{MB.action(tn.X.entryKey["entry:flow:shallow:move"],{direction:"tab"})},"shift+tab":()=>{MB.action(tn.X.entryKey["entry:flow:shallow:move"],{direction:"shift+tab"})},"ctrl+c":()=>{MB.action(tn.X.entryKey["entry:flow:copy:cell:self"],{isOnlyPasteText:!1}),(0,BN.$)(RN.o)},"ctrl+x":()=>{MB.action(tn.X.entryKey["entry:flow:cut:cell:self"],{isOnlyPasteText:!0})},"command+c":()=>{MB.action(tn.X.entryKey["entry:flow:copy:cell:self"],{isOnlyPasteText:!1}),(0,BN.$)(RN.o)},"command+x":()=>{MB.action(tn.X.entryKey["entry:flow:cut:cell:self"],{isOnlyPasteText:!0})},"ctrl+alt+v":()=>{MB.action(tn.X.entryKey["entry:flow:paste:cell:properties"])},"command+alt+v":()=>{MB.action(tn.X.entryKey["entry:flow:paste:cell:properties"])},del:()=>{MB.action(tn.X.entryKey["entry:flow:paste:del:blocks"])},backspace:()=>{MB.action(tn.X.entryKey["entry:flow:paste:del:blocks"])}},priority:LN.zu.FloatingPanel,isGlobal:!1},uat=r=>{const{widget:t}=r,e={isEditing:!1,editingPos:{}};return(0,S.jsx)(VN,{widget:t,editingInfo:e})},cat=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;return n==="design"?(0,S.jsx)(sat,{widget:t}):(0,S.jsx)(uat,{widget:t})}),zN=(r,t)=>{if(r==="solid")return"";if(r==="dotted")return t+" "+t;if(r==="dashed"){if(t===1)return"3 2";if(t===2)return"6 4";if(t>2)return t*2+" "+t}},HN=K.Ay.div.withConfig({displayName:"styles__StyledClosedFlow",componentId:"sc-1d3npc8-0"})(["position:relative;width:100%;height:100%;overflow:hidden;.rich-text{position:absolute;overflow:visible;white-space:nowrap;top:50%;left:50%;width:100%;height:100%;transform:translate(-50%,-50%);}"]),dat=K.Ay.div.withConfig({displayName:"styles__StyledNonClosedFlow",componentId:"sc-1d3npc8-1"})(["position:relative;width:100%;height:100%;overflow:hidden;.non-closed-flow-svg{height:100%;}.rich-text{width:100% !important;white-space:nowrap;overflow:visible !important;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}"]),hat=(0,I.memo)(r=>{const{widget:{key:t,hotAttr:e}}=r,{subType:n,fill:i,border:a,w:o,h:s}=e,{bdrStyle:l,bdrWidth:u,bdrColor:c,bdrIsVisible:d}=a,h=zN(l,u),f=(0,et.t0)(c),p=d?u:0,v=t+"-"+r.mode,g=i.fillIsVisible?(0,et.t0)(i.solidColor):"transparent",[m,y,x]=fat({subType:n,fill:g,stroke:f,strokeWidth:p,strokeDasharray:h,w:o,h:s,key:v});let w={};return n==="subProcess"&&(w={width:o*.7}),n==="process"?(0,S.jsxs)(HN,{children:[(0,S.jsxs)("svg",{preserveAspectRatio:"none",width:"100%",height:"100%",viewBox:"0 0 "+m+" "+y,fill:"none",children:[(0,S.jsxs)("defs",{children:[x,(0,S.jsx)("clipPath",{id:"clip-"+v,children:(0,S.jsx)("use",{xlinkHref:"#"+v})})]}),(0,S.jsx)("use",{xlinkHref:"#"+v,clipPath:"url(#clip-"+v+")",fill:g,stroke:f,strokeWidth:p*2,strokeDasharray:h})]}),(0,S.jsx)(Jr.Ay,{widget:r.widget,styles:w})]}):(0,S.jsxs)(HN,{children:[(0,S.jsx)("svg",{preserveAspectRatio:"none",width:"100%",height:"100%",viewBox:"0 0 "+m+" "+y,fill:"none",children:x}),(0,S.jsx)(Jr.Ay,{widget:r.widget,styles:w})]})}),fat=r=>{let{subType:t,stroke:e,fill:n,strokeWidth:i,strokeDasharray:a,w:o,h:s,key:l}=r;const u={stroke:e,fill:n,strokeWidth:i,strokeDasharray:a,vectorEffect:"non-scaling-stroke"};switch(t){case"process":return[o,s,(0,S.jsx)("rect",{id:l,width:o,height:s,rx:".5",ry:".5"})];case"decision":return[100,60,(0,S.jsx)("path",{...u,d:"M 1 30 L 50 1,99 30,50 59 Z"})];case"startEnd":return[100,40,(0,S.jsx)("rect",{...u,width:"99",height:"39",x:".5",y:".5",rx:"19.5"})];case"doc":return[100,67,(0,S.jsx)("path",{...u,d:"M1 .5h98c.28 0 .5.22.5.5v58.12a48.74 48.74 0 0 0-49.37-.27l-.81.47A49.35 49.35 0 0 1 .5 59.7V1C.5.72.72.5 1 .5Z"})];case"data":return[100,60,(0,S.jsx)("path",{...u,d:"M25.67.5H98.5c.36 0 .6.36.46.7l-24.17 58a.5.5 0 0 1-.46.3H1.5a.5.5 0 0 1-.46-.7L25.2.8a.5.5 0 0 1 .46-.3Z"})];case"subProcess":return[100,60,(0,S.jsx)("path",{...u,strokeLinejoin:"round",d:"M1 1 h98 v58 H1 Z M14 1 v58 M86 1 v58"})];case"outerData":return[100,60,(0,S.jsx)("path",{...u,d:"M12.5.5h86.57l-.43.66a52.62 52.62 0 0 0 .42 58.34H12.4a4.03 4.03 0 0 1-3.33-1.77 49.36 49.36 0 0 1-.42-54.76l.4-.6A4.13 4.13 0 0 1 12.5.5Z"})];case"innerData":return[100,60,(0,S.jsx)("path",{...u,strokeLinejoin:"round",d:"M1 1 h98 v58 H1 Z M14 1 v58 M1 14 h98"})];case"queueData":return[61,60,(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("rect",{width:"59",height:"59",x:".5",y:".5",...u,rx:"29.5"}),(0,S.jsx)("path",{...u,strokeLinecap:"round",d:"M60 59.5H29"})]})];case"database1":return[101,62,(0,S.jsx)("path",{...u,strokeMiterlimit:"10",d:"M91.5 61h-82c-4.97 0-9-13.43-9-30s4.03-30 9-30h82m0 60c-4.97 0-9-13.43-9-30m9 30c4.97 0 9-13.43 9-30s-4.03-30-9-30m0 60c-4.97 0-9-13.43-9-30m9-30c-4.97 0-9 13.43-9 30m9-30c-4.97 0-9 13.43-9 30"})];case"database2":return[62,62,(0,S.jsx)("path",{...u,d:"M61 10v41.67c0 4.97-13.43 9-30 9s-30-4.03-30-9V10c0 4.97 13.43 9 30 9s30-4.03 30-9Zm-30 9c16.57 0 30-4.03 30-9S47.57 1 31 1 1 5.03 1 10s13.43 9 30 9Z"})];case"humanInput":return[100,60,(0,S.jsx)("path",{...u,d:"m.93 14.87 98-14.2a.5.5 0 0 1 .57.49V59a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V15.37a.5.5 0 0 1 .43-.5Z"})];case"card":return[100,60,(0,S.jsx)("path",{...u,d:"M99.5 1v58a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V24.41a.5.5 0 0 1 .15-.35L24.06.65a.5.5 0 0 1 .35-.15H99c.28 0 .5.22.5.5Z"})];case"strip":return[100,74,(0,S.jsx)("path",{...u,d:"M99.5 7.34v58.78a48.74 48.74 0 0 0-49.37-.27l-.81.47A49.35 49.35 0 0 1 .5 66.7V7.95l.03-.02h.05a48.26 48.26 0 0 0 49.04.37l1.14-.66a49.18 49.18 0 0 1 48.7-.37c.02.01.04.04.04.07Z"})];case"show":return[100,61,(0,S.jsx)("path",{...u,d:"M87.5 1H21.53a.5.5 0 0 0-.42.22L.61 31l20.5 28.79c.1.13.24.21.4.21H87.6c1.33 0 2.58-.66 3.33-1.77a49.36 49.36 0 0 0 .42-54.76l-.4-.6A4.13 4.13 0 0 0 87.5 1Z"})];case"humanOp":return[100,60,(0,S.jsx)("path",{...u,d:"M1.39.5H98.6a.5.5 0 0 1 .48.66l-19.34 58a.5.5 0 0 1-.47.34H20.72a.5.5 0 0 1-.47-.34L.9 1.16A.5.5 0 0 1 1.4.5Z"})];case"prepare":return[100,60,(0,S.jsx)("path",{...u,d:"M20.54.5h58.92a.5.5 0 0 1 .42.22l19.33 29a.5.5 0 0 1 0 .56l-19.33 29a.5.5 0 0 1-.42.22H20.54a.5.5 0 0 1-.42-.22l-19.33-29a.5.5 0 0 1 0-.56l19.33-29a.5.5 0 0 1 .42-.22Z"})];case"loop":return[100,60,(0,S.jsx)("path",{...u,d:"M1 59.5h98a.5.5 0 0 0 .5-.5V20.41a.5.5 0 0 0-.15-.35L79.94.65a.5.5 0 0 0-.35-.15H20.4a.5.5 0 0 0-.35.15L.65 20.06a.5.5 0 0 0-.15.35V59c0 .28.22.5.5.5Z"})];case"refInPage":return[60,60,(0,S.jsx)("rect",{width:"59",height:"59",x:".5",y:".5",...u,rx:"29.5"})];case"or":return[60,60,(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("circle",{cx:"30",cy:"30",r:"29",...u}),(0,S.jsx)("path",{...u,d:"M 30 1 v58 M 1 30 h58"})]})];case"sum":return[60,60,(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("circle",{cx:"30",cy:"30",r:"29",...u}),(0,S.jsx)("path",{...u,transform:"rotate(45,30,30)",d:"M 31 1 v58 M 1 31 h58"})]})];case"refCrossPage":return[100,60,(0,S.jsx)("path",{...u,d:"M1 .5h98c.28 0 .5.22.5.5v38.32a.5.5 0 0 1-.31.47l-49 19.6a.5.5 0 0 1-.38 0l-49-19.6a.5.5 0 0 1-.31-.47V1C.5.72.72.5 1 .5Z"})];case"sort":return[60,60,(0,S.jsx)("path",{...u,d:"M 1 30 L 30 1,59 30,30 59 Z M 1 30 L 59 30"})];case"union":return[60,40,(0,S.jsx)("path",{...u,strokeLinecap:"round",d:"M2 .5h56a.5.5 0 0 1 .4.8l-28 37.33a.5.5 0 0 1-.8 0L1.6 1.3A.5.5 0 0 1 2 .5Z"})]}},pat=hat,vat=(0,I.memo)(r=>{const{widget:{hotAttr:t}}=r,{subType:e,border:n}=t,{bdrStyle:i,bdrWidth:a,bdrColor:o,bdrIsVisible:s}=n,l=zN(i,a),u=(0,et.t0)(o),c=s?a:0,[d,h,f]=gat({subType:e,stroke:u,strokeWidth:c,strokeDasharray:l});let p={};e!=="concurrent"&&(p={display:"flex",flexDirection:(e==="commentRight"||e==="noteRight"?"right":"left")==="left"?"row":"row-reverse"});let v={};e==="concurrent"&&(v={...v,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"});const g={width:e==="concurrent"?"100%":"20%"};return(0,S.jsxs)(dat,{style:p,children:[e!=="concurrent"&&(0,S.jsx)("div",{style:{width:"80%"},children:(0,S.jsx)(Jr.Ay,{widget:r.widget,styles:v})}),(0,S.jsx)("svg",{preserveAspectRatio:"none",className:"non-closed-flow-svg",style:g,viewBox:"0 0 "+d+" "+h,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f}),e==="concurrent"&&(0,S.jsx)(Jr.Ay,{widget:r.widget,styles:v})]})}),gat=r=>{let{subType:t,stroke:e,strokeWidth:n,strokeDasharray:i}=r;const a={stroke:e,strokeWidth:n,strokeDasharray:i,vectorEffect:"non-scaling-stroke"};switch(t){case"concurrent":return[100,62,(0,S.jsx)("path",{...a,d:"M0 1h100m0 60H0"})];case"commentRight":return[12,62,(0,S.jsx)("path",{...a,strokeLinecap:"round",d:"M11 1H2a1 1 0 0 0-1 1v58a1 1 0 0 0 1 1h9"})];case"commentLeft":return[12,62,(0,S.jsx)("path",{...a,strokeLinecap:"round",d:"M1 1h9a1 1 0 0 1 1 1v58a1 1 0 0 1-1 1H1"})];case"noteRight":return[14,64,(0,S.jsx)("path",{...a,strokeLinecap:"round",strokeLinejoin:"round",d:"M1 1v0a5 5 0 0 1 5 5v19.8a6 6 0 0 0 5.15 5.94L13 32l-1.85.26A6 6 0 0 0 6 38.2V58a5 5 0 0 1-5 5v0"})];case"noteLeft":return[14,64,(0,S.jsx)("path",{...a,strokeLinecap:"round",strokeLinejoin:"round",d:"M13 1v0a5 5 0 0 0-5 5v19.8a6 6 0 0 1-5.15 5.94L1 32l1.85.26A6 6 0 0 1 8 38.2V58a5 5 0 0 0 5 5v0"})]}},mat=vat,yat=r=>{let{firstLevel:t,path:e,node:n,level:i,isShowIcon:a,selectNodeStyle:o,nodeStyle:s,onExpandItem:l,onSelectedItem:u,onUpdate:c,canEditText:d,isCreatePortalList:h,panelCid:f,showLinkTag:p,isPreview:v,tree:g,handleCheckNode:m,linkQueryArray:y,treeKey:x,widget:w,optionDataSelected:_,optionDataDesignUnExpanded:b}=r;return(0,S.jsx)("div",{className:V()("childrenListWrap",{firstLevel:t}),children:(0,S.jsx)("ul",{className:V()("childrenList",{pcanvas:h}),children:n.children.map((C,M)=>(0,S.jsx)(WN,{path:e+"-"+M,node:C,parent:n,level:i+1,selectNodeStyle:o,nodeStyle:s,isShowIcon:a,onSelectedItem:u,onExpandItem:l,handleCheckNode:m,onUpdate:c,canEditText:d,panelCid:f,showLinkTag:p,isPreview:v,tree:g,linkQueryArray:y,treeKey:x,widget:w,optionDataSelected:_,optionDataDesignUnExpanded:b},e+"-"+M))})})};var FN=T(66559);class WN extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"preventTimer",null),(0,ge.A)(this,"interactionWrapper",t=>{this.preventTimer&&clearTimeout(this.preventTimer),MB.runnerController&&MB.runnerController.setIsPreventEvent(!0),t(),this.preventTimer=setTimeout(()=>{MB.runnerController&&MB.runnerController.setIsPreventEvent(!1)},400)}),(0,ge.A)(this,"handleSelecteItem",t=>{t.stopPropagation();const{onSelectedItem:e,path:n,node:i}=this.props;e==null||e({node:i,path:n})}),(0,ge.A)(this,"handleClickExpand",t=>{t.stopPropagation(),this.interactionWrapper(()=>{const{onExpandItem:e,path:n,node:i}=this.props;e==null||e({node:i,path:n})})}),(0,ge.A)(this,"handleChangeName",t=>{t.stopPropagation();const{node:e,onUpdate:n,parent:i,path:a}=this.props,o={...e.data,name:t.target.value};n==null||n({data:o,path:a,parent:i})}),(0,ge.A)(this,"hanldeNodeChangeCheck",(t,e)=>{t.stopPropagation(),this.interactionWrapper(()=>{const{node:n,path:i,handleCheckNode:a}=this.props;a==null||a({node:n,path:i,selectStatus:e})})})}render(){var t;const{widget:e,canEditText:n,node:i,node:{children:a,data:{cid:o,name:s,icon:l,linkCids:u}},level:c,nodeStyle:d,selectNodeStyle:h,path:f,panelCid:p,showLinkTag:v,tree:g,linkQueryArray:m,treeKey:y,optionDataSelected:x,optionDataDesignUnExpanded:w,isPreview:_}=this.props,b=e.hotAttr["!version"],C=(0,an.XZ)({optionData:i,optionDataDesignUnExpanded:w,widgetVersion:b}),M=(0,an.lt)({optionData:i,optionDataSelected:x,widgetVersion:b}),k=a.length>0,P=c===1,R=C&&k,j=g.isShowNodeIcon,st={...M?h:d,paddingLeft:16+(c-1)*g.nodeIndent+"px"},{hasUiInteractiveIta:dt,hasInteractiveIta:xt,interactiveCids:Rt,firstUiInteractiveIta:wt,itaClassName:Lt}=(0,hi.HW)(m,u),Ft=v&&dt,Kt=C?"expand":"fold";let Ut=0,Bt=0,Gt="no";if(g.isShowCheckbox){var Qt;(Qt=i.children)!=null&&Qt.length?((0,$r.qS)(i.children,(se,le,me)=>{var ye;const ue=me+"-"+le;return(ye=se.children)!=null&&ye.length||(Ut+=1,se.data.checked&&(Bt+=1)),ue},f),Ut===Bt?Gt="select":Bt>0&&Bt<Ut?Gt="half":Gt="no"):Gt=i.data.checked?"select":"no"}const re=l||(c===1?FN.zS:FN.bS);return(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)("li",{className:V()("node canClickableHighWidget",{selected:M}),children:[(0,S.jsxs)("div",{className:V()("content",Lt,{firstLevel:P}),style:st,onClick:this.handleSelecteItem,"data-container-cid":y,"data-link_cid":Rt,"data-panel_cid":p,children:[(0,S.jsxs)("div",{className:"leftContent",children:[g.isShowFoldSymbol&&(0,S.jsx)(xr.C,{onClick:this.handleClickExpand,className:k?"visible":"hidden",name:"tree_node/"+g.foldSymbol+"_"+Kt}),g.isShowCheckbox&&(0,S.jsx)(xr.C,{isColorPure:!0,className:""+Gt,onClick:se=>this.hanldeNodeChangeCheck(se,Gt),name:"tree_node/checkbox_"+Gt}),j&&(0,S.jsx)("span",{className:"iconWrap",children:(0,S.jsx)(Tg,{cid:o,className:V()("svg-icon fill",{"pure-svg-icon":(t=re.path)==null?void 0:t.includes("<style>")}),path:re.path,viewBox:re.viewBox})}),(0,S.jsx)(Cg,{hiKey:y,canEditText:n,value:s,onChangeValue:this.handleChangeName,inputStyle:{color:st.color}})]}),Ft&&wt&&(0,S.jsx)(pa,{interactionKey:wt.key}),xt&&_&&(0,S.jsx)("div",{className:"region gesture"})]}),R&&(0,S.jsx)(yat,{firstLevel:P,showLinkTag:v,...this.props})]})})}}const xat=K.Ay.div.withConfig({displayName:"styles__StyledTreeContainer",componentId:"sc-1r90zrk-0"})(["ul.tree-root{width:100%;height:100%;list-style:none;overflow-x:hidden;overflow-y:auto;}li.node{list-style:none;.content{display:flex;justify-content:space-between;align-items:center;padding:0 16px;position:relative;width:100%;min-width:160px;.leftContent > *{margin-right:8px;}.leftContent{display:flex;align-items:center;overflow:hidden;flex:1;.editable-span-wrap{flex:1;.editable-span{white-space:pre;}}.iconWrap{display:flex;width:1.2em;height:1.2em;svg{width:100%;height:100%;}}.hidden{visibility:hidden;}.select > :first-child,.half > :first-child{fill:",";}.no > :first-child{fill:",";}}}}"],r=>r.$checkboxSelectColor,r=>r.$checkboxNoColor);class Nw extends I.PureComponent{constructor(){super(...arguments),(0,ge.A)(this,"setScrollElement",t=>this.$scrollElement=t),(0,ge.A)(this,"handleWheel",t=>{this.$scrollElement.clientHeight===this.$scrollElement.scrollHeight&&this.$scrollElement.clientWidth===this.$scrollElement.scrollWidth||t.stopPropagation()}),(0,ge.A)(this,"handleScroll",t=>{this.props.isPreview&&MB.runnerController.resetHandler.updateWScrollMap(this.props.widget.key,{scrollTop:t.target.scrollTop,scrollLeft:t.target.scrollLeft})})}componentDidMount(){const{widget:{hotAttr:t,key:e},onlyView:n,isPreview:i}=this.props;if(i){this.$scrollElement.addEventListener("scroll",this.handleScroll);const a=MB.runnerController.resetHandler.getWScrollMap(e);a&&this.$scrollElement&&(this.$scrollElement.scrollTop=a.scrollTop||0,this.$scrollElement.scrollLeft=a.scrollLeft||0)}else this.$scrollElement.addEventListener("wheel",this.handleWheel,{capture:!0});n||t["!version"]!==2&&(0,uN.Tx)()&&setTimeout(()=>{MB.action&&MB.action("entry:navigationMenu:migrate",{key:e})},30)}componentWillUnmount(){this.props.isPreview?this.$scrollElement.removeEventListener("scroll",this.handleScroll):this.$scrollElement.removeEventListener("wheel",this.handleWheel,{capture:!0})}render(){const{panelCid:t,widget:e,isEditing:n,optionDataDesignUnExpanded:i,optionDataSelected:a,optionData:o,canEditText:s,showLinkTag:l,isPreview:u,treeData:{sdkStore:c,isEditingCombo:d,editingPanelCid:h},widget:{key:f,hotAttr:{w:p,h:v,tree:g,textV0:m,border:y,borderVisibility:x,fill:w,selectNode:_}},onExpandItem:b,onSelectedItem:C,onUpdate:M,handleCheckNode:k}=this.props,{isShowNodeIcon:P,nodeHeight:R}=g,{fontSize:j,textColor:X}=m,{isSelectNodeBackgroundVisible:st,selectNodeBackground:dt,fontSize:xt}=_,Rt={width:p,height:v,...(0,ot.Zv)({textV0:m}),pointerEvents:n?"auto":"none",cursor:n?"pointer":"",backgroundColor:w.fillIsVisible?(0,et.t0)(w.solidColor):"transparent",...(0,ot.Um)({border:y,borderVisibility:x})},wt={fontSize:j,color:(0,et.t0)(X),height:R+"px",textDecoration:(0,ot.RL)(m),fontWeight:(0,ot.Cz)(m),fontStyle:(0,ot.lI)(m)},Lt={...(0,ot.Zv)({textV0:_}),background:st?(0,et.t0)(dt):"transparent",fontSize:xt,height:R+"px"},Ft=(0,et.t0)(g.checkboxSelectColor),Kt=(0,et.t0)(g.checkboxNoColor),Ut=(0,Xt.DS)(c,f,d,h);return(0,S.jsx)(xat,{style:Rt,$checkboxSelectColor:Ft,$checkboxNoColor:Kt,children:(0,S.jsx)("ul",{className:"tree-root scrollable-widget",ref:this.setScrollElement,children:o.map((Bt,Gt)=>(0,S.jsx)(WN,{path:""+Gt,isShowIcon:P,node:Bt,parent:null,level:1,selectNodeStyle:Lt,nodeStyle:wt,onExpandItem:b,onSelectedItem:C,onUpdate:M,handleCheckNode:k,canEditText:s,panelCid:t,showLinkTag:l,isPreview:u,tree:g,linkQueryArray:Ut,treeKey:f,widget:e,optionDataDesignUnExpanded:i,optionDataSelected:a},""+Gt))})})}}const jN=r=>{let{node:t,path:e,selectStatus:n,newOptionData:i}=r;const a=e.split("-");let o=null;if(a.length===1)o=i[e];else{const s=l=>{o=l};(0,$r.PM)({newOptionData:i,pathArr:e.split("-"),onUpdate:s})}t.children.length?n==="select"||n==="half"?(0,$r.sV)(o.children,s=>{s.children.length<1&&(s.data.checked=!1)}):(0,$r.sV)(o.children,s=>{s.children.length<1&&(s.data.checked=!0)}):n==="select"?o.data.checked=!1:o.data.checked=!0},Sat=r=>{let{widget:t,treeData:e,isEditing:n,showLinkTag:i}=r;const{key:a,hotAttr:o}=t,{optionData:s,optionDataSelected:l,optionDataDesignUnExpanded:u=[],refVars:c}=o,{actions:d,onlyView:h}=e,f=y=>{d==null||d.updateWidget([{key:a,hotAttr:y}])},p=y=>{let{node:x,path:w}=y;const _=jr()(s);o["!version"]===2?(0,an.E3)({node:x,widget:o,optionDataDesignUnExpanded:u,onUpdate:f}):(0,an.eh)({node:x,path:w,newOptionData:_,canExpandOneMenu:!1,onUpdate:f,widgetType:"wTree"})},v=y=>{let{node:x,path:w}=y;if(!n)return;const _=jr()(s);o["!version"]===2?(0,an.hZ)({node:x,optionDataSelected:l,onUpdate:f}):(0,an.Bf)({node:x,path:w,newOptionData:_,onUpdate:f})},g=y=>{let{node:x,path:w,selectStatus:_}=y;const b=jr()(s);jN({newOptionData:b,node:x,path:w,selectStatus:_}),f({optionData:b})},m=y=>{let{data:x,path:w,parent:_}=y;const b=w.split("-"),C=b[b.length-1],M=jr()(s),k=c==null?void 0:c.optionData;let P=!1;if(_){let X=!1;const st=xt=>{const Rt=String(xt.data.name);xt.data=x,X=Rt!==x.name},dt=b.slice(0);(0,$r.PM)({newOptionData:M,pathArr:b,onUpdate:st}),X&&k!=null&&k.length&&(0,$r.PM)({newOptionData:k,pathArr:dt,onUpdate:xt=>{var Rt;xt!=null&&(Rt=xt.data)!=null&&Rt.name&&(xt.data.name=void 0,P=!0)}})}else{var R;const X=String(s[C].data.name);M[C].data=x,X!==x.name&&k!=null&&(R=k[C])!=null&&(R=R.data)!=null&&R.name&&(k[C].data.name=void 0,P=!0)}const j={optionData:M};P&&(j.refVars=c),f(j)};return(0,S.jsx)(Nw,{widget:t,optionData:s,treeData:e,onExpandItem:p,onSelectedItem:v,handleCheckNode:g,onUpdate:m,canEditText:n,isEditing:n,showLinkTag:i,onlyView:h,optionDataSelected:l,optionDataDesignUnExpanded:u})},wat=r=>{let{widget:t,treeData:e,panelCid:n}=r;const{key:i,hotAttr:a}=t,{optionData:o,optionDataDesignUnExpanded:s,optionDataSelected:l}=a,[u,c]=(0,I.useState)({optionData:o,optionDataDesignUnExpanded:s,optionDataSelected:l}),d=(0,I.useRef)(u);(0,I.useEffect)(()=>{if(!Yr()(d.current.optionData,o)){const g={optionData:o,optionDataDesignUnExpanded:s,optionDataSelected:l};d.current=g,c(g)}},[o,s,l]);const h=g=>{const m={...u,...g};c(m),e.sdkStore.overwriteItem({key:i,hotAttr:m})},f=g=>{let{node:m,path:y}=g;const x=jr()(o),w=u.optionDataDesignUnExpanded;a["!version"]===2?(0,an.E3)({node:m,widget:a,optionDataDesignUnExpanded:w,onUpdate:h}):(0,an.eh)({node:m,path:y,newOptionData:x,canExpandOneMenu:!1,onUpdate:h,widgetType:"wTree"})},p=g=>{let{node:m,path:y}=g;const x=jr()(u.optionData),w=u.optionDataSelected;a["!version"]===2?(0,an.hZ)({node:m,optionDataSelected:w,onUpdate:h}):(0,an.Bf)({node:m,path:y,newOptionData:x,onUpdate:h})},v=g=>{let{node:m,path:y,selectStatus:x}=g;const w=jr()(u.optionData);jN({newOptionData:w,node:m,path:y,selectStatus:x}),h({optionData:w})};return(0,S.jsx)(Nw,{widget:t,isEditing:!0,isPreview:!0,onExpandItem:f,onSelectedItem:p,handleCheckNode:v,optionData:u.optionData,optionDataDesignUnExpanded:u.optionDataDesignUnExpanded,optionDataSelected:u.optionDataSelected,canEditText:!1,treeData:e,panelCid:n})},bat=(0,I.createContext)({panelCid:""}),_at=()=>(0,I.useContext)(bat),Cat=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{key:i,hotAttr:a}=t,o=_at();if(n==="design"){const{editingEditableWidgetCid:s,onlyView:l}=e;return(0,S.jsx)(Sat,{widget:t,treeData:e,isEditing:s===i&&!l,showLinkTag:!0})}if(n==="preview")return(0,S.jsx)(wat,{widget:t,treeData:e,panelCid:o==null?void 0:o.panelCid});if(n==="snapshot")return(0,S.jsx)(Nw,{widget:t,treeData:e,optionData:a.optionData,optionDataDesignUnExpanded:a.optionDataDesignUnExpanded,optionDataSelected:a.optionDataSelected})});var ws=T(24496),GN=T(3902),Tat=T(36449),Mat=T(13642),Aat=T(7198),Yi=T(34697);const Iat=(r,t)=>{const{key:e,hotAttr:{placement:n,expand:i},sub:a,sup:o}=r,s=t.sdkStore.getHotItem(o),{key:l,hotAttr:{isRoot:u}}=s,{w:c,h:d}=t.getNodeSize(l),{w:h,h:f}=r.mindNodeSize||t.getNodeSize(e),{x:p,y:v}=t.getNodePosition(l),{x:g,y:m}=r.mindNodePosition||t.getNodePosition(e),y=t.getMindPosition(),x=n==="right",w={x:p+y.x,y:v+y.y},_={x:g+y.x,y:m+y.y},b={x:x?w.x+c:w.x,y:w.y+d/2,w:c,h:d},C={x:x?_.x:_.x+h,y:_.y+f/2,width:h,height:f};let M=[];return u?(b.x=x?w.x+c*.75:w.x+c*.25,M=["M",b.x,b.y,"C",b.x,b.y+(C.y-b.y)*.67,b.x+(C.x-b.x)*.67,C.y,C.x,C.y]):M=["M",b.x,b.y,"L",b.x+(C.x-b.x)*.3,b.y,"C",b.x+(C.x-b.x)*.3,b.y+(C.y-b.y)*1.2,b.x+(C.x-b.x)*.3+(C.x-b.x),C.y,C.x,C.y],(a==null?void 0:a.length)>0&&!i&&M.push("M",x?C.x+h:C.x-h,C.y,"L",x?C.x+h:C.x-h,C.y),M},Dat=(r,t)=>{const{key:e,hotAttr:{placement:n,expand:i},sub:a,sup:o}=r,s=t.sdkStore.getHotItem(o),{key:l,hotAttr:{isRoot:u}}=s,{w:c,h:d}=t.getNodeSize(l),{w:h,h:f}=r.mindNodeSize||t.getNodeSize(e),{x:p,y:v}=t.getNodePosition(l),{x:g,y:m}=r.mindNodePosition||t.getNodePosition(e),y=t.getMindPosition(),x=n==="right",w={x:p+y.x,y:v+y.y},_={x:g+y.x,y:m+y.y},b={x:x?w.x+c:w.x,y:w.y+d/2,w:c,h:d},C={x:x?_.x:_.x+h,y:_.y+f/2,width:h,height:f};let M=[];return u?(b.x=x?w.x+c*.75:w.x+c*.25,M=["M",b.x,b.y,"C",b.x,b.y+(C.y-b.y)*.67,b.x+(C.x-b.x)*.67,C.y,C.x,C.y]):M=["M",b.x,b.y,"L",b.x+(C.x-b.x)*.3,b.y,"L",b.x+(C.x-b.x)*.3,(b.y+C.y)*.5,"C",b.x+(C.x-b.x)*.3,C.y,b.x+(C.x-b.x)*.3,C.y,C.x,C.y],a.length&&!i&&M.push("M",x?C.x+h:C.x-h,C.y,"L",x?C.x+h:C.x-h,C.y),M},kat=(r,t)=>{const{key:e,hotAttr:{placement:n,expand:i},sub:a,sup:o}=r,s=t.sdkStore.getHotItem(o),{key:l,hotAttr:{isRoot:u}}=s,{w:c,h:d}=t.getNodeSize(l),{w:h,h:f}=r.mindNodeSize||t.getNodeSize(e),{x:p,y:v}=t.getNodePosition(l),{x:g,y:m}=r.mindNodePosition||t.getNodePosition(e),y=t.getMindPosition(),x=n==="right",w={x:p+y.x,y:v+y.y},_={x:g+y.x,y:m+y.y},b={x:x?w.x+c:w.x,y:w.y+d/2,w:c,h:d},C={x:x?_.x:_.x+h,y:_.y+f/2,width:h,height:f};return u?(b.x=x?w.x+c*.75:w.x+c*.25,C.y=_.y+f,["M",b.x+7,b.y,"C",b.x,b.y+(C.y-b.y)*.67,b.x+(C.x-b.x)*.67,C.y,C.x,C.y,"L",x?C.x+h:C.x-h,C.y,"L",C.x,C.y,"C",b.x+(C.x-b.x)*.67,C.y,b.x,b.y+(C.y-b.y)*.75,b.x,b.y,"L",b.x+7,b.y]):(b.y=w.y+d,C.y=_.y+f,["M",b.x,b.y,"L",b.x+(x?5:-5),b.y,"C",b.x+(C.x-b.x)*.35,b.y,b.x+(C.x-b.x)*.51,C.y,C.x,C.y,"L",x?C.x+h:C.x-h,C.y])},Pat=(r,t)=>{const{key:e,hotAttr:{placement:n,expand:i,isRoot:a},sub:o,sup:s}=r,l=t.sdkStore.getHotItem(s),{key:u,hotAttr:{isRoot:c}}=l,{w:d,h}=t.getNodeSize(u),{w:f,h:p}=r.mindNodeSize||t.getNodeSize(e),{x:v,y:g}=t.getNodePosition(u),{x:m,y}=r.mindNodePosition||t.getNodePosition(e),x=t.getMindPosition(),w=n==="right",_={x:v+x.x,y:g+x.y},b={x:m+x.x,y:y+x.y},C={x:w?_.x+d:_.x,y:_.y+h/2,w:d,h},M={x:b.x,y:b.y+p/2,width:f,height:p};let k=[];return c?(M.x=w?b.x:b.x+f,k=["M",C.x,C.y,"L",C.x+(M.x-C.x)*.5,C.y,"L",C.x+(M.x-C.x)*.5,C.y+(M.y-C.y)*.75,"C",C.x+(M.x-C.x)*.5,M.y,C.x+(M.x-C.x)*.5,M.y,C.x+(M.x-C.x)*.75,M.y,"L",M.x,M.y]):(t.isRootSub(u)||(C.y=_.y+h),M.x=w?b.x+f:b.x,M.y=b.y+p,k=["M",C.x,C.y,"L",C.x+(w?20:-20),C.y,"L",C.x+(w?20:-20),C.y+(M.y-C.y)*.75,"C",C.x+(w?20:-20),M.y,C.x+(w?20:-20),M.y,C.x+(w?28:-28),M.y,"L",C.x+(w?28:-28),M.y,"L",M.x,M.y]),o.length>0&&!i&&k.push("L",w?M.x+(a?f:0)+12:M.x-(a?f:0)-12,M.y),k},Eat=r=>{switch(r){case Yi.dr.YOUTH:case Yi.dr.DARK:return Dat;case Yi.dr.RAINBOW:return kat;case Yi.dr.RETRO:return Pat;default:return Iat}},UN=(r,t,e)=>Eat(r)(t,e).join(" "),Lat=r=>{let{node:t,theme:e,isRootSub:n}=r;const i={fill:"none",stroke:"#666666",strokeWidth:n?Yi.x$[e]:Yi.vA[e]};switch(e){case Yi.dr.RAINBOW:if(n){const a=Yi.LZ[(t.order-1)%6];i.fill=a,i.stroke=a}break}return i},KN=r=>{const{current:t,theme:e,rootNode:n,mindTree:i}=r,{key:a,hotAttr:o}=t,{isRoot:s,expand:l}=o,u=i.isRootSub(a),c=Lat({node:o,theme:e,isRootSub:u}),d=s?"":UN(e,t,i),h=i.sdkStore.getRenderableSubHotItems(t);return(0,S.jsxs)(S.Fragment,{children:[!s&&(0,S.jsx)("path",{...c,d}),l&&h.map(f=>(0,S.jsx)(KN,{current:f,parent:t,theme:e,rootNode:n,mindTree:i},f.key))]})},Rat=KN;var Bw=T(79150),Oat=T(69246);const Nat=K.Ay.div.withConfig({displayName:"styles__StyledResizer",componentId:"sc-1clp9ej-0"})(["position:absolute;transform-origin:0 0;border:1px solid ",";&.is-dy-widget:not(.is-locked){border:1px solid ",";.square{border-color:",";}}&.is-master:not(.is-locked){border:1px solid #7146FE;.square{border-color:#7146FE;}}& > *{pointer-events:auto;}.square{position:absolute;width:8px;height:8px;background:white;border:1px solid ",";border-radius:2px;}.resizable-handler{position:absolute;width:","px;height:","px;cursor:pointer;z-index:1;&.t,&.b{height:","px;width:100%;left:3px;}&.l,&.r{width:","px;height:100%;top:3px;}&:not(.is-hotCorner-critical-point){&.tl,&.tr{top:-8.5px;}&.tl,&.bl{left:-8.5px;}&.bl,&.br{bottom:-8.5px;}&.br,&.tr{right:-8.5px;}&.r{right:-8.5px;}&.l{left:-8.5px;}&.t{top:-8.5px;}&.b{bottom:-8.5px;}}&.is-table{&.t{height:","px;}&.l{width:","px;}&:not(.is-hotCorner-critical-point){&.t{top:0;}&.l{left:0;}}}}.rotate{position:absolute;left:50%;top:-26px;width:18px;height:18px;margin-left:-9px;display:flex;justify-content:center;align-items:center;cursor:pointer;path{fill:",";}}.t,.tl,.tr{top:-4.5px;}.b,.bl,.br{bottom:-4.5px;}.r,.tr,.br{right:-4.5px;}.tl,.l,.bl{left:-4.5px;}.l,.r{top:50%;margin-top:-4px;}.t,.b{left:50%;margin-left:-4px;}.ai-semantic{position:absolute;width:16px;height:16px;top:-24px;right:-8px;cursor:pointer;svg{width:100%;height:100%;}}"],r=>r.theme.color_proto,r=>r.theme.color_comments,r=>r.theme.color_comments,r=>r.theme.color_proto,r=>r.anchorHotZone,r=>r.anchorHotZone,r=>r.lineHotZone,r=>r.lineHotZone,r=>r.lineTableZone,r=>r.lineTableZone,r=>r.theme.color_proto);var Sut=T(27480),wut=T(30728);const Vw={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},but={t:"n",b:"s",r:"e",l:"w",tr:"ne",tl:"nw",br:"se",bl:"sw"},Bat={n:0,s:0,e:90,w:90,ne:45,nw:135,se:135,sw:45},Vat={ne:"tr",nw:"tl",se:"br",sw:"bl"},zat="n,s,e,w,ne,sw,se,nw",Hat={RESIZE_ARROW_NORMAL:"url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero' transform='rotate(__absAngle__,16,16)' %3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='rotate(90 5.5 12.5)'%3E%3Crect x='7.5' y='.5' width='2' height='4' rx='.5'/%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cg transform='rotate(90 5.5 12.5)'%3E%3Crect x='8' y='1' width='1' height='3' rx='.5'/%3E%3Cpath d='M2 2h13v1H2z'/%3E%3Cpath d='M.184 2.346L2.672.273A.2.2 0 013 .427v4.146a.2.2 0 01-.328.154L.184 2.654a.2.2 0 010-.308zM16.816 2.654l-2.488 2.073A.2.2 0 0114 4.573V.427a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 16 16,auto"},_ut={hr:"w,e,n",ve:"n,s,w",ios_switch:" ",android_switch:" ",rectangle:"n,s",search_bar:"w,e",status_bar:" ",tab_item:"w,e",tab_bar:"n",pg:" "},YN=14,Fat=8,XN=5,ZN=20,$N=10,JN=20,Wat=6;var Cut=T(8580);const Tut=(r,t)=>{let e=Math.round(t+r);return e>=360?e-=360:e<0&&(e+=360),e>356||e<4?e=0:e>86&&e<94?e=90:e>176&&e<184?e=180:e>266&&e<274&&(e=270),e},Mut=(r,t)=>(Vec2.radian(r,t)/Math.PI*180+360)%360,Aut=(r,t)=>{const{w:e,h:n}=getBoundingRect(r.key),{type:i,isLockAspect:a}=r.widget,o=t||a?getAspectRatio(e,n):-1,s=i===WidgetType.WUnifiedKeyboard,l=i===WidgetType.WQRCode;return s?Gat(i):l?1:o===-1?!1:o},jat={ipad:{portrait:[1536,526],landscape:[2048,704]},iphone:{portrait:[640,348],landscape:[1136,252]},android:{portrait:[574,354],landscape:[956,278]}},Gat=r=>{const t=r.includes("iphone")?"iphone":r.includes("ipad")?"ipad":r.includes("android")?"android":"iphone",e=r.includes("landscape")?"landscape":"portrait",[n,i]=jat[t][e];return n/i},Uat=r=>{var t;const{rect:e,transform:n}=getWorldBoundingBox(r.key),i=n.clone().apply(Rect.center(e)),a=n.decompose().ro,o=[],s=[];return(t=r.children)==null||t.forEach(l=>{if(l.type===WidgetType.WWrap){const{centerNodeList:u,changedItems:c}=Uat(l);o.push(...u),s.push(...c)}else{const{transform:u,rect:c}=getWorldBoundingBox(l.key),d=u.clone().apply(Rect.center(c)),h=Vec2.rotate(i,-a,d),f=u.decompose().ro,p=0,v=0,g={x:(h.x-i.x)/e.w,y:(h.y-i.y)/e.h,w:c.w/e.w,h:c.h/e.h},m={w:c.w,h:c.h};o.push({cid:l.cid,center:d,ro:f,delta:g,size:m,minWidth:p,minHeight:v}),s.push(l)}}),{centerNodeList:o,changedItems:s}},Kat=(r,t,e)=>{const n=[],i=[];return r.forEach(a=>{if(!a.widget.isLock)if(a.type===WidgetType.WWrap&&a.children&&a.children.length>0){const{centerNodeList:o,changedItems:s}=Kat(a.children,t,e);n.push(...o),i.push(...s)}else{const{transform:o,rect:s}=getWorldBoundingBox(a.key),l=o.clone().apply(Rect.center(s)),u=o.decompose().ro,c=0,d=0,h={x:(l.x-t.x)/e.w,y:(l.y-t.y)/e.h,w:s.w/e.w,h:s.h/e.h},f={w:s.w,h:s.h};n.push({cid:a.cid,center:l,ro:u,delta:h,size:f,minWidth:c,minHeight:d}),i.push(a)}}),{centerNodeList:n,changedItems:i}},Yat=r=>{let{w:t,h:e,ratio:n,isTable:i=!1}=r;const a=t*n,o=e*n,s=a<ZN||o<ZN,l=i?a<JN||o<JN:a<$N&&o<$N;return{isHotCornerCriticalPoint:s,isNoHotZone:l,anchorHotZone:s?Fat:YN,lineHotZone:s?XN:YN,lineTableZone:s?XN:Wat}};var Xat=T(38358),QN=T(52822);const Zat=K.Ay.div.withConfig({displayName:"styles__StyledImageContainer",componentId:"sc-15pl40m-0"})(["width:100%;margin-bottom:","px;display:flex;align-items:center;justify-content:center;.image-container{width:","px;height:","px;position:relative;img{width:100%;height:100%;border-radius:2px;}.image-frame{position:absolute;border-radius:2px;pointer-events:none;inset:-2px;}.resize-image-container{width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,0.15);}}&.is-edit:not(.is-select){.image-container:hover{.image-frame{box-shadow:#1684fc 0 0 0 2px inset;}}}"],QN.ck,r=>r.imageRectWidth,r=>r.imageRectHeight),$at=r=>{const{isEdit:t,node:{key:e,hotAttr:{image:{imageRef:n,imageRectWidth:i,imageRectHeight:a}}},isSelect:o,onSelectImage:s,onImageView:l,onMouseEnter:u,onMouseLeave:c}=r,d=(0,on.Kf)(n);if(!d)return null;const{isHotCornerCriticalPoint:h,isNoHotZone:f,anchorHotZone:p,lineHotZone:v}=o?Yat({w:i,h:a,ratio:MB.getScale()/100}):{},g=zat.split(",").map(x=>x.trim()).filter(x=>x),m=g.filter(x=>Vat[x]),y=x=>{const{clientX:w,clientY:_}=x,{direction:b}=x.currentTarget.dataset,C=MB.getScale()/100,M=i/a,k=on.$W*M,P=on.P3*M;sdkStore.combineMergeMark("mindNode-image-resize-drag");const R=X=>{const st={x:(X.clientX-w)/C,y:(X.clientY-_)/C},dt={x:0,y:0,w:i,h:a,r:0},xt=(0,Xat.AL)(dt,st.x,st.y,b,M),Rt={imageRef:n,imageRectWidth:Math.min(Math.max(k,xt.w),P),imageRectHeight:Math.min(Math.max(on.$W,xt.h),on.P3)},wt=[{key:e,hotAttr:{image:Rt}}];MB.action("entry:widget:change",{flatChgList:wt,shouldReBuildTree:!0,isCombineChange:!1}),MB.action("entry:mind:update:mind-size",{isCombineChange:!1})},j=()=>{document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",j),sdkStore.combineMerge("mindNode-image-resize-drag")};document.addEventListener("mousemove",R),document.addEventListener("mouseup",j)};return(0,S.jsx)(Zat,{className:V()({"is-edit":t,"is-select":o}),imageRectWidth:i,imageRectHeight:a,children:(0,S.jsxs)("div",{className:"image-container",onClick:s,onDoubleClick:x=>l(x,d),onMouseEnter:u,onMouseLeave:c,children:[(0,S.jsx)("span",{className:"image-frame"}),(0,S.jsx)("img",{src:d,alt:"",draggable:!1}),o&&(0,S.jsx)(Nat,{className:"resize-image-container",anchorHotZone:p,lineHotZone:v,children:f?null:(0,S.jsxs)(S.Fragment,{children:[g.map(x=>{const w=Bat[x],_=Hat.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+w);return(0,S.jsx)("div",{style:{cursor:_},"data-direction":Vw[x],className:V()(Vw[x]+" resizable-handler",{isHotCornerCriticalPoint:h}),onMouseDown:y},x)}),m.map(x=>(0,S.jsx)("div",{className:V()(Vw[x]+" square")},x))]})})]})})};var zw=T(15748);const Jat=K.Ay.div.withConfig({displayName:"styles__StyledWMindNodeComponent",componentId:"sc-1x5aqkl-0"})(["&.mind-node{position:absolute;display:flex;align-items:center;justify-content:center;padding-left:","px;padding-right:","px;padding-top:","px;padding-bottom:","px;border-radius:6px;&.is-being-dragged{opacity:40%;}&.is-text-editing{.rich-text,.text,input,textarea,.label p{opacity:0 !important;}}.mind-container-content{width:100%;height:100%;display:flex;align-items:center;justify-content:center;.flag-icon{flex:0 0 24px;margin-right:10px;border-radius:4px;height:24px;display:flex;align-items:center;justify-content:center;&.is-edit:not(.is-select):hover{border:2px solid #9cc4ff;}&.is-select{border:2px solid #1684fc;}}.content-right{flex:1;height:100%;display:flex;flex-direction:column;justify-content:center;}}.select-wrap{display:flex;position:absolute;.icon-box{position:absolute;top:calc(50% - 10px);width:20px;height:20px;border-radius:50%;color:#1685fc;border:1px solid #1684fc;background-color:#fff;display:none;&.add-icon{color:#ffffff;background-color:#B7B9BD;border:none;&.left{left:-20px;}}&.subtract-icon{width:16px;height:16px;top:calc(50% - 8px);display:block;opacity:0;&.left{left:-8px;}&.right{left:-8px;}&:hover{opacity:1;}}&.nums{display:flex;align-items:center;justify-content:center;text-align:center;background-color:#1685fc;color:#fff;cursor:pointer;&.left{left:-10px;}&.right{left:-10px;}}.svg-icon{width:100%;height:100%;}&:hover{background-color:",";color:#fff;}}&.has-neighbor{.icon-box.add-icon{&.add-icon{&.right{margin-left:15px;}&.left{margin-left:-35px;left:0;}}}}&.is-single-select{.icon-box{display:flex;&.subtract-icon{opacity:1;}}}}.frame{position:absolute;border-radius:9px;pointer-events:none;inset:-","px;&.is-select-child{box-shadow:#9cc4ff 0 0 0 2px inset;}&.is-select:not(.is-select-child){box-shadow:#1684fc 0 0 0 2px inset;}}&.isEdit.can-hover:hover{.frame:not(.is-select){box-shadow:#80bcff 0 0 0 2px inset;}}}"],r=>r.paddingHorizontal,r=>r.paddingHorizontal,r=>r.paddingVertical,r=>r.paddingVertical,r=>r.theme.color_proto,r=>r.frameInsert),Dut=K.Ay.div.withConfig({displayName:"styles__StyledFindReplaceHighLightArea",componentId:"sc-5q5h3l-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;"]),Qat=K.Ay.div.withConfig({displayName:"styles__StyledHighLight",componentId:"sc-5q5h3l-1"})(["position:absolute;transform-origin:0 0;width:100%;height:100%;background:",";border:2px solid #ffd500;&.selected{background:rgba(22,132,252,0.2);border:2px solid #1684fc;}"],r=>r.theme.color_feedback_highlight_bg);var qN=T(75006);const t5=r=>{const{node:t,mindTree:e,isEdit:n,isDragging:i,isBeingDragged:a,theme:o,editMindNodeKey:s,selectedMindNodeKeys:l,onlyView:u,selectedMindNodeFlagIconKey:c,selectedMindNodeImageKey:d,findSelectWidgetCid:h,findReplaceWMindNodeKeys:f,updateSelectedNodeKeys:p}=r,{key:v,hotAttr:g,sub:m}=t,{icon:y,border:{bdrIsVisible:x,bdrWidth:w},placement:_,expand:b,isRoot:C}=g,M=e.isRootSub(v),k=(0,zw.ss)({theme:o,node:g,isRootSub:M}),P=l==null?void 0:l.includes(v),R=P&&(l==null?void 0:l.length)===1,j=c===v,X=d===v,st=m.length>0&&!C&&b,dt=m.length>0&&!C&&!b,xt=x?w:0,Rt=C||!st?xt+27:xt+50,{w:wt,h:Lt,text:Ft}=e.getNodeSize(v),{x:Kt,y:Ut}=e.getNodePosition(v),{x:Bt,y:Gt}=e.getMindPosition(),Qt=e.sdkStore.getRenderableSubHotItems(t),re={x:!C&&Qt.length?(0,zw.YJ)(o,Qt[0],e):-10,y:(0,zw.R7)(o,t,e)},se=f==null?void 0:f.includes(v),le={...k,width:wt,height:Lt,left:Kt+Bt,top:Ut+Gt},me={...t,hotAttr:{...g,...Ft,richTextV1:{...g.richTextV1,...k}}},[ye,ue]=(0,I.useState)(!0),fe=C?[20,16]:M?[18,10]:[10,5],Ie=h===v,Me=mr=>{if(!n)return;const{shiftKey:Xi}=mr;if(Xi){let ga;l.includes(v)?ga=l.filter(ma=>ma!==v):ga=[...l,v],p(ga)}else p([v])},Ue=()=>{n&&MB.action("entry:mind:enter:text:editing",{isSelectAll:!0})},Ge=mr=>{n&&(mr.stopPropagation(),mr.button===2?(MB.action("entry:contextmenu:withtype",{position:{top:mr.clientY,left:mr.clientX}}),MB.action("mind:update:state",{isShowMindNodeMenu:!0}),l.includes(v)||p([v])):MB.action("entry:mind:start:drag:mind-node",{e:mr,mindNodeKey:v}))},Sr=(mr,Xi)=>{if(mr.stopPropagation(),!n)return;const ga=e.addNode(t,Yi.eB.CHILD_LEVEL,{placement:Xi});ga&&p([ga])},wr=(mr,Xi)=>{mr.stopPropagation(),!u&&(e.expandNode(v,Xi),Xi||p(l.filter(ga=>!(0,qN.z)(ga,[v],e.sdkStore))))},dr=mr=>{if(!n)return;mr.stopPropagation();const Xi=c===v?"":v;MB.action("mind:update:state",{selectedMindNodeFlagIconKey:Xi,selectedMindNodeKeys:[v],selectedMindNodeImageKey:""})},Mr=mr=>{n&&(mr.preventDefault(),mr.stopPropagation(),MB.action("mind:update:state",{selectedMindNodeImageKey:v,selectedMindNodeKeys:[v],selectedMindNodeFlagIconKey:""}))},br=(mr,Xi)=>{n&&(mr.preventDefault(),mr.stopPropagation(),MB.action("modal:update:state",{imagePreviewModal:{isOpen:!0,imgSrc:Xi,alt:""}}))},bn=mr=>{u||mr.buttons!==0||ue(!1)},pi=()=>{ue(!0)};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(Jat,{style:le,className:V()("mind-node",{isEdit:n,"is-being-dragged":a},{"is-text-editing":s===v},{"can-hover":ye}),"data-cid":v,paddingHorizontal:fe[0],paddingVertical:fe[1],borderWidth:xt,frameInsert:xt+3,operationDistance:Rt,onClick:Me,onDoubleClick:Ue,onMouseDown:Ge,children:[(0,S.jsx)("span",{className:V()("frame",{"is-select":P},{"is-select-child":j||X})}),(0,S.jsxs)("div",{className:V()("select-wrap",{"has-neighbor":st},{"is-single-select":R}),style:{[_||"right"]:re.x,top:re.y},children:[C&&n&&(0,S.jsx)(Bw.A,{name:"common/add_plus",className:"icon-box add-icon left-root",onClick:mr=>Sr(mr,"left"),style:{left:"-"+(wt+40)+"px"}}),b&&(0,S.jsx)(Bw.A,{name:"common/add_plus",className:V()("icon-box add-icon "+_),onClick:mr=>Sr(mr,_)}),st&&n&&(0,S.jsx)(Bw.A,{name:"common/subtract",className:"icon-box subtract-icon "+_,onClick:mr=>wr(mr,!1)}),dt&&(0,S.jsx)("span",{className:"icon-box nums "+_,onClick:mr=>wr(mr,!0),children:m.length})]}),(0,S.jsxs)("div",{className:"mind-container-content",children:[y&&(0,S.jsx)("div",{className:V()("flag-icon",{"is-select":j,"is-edit":n}),onClick:dr,onMouseEnter:bn,onMouseLeave:pi,children:(0,Oat.s)(y)}),(0,S.jsxs)("div",{className:"content-right",children:[(0,S.jsx)($at,{node:t,isEdit:n,isSelect:d===v,onSelectImage:Mr,onImageView:br,onMouseEnter:bn,onMouseLeave:pi}),(0,S.jsx)(Jr.Ay,{widget:me})]})]}),se&&(0,S.jsx)(Qat,{scale:MB.getScale(),className:V()({selected:Ie})})]}),b&&Qt.map(mr=>(0,S.jsx)(t5,{node:mr,theme:o,mindTree:e,selectedMindNodeKeys:l,updateSelectedNodeKeys:p,isBeingDragged:l!=null&&l.includes(mr.key)?i:void 0,isDragging:i,editMindNodeKey:s,isEdit:n,findReplaceWMindNodeKeys:f,selectedMindNodeFlagIconKey:c,selectedMindNodeImageKey:d,findSelectWidgetCid:h,onlyView:u},mr.key))]})},qat=t5,tot=K.Ay.div.withConfig({displayName:"style__StyledDesignWMindComponent",componentId:"sc-amyejr-0"})(["position:absolute;width:100%;height:100%;.cover{position:absolute;width:100%;height:100%;z-index:11;top:0;left:0;}"]),eot=K.Ay.div.withConfig({displayName:"style__StyledWMindComponent",componentId:"sc-amyejr-1"})(["position:absolute;width:100%;height:100%;.minNode-children,.minLine-children{position:absolute;width:100%;height:100%;}.select-wrap{pointer-events:",";}"],r=>r.$unClickable&&"none"),rot=K.Ay.div.withConfig({displayName:"style__StyledMindNodeAnchorWrapper",componentId:"sc-amyejr-2"})(["position:absolute;width:100%;height:100%;svg.mind-node-anchor-line{position:absolute;width:calc(100% + 100px);height:calc(100% + 100px);top:-50px;left:-50px;z-index:-1;path{stroke:#1684fc;transform:translate(50px,50px);}}div.mind-node-anchor{position:absolute;z-index:5;width:36px;height:18px;background-color:#9cc4ff;border-radius:6px;}"]),e5=r=>{const{widget:t,unClickable:e,theme:n,treeData:i,mindTree:a,isEdit:o,isDragging:s,editMindNodeKey:l,selectedMindNodeKeys:u,selectedMindNodeFlagIconKey:c,selectedMindNodeImageKey:d,findReplaceWMindNodeKeys:h,findSelectWidgetCid:f,updateSelectedNodeKeys:p}=r,{sdkStore:v,onlyView:g}=i;if(!t)return null;const{hotAttr:{expand:m}}=t,y=v.getRenderableSubHotItems(t);return(0,S.jsxs)(eot,{$unClickable:e,children:[(0,S.jsx)("svg",{className:"minLine-children",children:m&&y.map(x=>(0,S.jsx)(Rat,{parent:t,current:x,rootNode:t,theme:n,mindTree:a},x.key))}),(0,S.jsx)("div",{className:"minNode-children",children:(0,S.jsx)(qat,{node:t,theme:n,mindTree:a,selectedMindNodeKeys:u,updateSelectedNodeKeys:p,selectedMindNodeFlagIconKey:c,selectedMindNodeImageKey:d,editMindNodeKey:l,isEdit:o,isDragging:s,findReplaceWMindNodeKeys:h,findSelectWidgetCid:f,onlyView:g})})]})};var not=T(68049),iot=T(79209),aot=T(96427),oot=T(24229),r5=T(64791);const Hw=60,n5=36,i5=12,a5=10,o5=40,s5=24,sot=s5+10,lot=10,uot={w:0,h:0,text:{w:0,h:0},image:{w:0,h:0},icon:{w:0,h:0},padding:[0,0]},cot=(r,t)=>{const{hotAttr:e}=r,{border:{bdrIsVisible:n,bdrWidth:i},icon:a,image:{imageRef:o,imageRectWidth:s,imageRectHeight:l}}=e,{width:u,height:c}=(0,not.F7)(e),[d,h]=t,f=a?sot:0,p=a?s5:0,v=n?i*2:0,g=(0,on.Kf)(o),m=g?s:0,y=g?l+lot:0,x=Math.max(u,m),w=Math.max(y+c,p),_=x+2*d+v+f,b=w+2*h+v;return{w:_,h:b,text:{w:u,h:c},image:{w:m,h:y},icon:{w:f,h:p},padding:t}},dot=r=>{const t=[];return r.forEach((e,n)=>{e&&e.hotAttr.order!==n+1&&t.push({...e,hotAttr:{...e.hotAttr,order:n+1}})}),t},l5=(r,t,e)=>{var n;!r.isActiveKey(t)||(e(t),!((n=r.getHotItem(t))==null?void 0:n.hotAttr.expand))||r.getRenderableSubHotItems(t).forEach(a=>{let{key:o}=a;l5(r,o,e)})};class u5{constructor(t,e){(0,ge.A)(this,"nodeSizeMap",new Map),(0,ge.A)(this,"nodePositionMap",new Map),(0,ge.A)(this,"treeSizeMap",new Map),(0,ge.A)(this,"sdkStoreChangeListener",n=>{let{changedKeyList:i,changedKeySet:a}=n;!i.length||!a.size||this.sdkStore.isTrashed(this.mindKey)&&this.destory()}),(0,ge.A)(this,"deleteNode",n=>{var i;this.nodeSizeMap.delete(n),this.nodePositionMap.delete(n),this.treeSizeMap.delete(n),(i=this.sdkStore.getHotItem(n))==null||(i=i.sub)==null||i.forEach(this.deleteNode)}),(0,ge.A)(this,"updateNode",n=>{const i=this.sdkStore.getHotItem(n);if((i==null?void 0:i.hotAttr.type)!==z.x.WMindNode)return;if(!i||this.sdkStore.isTrashed(n)){this.deleteNode(n),i!=null&&i.sup&&this.updateNode(i.sup);return}const a=this.calcNodeSize(n);this.nodeSizeMap.set(n,a);const o=this.calcNodePosition(n);this.nodePositionMap.set(n,o)}),this.sdkStore=t,this.updateMindKey(e),this.unSubscribe=this.sdkStore.addSdkStoreChangeListener(this.sdkStoreChangeListener)}updateMindKey(t){var e,n;if(!t||t===this.mindKey||((e=this.sdkStore.getHotItem(t))==null?void 0:e.hotAttr.type)!==z.x.WMind)return;this.mindKey=t;const i=this.sdkStore.getHotItem(t).sub[0],a=(n=this.sdkStore.getHotItem(i))==null?void 0:n.sub[0];a&&(this.rootKey=a,this.resetMaps(),this.sdkStore.mindTrees.set(this.mindKey,this))}getMindNodeBound(){let t=1/0,e=1/0,n=-1/0,i=-1/0;return this.nodePositionMap.forEach((a,o)=>{let{x:s,y:l}=a;const{w:u=0,h:c=0}=this.nodeSizeMap.get(o)||{};t=Math.min(t,s),e=Math.min(e,l),n=Math.max(n,s+u),i=Math.max(i,l+c)}),{minX:t,maxX:n,minY:e,maxY:i}}getMindSize(){if(!this.rootKey)return{w:0,h:0};const{minX:t,maxX:e,minY:n,maxY:i}=this.getMindNodeBound();return{w:e-t+o5*2,h:i-n+a5*2}}getMindPosition(){if(!this.mindKey)return{x:0,y:0};let t=1/0,e=1/0;this.nodePositionMap.forEach(o=>{let{x:s,y:l}=o;t=Math.min(t,s),e=Math.min(e,l)});const{hotAttr:{border:{bdrIsVisible:n,bdrWidth:i}}}=this.sdkStore.getHotItem(this.mindKey),a=n?-i:0;return{x:o5-(t-a),y:a5-(e-a)}}updateMind(t){let e=!t;if(t){var n;const i=this.getMindSize(),a=((n=this.sdkStore.getHotItem(this.mindKey))==null?void 0:n.hotAttr)||{};i.w!==a.w||i.h!==a.h?e=!0:e=Array.from(this.nodePositionMap.keys()).some(o=>this.sdkStore.isTrashed(o)||this.isNodeChanged(o))}e&&(this.resetMaps(),this.updateMindSize(void 0,!0))}getAllMindNodes(){return Array.from(this.nodePositionMap.keys()).map(e=>this.sdkStore.getHotItem(e))}resetMaps(){this.nodeSizeMap.clear(),this.nodePositionMap.clear(),this.treeSizeMap.clear();const t=e=>{this.getNodeSize(e,!0),this.getNodePosition(e,!0),this.getSubTreeSize(e,void 0,!0)};l5(this.sdkStore,this.rootKey,t)}isNodeChanged(t){const e=this.calcNodeSize(t,!0),{w:n,h:i,text:a}=e,o=this.nodeSizeMap.get(t),s=this.calcNodePosition(t,!0),{x:l,y:u}=s,c=this.nodePositionMap.get(t),d=!o||o.w!==n||o.h!==i||o.text.w!==a.w||o.text.h!==a.h,h=!c||c.x!==l||c.y!==u;return d||h}calcNodeSize(t,e){const n=e?this.sdkStore._getOriginHotItem(t):this.sdkStore.getHotItem(t);if(!n)return uot;let i=[10,5];return n.hotAttr.isRoot?i=[20,16]:this.isRootSub(t)&&(i=[18,10]),cot(n,i)}getNodeSize(t,e){return this.nodeSizeMap.has(t)||this.nodeSizeMap.set(t,this.calcNodeSize(t,e)),this.nodeSizeMap.get(t)}calcNodePosition(t,e){const n=e?this.sdkStore._getOriginHotItem(t):this.sdkStore.getHotItem(t),{hotAttr:{isRoot:i,placement:a,border:{bdrIsVisible:o,bdrWidth:s}},sup:l}=n,u=e?this.sdkStore._getOriginHotItem(l):this.sdkStore.getHotItem(l),{hotAttr:{type:c,isRoot:d}}=u;if(i||c!==z.x.WMindNode)return o?{x:-s,y:-s}:{x:0,y:0};const{h}=this.getSubTreeSize(l,d?a:void 0);let f=-h/2,p=!1;const v=d?n5:i5,g=this.sdkStore.getRenderableSubHotItems(l);g.some(M=>{p=M.key===t;const{h:k}=this.getNodeSize(M.key,p&&e),{h:P}=this.getSubTreeSize(M.key,void 0,p&&e);return M.hotAttr.placement!==a?!1:(p?g.length===1?f+=(h-k)/2:f+=(P-k)/2:f+=P+v,p)});const{x:m,y}=this.getNodePosition(l),{w:x}=this.getNodeSize(t,e),{w,h:_}=this.getNodeSize(l),b=a==="left"?m-x-Hw:m+w+Hw,C=y+_/2+f;return{x:b,y:C}}calcNodeTextPosition(t){const{text:{h:e},image:{h:n},padding:i,icon:{h:a,w:o}}=this.getNodeSize(t),s=n+e,l=s<a?(a-s)/2:0,u=o+i[0],c=n+i[1]+l;return{x:u,y:c}}getNodePosition(t,e){return this.nodePositionMap.has(t)||this.nodePositionMap.set(t,this.calcNodePosition(t,e)),this.nodePositionMap.get(t)}isRootSub(t){var e;return(e=this.sdkStore.getHotItem(this.rootKey))==null?void 0:e.sub.includes(t)}calcSubTreeSize(t,e,n){const i=n?this.sdkStore._getOriginHotItem(t):this.sdkStore.getHotItem(t);if(!i)return{w:0,h:0};const{hotAttr:{isRoot:a,expand:o},sub:s}=i,{w:l,h:u}=this.getNodeSize(t,n);if(!o||!s.length)return{w:l,h:u};const c=a?n5:i5;let d=this.sdkStore.getRenderableSubHotItems(t);e&&(d=d.filter(p=>p.hotAttr.placement===e));let h=0,f=0;return d.forEach((p,v)=>{const{w:g}=this.getNodeSize(p.key,n);g>f&&(f=g),v>0&&(h+=c),h+=this.getSubTreeSize(p.key,void 0,n).h}),{w:f,h:Math.max(h,u)}}getSubTreeSize(t,e,n){const i=e?t+"-"+e:t;return this.treeSizeMap.has(i)||this.treeSizeMap.set(i,this.calcSubTreeSize(t,e,n)),this.treeSizeMap.get(i)}addNode(t,e,n,i){if(!(0,iot._c)({type:z.x.WMindNode}))return;const{key:a,sup:o,sub:s,hotAttr:{isRoot:l,order:u,placement:c,expand:d}}=t;this.sdkStore.combineMergeMark("add-mind-node");const h=(0,oot.cF)();if(e===Yi.eB.SAME_LEVEL){if(l)return;const f=this.sdkStore.getRenderableSubHotItems(o);i=i||I18N.FloatingToolbar.Mind.nodeDefaultName+" "+(f.length+1);const p=f.findIndex(m=>m.key===a),v={key:h,sup:o,sub:[],hotAttr:{...(0,r5.yf)(i,i,!1),placement:c,...n}};f.splice(p+1,0,v);const g=dot(f);this.sdkStore.updateHotItemBatch(g)}else if(e===Yi.eB.CHILD_LEVEL){d||this.sdkStore.updateHotAttrKV(a,"expand",!0),i=i||I18N.FloatingToolbar.Mind.nodeDefaultName+" "+(s.length+1);const f={key:h,sup:a,sub:[],hotAttr:{...(0,r5.yf)(i,i,!1,s.length+1),placement:c,...n}};this.sdkStore.updateHotItem(f)}return this.updateMind(),(0,aot.h)("\u589E\u52A0\u8282\u70B9"),this.sdkStore.combineMerge("add-mind-node"),h}deleteNodes(t){const n=t.filter(i=>!i.hotAttr.isRoot).map(i=>i.key);this.sdkStore.combineMergeMark("delete-mind-node"),this.sdkStore.deleteHotItemBatch(n),this.updateMind(),sdkStore.combineMerge("delete-mind-node")}updateMindSize(t,e){if(t===void 0&&(t="ctr"),!this.mindKey||(0,ht.OO)(this.mindKey)||this.sdkStore.mode!==qN.A.MODE.design)return;const n=e?this.sdkStore._getOriginHotItem(this.mindKey):this.sdkStore.getHotItem(this.mindKey);if(!n)return;const{w:i,h:a}=this.getMindSize(),{hotAttr:o}=n;if(!(!e&&i===o.w&&a===o.h))if(t==="tl"){const s=this.sdkStore.getHotBound(this.mindKey),{x:l,y:u}=this.sdkStore.toAttrXY({x:s.x-s.w/2+i/2,y:s.y-s.h/2+a/2},this.mindKey);this.sdkStore.updateHotAttrMerge(this.mindKey,{x:l,y:u,w:i,h:a})}else t==="ctr"&&this.sdkStore.updateHotAttrMerge(this.mindKey,{w:i,h:a})}expandNode(t,e){this.sdkStore.combineMergeMark("toggle-mindNode"),this.sdkStore.updateHotAttrMerge(t,{expand:e}),this.resetMaps(),this.updateMindSize(void 0,!0),this.sdkStore.combineMerge("toggle-mindNode")}destory(){this.sdkStore.mindTrees.delete(this.mindKey),this.unSubscribe()}}const hot=r=>{let{mindNodeToAttach:t,theme:e,attachPosition:n,attachToSelf:i,mindTree:a}=r;const o=Hw,s=a.getMindPosition(),l=t.hotAttr.isRoot,u=(0,QN.Cv)(l)/3,c=a.getNodePosition(t.key),d=a.getNodeSize(t.key);let h={},f=!1;const p=e===1||e===2&&!l;switch(n){case"left":f=p,h={left:c.x-o-36,top:c.y+d.h/2-9};break;case"right":f=p,h={left:c.x+d.w+o,top:c.y+d.h/2-9};break;case"above":h={left:t.hotAttr.placement==="right"?c.x:c.x+d.w-36,top:c.y-u-18};break;case"below":h={left:t.hotAttr.placement==="right"?c.x:c.x+d.w-36,top:c.y+u+d.h};break}f&&(h.top=h.top+(d.h-18)/2),p&&(h.marginTop="9px");const v={hotAttr:{placement:t.hotAttr.placement,isRoot:!1},mindNodePosition:{x:h.left,y:h.top},mindNodeSize:{w:36,h:18},sup:i?t.key:t.sup,sub:[]},g=UN(e,v,a);h.left=h.left+s.x,h.top=h.top+s.y;const m=a.rootKey===v.sup;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("svg",{className:"mind-node-anchor-line",children:(0,S.jsx)("path",{fill:e===1&&m?"#1685fc":"none",d:g,strokeWidth:2})}),(0,S.jsx)("div",{className:"mind-node-anchor",style:h})]})},fot=r=>{let{widget:t,treeData:e}=r;const{sdkStore:n}=e,{key:i,hotAttr:a}=t||{},o=n.getRenderableSubHotItems(t)[0],s=o&&n.getRenderableSubHotItems(o).find(c=>c.hotAttr.isRoot),l=(0,I.useRef)(n.mindTrees.has(i)),u=(0,I.useMemo)(()=>l.current?n.mindTrees.get(i):new u5(n,i),[i]);return u.updateMind(!0),(0,I.useEffect)(()=>{if(!l.current)return()=>u.destory()},[u]),s?(0,S.jsx)(e5,{widget:s,mindTree:u,unClickable:!0,treeData:e,theme:a.theme}):null},pot=r=>{let{widget:t,treeData:e,...n}=r;const{sdkStore:i,onlyView:a}=e,{key:o,hotAttr:{theme:s,isLock:l,w:u,h:c}}=t,d=i.getRenderableSubHotItems(t)[0],h=d&&i.getRenderableSubHotItems(d).find(wt=>wt.hotAttr.isRoot),f=(0,I.useMemo)(()=>i.mindTrees.get(o)||new u5(i,o),[o]);f.updateMind(!0);const[p,v]=(0,I.useState)(!1),g=(0,we.wA)(),{editMindKey:m,mindDraggingState:{isDragging:y,mindNodeToAttach:x,attachToSelf:w,attachPosition:_},editMindNodeKey:b,isLinkToastShow:C,isShallowEditText:M,isShowMindNodeMenu:k,selectedMindNodeKeys:P,isSelected:R}=n,j=!a&&!l&&!(0,ht.OO)(o),X=(0,I.useRef)(),st=(wt,Lt)=>{MB.action("mind:update:state",{editMindKey:o}),v(!0),X.current=[wt,Lt]},dt=wt=>{if(!R||!j)return;wt.stopPropagation();const{metaKey:Lt,ctrlKey:Ft,clientX:Kt,clientY:Ut}=wt;(Lt||Ft)&&st(Kt,Ut)},xt=wt=>{if(!R||!j)return;const{clientX:Lt,clientY:Ft}=wt;st(Lt,Ft)};(0,I.useEffect)(()=>{var wt;if(p&&(wt=X.current)!=null&&wt.length){const Ft=document.elementFromPoint(...X.current),Kt=[];if(Ft){var Lt;const Ut=(Lt=Ft.closest(".mind-node"))==null?void 0:Lt.getAttribute("data-cid");Ut&&Kt.push(Ut)}g({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:Kt}})}},[g,p]),(0,I.useEffect)(()=>{const wt=Lt=>{if(!p)return;const Ft=Lt.target;if(!(Ft.closest(".--mb--color-picker")||Ft.closest(".draft-inline-toolbar")||Ft.closest(".WorkspaceSelectMenu")||Ft.closest(".image-panel-container")||Ft.closest(".draft-link-toast")||Ft.closest(".image-preview-modal")||Ft.closest(".draft-rich-text-editor")||k&&Ft.closest("#mind-node-menu")||k&&Ft.closest(".context-menu-mask"))){if(!Ft.closest(".draft-link-toast")&&C){["INPUT","LABEL","TEXTAREA"].includes(Ft.tagName)||(Lt.preventDefault(),Lt.stopPropagation()),Mat.A.emit("draft:link-toast:quit");return}if(b&&!M&&!Ft.closest(".draft-rich-text-editor")&&MB.action("quit:rich:text:editing"),Ft.closest(".designMind.isEditing")){Ft.closest(".mind-node")||MB.action("mind:clear:edit:state");return}v(!1),g({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[]}}),MB.action("mind:exit:edit:state")}};return p&&document.body.addEventListener("mousedown",wt,{capture:!0}),()=>{document.body.removeEventListener("mousedown",wt,{capture:!0})}},[p,b,C,M,k,g]);const Rt=wt=>{g({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:wt}})};return(0,S.jsxs)(tot,{className:V()("designMind",{isEditing:m===t.key}),children:[!p&&!a&&(0,S.jsx)("div",{className:"cover",onClick:dt,onDoubleClick:xt}),(0,S.jsx)(e5,{widget:h,mindTree:f,treeData:e,theme:s,updateSelectedNodeKeys:Rt,isDragging:y,isEdit:p,...n}),y&&x&&m===t.key&&(0,S.jsx)(rot,{children:(0,S.jsx)(hot,{mindTree:f,mindNodeToAttach:x,attachPosition:_,theme:s,attachToSelf:w})}),P.length>0&&(0,S.jsx)(Aat.NH,{sheet:(0,Yi.iv)(g)})]})},vot=(0,we.Ng)((r,t)=>{const e=(0,bg.p$)(r),n=(0,ws.WH)(r),i=(0,ws.ul)(r),a=(0,ws.A6)(r),o=(0,ws.UN)(r),s=(0,ws.g0)(r),l=(0,ws.H_)(r),{findReplaceWMindNodeKeys:u}=(0,GN.W)(r),c=(0,GN.gP)(r),d=(0,ws.jZ)(r),h=(0,ws.aJ)(r),f=Tat.k.Query.getLinkToastShow(r),p=e.includes(t.widget.key);return{editMindKey:n,selectedMindNodeKeys:i,editMindNodeKey:a,selectedMindNodeFlagIconKey:o,selectedMindNodeImageKey:s,mindDraggingState:l,findReplaceWMindNodeKeys:u,findSelectWidgetCid:c,isShowMindNodeMenu:d,isLinkToastShow:f,isShallowEditText:h,isSelected:p}})(pot),got=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;if(n==="design")return(0,S.jsx)(vot,{widget:t,treeData:e});if(n==="preview"||n==="snapshot")return(0,S.jsx)(fot,{widget:t,treeData:e})}),mot=r=>{let{children:t}=r;return t},yot=r=>{let{width:t,height:e}=r;const n=Math.min(t,e);let i=Math.floor(n/3),a=!0;return n<96&&(i=Math.floor(n/2),a=!1),(0,S.jsxs)(Sot,{children:[(0,S.jsx)("img",{style:{width:i},className:"placeholder-image",src:"/mb-proto2/images/widget/graph_widget_placeholder.png",alt:"code-widget-placeholder"}),a&&(0,S.jsx)("div",{className:"name",children:"\u6682\u65E0\u5185\u5BB9"})]})},xot=r=>{let{widget:t}=r;const{hotAttr:{xmlData:e,w:n,h:i}}=t;return e?(0,S.jsx)(wot,{src:e}):(0,S.jsx)(yot,{width:n,height:i})},Sot=K.Ay.div.withConfig({displayName:"Graph__StyledGraphPlaceHolder",componentId:"sc-o7hqal-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;.name{font-size:14px;font-weight:500px;margin-top:14px;color:",";}.placeholder-image{pointer-events:none;}"],r=>r.theme.color_text_L3),wot=K.Ay.img.withConfig({displayName:"Graph__StyledGraph",componentId:"sc-o7hqal-1"})(["width:100%;height:100%;pointer-events:none;color-scheme:light;color-scheme:only light;"]),bot=xot;var _ot=T(34748),Cot=T(90317);const Tot=K.Ay.div.withConfig({displayName:"styles__StyledButtonComponent",componentId:"sc-nas1ka-0"})(["width:100%;height:100%;display:flex;flex-direction:column;.wrapper{display:flex;}.icon-wrap{display:flex;width:","px;height:","px;flex-shrink:0;svg{width:100%;height:100%;}}.rich-text{padding:0 !important;border-radius:0 !important;}&.left.has-text{.icon-wrap{margin-right:","px;}}&.right.has-text{.icon-wrap{margin-left:","px;}}&.has-icon{.rich-text{width:auto !important;}}"],r=>r.iconSize,r=>r.iconSize,r=>r.gap,r=>r.gap),Mot=r=>{const{richTextV1:t,icon:e}=r,{fontDirection:n,verticalAlign:i}=t||{},a=mt(r),o={justifyContent:a.justifyContent,alignItems:a.alignItems,textAlign:a.textAlign,paddingTop:a.paddingTop,paddingRight:a.paddingRight,paddingBottom:a.paddingBottom,paddingLeft:a.paddingLeft,overflow:a.overflow},s=(e==null?void 0:e.path)&&e.position==="right",l=s?"row-reverse":"row",u=n==="vertical-lr"?{alignItems:a.alignItems,textAlign:a.textAlign,width:"100%",height:"100%",flexDirection:l,justifyContent:s?i==="flex-start"?"flex-end":i==="flex-end"?"flex-start":i:i}:{width:"100%",height:"100%",alignItems:i,textAlign:a.textAlign,flexDirection:l,justifyContent:a.alignItems};return{buttonStyle:o,wrapperStyle:u}},c5=(0,I.memo)(r=>{var t,e;let{widget:n,treeData:i,mode:a}=r;const{hotAttr:o,key:s}=n,{textV1:l,icon:u}=o,c=(0,Y.SD)(l.blocks);if(c&&!(u!=null&&u.path))return null;const{buttonStyle:d,wrapperStyle:h}=Mot(o),{color:f}=(0,_ot.xH)({baseItem:o,returnType:"textV1"});return(0,S.jsx)(Tot,{iconSize:(t=u==null?void 0:u.iconSize)!=null?t:12,gap:(e=u==null?void 0:u.gap)!=null?e:4,style:d,className:V()((u==null?void 0:u.position)||"left",{"has-text":!c},{"has-icon":u==null?void 0:u.path}),children:(0,S.jsxs)("div",{className:"wrapper",style:h,children:[(u==null?void 0:u.path)&&(0,S.jsx)("span",{className:"icon-wrap",style:{color:f},children:(0,S.jsx)(Tg,{cid:s,className:V()("svg-icon fill",{"pure-svg-icon":u.path.includes("<style>")}),path:u.path,viewBox:u.viewBox})}),(0,S.jsx)(_t,{widget:n,treeData:i,mode:a})]})})}),Aot=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;const{sdkStore:i}=e,{key:a,hotAttr:o}=t,s=(0,I.useRef)(o),l=(0,I.useMemo)(()=>i.buttonNodes.get(t.key)||new Cot.Ay(i,a),[a]);return(0,I.useEffect)(()=>{var u,c,d,h;Yr()(s.current,o)||((!Yr()(s.current.richTextV1,o.richTextV1)||!Yr()(s.current.textV1,o.textV1)||!Yr()(s.current.icon,o.icon)||((u=s.current.border)==null?void 0:u.bdrWidth)!==((c=o.border)==null?void 0:c.bdrWidth)||((d=s.current.border)==null?void 0:d.bdrIsVisible)!==((h=o.border)==null?void 0:h.bdrIsVisible)||!Yr()(s.current.borderVisibility,o.borderVisibility))&&l.updateButton(!0),s.current=o)},[t]),(0,I.useEffect)(()=>()=>{l.destory()},[]),(0,S.jsx)(c5,{widget:t,treeData:e,mode:n})}),Iot=(0,I.memo)(r=>{let{widget:t,treeData:e,mode:n}=r;return n==="design"?(0,S.jsx)(Aot,{widget:t,treeData:e,mode:n}):(0,S.jsx)(c5,{widget:t,treeData:e,mode:n})}),d5={[z.x.WMTooltip]:Qn,[z.x.WIOSSwitch]:Pc,[z.x.WIphoneXSB]:Lo,[z.x.WIphoneSB]:Za,[z.x.WAndroidSB]:Ro,[z.x.WMTextInput]:Is,[z.x.WMTextArea]:iu,[z.x.WMFileInput]:Ds,[z.x.WMSelect]:au,[z.x.WButton]:Iot,[z.x.WButtonSolid]:_t,[z.x.WAndroidSwitch]:Q,[z.x.WSticky]:mi,[z.x.WMapView]:Qa,[z.x.WAndroidCB]:qa,[z.x.WAndroidRadio]:lu,[z.x.WWebpage]:Nc,[z.x.WTabItem]:ef,[z.x.WIconButton]:hu,[z.x.WIcon]:du,[z.x.WVideo]:af,[z.x.WQRCode]:Fn,[z.x.WChart]:Art,[z.x.WCarousel]:Ort,[z.x.WTable]:Yrt,[z.x.WVe]:Xrt,[z.x.WIosCB]:$rt,[z.x.WSearchBar]:Qrt,[z.x.WRichText]:Jr.Ay,[z.x.WDigitalStepper]:nnt,[z.x.WPaginationMobile]:ont,[z.x.WPaginationWeb]:cnt,[z.x.WSlider]:hnt,[z.x.WDropMenu]:Hnt,[z.x.WNavigationMenu]:Lw,[z.x.WNavigationMenuV]:Lw,[z.x.WNavigationMenuH]:Lw,[z.x.WCollapse]:Jnt,[z.x.WSegmentedControl]:tit,[z.x.WTabs]:ait,[z.x.WMobileTabBars]:uit,[z.x.WSelectionControl]:pit,[z.x.RbPage]:tu,[z.x.Canvas]:ut,[z.x.WBasket]:ae,[z.x.WRect]:_t,[z.x.WWrap]:Se,[z.x.WOval]:_t,[z.x.WAudio]:Sit,[z.x.WImage]:Xa,[z.x.WPolygon]:bit,[z.x.WStar]:Tit,[z.x.WLine]:Mit.A,[z.x.WArrow]:kit,[z.x.WTriangle]:Lit,[z.x.WTriangleB]:TN,[z.x.WTriangleTL]:TN,[z.x.WPlaceholder]:Nit,[z.x.WLR]:zit,[z.x.WVector]:Hit,[z.x.WElbow]:$it,[z.x.WTear]:Jit.A,[z.x.WUnifiedKeyboard]:Qit,[z.x.WSwimlane]:cat,[z.x.wFlowClosed]:pat,[z.x.WFlowOpened]:mat,[z.x.WMind]:got,[z.x.WTree]:Cat,[z.x.WCode]:Po,[z.x.Bunch]:mot,[z.x.WGraph]:bot},Rut=(r,t)=>{d5[r]=t},Dot=r=>d5[r];var Fw=T(57892),kot=T(69212),Pot=T(56590);const Eot=r=>r==="preview"?(0,kot.f)()||(0,Fw.n)():r==="snapshot"&&(0,Pot.P)()||(0,Fw.n)(),h5=r=>{const{widget:t,treeData:e}=r,{key:n,hotAttr:i}=t,{w:a,h:o,type:s,zIndex:l,x:u,y:c}=i,{sdkStore:d,actions:h,isEditingCombo:f,editingPanelCid:p}=e,v=["rResBunch","rResExt"].includes(s);let g=Math.min(a,o);const m=v?null:(0,Xt.Xr)(d,n,f,p).find(hi.fS);if(!m)return null;const y=w=>{w.stopPropagation(),h.selectItems([n]),h.openRightPanel(1)},x={zIndex:v?0:l+1};if((0,ht.OO)(n)&&(x.pointerEvents="none"),s==="wWrap"){const{x:w,y:_,w:b,h:C}=d.getLocalBound(n);x.top=_-c-C/2,x.right=u-w-b/2,g=Math.min(b,C)}return(0,S.jsx)(pa,{interactionKey:m.key,markerStyle:x,parentSize:g,handleMarkerClicked:y})};h5.displayName="ItemInteractionMarker";const Lot=h5;var Ql=T(87512);const Rot=r=>{let{widget:t,children:e,treeData:n}=r;const{key:i,hotAttr:a}=t,{w:o,type:s,interactions:l}=a,{sdkStore:u}=n,c=(0,I.useMemo)(()=>(0,ot.wA)(a),[a]),d=(0,Ql.tZ)({widget:t,sdkStore:u,mode:"design"}),h=s===z.x.WWrap;let f=d&&!h?(0,Ql.Yd)(o):"",p;if(h&&d){const{w:g,h:m}=u.getCCSBound2308(i);f=(0,Ql.Yd)(g);const{x:y=0,y:x=0}=u.getLBCOff(i)||{};p={zIndex:2147483646,pointerEvents:"none",position:"absolute",left:y-g/2,top:x-m/2,width:g,height:m}}const v=(s===z.x.Canvas?"":"widget ")+"tree-node "+s+" "+f;return(0,S.jsxs)("div",{"data-cid":i,className:v,style:c,children:[e,l!=null&&l.length?(0,S.jsx)(Lot,{widget:t,treeData:n}):null,p&&(0,S.jsx)("div",{style:p,className:f+" wrap-watermark"})]})};var Oot=T(98915);function Not(r,t){if(!window.DeviceMotionEvent){t("\u8BBE\u5907\u6216\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u6447\u4E00\u6447\u529F\u80FD");return}typeof DeviceMotionEvent.requestPermission=="function"&&DeviceMotionEvent.requestPermission().then(e=>{e==="granted"&&t("\u7528\u6237\u5141\u8BB8\u6743\u9650")}).catch(e=>{e.name==="NotAllowedError"?t("\u7528\u6237\u672A\u5141\u8BB8\u6743\u9650"):t("\u8BF7\u6C42\u6743\u9650\u65F6\u53D1\u751F\u9519\u8BEF")})}const f5=()=>{Not(r=>{const t=r.acceleration;let{x:e,y:n,z:i}=t;(0,cn.un)()||(e=-e,n=-n,i=-i)},r=>{console.log(r)})},Bot=r=>(0,cn.Fr)()&&(0,cn.un)()?r.includes("shake"):!1,p5=r=>{const{widget:t,treeData:e,runtimeInteractions:n}=r,{key:i,hotAttr:{type:a,richTextV1:o,richTextMetric:s}}=t,{sdkStore:l}=e;if(n.filter(hi.nj).length===0)return null;const c=(0,Wh.XY)(n),d="region gesture "+c,h=Bot(c),f=n.map(y=>y.key).join(","),{w:p,h:v}=l.getCCSBound2308(i);let g;if(h&&(g={onTouchEnd:f5,onPointerUp:f5}),z.Q.USE_CLIP_TEXT.includes(a)&&o&&!o.isClipText){const{boundingBoxTop:y,boundingBoxLeft:x,boundingBoxHeight:w,boundingBoxWidth:_}=s,b={position:"absolute",left:Math.min(0,x),top:Math.min(0,y),width:Math.max(Math.max(0,x)+_,p),height:Math.max(Math.max(0,y)+w,v)};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{"data-cid":i,"data-link_cid":f,style:{...b,zIndex:-1}}),(0,S.jsx)("div",{style:b,className:d}),g&&(0,S.jsx)("div",{style:b,...g})]})}if(a==="wWrap"){const{offsetTlX:y,offsetTlY:x,w=0,h:_=0}=(0,Oot.py)(i,l)||{},b={position:"absolute",left:y,top:x,width:w,height:_};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{"data-cid":i,"data-link_cid":f,style:{...b,pointerEvents:"auto",zIndex:-1}}),(0,S.jsx)("div",{style:b,className:d}),g&&(0,S.jsx)("div",{style:b,...g})]})}const m={position:"absolute",left:0,top:0,width:p,height:v};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{style:m,className:d}),g&&(0,S.jsx)("div",{style:m,...g})]})};p5.displayName="ItemInteractionMarker";const Vot=p5;var Ww=T(24041),zot=T(85449);const v5=r=>(r||0)-new Date().getTime(),Hot=(r,t)=>{const{key:e,hotAttr:n}=r,{isVisible:i,opacity:a}=n,o=t.getWidgetVisible(e),s=(0,I.useRef)();s.current={opacity:a,display:void 0,visibility:"visible",transition:void 0};const l=()=>{if(!o)return;const d=t.getScopeTransitionState(t.locUpHotCanvasKey(e)),h=d&&(d==null?void 0:d.state)!==Ww.qu.finish;if(o.duration>0&&new Date().getTime()<o.endTime)return{...s.current,transition:"opacity "+o.duration+"ms",...!h&&{opacity:o.visible?0:a},pointerEvents:a?"auto":"none"};if(h)return o.duration===0?{display:void 0,visibility:"visible",transition:"opacity 0ms"}:{display:void 0}},[u,c]=(0,I.useState)(()=>l());return(0,I.useEffect)(()=>{let d;if(n.type===z.x.Canvas)return;if(!o){c(void 0);return}const h=t.getScopeTransitionState(t.locUpHotCanvasKey(e));if(o.duration>0)(0,zot.Wz)(()=>{if(i)c({...s.current,transition:"opacity "+o.duration+"ms",opacity:0,pointerEvents:"none"}),d=setTimeout(()=>{var p;const v=o.visible?(p=s.current)==null?void 0:p.opacity:0;c({display:void 0,visibility:"visible",transition:"opacity "+o.duration+"ms",opacity:v,pointerEvents:v?"auto":"none"})},0);else{var f;c({...s.current,transition:"opacity "+o.duration+"ms",pointerEvents:(f=s.current)!=null&&f.opacity?"auto":"none"}),d=setTimeout(()=>{c({display:void 0,visibility:"visible",transition:"opacity "+o.duration+"ms",opacity:0,pointerEvents:"none"}),d=setTimeout(()=>{c({display:"none",visibility:"hidden"})},Math.max(o.duration,v5(h==null?void 0:h.endTime)))},0)}});else{const f=o&&!o.visible;!h||h.state===Ww.qu.finish?c({...s.current,display:f?"none":void 0,visibility:f?"hidden":"visible"}):(c({...s.current,transition:"opacity 0ms",...f&&{opacity:0}}),d=setTimeout(()=>{c({...s.current,display:f?"none":void 0,visibility:f?"hidden":"visible"})},v5(h.endTime)))}return()=>{d&&clearTimeout(d)}},[e,i,t]),(0,I.useEffect)(()=>()=>{var d,h;(d=t.getWidgetVisible(e))==null||(h=d.reset)==null||h.call(d)},[]),u};var Fot=T(4369),g5=T(64122);const m5=r=>{if(!r)return;const t=Array.from(r).filter(e=>g5.R1.includes(e));t.length>0&&r.remove(...t)},Wot=(r,t,e)=>{const{aniName:n="",aniDuration:i=1e3,endTime:a,delAni:o}=t.getWidgetAnimationRecords(r)||{},s=n===g5.nn,l=(0,I.useMemo)(()=>({animationDuration:i+"ms"}),[i]);if((0,I.useEffect)(()=>{if(!n||s)return;const c=e.current;if(c){const d=c.classList;m5(d),c.offsetWidth,d.add(n)}},[o,n,s,e]),s)return{};if(!n||!a||a<new Date().getTime()){var u;return m5((u=e.current)==null?void 0:u.classList),o==null||o(),{}}return l},jot=(r,t,e)=>{const{key:n,hotAttr:i}=r,{type:a,animation:o,fixPosTo:s,isVisible:l}=i,u=a===z.x.Canvas,c=[(u?"":"widget ")+"tree-node "+a];if(u&&!l&&c.push("invisible"),!e.getWidgetAnimationRecords(n)&&o&&o.aniName!=="none"&&c.push("animated "+o.aniName),t.length){const f={clickable:a==="rResCanvas"?e.locUpHotBasketKey(n):!0};t.forEach(v=>{f[v.interactionTrigger]=!0});const p=V()(f);c.push(p)}if(s==="sticky"&&((0,gt.Wi)(n)||c.push((0,ht.OO)(n)?"shadow-sticky":"sticky")),(0,Ql.tZ)({widget:{key:n,hotAttr:i},sdkStore:e,mode:"preview"})){const{w:h}=e.getCCSBound2308(n);c.push((0,Ql.Yd)(h))}return c.join(" ")},Got=r=>{let{widget:t,runtimeInteractions:e,sdkStore:n}=r;const{key:i,hotAttr:a,sup:o}=t,s=jot(t,e,n),l=(0,ot.ut)(a,i,o,e,n),{fixPosTo:u,stickyOffset:c}=a;let d=0,h=!1;if(u==="sticky"&&(h=!(0,gt.Wi)(i),h)){const{y:p,h:v}=n.getCCSBound2308(i);d=p-v/2}if(a.type==="wBasket"&&!e.length){var f;((f=n.getRenderableSubHotItems(i)[0])==null?void 0:f.hotAttr.fill.fillIsVisible)||(l.pointerEvents="none")}return{className:s,style:l,...u==="sticky"&&h&&{"sticky-offset":c||0,"origin-top":d,"data-is-sticky":0}}},Uot={design:Rot,preview:r=>{const{widget:t,children:e,treeData:n}=r,{key:i,hotAttr:a,sup:o}=t,{sdkStore:s,isEditingCombo:l,editingPanelCid:u}=n,c=(0,I.useRef)(null),d=(0,I.useMemo)(()=>(0,Xt.Xr)(s,i,l,u).filter(x=>x.interactive),[i,s,a.interactions,l,u]),h=(0,I.useMemo)(()=>Got({widget:t,runtimeInteractions:d,sdkStore:s}),[t,o,d,s]),f=new Set,p=Hot(t,s),{effectStyle:v,duration:g}=(0,Fot.l)(t,s),m=Wot(t.key,s,c);if(p&&(p!=null&&p.transition&&f.add(p.transition),h.style={...h.style,...p}),v&&(v!=null&&v.transition&&f.add(v.transition),h.style={...h.style,...v}),m&&(h.style={...h.style,...m}),f.size>0){const x=Array.from(f),w=s.getScopeTransitionState(s.locUpHotCanvasKey(i));w&&w.state!==Ww.qu.finish&&w.duration>0&&x.unshift("all "+w.duration+"ms linear"),h.style={...h.style,transition:x.join(",")}}const y=(0,I.useMemo)(()=>{if(g>0&&h.style.display==="none")return{style:{...h.style,display:void 0,opacity:0,pointerEvents:"none",visibility:"hidden"},inert:""}},[h.style,g]);return(0,S.jsxs)("div",{ref:c,"data-cid":i,"data-link_cid":d.map(x=>x.key).join(","),...h,...y,children:[e,d.length?(0,S.jsx)(Vot,{widget:t,treeData:n,runtimeInteractions:d}):null]},a.fixPosTo)},snapshot:r=>{const{widget:t,children:e,treeData:{sdkStore:n}}=r,{key:i,hotAttr:a}=t,{type:o}=a,l=(0,Ql.tZ)({widget:t,sdkStore:n,mode:"snapshot"})?(0,Ql.Yd)(n.getCCSBound2308(i).w):"",u=(o===z.x.Canvas?"":"widget ")+"tree-node "+o+" "+l,c=(0,I.useMemo)(()=>(0,ot.c9)(a,i,n),[t,n]);return(0,S.jsx)("div",{"data-cid":i,className:u,style:c,children:e})}};var Kot=T(27937);const jw=(0,I.memo)(r=>{let{hotItem:t,mode:e,treeData:n}=r;const i=Eot(e)||n,a=i==null?void 0:i.sdkStore,o=(0,I.useRef)(!1),s=(0,I.useMemo)(()=>{var v;if(!a||!(t!=null&&(v=t.sub)!=null&&v.length))return null;const g=e==="design";return a.getRenderableSubHotItems(t,g,g).map(m=>(0,S.jsx)(jw,{hotItem:m,mode:e,treeData:i},m.key))},[t,e,a]);if(!t||!i)return null;const{hotAttr:l}=t,{type:u,isVisible:c}=l;if(u===z.x.WSticky&&e==="preview")return null;if(c===!1&&!o.current){var d,h;if(e!=="preview"||!(a!=null&&(d=a.getWidgetVisible)!=null&&d.call(a,t.key))&&((a==null||(h=a.getWidgetTransformRecords)==null||(h=h.call(a,t.key))==null?void 0:h.duration)||0)===0)return null}const f=Uot[e],p=Dot(u);return!f||!p?null:u===z.x.Bunch?s:(!o.current&&e==="preview"&&(o.current=!0),(0,S.jsx)(Kot.tH,{fallback:(0,S.jsx)(jw,{hotItem:t,mode:e,treeData:i}),onError:v=>console.error("[WidgetError] type "+u,v),children:(0,S.jsx)(f,{widget:t,treeData:i,children:(0,S.jsx)(p,{mode:e,widget:t,treeData:i,children:s})})}))}),Yot=jw},70422:(oe,Ct,T)=>{"use strict";T.d(Ct,{CY:()=>q,Eb:()=>ot,Xf:()=>V,bC:()=>O,fv:()=>z,g8:()=>Z,nH:()=>$,nh:()=>I,p$:()=>ht,sx:()=>ft,tS:()=>D,zX:()=>F,zg:()=>S});const F=K=>K.editor.state.table.selectTableCellInfo,Z=K=>K.editor.state.table.selectCopyCell,I=K=>K.editor.state.table.widget,z=K=>K.editor.state.table.isResizeCell,D=K=>K.editor.state.table.isEditTable,V=K=>K.editor.state.table.isShowTableMenu,ht=K=>K.editor.state.table.isMouseDownInTable,ot=K=>K.editor.state.table.tableCopyInfo,S=K=>K.editor.state.table.inspectTableInfo,O=K=>K.editor.state.table.isShowTableDragMenu,$=K=>K.editor.state.table.tableRightClickDragInfo,q=K=>K.editor.state.table.isMovingInDrag,ft=K=>K.editor.state.table.isDragging},71882:(oe,Ct,T)=>{var F=T(33398),Z=T(10552),I=T(36859),z=T(41391);function D(V,ht,ot){if(!z(ot))return!1;var S=typeof ht;return(S=="number"?Z(ot)&&I(ht,ot.length):S=="string"&&ht in ot)?F(ot[ht],V):!1}oe.exports=D},72064:(oe,Ct,T)=>{"use strict";T.d(Ct,{Ay:()=>yt,EW:()=>et,yV:()=>at});var F=T(95549),Z=T(62280),I=T(9680),z=T(75006),D=T(50060),V=T(20089),ht=T(31561),ot=T(85449),S=T(16454),O=T(45611),$=function(rt){return rt[rt.prepare=0]="prepare",rt[rt.animate=1]="animate",rt[rt.finish=2]="finish",rt}($||{});const q=(rt,ct,G)=>{if(rt===ct)return;G.set(ct,rt);const B=new Map;sdkStore.getSubHotItemList(rt).forEach(W=>{if((0,O.SB)(W))return;const ut=W.hotAttr.type+"-"+W.hotAttr.name,H=B.get(ut)||[];B.has(ut)||B.set(ut,H),H.push(W.key)}),sdkStore.getSubHotItemList(ct).forEach(W=>{if((0,O.SB)(W))return;const ut=W.hotAttr.type+"-"+W.hotAttr.name,H=B.get(ut)||[];if(H.length&&!["wBasket","wMind"].includes(W.hotAttr.type)){const[N,...Y]=H;B.set(ut,Y),q(N,W.key,G)}})},ft=function(rt,ct){return ct===void 0&&(ct=new Set),ct.add(rt),sdkStore.getSubHotItemList(rt).forEach(G=>{if(["wBasket","wMind"].includes(G.hotAttr.type))return ct.add(G.key);(0,O.SB)(G)||ft(G.key,ct)}),ct},K=(rt,ct,G)=>{const B=ct.widgetVisibilityRecords.has(rt),W={};if(B){var ut;const Y=(ut=ct.widgetVisibilityRecords.get(rt))==null?void 0:ut.visible;if(G!=null&&G.isPrepareTransition){var H;W.isVisible=!0;const gt=(H=ct.getSnapshotItem(rt))==null?void 0:H.hotAttr.opacity;gt!==void 0&&(W.opacity=gt)}else W.isVisible=Y,Y||(W.opacity=0)}const{transform:N}=ct.getWidgetTransformRecords(rt)||{};return W.runnerTransform=N,W},it=(rt,ct,G)=>{if(!rt)return;const B={...rt,hotAttr:{...rt.hotAttr}};return ct&&Object.assign(B.hotAttr,ct),G&&(B.sub=G),B};let nt=null;class vt extends z.A{constructor(ct,G,B){var W,ut;B===void 0&&(B=z.A.MODE.preview),super(ct,G,B),W=this,(0,F.A)(this,"transitionStates",new Map),(0,F.A)(this,"transitionScopes",new Map),(0,F.A)(this,"widgetVisibilityRecords",new Map),(0,F.A)(this,"widgetTransformRecords",new Map),(0,F.A)(this,"widgetAnimationRecords",new Map),(0,F.A)(this,"getSubHotItemList",H=>{const N=this.getHotItem(H);return N===void 0?[]:N.sub.map(Y=>this.getHotItem(Y))}),(0,F.A)(this,"subscribeExternalStore",()=>{var H,N;(H=(N=this.sdkStore).subscribe)==null||H.call(N,this.changeEffect);const Y=this.variableStore.subscribe(gt=>{if(!gt)return;MB.runnerController.listenerHandler.updateCurWItemSnapshot();const pt=(0,D.GO)(gt.key,D.zN.refVars);pt.length&&(this.pendingChangedKeys(pt),this.emitFlatChange(pt,{simply:!0})),MB.runnerController.listenerHandler.varChangeItaListener({newVarItem:gt})});return()=>{var gt,pt;(gt=(pt=this.sdkStore).unsubscribe)==null||gt.call(pt,this.changeEffect),Y()}}),(0,F.A)(this,"changeEffect",H=>{let{type:N,payload:Y}=H;if(N!==ht.a)return;const{changedKeyList:gt=[]}=Y;this.changeTransformBySdk(gt),gt.some(Mt=>{var At;return((At=this.sdkStore.getHotItem(Mt))==null?void 0:At.hotAttr.type)===V.x.Var})&&this.variableStore.syncSdkStoreVariables();const Tt=(0,ot.ll)(),{activePageKey:mt,activeCanvasKey:lt}=(0,S.mf)(Tt),kt=(0,S.hM)(Tt)?mt:lt;gt.filter(Mt=>{var At;return((At=this.sdkStore.getHotItem(Mt))==null?void 0:At.hotAttr.type)===V.x.WBasket}).length&&(MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:under",payload:{key:kt}}),MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:in:overlay"})),Y&&MB.runnerController.listenerHandler.updateListenerTriggersBySDK()}),(0,F.A)(this,"recordTransitionScope",(H,N)=>{this.deleteTransitionScope(H),this.deleteTransitionScope(N);const Y=new Map,gt=ft(H),pt=ft(N);q(H,N,Y),this.transitionScopes.set(N,{fromKeys:gt,toKeys:pt,pairedKeys:Y})}),(0,F.A)(this,"getScopeTransitionState",H=>this.transitionStates.get(H)),(0,F.A)(this,"setScopeTransitionState",(H,N,Y)=>{var gt;let pt=((gt=this.getScopeTransitionState(H))==null?void 0:gt.endTime)||0;N===$.prepare&&(pt=new Date().getTime()+Y),this.transitionStates.set(H,{state:N,duration:Y,endTime:pt})}),(0,F.A)(this,"deleteTransitionScope",H=>{this.transitionStates.delete(H),this.transitionScopes.delete(H)}),(0,F.A)(this,"clearTransitionScope",()=>{this.transitionStates.clear(),this.transitionScopes.clear()}),(0,F.A)(this,"_getOriginHotItem",function(H,N){var Y,gt;N===void 0&&(N={isSdk:!0});const pt=N.isSdk?W.sdkStore.getHotItem(H):W.hotItemSnapshot.get(H)||W.sdkStore.getHotItem(H);if(!pt||(Y=(gt=W.sdkStore).isTrashed)!=null&&Y.call(gt,H))return;let Tt=(0,I.VX)(pt.hotAttr,W.variableMap,H);if(W.widgetVisibilityRecords.has(H)){var mt,lt;Tt={...Tt,isVisible:(mt=(lt=W.widgetVisibilityRecords.get(H))==null?void 0:lt.visible)!=null?mt:Tt.isVisible}}return{...pt,hotAttr:Tt}}),(0,F.A)(this,"getTransitionHotItem",H=>{const N=this.getTransitionScope(H);let Y=this.getSnapshotItem(H);if(!Y)return this.sdkStore.getHotItem(H);if(!N)return Y;Y={...Y,hotAttr:(0,I.VX)(Y.hotAttr,this.variableMap,H)};const gt=this.transitionStates.get(N),{fromKeys:pt,toKeys:Tt,pairedKeys:mt}=this.transitionScopes.get(N),lt=mt.get(H),A=pt.has(H),kt=Tt.has(H);if((gt==null?void 0:gt.state)===$.prepare)if(lt){var _t,Mt,At;const Vt=this.getSnapshotItem(lt),Wt=(0,I.VX)(Vt==null?void 0:Vt.hotAttr,this.variableMap,lt),Ot=K(lt,this),Dt=Array.from(mt.values()),Ht=this.widgetVisibilityRecords.has(H),tt=!!(Wt!=null&&Wt.isVisible)!=!!Y.hotAttr.isVisible;Y=it(Y,{...Wt,...tt||Ht?{isVisible:!0,opacity:Wt!=null&&Wt.isVisible?Wt==null?void 0:Wt.opacity:0}:void 0,interactions:(_t=["rResBunch","rResExt"].includes((Mt=Y)==null?void 0:Mt.hotAttr.type)?Vt:Y)==null?void 0:_t.hotAttr.interactions,...Ot,zIndex:(At=Y)==null?void 0:At.hotAttr.zIndex},[...Y.sub,...(Vt==null?void 0:Vt.sub)||[]].filter(Pt=>!Dt.includes(Pt)))}else kt&&(Y=it(Y,{opacity:0})),Y=it(Y,K(H,this,{isPrepareTransition:!0}));else if((gt==null?void 0:gt.state)===$.animate)if(lt){var jt,Nt;const Vt=this.getSnapshotItem(lt),Wt=Array.from(mt.values()),Ot=this.widgetVisibilityRecords.has(H);Y=it(Y,{...!Ot&&{isVisible:!0},opacity:(jt=Y.hotAttr)!=null&&jt.isVisible?(Nt=Y.hotAttr)==null?void 0:Nt.opacity:0},[...Y.sub,...(Vt==null?void 0:Vt.sub)||[]].filter(Dt=>!Wt.includes(Dt)))}else A&&(Y=it(Y,{opacity:0}));else if((gt==null?void 0:gt.state)===$.finish)return it(Y,K(H,this));return Y}),(0,F.A)(this,"getOverwritedCalcCSSBound",H=>(0,Z.Ge)(this.getTransitionHotItem(H),this.getTransitionHotItem,flatStore.getOCT)),(0,F.A)(this,"getCCSBound2308",H=>{const N=this.getTransitionScope(H);let Y=H;if(N){const gt=this.transitionStates.get(N),{pairedKeys:pt}=this.transitionScopes.get(N),Tt=pt.get(H);(gt==null?void 0:gt.state)===$.prepare&&Tt&&(Y=Tt)}return this.getOverwritedCalcCSSBound(Y)}),(0,F.A)(this,"overwriteItem",H=>{MB.runnerController.listenerHandler.updateCurWItemSnapshot();const{key:N,hotAttr:Y,sub:gt}=H,pt=this.getSnapshotItem(N);pt&&(this.updateItem(N,{...pt,hotAttr:{...pt.hotAttr,...Y},sub:gt||pt.sub},{simply:!0}),MB.runnerController.listenerHandler.wAttrChangeItaListener())}),(0,F.A)(this,"triggerSnapshotChangeWithCanvas",H=>{const{mainActiveKey:N,overlayCanvasKeys:Y}=MB.runnerController.getAllActiveKeys(),gt=this.sdkStore.findUpHotItemList(H).reduce((pt,Tt)=>(Tt&&Tt.hotAttr.type===V.x.Canvas&&pt.add(Tt.key),pt),new Set([N,...Y]));this.triggerSnapshotChange([H,...gt],!0)}),(0,F.A)(this,"setWidgetVisible",function(H,N,Y){Y===void 0&&(Y=0),W.sdkStore.isActiveKey(H)&&(W.widgetVisibilityRecords.set(H,{visible:N,duration:Y,endTime:new Date().getTime()+Y,reset:()=>{W.widgetVisibilityRecords.delete(H)}}),W.overwriteItem({key:H,hotAttr:{isVisible:N}}),W.triggerSnapshotChangeWithCanvas(H))}),(0,F.A)(this,"getWidgetVisible",H=>this.widgetVisibilityRecords.get(H)),(0,F.A)(this,"setWidgetTransformRecords",(H,N)=>this.widgetTransformRecords.set(H,{...this.getWidgetTransformRecords(H),...N})),(0,F.A)(this,"getWidgetTransformRecords",H=>this.widgetTransformRecords.get(H)),(0,F.A)(this,"setWidgetRunnerTransform",H=>{let{key:N,transform:Y,duration:gt=0,forceUpdate:pt=!1}=H;!this.sdkStore.isActiveKey(N)||!Y||(Y&&this.overwriteItem({key:N,hotAttr:{runnerTransform:Y}}),this.setWidgetTransformRecords(N,{transform:Y,duration:gt}),pt&&this.triggerSnapshotChangeWithCanvas(N))}),(0,F.A)(this,"changeTransformBySdk",H=>{!H||H.length===0||H.forEach(N=>{var Y,gt;const pt=(Y=this.sdkStore.getHotItem(N))==null||(Y=Y.hotAttr)==null?void 0:Y.runnerTransform;if(!pt)return;const Tt=((gt=sdkStore.getHotItem(N))==null||(gt=gt.hotAttr)==null?void 0:gt.r)||0;pt.rotateZ!==Tt&&this.setWidgetRunnerTransform({key:N,transform:{...pt,rotateZ:Tt}})})}),(0,F.A)(this,"setWidgetAnimationRecords",(H,N)=>{if(!this.sdkStore.isActiveKey(H)||!N)return;const Y=()=>this.widgetAnimationRecords.delete(H);this.widgetAnimationRecords.set(H,{...N,delAni:Y}),this.triggerSnapshotChangeWithCanvas(H)}),(0,F.A)(this,"getWidgetAnimationRecords",H=>this.widgetAnimationRecords.get(H)),(0,F.A)(this,"deleteUnderWidgetAnimationRecords",H=>{var N;H&&(this.widgetAnimationRecords.delete(H),(N=this.hotItemSnapshot.get(H))==null||N.sub.forEach(Y=>this.deleteUnderWidgetAnimationRecords(Y)))}),(0,F.A)(this,"clearWidgetAnimationRecords",()=>this.widgetAnimationRecords.clear()),(0,F.A)(this,"resetCurWStatus",(H,N)=>{const Y=gt=>{this.widgetVisibilityRecords.delete(gt),this.widgetTransformRecords.delete(gt),N&&N(gt)};this.clearSubTree(H,Y)}),(0,F.A)(this,"resetCurWScroll",(H,N)=>{var Y;(Y=this.hotItemSnapshot.get(H))==null||Y.sub.forEach(gt=>{N&&N(gt)})}),(0,F.A)(this,"resetRunnerState",()=>{this.widgetVisibilityRecords.clear(),this.widgetTransformRecords.clear(),this.clearWidgetAnimationRecords(),this.refreashSnapshot(),this.clearTransitionScope()}),this.runnerMixinSdkStoreFuncs(),this.unsubscribeExternalStore=this.subscribeExternalStore(),(ut=this.yieldGate)==null||ut.expireImmediately(),nt=this,MB.runnerController.execRunnerTreeConstructorCallback()}get variableStore(){return MB.runnerController.variableStore}get variableMap(){return this.variableStore.getVariableMap()}runnerMixinSdkStoreFuncs(){Object.assign(this,{getSubHotItemList:this.getSubHotItemList})}getTransitionScope(ct){if(!(!this.transitionScopes.size||!this.transitionStates.size))return this.transitionScopes.has(ct)?ct:Array.from(this.transitionScopes.keys()).find(G=>{const{fromKeys:B,toKeys:W}=this.transitionScopes.get(G);return B.has(ct)||W.has(ct)})}beforeDestory(){this.clearTransitionScope(),this.widgetVisibilityRecords.clear(),this.widgetTransformRecords.clear(),this.unsubscribeExternalStore(),nt=null}}const at=()=>nt||sdkStore,et=()=>nt,yt=/^(183|477)$/.test(T.j)?null:vt},72795:(oe,Ct,T)=>{"use strict";function F(G){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},F(G)}Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.Dots=void 0;var Z=D(T(38502)),I=D(T(53732)),z=T(11587);function D(G){return G&&G.__esModule?G:{default:G}}function V(G,B){var W=Object.keys(G);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(G);B&&(ut=ut.filter(function(H){return Object.getOwnPropertyDescriptor(G,H).enumerable})),W.push.apply(W,ut)}return W}function ht(G){for(var B=1;B<arguments.length;B++){var W=arguments[B]!=null?arguments[B]:{};B%2?V(Object(W),!0).forEach(function(ut){ot(G,ut,W[ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(W)):V(Object(W)).forEach(function(ut){Object.defineProperty(G,ut,Object.getOwnPropertyDescriptor(W,ut))})}return G}function ot(G,B,W){return(B=q(B))in G?Object.defineProperty(G,B,{value:W,enumerable:!0,configurable:!0,writable:!0}):G[B]=W,G}function S(G,B){if(!(G instanceof B))throw new TypeError("Cannot call a class as a function")}function O(G,B){for(var W=0;W<B.length;W++){var ut=B[W];ut.enumerable=ut.enumerable||!1,ut.configurable=!0,"value"in ut&&(ut.writable=!0),Object.defineProperty(G,q(ut.key),ut)}}function $(G,B,W){return B&&O(G.prototype,B),W&&O(G,W),Object.defineProperty(G,"prototype",{writable:!1}),G}function q(G){var B=ft(G,"string");return F(B)=="symbol"?B:B+""}function ft(G,B){if(F(G)!="object"||!G)return G;var W=G[Symbol.toPrimitive];if(W!==void 0){var ut=W.call(G,B||"default");if(F(ut)!="object")return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(G)}function K(G,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(B&&B.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),B&&it(G,B)}function it(G,B){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(W,ut){return W.__proto__=ut,W},it(G,B)}function nt(G){var B=et();return function(){var W,ut=yt(G);if(B){var H=yt(this).constructor;W=Reflect.construct(ut,arguments,H)}else W=ut.apply(this,arguments);return vt(this,W)}}function vt(G,B){if(B&&(F(B)=="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return at(G)}function at(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function et(){try{var G=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(B){}return(et=function(){return!!G})()}function yt(G){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},yt(G)}var rt=function(B){var W;return B.infinite?W=Math.ceil(B.slideCount/B.slidesToScroll):W=Math.ceil((B.slideCount-B.slidesToShow)/B.slidesToScroll)+1,W},ct=Ct.Dots=function(G){K(W,G);var B=nt(W);function W(){return S(this,W),B.apply(this,arguments)}return $(W,[{key:"clickHandler",value:function(H,N){N.preventDefault(),this.props.clickHandler(H)}},{key:"render",value:function(){for(var H=this.props,N=H.onMouseEnter,Y=H.onMouseOver,gt=H.onMouseLeave,pt=H.infinite,Tt=H.slidesToScroll,mt=H.slidesToShow,lt=H.slideCount,A=H.currentSlide,kt=rt({slideCount:lt,slidesToScroll:Tt,slidesToShow:mt,infinite:pt}),_t={onMouseEnter:N,onMouseOver:Y,onMouseLeave:gt},Mt=[],At=0;At<kt;At++){var jt=(At+1)*Tt-1,Nt=pt?jt:(0,z.clamp)(jt,0,lt-1),Vt=Nt-(Tt-1),Wt=pt?Vt:(0,z.clamp)(Vt,0,lt-1),Ot=(0,I.default)({"slick-active":pt?A>=Wt&&A<=Nt:A===Wt}),Dt={message:"dots",index:At,slidesToScroll:Tt,currentSlide:A},Ht=this.clickHandler.bind(this,Dt);Mt=Mt.concat(Z.default.createElement("li",{key:At,className:Ot},Z.default.cloneElement(this.props.customPaging(At),{onClick:Ht})))}return Z.default.cloneElement(this.props.appendDots(Mt),ht({className:this.props.dotsClass},_t))}}]),W}(Z.default.PureComponent)},74945:(oe,Ct,T)=>{"use strict";T.d(Ct,{CP:()=>z,Fc:()=>ht,Q1:()=>V,Zn:()=>ot,e8:()=>D,n9:()=>S,rP:()=>I});var F=T(12211),Z=T(25997);const I=O=>O.editor.state.elbow.isDraggingElbow,z=O=>O.editor.state.elbow.isDraggingElbowText,D=O=>O.editor.state.elbow.highlightAnchor,V=O=>O.editor.state.elbow.isInElbowMode,ht=O=>O.editor.state.elbow.popupWorldPos,ot=O=>O.editor.state.elbow.activeElbowKey,S=(0,F.Mz)([I,ot,Z.UV,Z.RX],(O,$,q)=>!O||!$||!q?null:q.getSnapshotItem($))},75006:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>Tt,z:()=>G});var F=T(95549),Z=T(31561),I=T(70248),z=T(20089),D=T(50060),V=T(74222),ht=T(19396),ot=T.n(ht),S=T(58156),O=T(85449),$=T(62280),q=T(14166);const ft=()=>{const mt=(0,O.dP)()||{},{common:lt,dom:A,current:kt}=mt;if(!lt||!A||!kt)return;const{scale:_t,offset:Mt}=lt,{top:At,left:jt,width:Nt,height:Vt}=A.viewportRect||{};if(!Nt||!Vt)return;const Wt=Math.round(Mt.x),Ot=Math.round(Mt.y),Dt=At+Vt/2+Ot,Ht=window.innerWidth/2+Wt,Pt=Math.ceil(4/_t*10)*10,zt=Math.floor((jt-Ht)/_t/Pt)*100*Pt,te=Math.floor((At-Dt)/_t/Pt)*100*Pt,$t=Math.ceil((jt+Nt-Ht)/_t/Pt)*100*Pt,ae=Math.ceil((At+Vt-Dt)/_t/Pt)*100*Pt;return[zt,te,$t,ae]},K=(mt,lt,A)=>{const kt=sdkStore.getRelocateLocalBound(mt,lt),_t=(0,$.Pb)(kt);return(0,q.cj)(_t,A)},it=100,nt=2e3,vt=1e3;class at{constructor(lt,A){var kt=this;(0,F.A)(this,"limitSize",it),(0,F.A)(this,"passedKeySet",new Set),(0,F.A)(this,"p0Key",new Set),(0,F.A)(this,"p2Key",new Set),(0,F.A)(this,"nextTimer",null),(0,F.A)(this,"longTimer",null),(0,F.A)(this,"expireTimer",null),(0,F.A)(this,"progressTimer",null),(0,F.A)(this,"expired",!1),(0,F.A)(this,"blocked",!1),(0,F.A)(this,"totalSize",0),(0,F.A)(this,"progressListener",[]),(0,F.A)(this,"viewportTimeStamp",0),(0,F.A)(this,"progressVisible",!1),(0,F.A)(this,"onProgress",_t=>(this.progressListener.push(_t),()=>{const Mt=this.progressListener.indexOf(_t);Mt>-1&&this.progressListener.splice(Mt,1)})),(0,F.A)(this,"showLoading",ot()(function(_t){var Mt,At;_t===void 0&&(_t=kt.progress),(Mt=window.MB)==null||(At=Mt.notice)==null||At.call(Mt,{text:"\u753B\u5E03\u7EC4\u4EF6\u52A0\u8F7D\u4E2D "+_t+"%",type:"loading",duration:500})},5)),this.rootKey=lt,this.totalSize=(0,S.j)(lt),this.totalSize<vt&&(this.expired=!0),this.progressVisible=!this.expired,this.passCallback=A}expireImmediately(){this.expired=!0,this.passedKeySet.clear(),this.expireTimer&&clearTimeout(this.expireTimer),this.expireTimer=null}blockAll(lt){this.blocked=lt}passable(lt){var A;return this.totalSize<vt||(A=(0,O.dP)())!=null&&(A=A.editor)!=null&&(A=A.state)!=null&&(A=A.mode)!=null&&(A=A.selections)!=null&&A.includes(lt)?!0:this.blocked?!1:this.checkInViewport(lt)?(this.p2Key.has(lt)&&this.p2Key.delete(lt),this.expired?!0:this.passedKeySet.size>=this.limitSize?(this.yieldP0(lt),!1):!0):(this.yieldP2(lt),!1)}pass(lt){this.passedKeySet.add(lt),this.progressVisible&&this.triggerProgress()}yieldP0(lt){this.p0Key.add(lt),this.waitP0()}yieldP2(lt,A){A===void 0&&(A=1e3),this.p2Key.add(lt),this.p0Key.has(lt)&&this.p0Key.delete(lt),this.waitP2(A)}waitP0(){this.expired||this.nextTimer||(this.nextTimer=setTimeout(()=>{this.limitSize+=nt,this.nextTimer=null;const lt=[];Array.from(this.p0Key).forEach(A=>{this.checkInViewport(A)?lt.push(A):this.p2Key.add(A)}),this.p0Key.clear(),lt.length&&this.passCallback(lt),this.p2Key.size&&this.waitP2(1e3)}))}waitP2(lt){this.expired||this.longTimer||(this.longTimer=setTimeout(()=>{this.longTimer=null;const A=[];this.viewport=ft(),Array.from(this.p2Key).forEach(kt=>{this.checkInViewport(kt)&&(A.push(kt),this.p2Key.delete(kt))}),A.length&&this.passCallback(A),this.p2Key.size&&this.waitP2(lt)},lt))}checkInViewport(lt){var A;if(MB.getScale()<30||(A=(0,O.dP)())!=null&&(A=A.editor)!=null&&(A=A.state)!=null&&(A=A.mode)!=null&&(A=A.selections)!=null&&A.includes(lt))return!0;if((!this.viewport||Date.now()-this.viewportTimeStamp>500)&&(this.viewport=ft()),this.viewport){var _t,Mt;this.viewportTimeStamp=Date.now();const At=((_t=sdkStore.getHotItem(this.rootKey))==null?void 0:_t.sub)||[],jt=(Mt=sdkStore.getHotItem(lt))==null?void 0:Mt.hotAttr;if((jt==null?void 0:jt.type)==="rResCanvas"&&jt!=null&&jt.isClipContent&&At.includes(lt))return K(lt,this.rootKey,this.viewport)}return!0}get progress(){const lt=this.passedKeySet.size,A=Math.round(lt/this.totalSize*100);return Math.min(A,100)}triggerProgress(lt){lt===void 0&&(lt=this.progress),!this.expired&&this._preProgress!==lt&&this.showLoading(lt),this._preProgress=lt,lt>=100&&(this.progressVisible=!1,this._preProgress=void 0,this.expireImmediately()),this.progressTimer&&clearTimeout(this.progressTimer),this.progressTimer=setTimeout(()=>{this.progressVisible=!1,this.progressTimer=null,this._preProgress=void 0},5e3),this.progressListener.forEach(A=>{A(lt)})}get isLoading(){return this.progress<100}reset(){this.limitSize=nt,this.passedKeySet=new Set,this.p0Key=new Set,this.nextTimer=null}destory(){this.passedKeySet.clear(),this.p0Key.clear(),this.progressListener=[],this.nextTimer&&clearTimeout(this.nextTimer),this.expireTimer&&clearTimeout(this.expireTimer)}}var et=T(68818),yt=T(9680),rt=T(45611),ct=T(52563);const G=function(mt,lt,A){return A===void 0&&(A=sdkStore),B(mt,kt=>lt.includes(kt),A)},B=function(mt,lt,A){A===void 0&&(A=sdkStore);let kt=mt,_t=255;for(;kt;){var Mt,At,jt;if(lt(kt))return!0;if(kt=(Mt=A.getHotItem(kt))==null?void 0:Mt.sup,!kt||W(kt)||(At=(jt=A).isTrashed)!=null&&At.call(jt,kt)||_t--<=0)return!1}},W=mt=>mt&&mt[0]==="@",ut=[V.W4,V.fW,V.YZ],H=[...ut,V.JC,V.fu,V.EM],N=(mt,lt)=>mt&&mt.hotAttr.type===lt,Y=mt=>N(mt,z.x.WBasket)&&mt.hotAttr.basket==="bMuban",gt=()=>{const mt=new URLSearchParams(location.search);if(mt.get("view_mode")!=="device")return null;const A=mt.get("screen"),kt=mt.get("canvasId");return{screenId:A,canvasId:kt}},pt={design:"design",preview:"preview",readonly:"readonly",snapshot:"snapshot"};class Tt{constructor(lt,A,kt){if(lt===void 0&&(lt=sdkStore),kt===void 0&&(kt=pt.design),(0,F.A)(this,"hotItemSnapshot",new Map),(0,F.A)(this,"sdkStoreChangeListeners",new Set),(0,F.A)(this,"subscribeListeners",new Set),(0,F.A)(this,"isActived",!0),(0,F.A)(this,"isRemotePatch",!1),(0,F.A)(this,"isHtmlZip",(0,et.FM)()),(0,F.A)(this,"changedKeySet",new Set),(0,F.A)(this,"buttonNodes",new Map),(0,F.A)(this,"mindTrees",new Map),(0,F.A)(this,"flatChangeListener",Nt=>{let{type:Vt,payload:Wt}=Nt;if(Vt!==Z.a)return;const{changedKeyList:Ot,attrDiffList:Dt}=Wt;this.pendingChangedKeys(Ot,Dt),this.emitFlatChange(Ot)}),(0,F.A)(this,"updateRootKey",(Nt,Vt)=>{!Nt||this.rootKey===Nt||(this.rootKey=Nt,Vt&&this.hotItemSnapshot.clear(),this.emitSnapshotChanged())}),(0,F.A)(this,"getRootSnapshot",()=>{if(this.rootKey)return this.getHotItem(this.rootKey)}),(0,F.A)(this,"externalSubscribe",Nt=>(this.subscribeListeners.add(Nt),()=>{this.subscribeListeners.delete(Nt)})),(0,F.A)(this,"emitSnapshotChanged",Nt=>{this.subscribeListeners.forEach(Vt=>Vt(Nt))}),(0,F.A)(this,"switch",Nt=>{this.isActived=Nt}),(0,F.A)(this,"addSdkStoreChangeListener",Nt=>(this.sdkStoreChangeListeners.add(Nt),()=>{this.sdkStoreChangeListeners.delete(Nt)})),(0,F.A)(this,"emitSdkStoreChange",Nt=>{this.sdkStoreChangeListeners.forEach(Vt=>Vt(Nt))}),(0,F.A)(this,"triggerSnapshotChange",(Nt,Vt)=>{const Wt=new Set;Nt.forEach(Ot=>{Wt.add(typeof Ot=="string"?Ot:Ot.key)}),this.pendingChangedKeys([...Wt]),this.updateSnapshot(this.changedKeySet,{forceShallow:!0,simply:Vt}),typeof Nt[0]=="object"&&Nt.forEach(Ot=>{this.updateItem(Ot.key,Ot)}),this.changedKeySet.clear(),this.emitSnapshotChanged(Array.from(Wt))}),(0,F.A)(this,"getMktCidEffectWidgetKeys",Nt=>{var Vt;return((Vt=this.mktCidRefMap)==null?void 0:Vt.getEffectKeys(Nt).filter(Wt=>this.hotItemSnapshot.has(Wt)))||[]}),(0,F.A)(this,"getHotItem",Nt=>(this.getTransitionHotItem||this.getSnapshotItem)(Nt)||this.sdkStore.getHotItem(Nt)),(0,F.A)(this,"_getOriginHotItem",(Nt,Vt)=>{var Wt,Ot;if(!((Wt=(Ot=this.sdkStore).isTrashed)!=null&&Wt.call(Ot,Nt)))return this.sdkStore.getHotItem(Nt)}),(0,F.A)(this,"getSnapshotItem",Nt=>{var Vt,Wt;let Ot=this.hotItemSnapshot.get(Nt);return Nt&&!Ot&&!((Vt=(Wt=this.sdkStore).isTrashed)!=null&&Vt.call(Wt,Nt))&&(Ot=this._getOriginHotItem(Nt),Ot&&this.updateItem(Nt,Ot),Ot=this.hotItemSnapshot.get(Nt)),Ot}),(0,F.A)(this,"getSnapshotDiffedHotItem",Nt=>{const Vt=this.getSnapshotItem(Nt),Wt=this._getOriginHotItem(Nt);return Wt===Vt?[]:[Vt,Wt]}),(0,F.A)(this,"clearSubTree",(Nt,Vt)=>{this.deleteItem(Nt,Vt)}),(0,F.A)(this,"getRenderableSubHotItems",(Nt,Vt,Wt)=>{var Ot;if(typeof Nt=="string"&&(Nt=(this.getTransitionHotItem||this.getSnapshotItem)(Nt)),!((Ot=Nt)!=null&&(Ot=Ot.sub)!=null&&Ot.length))return[];let Dt=[];const Ht=Vt&&this.yieldGate;if(Ht&&!this.yieldGate.passable(Nt.key))return Dt;const tt={};return Nt.sub.forEach(Pt=>{const zt=(this.getTransitionHotItem||this.getSnapshotItem)(Pt);if(!zt)return;const{bunch:te,type:$t,refRBPageKey:ae="",refContentKey:Xt=""}=zt.hotAttr;if(te!==z.x.RbPage){if($t===z.x.WBasket){if(!this.sdkStore.isActiveKey(ae)||!this.sdkStore.isActiveKey(Xt))return;const ve=this.sdkStore.getHotItem(ae);if(!(ve!=null&&ve.sub.includes(Xt)))return;const Se=this.sdkStore.getHotItem(Xt);if((Se==null?void 0:Se.hotAttr.type)!==z.x.Canvas)return}(0,rt.SB)(zt,this.sdkStore)||(tt[zt.key]=zt,Ht&&this.yieldGate.pass(Pt))}}),Dt=Object.values(tt),Wt||Dt.sort((Pt,zt)=>N(Pt,z.x.WMindNode)?Pt.hotAttr.order-zt.hotAttr.order:zt.hotAttr.zIndex-Pt.hotAttr.zIndex),Dt}),(0,F.A)(this,"destory",()=>{var Nt,Vt,Wt,Ot,Dt,Ht,tt;(Nt=this.beforeDestory)==null||Nt.call(this),(Vt=(Wt=this.sdkStore).unsubscribe)==null||Vt.call(Wt,this.flatChangeListener),this.sdkStoreChangeListeners.clear(),this.subscribeListeners.clear(),this.hotItemSnapshot.clear(),this.mindTrees.clear(),this.buttonNodes.clear(),(Ot=this.yieldGate)==null||Ot.destory(),(Dt=this.itaRefMap)==null||Dt.clear(),(Ht=this.mktCidRefMap)==null||Ht.clear(),(tt=this.revertRemoteListener)==null||tt.call(this)}),this.rootKey=A,this.sdkStore=lt,this.mode=kt,this.mixinSdkStoreFuncs(),!this.isHtmlZip&&this.mode!==pt.snapshot){var _t,Mt;(_t=(Mt=lt).subscribe)==null||_t.call(Mt,this.flatChangeListener),this.overrideRemoteListener()}if(this.mode!==pt.snapshot&&this.mode!==pt.preview&&(this.yieldGate=new at(this.rootKey,this.triggerSnapshotChange)),gt()&&this.mode!==pt.preview){var jt;(jt=this.yieldGate)==null||jt.blockAll(!0)}this.mode!==pt.preview&&(this.itaRefMap=(0,ct.FE)()),(this.mode===pt.design||this.mode===pt.preview)&&(this.mktCidRefMap=(0,ct.Vo)())}get isRendering(){var lt;return(lt=this.yieldGate)==null?void 0:lt.isLoading}mixinSdkStoreFuncs(){Object.assign(this,{...this.sdkStore,getHotItem:this.getHotItem})}overrideRemoteListener(){if(this.mode===pt.design||this.mode===pt.readonly){const{rootSdk:lt,userSdk:A,orgSdk:kt}=globalThis;let _t=lt;if(A&&this.sdkStore===A.sdkStore?_t=A:kt&&this.sdkStore===kt.sdkStore&&(_t=kt),!_t.fssDat||!_t.sdkStore)return;_t.fssDat.useExtORPL(Mt=>{this.isRemotePatch=Mt.length>0,_t.sdkStore.onRemotePatchList(Mt),this.isRemotePatch=!1}),this.revertRemoteListener=()=>{!_t.fssDat||!_t.sdkStore||_t.fssDat.useExtORPL(_t.sdkStore.onRemotePatchList)}}}pendingChangedKeys(lt,A){var kt;A===void 0&&(A=[]);const _t=[];let Mt=!1,At=[];const jt=Wt=>{if(this.hotItemSnapshot.has(Wt))return!0;const Ot=this.sdkStore.getHotItem(Wt),Dt=Ot&&ut.includes(Ot.sup)&&(0,D.GO)(Wt,D.zN.refRBPageKey);return Dt&&Dt.length?(Dt.forEach(Ht=>{B(Ht,jt,this.sdkStore)&&At.push(Ht)}),!0):Wt===this.rootKey};let Nt;const Vt=Wt=>this.hotItemSnapshot.has(Wt)&&(this.changedKeySet.add(Wt),Wt===this.rootKey)?[Wt]:(Nt||(Nt=Array.from(this.hotItemSnapshot.keys())),Nt.filter(Ot=>{if(Ot.startsWith("/")&&Ot.endsWith(Wt)||Ot===Wt)return this.changedKeySet.add(Ot),!0}));lt.forEach(Wt=>{if(At=[],this.hotItemSnapshot.has(Wt)){this.changedKeySet.add(Wt);return}const Ot=this.sdkStore.getHotItem(Wt),Dt=(Ot==null?void 0:Ot.hotAttr.type)===z.x.Var;if(Dt&&(Mt=!0),!this.sdkStore.isActiveKey(Wt)){Dt?_t.push(Wt):Vt(Wt);return}if(!(Ot&&H.includes(Ot.sup))){if(Ot.hotAttr.refRBPageKey===this.rootKey){this.changedKeySet.add(this.rootKey);return}B(Wt,jt,this.sdkStore)&&(this.changedKeySet.add(Wt),At.length&&At.forEach(Ht=>{const tt=Vt(Ht);tt.length&&tt.forEach(Pt=>{const zt=(0,I.j_)([Pt,Wt]);this.changedKeySet.add(zt)})}))}}),(kt=A)!=null&&kt.length&&A.forEach(Wt=>{let{type:Ot,key:Dt,attrDiff:Ht}=Wt;Ot==="A"&&Y(this.sdkStore.getHotItem(Dt))&&Object.keys(Ht).forEach(tt=>{if(tt.includes("+")){const Pt=tt.split("+")[1];Pt&&this.changedKeySet.add((0,I.j_)([Dt,Pt]))}})}),this.collectRefWidgets(_t),Mt&&MB.action("settings:update:varList",{varList:(0,yt.pU)()})}emitFlatChange(lt,A){lt.length&&this.isActived&&this.emitSdkStoreChange({changedKeyList:lt,changedKeySet:this.changedKeySet,isRemote:this.isRemotePatch}),this.changedKeySet.size&&(this.updateSnapshot(this.changedKeySet,A),this.isActived&&this.emitSnapshotChanged([...this.changedKeySet]),this.changedKeySet.clear())}getTreeSize(){return this.hotItemSnapshot.size}refreashSnapshot(){this.hotItemSnapshot.clear(),this.emitSnapshotChanged()}updateSnapshot(lt,A){if(!lt.size)return;const kt=new Set;Array.from(lt).forEach(_t=>{var Mt;if(W(_t))return;let At;const jt=this._getOriginHotItem(_t,{isSdk:!(A!=null&&A.simply)});if(!(A!=null&&A.simply)&&(At=this.hotItemSnapshot.get(_t),!jt&&!At)||!this.updateItem(_t,jt,A)||_t===this.rootKey)return;[(Mt=At)==null?void 0:Mt.sup,jt==null?void 0:jt.sup].forEach(Wt=>{Wt&&!this.changedKeySet.has(Wt)&&!W(Wt)&&(kt.add(Wt),this.changedKeySet.add(Wt))})}),kt.size&&this.updateSnapshot(kt,{forceShallow:!0,simply:A==null?void 0:A.simply})}updateItem(lt,A,kt){var _t,Mt;const At=this.hotItemSnapshot.has(lt)||G(lt,[this.rootKey,V.YZ],this.sdkStore);if(!A||(_t=(Mt=this.sdkStore).isTrashed)!=null&&_t.call(Mt,lt))return this.deleteItem(lt),At;if(!At)return!1;const{hotAttr:jt}=A;jt.type===z.x.WMind&&(A={...A,sub:[jt.refContentKey]});const Nt=this.hotItemSnapshot.get(lt);return(kt!=null&&kt.forceShallow||A&&Nt===A||(0,I.OO)(lt)||N(A,z.x.WBasket))&&(A={...A}),N(A,z.x.WBasket)&&!(kt!=null&&kt.simply)&&this.deleteItem(lt),this.hotItemSnapshot.set(lt,A),this.updateDiffedItem(A,Nt),!0}updateDiffedItem(lt,A){var kt;(0,D.pE)(lt.key,void 0),lt!==A&&(this.itaRefMap&&lt.hotAttr.interactions!==(A==null?void 0:A.hotAttr.ineractions)&&this.itaRefMap.update(lt,A),(kt=this.mktCidRefMap)==null||kt.update(lt,A))}collectRefWidgets(lt){Array.from(this.changedKeySet).forEach(kt=>{var _t,Mt;const At=this.sdkStore.getHotItem(kt);if((At==null?void 0:At.hotAttr.type)===z.x.WMindNode){const Vt=this.sdkStore.locUpRBPageKey(kt);if(Vt){const Wt=(0,D.GO)(Vt,D.zN.refRBPageKey);Wt&&Wt.forEach(Ot=>this.changedKeySet.add(Ot))}return}(0,D.vC)([kt],Vt=>{var Wt;const Ot=((Wt=this.sdkStore.getHotItem(Vt))==null?void 0:Wt.hotAttr.type)===z.x.WSticky;return Ot&&this.changedKeySet.add(Vt),Ot});const jt=this.hotItemSnapshot.get(kt);if((_t=(Mt=this.sdkStore).isTrashed)!=null&&_t.call(Mt,kt)||!jt||jt.sup!==(At==null?void 0:At.sup)){var Nt;(Nt=this.itaRefMap)==null||Nt.getEffectKeys(kt).forEach(Vt=>{this.changedKeySet.add(Vt)})}}),lt!=null&&lt.length&&lt.forEach(kt=>{(0,D.GO)(kt,D.zN.interactions).forEach(_t=>{this.changedKeySet.add(_t)})})}deleteItem(lt,A){var kt,_t;const Mt=this.hotItemSnapshot.get(lt);Mt&&((kt=this.itaRefMap)==null||kt.delete(Mt),(_t=this.mktCidRefMap)==null||_t.delete(Mt),this.hotItemSnapshot.delete(lt),A&&A(lt),Mt.sub.forEach(At=>this.deleteItem(At,A)))}refreshMindTrees(){const lt=this.mindTrees.values();for(const A of lt)A==null||A.updateMind()}refreshButtonNodes(){const lt=this.buttonNodes.values();for(const A of lt)A==null||A.updateButton()}beforeDestory(){}}(0,F.A)(Tt,"MODE",pt)},75085:(oe,Ct,T)=>{"use strict";T.d(Ct,{K2:()=>I,l:()=>z});var F=T(16987);const Z=(q,ft)=>{if(q===ft)return!0;if(q.byteLength!==ft.byteLength)return!1;const K=new Uint8Array(q),it=new Uint8Array(ft);for(let nt=0,vt=q.byteLength;nt<vt;nt++)if(K[nt]!==it[nt])return!1;return!0},I=function(q){q===void 0&&(q=[]);const ft=new Uint8Array(q.reduce((it,nt)=>it+nt.byteLength,0));let K=0;return q.forEach(it=>{const{byteLength:nt}=it;ft.set(new Uint8Array(it),K),K+=nt}),ft.buffer},z=function(q,ft,K){return K===void 0&&(K=0),ft.map(it=>{const nt=q.slice(K,K+it);return K+=it,nt})},D=Uint8Array.of(0),V=Uint8Array.of(255,255),ht=(q,ft,K)=>{const it=[];for(;ft<K;ft++)it.push(String.fromCharCode(q.getUint16(2*ft,!1)));return it.join("")},ot=q=>{const ft=I([q.byteLength%2?D:V,q]),K=new DataView(ft),it=[];for(let nt=0,vt=K.byteLength/2;nt<vt;nt+=12288)it.push(ht(K,nt,Math.min(vt,nt+12288)));return it.join("")},S=function(q){q===void 0&&(q="");const ft=new DataView(new ArrayBuffer(2*q.length));for(let K=0,it=q.length;K<it;K++)ft.setUint16(2*K,q.charCodeAt(K),!1);return ft.buffer.slice(ft.getUint8(0)===0?D.byteLength:V.byteLength)},O=q=>{const{buffer:ft,byteOffset:K,byteLength:it}=q;return ft.byteLength===it?ft:ft.slice(K,K+it)},$=(()=>{try{const{crypto:q,isSecureContext:ft}=globalThis,K=async it=>q.subtle.digest("SHA-256",it);if(ft&&q.subtle.digest)return K}catch(q){}try{const{createHash:q}=(0,F.R)("node:crypto"),ft=async K=>{const it=q("sha256").update(Buffer.from(K)).digest();return O(it)};if(q&&q("sha256"))return ft}catch(q){}return async q=>{throw new Error("not supported")}})()},75838:(oe,Ct,T)=>{"use strict";T.d(Ct,{aw:()=>O,kB:()=>S,q0:()=>z});const F=K=>Object.prototype.toString.call(K).slice(8,-1),Z=K=>JSON.stringify(K).slice(1,-1),I=(K,it)=>K==="String"?JSON.stringify(it):K==="Object"?"{"+Z(Object.keys(it))+"}":K==="Array"?it.length<=8?"["+it.map(z).join(", ")+"]":"[#"+it.length+"]":K==="RegExp"?String(it):K.endsWith("Function")?it.name||"anonymous":Z(String(it)),z=K=>{const it=F(K);return"<"+it+"> "+I(it,K)},D=K=>(100*K).toFixed(2)+"%",V=K=>String(Math.floor(K)).padStart(2,"0"),ht=K=>{const it=Math.abs(K);return(K<0?"-":"")+V(it/60)+":"+V(it%60)},ot=K=>{const it=.75*Math.abs(K);return it===0?"0":it<1e-9?(K/1e-12).toFixed(2)+"pico":it<1e-6?(K/1e-9).toFixed(2)+"nano":it<.001?(K/1e-6).toFixed(2)+"micro":it<1?(K/.001).toFixed(2)+"milli":it<1e3?""+(K/1).toFixed(2):it<1e6?(K/1e3).toFixed(2)+"kilo":it<1e9?(K/1e6).toFixed(2)+"mega":it<1e12?(K/1e9).toFixed(2)+"giga":it<1e15?(K/1e12).toFixed(2)+"tera":it<1e18?(K/1e15).toFixed(2)+"peta":(K/1e18).toFixed(2)+"exa"},S=K=>{const it=.75*Math.abs(K);return it<1e3?Math.floor(K)+"ms":it<6e4?(K/1e3).toFixed(2)+"s":it<36e5?(K/6e4).toFixed(2)+"m":it<864e5?(K/36e5).toFixed(2)+"h":(K/864e5).toFixed(2)+"d"},O=K=>{const it=.75*Math.abs(K);return it<1024?""+Math.floor(K):it<1048576?(K/1024).toFixed(2)+"Ki":it<1073741824?(K/1048576).toFixed(2)+"Mi":it<1099511627776?(K/1073741824).toFixed(2)+"Gi":(K/1099511627776).toFixed(2)+"Ti"},$=K=>{let{table:it,padFuncList:nt=[],cellPad:vt=" | ",rowPad:at="\n",widthMaxList:et=it.reduce((yt,rt)=>(rt.forEach((ct,G)=>{yt[G]=Math.max(String(ct).length,yt[G]||0)}),yt),[])}=K;return it.map(yt=>yt.map((rt,ct)=>{const G=String(rt),B=nt[ct],W=et[ct];return B&&B!=="L"?B==="R"?G.padStart(W):B(G,W):G.padEnd(W)}).join(vt)).join(at)},q=function(K,it,nt){it===void 0&&(it=2),nt===void 0&&(nt=" ");const vt=(rt,ct,G,B)=>{if(G>=1&&ct){if(Array.isArray(ct))return et(rt,ct,G,B);if(typeof ct=="object")return at(rt,ct,G,B)}const W=JSON.stringify(ct),ut=W===void 0;return!ut&&rt.push(W),ut},at=(rt,ct,G,B)=>{const W=Object.keys(ct);rt.push("{\n");const ut=rt.length,H=G-1,N=""+B+nt;for(let Y=0,gt=W.length;Y<gt;Y++){const pt=W[Y],Tt=ct[pt],mt=rt.length;rt.push(""),vt(rt,Tt,H,N)?rt.length--:(rt[mt]=""+N+JSON.stringify(pt)+": ",rt.push(",\n"))}rt[rt.length-1]=rt.length===ut?"{}":"\n"+B+"}"},et=(rt,ct,G,B)=>{rt.push("[\n");const W=rt.length,ut=G-1,H=""+B+nt;for(let N=0,Y=ct.length;N<Y;N++){const gt=ct[N];rt.push(H),vt(rt,gt,ut,H)&&rt.push("null"),rt.push(",\n")}rt[rt.length-1]=rt.length===W?"[]":"\n"+B+"]"},yt=[];return vt(yt,K,Math.max(it,0)||0,""),yt.join("")},ft=function(K,it,nt){if(it===void 0&&(it=" "),nt===void 0&&(nt=""),typeof it!="string"||it.length<2)throw new Error("invalid pad: "+String(it));const vt=ct=>{const G=ct[ct.length-1];return G===": "||G==="- "},at=(ct,G,B)=>{const W=F(G);if(W==="Array")return yt(ct,G,B);if(W==="Object")return et(ct,G,B);ct.push(W.endsWith("Function")?W:I(W,G),"\n")},et=(ct,G,B)=>{const W=Object.keys(G);if(W.length===0)return ct.push("{}","\n");vt(ct)&&ct.push("\n");for(let ut=0,H=W.length;ut<H;ut++){const N=W[ut],Y=G[N];ct.push(B,Z(N),": "),at(ct,Y,""+B+it)}},yt=(ct,G,B)=>{if(G.length===0)return ct.push("[]","\n");vt(ct)&&ct.push("\n");for(let W=0,ut=G.length;W<ut;W++){const H=G[W];ct.push(B,"- "),at(ct,H,""+B+it)}},rt=[];return at(rt,K,nt),rt.length--,rt.length===1&&rt.unshift(nt),rt.join("")}},77078:(oe,Ct,T)=>{"use strict";T.d(Ct,{S:()=>F});const F=Z=>{let{arrayLength:I,excludedIntervals:z,appendStyle:D}=Z;const V=[];let ht=0;z.sort((ot,S)=>ot.offset-S.offset);for(const ot of z)ot.offset>ht&&V.push({offset:ht,length:ot.offset-ht,style:D}),ht=ot.offset+ot.length;return ht<I&&V.push({offset:ht,length:I-ht,style:D}),V}},77670:(oe,Ct,T)=>{"use strict";T.d(Ct,{Tt:()=>I,mt:()=>Z,wJ:()=>z});var F=T(67787);const Z=F.Ay.div.withConfig({displayName:"styles__StyledCanvas",componentId:"sc-1xole4f-0"})(["z-index:1;display:flex;position:absolute;flex-direction:column;width:100%;height:100%;&.active{z-index:3;}.screen-header,.screen-footer{position:relative;overflow:hidden;}.screen-footer{.footer-widgets{position:absolute;top:0;left:0;width:100%;height:100%;}}.screen-content{position:relative;flex:1;overflow:hidden;.widgets{position:relative;}.iScrollVerticalScrollbar,.iScrollHorizontalScrollbar{z-index:2147483647 !important;}}"]),I=F.Ay.div.withConfig({displayName:"styles__StyledMBOverlayRunner",componentId:"sc-1xole4f-1"})(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:",";.overlay{transform:translateY(","px) translateX(","px);}.slideleft2{&.appear,&.enter{transform:translateX(-100%) translateY(","px);}&.appear-active,&.enter-active{transform:translateX(","px) translateY(","px);}&.appear-done,&.enter-done{transform:translateX(","px) translateY(","px);}&.exit{transform:translateX(","px) translateY(","px);}&.exit-active{transform:translateX(-100%) translateY(","px);}&.exit-done{transform:translateX(-100%) translateY(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.slideright2{&.appear,&.enter{transform:translateX(","px) translateY(","px);}&.appear-active,&.enter-active{transform:translateX(","px) translateY(","px);}&.appear-done,&.enter-done{transform:translateX(","px) translateY(","px);}&.exit{transform:translateX(","px) translateY(","px);}&.exit-active{transform:translateX(","px) translateY(","px);}&.exit-done{transform:translateX(","px) translateY(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.topin{&.appear,&.enter{transform:translateY(-100%) translateX(","px);}&.appear-active,&.enter-active{transform:translateY(","px) translateX(","px);}&.appear-done,&.enter-done{transform:translateY(","px) translateX(","px);}&.exit{transform:translateY(","px) translateX(","px);}&.exit-active{transform:translateY(-100%) translateX(","px);}&.exit-done{transform:translateY(-100%) translateX(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.popin{&.appear,&.enter{transform:translateY(","px) translateX(","px);}&.appear-active,&.enter-active{transform:translateY(","px) translateX(","px);}&.appear-done,&.enter-done{transform:translateY(","px) translateX(","px);}&.exit{transform:translateY(","px) translateX(","px);}&.exit-active{transform:translateY(","px) translateX(","px);}&.exit-done{transform:translateY(","px) translateX(","px);}&.appear-active,&.enter-active,&.exit-active{transition:transform ","ms linear;}}.fade{&.appear,&.enter{opacity:0;}&.appear-active,&.enter-active{opacity:1;}&.appear-done,&.enter-done{opacity:1;}&.exit{opacity:1;}&.exit-active{opacity:0;}&.exit-done{opacity:0;}&.appear-active,&.enter-active,&.exit-active{transition-property:opacity,width,height,transform;transition-duration:","ms;transition-timing-function:linear;}}.auto{transition-property:opacity,width,height,transform;transition-duration:","ms;transition-timing-function:linear;&.appear,&.enter{opacity:0;}&.appear-active,&.enter-active{opacity:1;}&.appear-done,&.enter-done{opacity:1;}&.exit{opacity:1;}&.exit-active{opacity:0;}&.exit-done{opacity:0;}}.overlay{position:absolute;z-index:2;width:","px;height:","px;}.overlay-backdrop{z-index:1;position:absolute;width:100%;height:100%;","}"],D=>D.zIndex,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.y,D=>D.destXY.y,D=>D.transitionDuration,D=>D.overlayRunnerViewportBR.r,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.overlayRunnerViewportBR.r,D=>D.destXY.y,D=>D.overlayRunnerViewportBR.r,D=>D.destXY.y,D=>D.transitionDuration,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.x,D=>D.destXY.x,D=>D.transitionDuration,D=>D.overlayRunnerViewportBR.b,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.destXY.y,D=>D.destXY.x,D=>D.overlayRunnerViewportBR.b,D=>D.destXY.x,D=>D.overlayRunnerViewportBR.b,D=>D.destXY.x,D=>D.transitionDuration,D=>D.transitionDuration,D=>D.transitionDuration,D=>D.overlayWH.w,D=>D.overlayWH.h,D=>D.addBackdrop&&"\n background-color: "+D.backdropColor+";\n backdrop-filter: blur("+D.backdropFilterBlurRadius+"px);\n "),z=F.Ay.div.withConfig({displayName:"styles__StyledMBOverlayRunnerContainer",componentId:"sc-1xole4f-2"})(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:4;"])},77728:(oe,Ct,T)=>{"use strict";T.d(Ct,{E:()=>O,A:()=>$});var F=T(38502),Z=T(15186),I=T(67787);const z=I.Ay.svg.withConfig({displayName:"styles__StyledLineSvg",componentId:"sc-8i3v39-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;transition:inherit;overflow:visible;& > path{transition:inherit;}"]),D=I.Ay.div.withConfig({displayName:"styles__LineWrpperStyle",componentId:"sc-8i3v39-1"})(["display:flex;align-items:center;justify-content:center;.line-svg-patch{pointer-events:auto;}.rich-text{overflow:visible !important;white-space:pre-wrap;word-break:keep-all;position:absolute;top:0;z-index:1;}"]);var V=T(39182),ht=T(72214);function ot(q,ft){if(q==="solid")return"";if(q==="dotted")return ft+" "+ft;if(q==="dashed"){if(ft===1)return"3 2";if(ft===2)return"6 4";if(ft>2)return ft*2+" "+ft}}function S(q,ft,K){const{x:it,y:nt}=K.linePointFrom,{x:vt,y:at}=K.linePointTo,et=[q*it,ft*nt],yt=[q*vt,ft*at];return"M "+et[0]+" "+et[1]+" L "+yt[0]+" "+yt[1]}class O extends F.PureComponent{render(){const{widget:ft,mode:K}=this.props,{w:it,h:nt,line:vt,shadow:at,border:{bdrWidth:et,bdrStyle:yt,bdrColor:rt}}=ft.hotAttr,ct=(0,Z.t0)(rt);let G;at.shadowIsVisible&&(G="drop-shadow("+at.offsetX+"px "+at.offsetY+"px "+at.blurRadius+"px "+(0,Z.t0)(at.shadowColor)+")");const B=S(it,nt,vt),W=ot(yt,Number.parseInt(et)),ut={filter:G||"none"};return(0,ht.jsxs)(D,{children:[(0,ht.jsxs)(z,{xmlns:"http://www.w3.org/2000/svg",style:ut,children:[(0,ht.jsx)("path",{d:B,stroke:ct,strokeWidth:et,strokeDasharray:W}),(0,ht.jsx)("path",{d:B,stroke:"transparent",strokeWidth:"10",className:"line-svg-patch"})]}),(0,ht.jsx)(V.Ay,{widget:ft,isAutoSize:!0})]})}}const $=O},78235:(oe,Ct,T)=>{"use strict";T.d(Ct,{I$:()=>ht,MK:()=>F,O1:()=>I,jz:()=>Z});const F=(S,O,$)=>S[O]!==$?{...S,[O]:$}:S,Z=(S,O)=>{if(!Object.prototype.hasOwnProperty.call(S,O))return S;const $={...S};return delete $[O],$},I=(S,O)=>{for(const[$,q]of Object.entries(O))if(S[$]!==q)return{...S,...O};return S},z=(S,O)=>{const $={};for(const[q,ft]of Object.entries(S))$[q]=O(ft,q);return $},D=(S,O)=>{const $={};for(const q of O)Object.prototype.hasOwnProperty.call(S,q)&&($[q]=S[q]);return $},V=(S,O)=>{const $=Object.entries(S).find(O);return $&&$[0]},ht=(S,O)=>{let $;for(const[q,ft]of Object.entries(S))O(ft,q,S)||($===void 0&&($={...S}),delete $[q]);return $||S},ot=S=>{const O={};for(const[$,q]of S)O[$]=q;return O}},78409:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>D});var F=T(38502),Z=T(56590),I=T(72214);const D=V=>{const{children:ht,sdkStore:ot}=V,S=(0,F.useMemo)(()=>({sdkStore:ot}),[ot]);return(0,I.jsx)(Z.g.Provider,{value:S,children:ht})}},78689:(oe,Ct,T)=>{"use strict";T.d(Ct,{I:()=>F});const F=Z=>{const{prefix:I,suffix:z}=Z;return{prefixStr:I.isEnable?I.prefixString:"",suffixStr:z.isEnable?z.suffixString:""}}},78915:(oe,Ct,T)=>{"use strict";T.d(Ct,{GO:()=>S,qi:()=>V,yl:()=>ot});var F=T(18250),Z=T.n(F),I=T(15515),z=T(18183);const D="basket_state_panel_position";let V=function(O){return O.Edit="edit",O.OnlyView="only_view",O}({});const ht={selections:[],hover:{item:"",panel:""},basketEditor:{key:"",hotItem:null,refPage:"",prevPopupPanel:"",prevSelection:[],statePanelPosition:(0,I.Yt)(D,{top:0,left:0},I.qW.Object)},seniorEditor:{},textEditor:{selectionAttrs:{},defaultAttrs:{}},handMode:!1,pencilMode:!1,inspectMode:!1,fullScreenMode:!1,viewType:V.Edit,isCommunityPreview:!1,isEmbedV2Preview:!1,isHtmlZipPreview:!1,isVersionPreview:!1,editingUserComboMode:!1,editingOrgComboMode:!1,enabledRangeSelection:0,isHitVectorPath:!1,transformVector:null,isShowFloatingToolbar:!0,isEditChartDataCid:"",isEditingEditableWidgetCid:"",isFocusStickyOffset:!1,previewViewMode:"read_only",addShapeToCanvasTrackSource:"",aiHTML:{collapsed:(0,I.Nn)((0,z.X9)(location)+"-AIHTML_COLLAPSED",!1,I.qW.Boolean),enabled:(0,I.Nn)((0,z.X9)(location)+"-AIHTML_ENABLED",!1,I.qW.Boolean),sceneTag:"",source:"",defaultAgentType:"prototyping",fileStorageKey:""}};function ot(O,$){O===void 0&&(O=ht);let{type:q,payload:ft}=$;switch(q){case"mode:update:state":return{...O,...ft};case"mode:update:selections":return{...O,selections:ft};case"mode:update:selections:unselect:items":{const K=O.selections.filter(it=>!ft.includes(it));return{...O,newSelection:K}}case"mode:update:hover:item":return{...O,hover:{...O.hover,item:ft}};case"mode:update:basketEditor:key":return{...O,basketEditor:{...O.basketEditor,key:ft}};case"mode:update:basketEditor:hotItem":return{...O,basketEditor:{...O.basketEditor,hotItem:ft}};case"mode:update:basketEditor:refPage":return{...O,basketEditor:{...O.basketEditor,refPage:ft}};case"mode:update:basketEditor:prevPopupPanel":return{...O,basketEditor:{...O.basketEditor,prevPopupPanel:ft}};case"mode:update:basketEditor:statePanelPosition":return(0,I.a0)(D,ft,I.qW.Object),{...O,basketEditor:{...O.basketEditor,statePanelPosition:ft}};case"mode:update:toggle:handMode":return{...O,handMode:Z()(ft)?ft:!O.handMode};case"mode:update:toggle:pencilMode":return{...O,pencilMode:Z()(ft)?ft:!O.pencilMode};case"mode:update:viewType":return{...O,viewType:ft};case"mode:update:toggle:fullScreenMode":return{...O,fullScreenMode:Z()(ft)?ft:!O.fullScreenMode};case"mode:update:basketEditor:prevSelection":return{...O,basketEditor:{...O.basketEditor,prevSelection:ft}};case"mode:update:toggle:inspectMode":return{...O,inspectMode:Z()(ft)?ft:!O.inspectMode};case"mode:update:communityPreview":return{...O,isCommunityPreview:ft};case"mode:update:embedV2Preview":return{...O,isEmbedV2Preview:ft};case"mode:update:htmlZipPreview":return{...O,isHtmlZipPreview:ft};case"mode:update:isVersionPreview":return{...O,isVersionPreview:ft};case"mode:update:toggle:editingUserComboMode":return{...O,editingUserComboMode:Z()(ft)?ft:!O.editingUserComboMode};case"mode:update:toggle:editingOrgComboMode":return{...O,editingOrgComboMode:Z()(ft)?ft:!O.editingOrgComboMode};case"mode:update:toggle:isShowFloatingToolbar":return{...O,isShowFloatingToolbar:Z()(ft)?ft:!O.isShowFloatingToolbar};case"mode:update:textEditor:defaultAttrs":return{...O,textEditor:{...O.textEditor,defaultAttrs:ft}};case"mode:update:previewViewMode":return{...O,previewViewMode:ft.previewViewMode};case"mode:update:addShapeToCanvasTrackSource":return{...O,addShapeToCanvasTrackSource:ft};case"mode:update:aiHTMLEnabled":return{...O,aiHTML:{...O.aiHTML,enabled:ft}};case"mode:update:aiHTMLSceneTag":return{...O,aiHTML:{...O.aiHTML,sceneTag:ft}};case"mode:update:aiHTMLSource":return{...O,aiHTML:{...O.aiHTML,source:ft}};case"mode:update:aiHTMLAgentType":return{...O,aiHTML:{...O.aiHTML,defaultAgentType:ft}};case"mode:update:aiHTMLCollapsed":return{...O,aiHTML:{...O.aiHTML,collapsed:ft}};case"mode:update:aiHTMLFileStorageKey":return{...O,aiHTML:{...O.aiHTML,fileStorageKey:ft}};default:return O}}let S;(function(O){function $(Dt){return{type:"mode:update:state",payload:{...Dt}}}O.update=$;function q(Dt){return{type:"mode:update:selections",payload:Dt}}O.select=q;function ft(Dt){return{type:"mode:update:selections:unselect:items",payload:Dt}}O.unSelect=ft;function K(Dt){return{type:"mode:update:hover:item",payload:Dt}}O.hoverItem=K;function it(Dt){return{type:"mode:update:basketEditor:key",payload:Dt}}O.editBasketItemKey=it;function nt(Dt){return{type:"mode:update:basketEditor:hotItem",payload:Dt}}O.editBasketHotItem=nt;function vt(Dt){return{type:"mode:update:basketEditor:refPage",payload:Dt}}O.editBasketRefPage=vt;function at(Dt){return{type:"mode:update:basketEditor:prevSelection",payload:Dt}}O.updateBasketPrevSelection=at;function et(Dt){return{type:"mode:update:basketEditor:prevPopupPanel",payload:Dt}}O.updateBasketPrevPopupPanel=et;function yt(Dt){return{type:"mode:update:basketEditor:statePanelPosition",payload:Dt}}O.updateBasketStatePanelPosition=yt;function rt(Dt){return{type:"mode:update:toggle:handMode",payload:Dt}}O.toggleHandMode=rt;function ct(Dt){return{type:"mode:update:toggle:pencilMode",payload:Dt}}O.togglePencilMode=ct;function G(){return{type:"mode:update:viewType",payload:V.OnlyView}}O.setOnlyViewMode=G;function B(){return{type:"mode:update:viewType",payload:V.Edit}}O.setEditMode=B;function W(Dt){return{type:"mode:update:toggle:fullScreenMode",payload:Dt}}O.toggleFullScreenMode=W;function ut(Dt){return{type:"mode:update:toggle:inspectMode",payload:Dt}}O.toggleInspectMode=ut;function H(Dt){return{type:"mode:update:communityPreview",payload:Dt}}O.setCommunityPreview=H;function N(Dt){return{type:"mode:update:embedV2Preview",payload:Dt}}O.setEmbedV2Preview=N;function Y(Dt){return{type:"mode:update:htmlZipPreview",payload:Dt}}O.setHtmlZipPreview=Y;function gt(Dt){return{type:"mode:update:isVersionPreview",payload:Dt}}O.setIsVersionPreview=gt;function pt(Dt){return{type:"mode:update:toggle:editingUserComboMode",payload:Dt}}O.toggleEditingUserComboMode=pt;function Tt(Dt){return{type:"mode:update:toggle:editingOrgComboMode",payload:Dt}}O.toggleEditingOrgComboMode=Tt;function mt(Dt){return{type:"mode:update:toggle:isShowFloatingToolbar",payload:Dt}}O.toggleIsShowFloatingToolbar=mt;function lt(Dt){return{type:"mode:update:textEditor:defaultAttrs",payload:Dt}}O.updateTextEditorDefaultAttrs=lt;function A(Dt){return{type:"mode:update:previewViewMode",payload:{previewViewMode:Dt}}}O.updatePreviewViewMode=A;function kt(Dt){return{type:"mode:update:addShapeToCanvasTrackSource",payload:Dt}}O.updateAddShapeToCanvasTrackSource=kt;function _t(){return(0,I.jS)((0,z.X9)(location)+"-AIHTML_ENABLED",!0,I.qW.Boolean),{type:"mode:update:aiHTMLEnabled",payload:!0}}O.enableAIHTML=_t;function Mt(){return(0,I.jS)((0,z.X9)(location)+"-AIHTML_ENABLED",!1,I.qW.Boolean),{type:"mode:update:aiHTMLEnabled",payload:!1}}O.disableAIHTML=Mt;function At(){return(0,I.jS)((0,z.X9)(location)+"-AIHTML_COLLAPSED",!0,I.qW.Boolean),{type:"mode:update:aiHTMLCollapsed",payload:!0}}O.collapseAIHTML=At;function jt(){return(0,I.jS)((0,z.X9)(location)+"-AIHTML_COLLAPSED",!1,I.qW.Boolean),{type:"mode:update:aiHTMLCollapsed",payload:!1}}O.expandAIHTML=jt;function Nt(Dt){return{type:"mode:update:aiHTMLSceneTag",payload:Dt}}O.updateAIHTMLSceenTag=Nt;function Vt(Dt){return{type:"mode:update:aiHTMLSource",payload:Dt}}O.updateAIHTMLSource=Vt;function Wt(Dt){return{type:"mode:update:aiHTMLAgentType",payload:Dt}}O.updateAIHTMLAgentType=Wt;function Ot(Dt){return{type:"mode:update:aiHTMLFileStorageKey",payload:Dt}}O.updateAIHTMLFileStorageKey=Ot})(S||(S={}))},84046:(oe,Ct,T)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=void 0;var F=V(T(38502)),Z=T(36017),I=V(T(23039)),z=V(T(88409)),D=T(11587);function V(W){return W&&W.__esModule?W:{default:W}}function ht(W){"@babel/helpers - typeof";return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ut){return typeof ut}:function(ut){return ut&&typeof Symbol=="function"&&ut.constructor===Symbol&&ut!==Symbol.prototype?"symbol":typeof ut},ht(W)}function ot(){return ot=Object.assign?Object.assign.bind():function(W){for(var ut=1;ut<arguments.length;ut++){var H=arguments[ut];for(var N in H)({}).hasOwnProperty.call(H,N)&&(W[N]=H[N])}return W},ot.apply(null,arguments)}function S(W,ut){var H=Object.keys(W);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(W);ut&&(N=N.filter(function(Y){return Object.getOwnPropertyDescriptor(W,Y).enumerable})),H.push.apply(H,N)}return H}function O(W){for(var ut=1;ut<arguments.length;ut++){var H=arguments[ut]!=null?arguments[ut]:{};ut%2?S(Object(H),!0).forEach(function(N){rt(W,N,H[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(H)):S(Object(H)).forEach(function(N){Object.defineProperty(W,N,Object.getOwnPropertyDescriptor(H,N))})}return W}function $(W,ut){if(!(W instanceof ut))throw new TypeError("Cannot call a class as a function")}function q(W,ut){for(var H=0;H<ut.length;H++){var N=ut[H];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(W,ct(N.key),N)}}function ft(W,ut,H){return ut&&q(W.prototype,ut),H&&q(W,H),Object.defineProperty(W,"prototype",{writable:!1}),W}function K(W,ut){if(typeof ut!="function"&&ut!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(ut&&ut.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),ut&&it(W,ut)}function it(W,ut){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,N){return H.__proto__=N,H},it(W,ut)}function nt(W){var ut=et();return function(){var H,N=yt(W);if(ut){var Y=yt(this).constructor;H=Reflect.construct(N,arguments,Y)}else H=N.apply(this,arguments);return vt(this,H)}}function vt(W,ut){if(ut&&(ht(ut)=="object"||typeof ut=="function"))return ut;if(ut!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return at(W)}function at(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function et(){try{var W=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(ut){}return(et=function(){return!!W})()}function yt(W){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ut){return ut.__proto__||Object.getPrototypeOf(ut)},yt(W)}function rt(W,ut,H){return(ut=ct(ut))in W?Object.defineProperty(W,ut,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[ut]=H,W}function ct(W){var ut=G(W,"string");return ht(ut)=="symbol"?ut:ut+""}function G(W,ut){if(ht(W)!="object"||!W)return W;var H=W[Symbol.toPrimitive];if(H!==void 0){var N=H.call(W,ut||"default");if(ht(N)!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ut==="string"?String:Number)(W)}var B=Ct.default=function(W){K(H,W);var ut=nt(H);function H(N){var Y;return $(this,H),Y=ut.call(this,N),rt(at(Y),"innerSliderRefHandler",function(gt){return Y.innerSlider=gt}),rt(at(Y),"slickPrev",function(){return Y.innerSlider.slickPrev()}),rt(at(Y),"slickNext",function(){return Y.innerSlider.slickNext()}),rt(at(Y),"slickGoTo",function(gt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Y.innerSlider.slickGoTo(gt,pt)}),rt(at(Y),"slickPause",function(){return Y.innerSlider.pause("paused")}),rt(at(Y),"slickPlay",function(){return Y.innerSlider.autoPlay("play")}),Y.state={breakpoint:null},Y._responsiveMediaHandlers=[],Y}return ft(H,[{key:"media",value:function(Y,gt){var pt=window.matchMedia(Y),Tt=function(lt){var A=lt.matches;A&&gt()};pt.addListener(Tt),this._responsiveMediaHandlers.push({mql:pt,query:Y,listener:Tt})}},{key:"componentDidMount",value:function(){var Y=this;if(this.props.responsive){var gt=this.props.responsive.map(function(Tt){return Tt.breakpoint});gt.sort(function(Tt,mt){return Tt-mt}),gt.forEach(function(Tt,mt){var lt;mt===0?lt=(0,I.default)({minWidth:0,maxWidth:Tt}):lt=(0,I.default)({minWidth:gt[mt-1]+1,maxWidth:Tt}),(0,D.canUseDOM)()&&Y.media(lt,function(){Y.setState({breakpoint:Tt})})});var pt=(0,I.default)({minWidth:gt.slice(-1)[0]});(0,D.canUseDOM)()&&this.media(pt,function(){Y.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(Y){Y.mql.removeListener(Y.listener)})}},{key:"render",value:function(){var Y=this,gt,pt;this.state.breakpoint?(pt=this.props.responsive.filter(function(Nt){return Nt.breakpoint===Y.state.breakpoint}),gt=pt[0].settings==="unslick"?"unslick":O(O(O({},z.default),this.props),pt[0].settings)):gt=O(O({},z.default),this.props),gt.centerMode&&(gt.slidesToScroll>1,gt.slidesToScroll=1),gt.fade&&(gt.slidesToShow>1,gt.slidesToScroll>1,gt.slidesToShow=1,gt.slidesToScroll=1);var Tt=F.default.Children.toArray(this.props.children);Tt=Tt.filter(function(Nt){return typeof Nt=="string"?!!Nt.trim():!!Nt}),gt.variableWidth&&(gt.rows>1||gt.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),gt.variableWidth=!1);for(var mt=[],lt=null,A=0;A<Tt.length;A+=gt.rows*gt.slidesPerRow){for(var kt=[],_t=A;_t<A+gt.rows*gt.slidesPerRow;_t+=gt.slidesPerRow){for(var Mt=[],At=_t;At<_t+gt.slidesPerRow&&(gt.variableWidth&&Tt[At].props.style&&(lt=Tt[At].props.style.width),!(At>=Tt.length));At+=1)Mt.push(F.default.cloneElement(Tt[At],{key:100*A+10*_t+At,tabIndex:-1,style:{width:"".concat(100/gt.slidesPerRow,"%"),display:"inline-block"}}));kt.push(F.default.createElement("div",{key:10*A+_t},Mt))}gt.variableWidth?mt.push(F.default.createElement("div",{key:A,style:{width:lt}},kt)):mt.push(F.default.createElement("div",{key:A},kt))}if(gt==="unslick"){var jt="regular slider "+(this.props.className||"");return F.default.createElement("div",{className:jt},Tt)}else mt.length<=gt.slidesToShow&&(gt.unslick=!0);return F.default.createElement(Z.InnerSlider,ot({style:this.props.style,ref:this.innerSliderRefHandler},(0,D.filterSettings)(gt)),mt)}}]),H}(F.default.Component)},86769:(oe,Ct,T)=>{"use strict";T.d(Ct,{A:()=>ft});var F=T(95549),Z=T(39695),I=T(70248),z=T(16454),D=T(76613),V=T(20089),ht=T(83535),ot=T(95106),S=T(26067),O=T(40486),$=T(99566),q=T(72064);class ft{constructor(){}static deviceOrient(){return window.innerWidth>window.innerHeight?"landscape":"portrait"}static getCurrentScreen(it){const nt=it.getState(),vt=(0,z.pW)(nt);return(0,z.He)(nt)[vt]}static getInteractionTypeToClearTimersList(it){const nt=it.getState(),vt=(0,z.KR)(nt);return[Z.O2.LinkToSourceCanvas,Z.O2.LinkToCanvas,...vt?[Z.O2.SetBasketCanvas]:[]]}static getCanvasKeyByAlias(it,nt,vt){var at,et;const yt=sdkStore.getHotItem(it);let rt=[];(yt==null||(at=yt.hotAttr)==null?void 0:at.type)===V.x.WBasket?rt=sdkStore.getSubHotItemList(yt.hotAttr.refRBPageKey).filter(B=>B.hotAttr.type===V.x.Canvas).sort((B,W)=>B.hotAttr.order-W.hotAttr.order).map(B=>(0,I.iK)((0,I.OO)(it)?(0,I.QL)(it):[it],B.key)):(yt==null||(et=yt.hotAttr)==null?void 0:et.bunch)===V.x.RbPage&&(rt=sdkStore.getSubHotItemList(it).filter(B=>B.hotAttr.type===V.x.Canvas).sort((B,W)=>B.hotAttr.order-W.hotAttr.order).map(B=>B.key));const ct=0,G=rt.length-1;switch(nt){case D.Gp:{const B=rt.indexOf(vt);return rt.at(B===ct?G:B-1)}case D.Oh:{const B=rt.indexOf(vt);return rt.at(B===G?ct:B+1)}case D.L8:return rt.at(0);case D.Hg:return rt.at(-1);default:return nt}}static checkIfSkipInteraction(it,nt){const vt=it.getState(),{activePageKey:at,activeCanvasKey:et,basketCanvasMap:yt}=(0,z.mf)(vt);let rt=null;switch(nt.interactionType){case Z.O2.SetBasketCanvas:{var ct;const{targetBasketKey:W,targetResCanvasKey:ut}=nt,H=(ct=sdkStore.getHotItem(W))==null||(ct=ct.hotAttr)==null?void 0:ct.refRBPageKey;if(yt.get(W)){var G,B;rt=this.getCanvasKeyByAlias(W,ut,at===H||((G=sdkStore.getHotItem(W))==null?void 0:G.sup)==="B@ref-muban"?et:(B=yt.get(W))==null?void 0:B.activeCanvas)}break}default:break}return rt===et}static checkIfSkipBasketIteraction(it,nt,vt){var at;const et=it.getState(),{basketCanvasMap:yt}=(0,z.mf)(et),rt=(at=yt.get(nt))==null?void 0:at.activeCanvas;return vt.triggerItemKey&&rt!==sdkStore.locUpCanvasKey(vt.triggerItemKey)}static getScreenScrollTop(it,nt){const vt=it.getState(),{screenScrollTopMap:at}=(0,z.mf)(vt);return at[nt]}static getScreenScrollLeft(it,nt){const vt=it.getState(),{screenScrollLeftMap:at}=(0,z.mf)(vt);return at[nt]}static getWidgetInteractionsByTrigger(it,nt,vt,at){let et="non-combo";if(vt){const W=vt.getState(),ut=(0,z.ub)(W);et=(0,z.hM)(W)||ut?"combo":"non-combo"}const yt=(0,ht.n4)(it,!0).filter(W=>at&&!at.includes(W.key)?!1:nt.includes((0,$.AE)(W)));let rt=(0,ot.I3)(sdkStore,yt,it,et).filter(W=>W.interactive);const ct=(0,q.yV)().getHotItem(it);if((ct==null?void 0:ct.hotAttr.type)===V.x.WCarousel){const{slides:W,displayIndex:ut}=ct.hotAttr.carousel,H=W.reduce((N,Y,gt)=>gt!==ut&&Y.linkCids?[...N,...Y.linkCids.split(",").filter(Boolean)]:N,[]);H.length&&(rt=rt.filter(N=>!H.includes(N.subKey)))}const G=new Set;for(const W of rt)W.interactionType===Z.O2.ConditionalBranches&&(0,O.mp)(W,ut=>{G.add(ut)});const B=rt.filter(W=>!G.has(W.key));return{itasTotal:rt,itasRootLevel:B}}static isWidgetInBasketCanvas(it,nt){if(!(0,I.OO)(it))return!1;const vt=(0,I.QL)(it).slice(0,-1),at=(0,I.OO)(nt)?(0,I.QL)(nt).slice(0,-1):[nt];return vt.length===at.length?sdkStore.locUpHotCanvasKey(it)===nt:sdkStore.locUpHotCanvasKey((0,I.iK)(vt.slice(0,at.length),vt[at.length]))===nt}static findAllAVUnder(it,nt){if((0,I.OO)(it)){const[vt,...at]=(0,I.QL)(it).reverse();return sdkStore.findAllTypeUnder(vt,nt).map(et=>sdkStore.getHotItem((0,I.iK)(at.reverse(),et.key)))}else return sdkStore.findAllTypeUnder(it,nt)}static findAllBasketsUnder(it){const nt=(0,q.yV)(),vt=at=>nt.getSubHotItemList(at).reduce((et,yt)=>{if(yt.hotAttr.type==="wBasket"&&nt.isActiveKey(yt.key)&&nt.isActiveKey(yt.hotAttr.refRBPageKey)&&nt.isActiveKey(yt.hotAttr.refContentKey)&&nt.getHotItem(yt.hotAttr.refContentKey).sup===yt.hotAttr.refRBPageKey){if(yt.hotAttr.basket==="bDanli"){const rt=nt.getSubHotItemList(yt.hotAttr.refRBPageKey).reduce((ct,G)=>G.hotAttr.type==="rResCanvas"?[...ct,(0,I.iK)((0,I.OO)(yt.key)?(0,I.QL)(yt.key):[yt.key],G.key)]:ct,[]);return[...et,...rt.flatMap(ct=>vt(ct)),yt]}if(yt.hotAttr.basket==="bMuban"){const rt=nt.getSubHotItemList(yt.hotAttr.refRBPageKey).reduce((ct,G)=>G.hotAttr.type==="rResCanvas"?[...ct,(0,I.iK)((0,I.OO)(yt.key)?(0,I.QL)(yt.key):[yt.key],G.key)]:ct,[]);return[...et,...rt.flatMap(ct=>vt(ct)),yt]}}else if(yt.hotAttr.type==="wWrap")return[...et,...vt(yt.key)];return et},[]);return vt(it)}static getOverlayRelativePosXY(it,nt,vt,at,et,yt){const rt={overlayRelativePosX:et,overlayRelativePosY:yt},ct=sdkStore.getHotItem(vt);if(!ct)return rt;const G=this.getOverlayRunnerViewport(it,nt);if(!G)return rt;switch(at){case"ce":return{overlayRelativePosX:G.left+G.right/2-ct.hotAttr.w/2,overlayRelativePosY:G.top+G.bottom/2-ct.hotAttr.h/2};case"tl":return{overlayRelativePosX:G.left,overlayRelativePosY:G.top};case"tc":return{overlayRelativePosX:G.left+G.right/2-ct.hotAttr.w/2,overlayRelativePosY:G.top};case"tr":return{overlayRelativePosX:G.right-ct.hotAttr.w,overlayRelativePosY:G.top};case"bl":return{overlayRelativePosX:G.left,overlayRelativePosY:G.bottom-ct.hotAttr.h};case"bc":return{overlayRelativePosX:G.left+G.right/2-ct.hotAttr.w/2,overlayRelativePosY:G.bottom-ct.hotAttr.h};case"br":return{overlayRelativePosX:G.right-ct.hotAttr.w,overlayRelativePosY:G.bottom-ct.hotAttr.h};case"manual":return rt;default:return console.warn("invalid overlay relative position "+at),rt}}}(0,F.A)(ft,"getCurrentWidgetOpacity",K=>{var it;return(it=document.querySelector('.scontainer [data-cid="'+K+'"]'))==null?void 0:it.style.opacity}),(0,F.A)(ft,"getTargetElemList",K=>{const it=Array.from(document.querySelectorAll('.screen-header [data-cid="'+K+'"]')),nt=Array.from(document.querySelectorAll('.screen-content [data-cid="'+K+'"]')),vt=Array.from(document.querySelectorAll('.screen-footer [data-cid="'+K+'"]'));return[...it,...nt,...vt].filter(Boolean)}),(0,F.A)(ft,"getSTElement",K=>{let it;if(K.mubanBasketKey)it=document.querySelector('#sticky-container [data-cid="'+K.key+'"][data-basket-key="'+K.mubanBasketKey+'"]');else if(it=document.querySelector('#sticky-container [data-cid="'+K.key+'"]'),it){const nt=it.getAttribute("data-basketcanvas-key");nt&&(document.querySelector('[data-cid="'+nt+'"]')||(it=null))}return it}),(0,F.A)(ft,"validateAndTryCorrectPGAndCVKey",(K,it,nt,vt)=>{const at=!sdkStore.isTrashed(K||""),et=!sdkStore.isTrashed(it||"");if(at){if(et){if(sdkStore.getHotItem(K).sub.includes(it))return{pageKey:K,canvasKey:it}}else if(!vt){var yt;const W=(yt=sdkStore.getSubHotItemList(K).filter(ut=>ut&&ut.hotAttr.type===V.x.Canvas&&!ut.hotAttr.asOverlay).sort((ut,H)=>ut.hotAttr.order-H.hotAttr.order)[0])==null?void 0:yt.key;if(W)return{pageKey:K,canvasKey:W};var rt;return(rt=MB)==null||rt.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"}),{pageKey:K,canvasKey:W}}}else{if(nt!=null&&nt.canvas_begin&&!sdkStore.isTrashed(nt.canvas_begin))return{pageKey:sdkStore.getHotItem(nt.canvas_begin).sup,canvasKey:nt.canvas_begin};if(et)return{pageKey:sdkStore.getHotItem(it).sup,canvasKey:it}}const ct=sdkStore.getSubHotItemList("B@main").sort((W,ut)=>W.hotAttr.zIndex-ut.hotAttr.zIndex).find(W=>W.hotAttr.type==="rResBunch"&&W.hotAttr.bunch==="rbPage"&&!W.hotAttr.asFolder);if(ct){var G;const W=(G=sdkStore.getSubHotItemList(ct.key).filter(ut=>ut&&ut.hotAttr.type===V.x.Canvas&&!ut.hotAttr.asOverlay).sort((ut,H)=>ut.hotAttr.order-H.hotAttr.order)[0])==null?void 0:G.key;if(W)return{pageKey:ct.key,canvasKey:W};if(!vt){var B;(B=MB)==null||B.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}}return{pageKey:"",canvasKey:""}}),(0,F.A)(ft,"tryStashGlobalPreviewRelated",K=>{var it,nt,vt;let{runnerController:at,messageBucket:et,webpackInterface:yt}=K;const rt=(it=MB)==null?void 0:it.runnerController,ct=(nt=MB)==null?void 0:nt.messageBucket,G=(vt=MB)==null?void 0:vt.webpackInterface;return Object.assign(MB,{runnerController:at,messageBucket:et,webpackInterface:yt}),Object.assign(MB,{prevRunnerController:rt,prevMessageBucket:ct,prevWebpackInterface:G}),()=>{MB&&Object.assign(MB,{runnerController:rt,messageBucket:ct,webpackInterface:G})}}),(0,F.A)(ft,"canOverlayBeOpened",(K,it)=>{const nt=sdkStore.getHotItem(K);return!(!nt||!nt.hotAttr.isVisible||it&&it.type==="advanced"&&it.screen_visible_switch&&!it.screen_visible_list.some(vt=>sdkStore.isActiveKey(vt)&&sdkStore.getHotItem(vt).sub.includes(K)))}),(0,F.A)(ft,"getOverlayRunnerViewport",(K,it)=>(0,S.Hy)(K,it)),(0,F.A)(ft,"isOpeningUniqueOverlay",(K,it)=>K.filter(nt=>nt.targetOverlayKey===it).length===0),(0,F.A)(ft,"isClosingUniqueOverlay",(K,it)=>K.filter(nt=>nt.targetOverlayKey===it).length===1)},86969:(oe,Ct,T)=>{"use strict";T.d(Ct,{$y:()=>F,CN:()=>z,YK:()=>I});const F="preview",Z="inspect",I="comment",z=111,D=1e3},87356:(oe,Ct,T)=>{"use strict";T.d(Ct,{ep:()=>z,rj:()=>F});const F=(D,V)=>{const ht=V[D.key];if(ht===void 0)throw new Error("pCXY: no config: "+D.key);return{...D,hotAttr:I(D.hotAttr,ht)}},Z=(D,V)=>{const ht=V[D.key];if(ht===void 0)throw new Error("upCXY: no config: "+D.key);return{...D,hotAttr:z(D.hotAttr,ht)}},I=(D,V)=>({...D,x:D.x+V.offsetX,y:D.y+V.offsetY}),z=(D,V)=>({...D,x:D.x-V.offsetX,y:D.y-V.offsetY})},87440:(oe,Ct,T)=>{"use strict";T.d(Ct,{L:()=>I,s:()=>Z});var F=T(8783);const Z=()=>Math.round(Math.random())*90,I=z=>{let{data:D,theme:V,minFontSize:ht,maxFontSize:ot}=z;const S=D.filter(O=>Number(O.data[0])>0);return[{type:"wordCloud",width:"100%",height:"100%",left:"center",top:"center",sizeRange:[ht,ot],shape:"circle",drawOutOfBound:!1,layoutAnimation:!1,data:S.map((O,$)=>({name:O.name,value:O.data[0],textStyle:{color:(0,F.tp)({theme:V,color:O.color,index:$})},rotation:O.rotation}))}]}},87512:(oe,Ct,T)=>{"use strict";T.d(Ct,{Yd:()=>ot,bB:()=>V,tZ:()=>ht});var F=T(70248),Z=T(85449),I=T(88334),z=T(17573);const D=(S,O)=>{let{mdWMMktList:$,mtWMMktList:q,noWMMktList:ft,mode:K}=O;if(!(0,z._5)())return!0;const{mktCid:it,mktUnlock:nt}=S.hotAttr;if(!it||nt)return!0;if(ft.has(it)){if(K==="design"&&!(0,F.OO)(S.key)){var vt,at;(vt=MB)==null||(at=vt.action)==null||at.call(vt,"entry:widget:change",{flatChgList:[{key:S.key,hotAttr:{mktUnlock:!0}}]})}return!0}return $.has(it)||q.has(it)?!1:((0,I.uT)([it]),!0)},V=(S,O)=>{let{mdWMMktList:$,mtWMMktList:q,noWMMktList:ft}=O;return!!(!(0,z._5)()||!S||ft.has(S))},ht=S=>{let{widget:O,sdkStore:$,mode:q}=S;if(!(0,z._5)())return!1;const ft=(0,Z.fV)();if(!ft)return!1;const{mdWMMktList:K,mtWMMktList:it,noWMMktList:nt}=ft,vt=(et,yt)=>{if(!D(et,{mdWMMktList:K,mtWMMktList:it,noWMMktList:nt,mode:q}))return!0;const{key:rt,hotAttr:ct}=et;if(ct.type!=="wWrap")return!1;const G=yt.getRenderableSubHotItems(rt);return G.length&&G.every(B=>vt(B,yt))};return vt(O,$)},ot=S=>(S=Number(S),S?"has-watermark "+(S<80?"wm_s":"wm_m"):"")},88194:(oe,Ct,T)=>{"use strict";T.d(Ct,{BU:()=>I,NN:()=>D,rY:()=>F});const F={PNG_CANVAS:"pngCV",PNG_PAGE:"pngPG"},Z=new Set(Object.values(F)),I={ZOOM_050:"z050",ZOOM_100:"z100",ZOOM_200:"z200",LETTERBOX_128:"lb128",LETTERBOX_256:"lb256",LETTERBOX_512:"lb512",WIDTH_FIT_320:"wf320",WIDTH_FIT_640:"wf640"},z=new Set(Object.values(I)),D={z050:(q,ft)=>S(.5,q,ft),z100:(q,ft)=>S(1,q,ft),z200:(q,ft)=>S(2,q,ft),lb128:(q,ft)=>ht(128,q,ft),lb256:(q,ft)=>ht(256,q,ft),lb512:(q,ft)=>ht(512,q,ft),wf320:(q,ft)=>ot(320,q,ft),wf640:(q,ft)=>ot(640,q,ft)},V=(q,ft,K)=>({zoom:q,width:Math.max(Math.round(ft*q),1),height:Math.max(Math.round(K*q),1)}),ht=(q,ft,K)=>{const it=q/Math.max(ft,K,1);return V(it,ft,K)},ot=(q,ft,K)=>{const[it,nt]=ft>=240||K>=330?[320/ft,800]:ft>=144||K>=218?[240/ft,600]:[144/ft,360],vt=q/320,at=V(it*vt,ft,K);return at.height=Math.min(at.height,nt*vt),at},S=(q,ft,K)=>{const it=O/Math.max(ft,K,1);return V(Math.min(q,it),ft,K)},O=2048,$=(q,ft,K,it)=>ft.slice(-3)+"/"+ft+"/"+q+"/"+it+"."+K.toString(36)+".png"},88409:(oe,Ct,T)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=void 0;var F=Z(T(38502));function Z(D){return D&&D.__esModule?D:{default:D}}var I={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(V){return F.default.createElement("ul",{style:{display:"block"}},V)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(V){return F.default.createElement("button",null,V+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1},z=Ct.default=I},89310:(oe,Ct,T)=>{"use strict";T.d(Ct,{$:()=>I});var F=T(15186);function Z(z,D){let V=0,ht=0,ot=0;const S=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,O=/^rgb/i;if(S.test(z))V=parseInt(z.substring(1,3),16),ht=parseInt(z.substring(3,5),16),ot=parseInt(z.substring(5,7),16);else if(O.test(z)){var $;const nt=((($=z.split("rgba("))==null?void 0:$.length)===1?z.split("rgb("):z.split("rgba("))[1].split(")")[0].split(",");V=nt[0],ht=nt[1],ot=nt[2]}else return z;V=parseInt(V*(100+D)/100),ht=parseInt(ht*(100+D)/100),ot=parseInt(ot*(100+D)/100),V=V<255?V:255,ht=ht<255?ht:255,ot=ot<255?ot:255;const q=V.toString(16).length===1?"0"+V.toString(16):V.toString(16),ft=ht.toString(16).length===1?"0"+ht.toString(16):ht.toString(16),K=ot.toString(16).length===1?"0"+ot.toString(16):ot.toString(16);return"#"+q+ft+K}const I=(z,D)=>{const{fill:V,textV0:ht,refWCKey:ot}=z.hotAttr,S=(0,F.t0)(V.solidColor);let O=Z(S,-20);(S==="transparent"||!V.fillIsVisible)&&(O="#ccc"),S||(O="#c1b97e");const $=ht.textColor?Z(ht.textColor,20):"#7D8694";let q=ot===""?"#FFFFFF":O;return D&&(D.stickyKey===z.key||D.stickyKey==="fake")&&(D.isBinded?q=O:q="#fff"),{lineColor:O,textPlaceHolder:$,circleColor:q}}},90141:(oe,Ct,T)=>{"use strict";T.d(Ct,{$2:()=>Z,BF:()=>I,YV:()=>F,sz:()=>z});const F=T.j!=183?["mp3","ogg","wav","aac"]:null,Z=["mp4","webm","ogg"],I=T.j!=183?["https:","http:"]:null,z=["https:"]},90990:(oe,Ct,T)=>{"use strict";T.d(Ct,{X:()=>F,d:()=>Z});const F=I=>({"!LIV":I["!liVersion"],"!HAV":I["!haVersion"]}),Z=I=>({"!liVersion":I["!LIV"]>=3?I["!LIV"]:1,"!haVersion":I["!HAV"]>=3?I["!HAV"]:1})},91174:(oe,Ct,T)=>{"use strict";T.d(Ct,{$:()=>Z,e:()=>F});const F=(I,z)=>{let{x:D,y:V}=I;const ht=Math.sin(z),ot=Math.cos(z);return{x:D*ot-V*ht,y:D*ht+V*ot}},Z=(I,z,D)=>{let{x:V,y:ht}=z;const ot=Math.sin(D),S=Math.cos(D);return I.x=V*S-ht*ot,I.y=V*ot+ht*S,I}},92465:(oe,Ct,T)=>{"use strict";T.d(Ct,{Bf:()=>ot,E3:()=>O,H8:()=>K,Sr:()=>ft,XZ:()=>D,eh:()=>S,hZ:()=>ht,lt:()=>V,qS:()=>q});var F=T(69986),Z=T(20089),I=T(31417),z=T.n(I);const D=it=>{let{optionData:nt,optionDataDesignUnExpanded:vt,widgetVersion:at}=it;return at===2?(vt==null?void 0:vt.findIndex(et=>et===nt.data.cid))===-1:nt.data.designExpanded},V=it=>{let{optionData:nt,optionDataSelected:vt,widgetVersion:at}=it;return at===2?(vt==null?void 0:vt.findIndex(et=>et===nt.data.cid))!==-1:nt.data.selected},ht=it=>{let{node:nt,optionDataSelected:vt,onUpdate:at}=it,et;vt.findIndex(yt=>yt===nt.data.cid)===-1&&(et=[nt.data.cid],at({optionDataSelected:et}))},ot=it=>{let{node:nt,path:vt,newOptionData:at,onUpdate:et}=it;(0,F.sV)(at,ct=>{ct.data.selected&&(ct.data={...ct.data,selected:!1})});const yt={...nt.data,selected:!0},rt=vt.split("-");if(rt.length===1)at[vt].data=yt;else{const ct=G=>{G.data=yt};(0,F.PM)({newOptionData:at,pathArr:rt,onUpdate:ct})}et({optionData:at})},S=it=>{let{node:nt,path:vt,newOptionData:at,canExpandOneMenu:et,onUpdate:yt,widgetType:rt="none"}=it;const ct=vt.split("-");et&&at.forEach((B,W)=>{ct.length===1&&Number(ct[0])!==W&&(B.data={...B.data,designExpanded:!1})});const G={...nt.data,designExpanded:!nt.data.designExpanded};if(rt!=="wTree"&&(G.selected=!1),ct.length===1)at[vt].data=G;else{const B=W=>{W.data=G};(0,F.PM)({newOptionData:at,pathArr:vt.split("-"),onUpdate:B})}yt({optionData:at})},O=it=>{let{node:nt,widget:vt,optionDataDesignUnExpanded:at,onUpdate:et}=it;const yt=D({optionData:nt,optionDataDesignUnExpanded:at,widgetVersion:vt["!version"]}),{optionData:rt}=vt,ct=[];(0,F.sV)(rt,B=>{ct.push(B.cid)});let G;if(yt)G=[...at,nt.data.cid];else if(G=[...at],vt.type===Z.x.WNavigationMenu){const{navigationMenu:{canExpandOneMenu:B}}=vt,W=rt.findIndex(ut=>ut.data.cid===nt.data.cid)!==-1;B&&W&&!yt&&rt.forEach(ut=>{ut.data.cid!==nt.data.cid&&ut.children.length>0&&G.push(ut.data.cid)}),G=G.filter(ut=>ut!==nt.data.cid)}else G=at.filter(B=>B!==nt.data.cid);et({optionDataDesignUnExpanded:z()(G.filter(B=>ct.findIndex(W=>W===B)===-1))})},$=it=>{let{node:nt,path:vt,designExpanded:at,newOptionData:et,onUpdate:yt}=it;if(vt.split("-").length===1)preOrderTraversal(et,ct=>{ct.data.designExpanded&&(ct.data.designExpanded=!1)}),et[vt].data={...nt.data,designExpanded:at,selected:!1};else{const ct=(G,B)=>{G.children.forEach((W,ut)=>{parseInt(B)===ut?W.data.designExpanded=at:W.data.designExpanded=!1})};updateDataByParentOption({newOptionData:et,pathArr:vt.split("-"),onUpdate:ct})}yt({optionData:et})},q=it=>{const{isMenuBackgroundVisible:nt,menuBackground:vt,menuBorder:at,menuShadow:et,menuTextSize:yt,menuTextColor:rt,menuHeight:ct}=it;return{background:vt,isBackgroundVisible:nt,border:at,shadow:et,fs:yt,tc:rt,height:ct}},ft=it=>{const{isSubMenuBackground:nt,subMenuBackground:vt,subMenuTextSize:at,subMenuTextColor:et,subMenuHeight:yt}=it;return{background:vt,isBackgroundVisible:nt,fs:at,tc:et,height:yt}},K=it=>{const{isActiveMenuItemBackgroundVisible:nt,activeMenuItemBackground:vt,activeMenuItemTextSize:at,activeMenuItemTextColor:et}=it;return{background:vt,isBackgroundVisible:nt,fs:at,tc:et}}},92598:(oe,Ct,T)=>{"use strict";T.d(Ct,{o:()=>F.A});var F=T(70043)},93619:(oe,Ct,T)=>{var F=T(15479),Z=T(27648),I=T(70597),z=1/0,D=F&&1/I(new F([,-0]))[1]==z?function(V){return new F(V)}:Z;oe.exports=D},95652:(oe,Ct,T)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.Track=void 0;var F=z(T(38502)),Z=z(T(53732)),I=T(11587);function z(H){return H&&H.__esModule?H:{default:H}}function D(H){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},D(H)}function V(){return V=Object.assign?Object.assign.bind():function(H){for(var N=1;N<arguments.length;N++){var Y=arguments[N];for(var gt in Y)({}).hasOwnProperty.call(Y,gt)&&(H[gt]=Y[gt])}return H},V.apply(null,arguments)}function ht(H,N){if(!(H instanceof N))throw new TypeError("Cannot call a class as a function")}function ot(H,N){for(var Y=0;Y<N.length;Y++){var gt=N[Y];gt.enumerable=gt.enumerable||!1,gt.configurable=!0,"value"in gt&&(gt.writable=!0),Object.defineProperty(H,yt(gt.key),gt)}}function S(H,N,Y){return N&&ot(H.prototype,N),Y&&ot(H,Y),Object.defineProperty(H,"prototype",{writable:!1}),H}function O(H,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(N&&N.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),N&&$(H,N)}function $(H,N){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Y,gt){return Y.__proto__=gt,Y},$(H,N)}function q(H){var N=it();return function(){var Y,gt=nt(H);if(N){var pt=nt(this).constructor;Y=Reflect.construct(gt,arguments,pt)}else Y=gt.apply(this,arguments);return ft(this,Y)}}function ft(H,N){if(N&&(D(N)=="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K(H)}function K(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function it(){try{var H=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(N){}return(it=function(){return!!H})()}function nt(H){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},nt(H)}function vt(H,N){var Y=Object.keys(H);if(Object.getOwnPropertySymbols){var gt=Object.getOwnPropertySymbols(H);N&&(gt=gt.filter(function(pt){return Object.getOwnPropertyDescriptor(H,pt).enumerable})),Y.push.apply(Y,gt)}return Y}function at(H){for(var N=1;N<arguments.length;N++){var Y=arguments[N]!=null?arguments[N]:{};N%2?vt(Object(Y),!0).forEach(function(gt){et(H,gt,Y[gt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Y)):vt(Object(Y)).forEach(function(gt){Object.defineProperty(H,gt,Object.getOwnPropertyDescriptor(Y,gt))})}return H}function et(H,N,Y){return(N=yt(N))in H?Object.defineProperty(H,N,{value:Y,enumerable:!0,configurable:!0,writable:!0}):H[N]=Y,H}function yt(H){var N=rt(H,"string");return D(N)=="symbol"?N:N+""}function rt(H,N){if(D(H)!="object"||!H)return H;var Y=H[Symbol.toPrimitive];if(Y!==void 0){var gt=Y.call(H,N||"default");if(D(gt)!="object")return gt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(H)}var ct=function(N){var Y,gt,pt,Tt,mt;N.rtl?mt=N.slideCount-1-N.index:mt=N.index,pt=mt<0||mt>=N.slideCount,N.centerMode?(Tt=Math.floor(N.slidesToShow/2),gt=(mt-N.currentSlide)%N.slideCount===0,mt>N.currentSlide-Tt-1&&mt<=N.currentSlide+Tt&&(Y=!0)):Y=N.currentSlide<=mt&&mt<N.currentSlide+N.slidesToShow;var lt;N.targetSlide<0?lt=N.targetSlide+N.slideCount:N.targetSlide>=N.slideCount?lt=N.targetSlide-N.slideCount:lt=N.targetSlide;var A=mt===lt;return{"slick-slide":!0,"slick-active":Y,"slick-center":gt,"slick-cloned":pt,"slick-current":A}},G=function(N){var Y={};return(N.variableWidth===void 0||N.variableWidth===!1)&&(Y.width=N.slideWidth),N.fade&&(Y.position="relative",N.vertical?Y.top=-N.index*parseInt(N.slideHeight):Y.left=-N.index*parseInt(N.slideWidth),Y.opacity=N.currentSlide===N.index?1:0,Y.zIndex=N.currentSlide===N.index?999:998,N.useCSS&&(Y.transition="opacity "+N.speed+"ms "+N.cssEase+", visibility "+N.speed+"ms "+N.cssEase)),Y},B=function(N,Y){return N.key||Y},W=function(N){var Y,gt=[],pt=[],Tt=[],mt=F.default.Children.count(N.children),lt=(0,I.lazyStartIndex)(N),A=(0,I.lazyEndIndex)(N);return F.default.Children.forEach(N.children,function(kt,_t){var Mt,At={message:"children",index:_t,slidesToScroll:N.slidesToScroll,currentSlide:N.currentSlide};!N.lazyLoad||N.lazyLoad&&N.lazyLoadedList.indexOf(_t)>=0?Mt=kt:Mt=F.default.createElement("div",null);var jt=G(at(at({},N),{},{index:_t})),Nt=Mt.props.className||"",Vt=ct(at(at({},N),{},{index:_t}));if(gt.push(F.default.cloneElement(Mt,{key:"original"+B(Mt,_t),"data-index":_t,className:(0,Z.default)(Vt,Nt),tabIndex:"-1","aria-hidden":!Vt["slick-active"],style:at(at({outline:"none"},Mt.props.style||{}),jt),onClick:function(Dt){Mt.props&&Mt.props.onClick&&Mt.props.onClick(Dt),N.focusOnSelect&&N.focusOnSelect(At)}})),N.infinite&&mt>1&&N.fade===!1&&!N.unslick){var Wt=mt-_t;Wt<=(0,I.getPreClones)(N)&&(Y=-Wt,Y>=lt&&(Mt=kt),Vt=ct(at(at({},N),{},{index:Y})),pt.push(F.default.cloneElement(Mt,{key:"precloned"+B(Mt,Y),"data-index":Y,tabIndex:"-1",className:(0,Z.default)(Vt,Nt),"aria-hidden":!Vt["slick-active"],style:at(at({},Mt.props.style||{}),jt),onClick:function(Dt){Mt.props&&Mt.props.onClick&&Mt.props.onClick(Dt),N.focusOnSelect&&N.focusOnSelect(At)}}))),_t<(0,I.getPostClones)(N)&&(Y=mt+_t,Y<A&&(Mt=kt),Vt=ct(at(at({},N),{},{index:Y})),Tt.push(F.default.cloneElement(Mt,{key:"postcloned"+B(Mt,Y),"data-index":Y,tabIndex:"-1",className:(0,Z.default)(Vt,Nt),"aria-hidden":!Vt["slick-active"],style:at(at({},Mt.props.style||{}),jt),onClick:function(Dt){Mt.props&&Mt.props.onClick&&Mt.props.onClick(Dt),N.focusOnSelect&&N.focusOnSelect(At)}})))}}),N.rtl?pt.concat(gt,Tt).reverse():pt.concat(gt,Tt)},ut=Ct.Track=function(H){O(Y,H);var N=q(Y);function Y(){var gt;ht(this,Y);for(var pt=arguments.length,Tt=new Array(pt),mt=0;mt<pt;mt++)Tt[mt]=arguments[mt];return gt=N.call.apply(N,[this].concat(Tt)),et(K(gt),"node",null),et(K(gt),"handleRef",function(lt){gt.node=lt}),gt}return S(Y,[{key:"render",value:function(){var pt=W(this.props),Tt=this.props,mt=Tt.onMouseEnter,lt=Tt.onMouseOver,A=Tt.onMouseLeave,kt={onMouseEnter:mt,onMouseOver:lt,onMouseLeave:A};return F.default.createElement("div",V({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},kt),pt)}}]),Y}(F.default.PureComponent)},95657:(oe,Ct,T)=>{"use strict";T.d(Ct,{Bq:()=>q,F6:()=>ht,G1:()=>B,Gb:()=>at,L4:()=>K,Lu:()=>it,OX:()=>D,SH:()=>$,i8:()=>W,iB:()=>vt,iM:()=>ot,l3:()=>H,m7:()=>V,m9:()=>ft,qr:()=>G,rU:()=>et,sA:()=>z,ul:()=>nt,xn:()=>O,y1:()=>ut});var F=T(10472),Z=T(4235),I=T(12211);const z=N=>N.aiComponent.isInAIComponentCreateMode,D=N=>N.aiComponent.isInAIComponentSnapshotMode,V=N=>N.aiComponent.createStartPoint,ht=N=>N.aiComponent.createEndPoint,ot=N=>N.aiComponent.isDraggingMouse,S=N=>N.aiComponent.snapshotBase64Url,O=N=>N.aiComponent.isOptimumLoading,$=N=>N.aiComponent.editInputAreaText,q=N=>N.aiComponent.editingAIComponentKey,ft=N=>N.aiComponent.isShowAIComponentTextCursor,K=N=>N.aiComponent.requestLoading,it=N=>N.aiComponent.requestLoading.isLoading,nt=N=>N.aiComponent.requestLoading.key,vt=N=>N.aiComponent.isShowInputContainer,at=N=>N.aiComponent.isShowThinkingMode,et=N=>N.aiComponent.withoutStreamingKeyList,yt=N=>N.aiComponent.promptMap,rt=N=>N.aiComponent.snapshotBase64UrlMap,ct=N=>N.aiComponent.prevHtmlMap,G=N=>N.aiComponent.editingInfoMap,B=N=>N.aiComponent.floatBarOperationMap,W=(0,I.Mz)(nt,Z.p$,G,(N,Y,gt)=>{if(Y.length!==1)return!1;const pt=Y[0],Tt=gt[pt];return Tt&&Tt.selectedElementList.length>0?!1:N!==pt}),ut=(0,I.Mz)(z,D,O,F.r,(N,Y,gt,pt)=>{let{isEditingUserCombo:Tt,isEditingOrgCombo:mt}=pt;return Tt||mt?!1:N&&Y&&!gt}),H=(0,I.Mz)(F.r,N=>{let{isEditingUserCombo:Y,isEditingOrgCombo:gt}=N;return!Y&&!gt})},95956:(oe,Ct,T)=>{"use strict";T.d(Ct,{M2:()=>S,RY:()=>it,XI:()=>ot,kP:()=>K,lK:()=>O,rD:()=>ft});var F=T(53559),Z=T(61893),I=T(86964),z=T(25306);const D=/^image\/(png|jpg|jpeg|gif|svg|svg\+xml)$/i,V=2,ht=5,ot=(nt,vt,at,et,yt)=>{if(!D.test(nt.type))throw Object.assign(new Error(I18N.dUtils.damaged_file),{desc:I18N.dUtils.support_file_type,asset:nt});if(!et){var rt;const B=(rt=MB)==null||(rt=rt.__store__)==null||(rt=rt.getState())==null||(rt=rt.current)==null?void 0:rt.personalOrg;B&&(et=B)}const ct=(0,F.xR)(at,et),{maxPicBytes:G}=ct;if(nt.size>G){if(vt==="library")throw ModalHelper&&ModalHelper.libraryNotice&&ModalHelper.libraryNotice("\u4E0A\u4F20\u56FE\u7247\u5BB9\u91CF\u8FC7\u5927","error"),new Error("dashboard upload failed");{let B=!0;throw et&&et.otype===I.CJ&&z.tz.InitialOrg(et).planSdk.prototypePlan.plan===z.L1.Free&&(B=!1),B?(MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Z.hC.OrgMaxPicSize}}),new Error("NoErrorTips")):(MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Z.hC.SoloMaxPicSize}}),new Error("NoErrorTips"))}}},S=async nt=>{const vt=await new Promise((et,yt)=>{const rt=new FileReader;rt.onerror=()=>yt(new Error(I18N.dUtils.unsupported)),rt.onload=ct=>et(ct.target.result),rt.readAsDataURL(nt)}),at=await new Promise((et,yt)=>{const rt=new Image;rt.onerror=()=>yt(new Error(I18N.dUtils.unsupported)),rt.onload=()=>et(rt),rt.src=vt});return{data:vt,width:at.width,height:at.height}},O=nt=>{nt.payload&&nt.payload.status===401?MB.global.popupHelper.alertAsync({title:I18N.dUtils.err_info_modal.INVALID_COOKIE.title,desc:I18N.dUtils.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dUtils.confirm}).then(()=>{location.href=location.origin+"/signin"}):MB.global.popupHelper.alertAsync({title:nt.message,desc:nt.desc,isHTML:nt.isHTML,confirmText:nt.confirmText}).then(()=>{nt.type==="free"&&MB.global.popupHelper.chargeAsync({mode:"solo",productId:8988,hours:"yearly",payEntrance:"\u56FE\u7247\u9650\u5236-\u5347\u7EA7\u4E2A\u4EBA"})})},$=(nt,vt)=>nt.endsWith(vt)?nt:nt+("-"+vt),q=(nt,vt)=>nt.startsWith("#")?"#"+$(nt.slice(1),vt):null,ft=(nt,vt,at)=>{if(nt.attributes){const et=nt.getAttribute("id");et&&et.length>0&&(nt.setAttribute("id",$(et,vt)),at&&at.id&&at.id.push(et));const yt=nt.getAttribute("class");if(yt&&yt.length>0){const ct=yt.split(/\s+/).map(G=>$(G,vt)).join(" ");nt.setAttribute("class",ct),at&&at.class&&at.class.push(yt)}for(const ct of["href","xlink:href"]){const G=nt.getAttribute(ct);if(G&&G.length>0){const B=q(G,vt);B&&nt.setAttribute(ct,B)}}const rt=["clip-path","color-profile","fill","filter","marker-start","marker-mid","marker-end","mask","stroke","style"];for(const ct of rt){const G=nt.getAttribute(ct);if(G&&G.length>0){const B=G.replace(/url\((.*?)\)/gi,(W,ut)=>{const H=q(ut,vt);return H==null?W:"url("+H+")"});B&&nt.setAttribute(ct,B)}}for(const ct of["begin","end"]){const G=nt.getAttribute(ct);if(G&&G.length>0){const B=G.split(/\s*;\s+/).map(W=>{if(W.endsWith(".end")||W.endsWith(".start")){const[ut,H]=W.split(".");return $(ut,vt)+"."+H}return W});nt.setAttribute(ct,B.join("; "))}}if(nt.childNodes)for(const ct of nt.childNodes)ft(ct,vt,at)}},K=(nt,vt,at)=>{const et=nt?nt.querySelectorAll("style"):[];at.id=[...new Set(at.id)],at.class=[...new Set(at.class)];for(const yt of et)yt&&!yt.textContent.includes(vt)&&(at.id.forEach(rt=>{yt.textContent=yt.textContent.replace(new RegExp("\\b"+rt+"\\b","g"),rt+"-"+vt)}),at.class.forEach(rt=>{yt.textContent=yt.textContent.replace(new RegExp("\\b"+rt+"\\b","g"),rt+"-"+vt)}))},it=nt=>{var vt;const{path:at}=(nt==null?void 0:nt.iconData)||(nt==null||(vt=nt.hotAttr)==null?void 0:vt.iconData),et=new DOMParser,yt='<svg xmlns="http://www.w3.org/2000/svg">'+at+"</svg>",ct=et.parseFromString(yt,"text/html").querySelector("svg"),G={id:[],class:[]},B=(nt==null?void 0:nt.key)||"",W=B.includes("/")?B.split("/").join(""):B;return ft(ct,W,G),K(ct,W,G),ct}},96265:(oe,Ct,T)=>{"use strict";function F(B){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},F(B)}Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.PrevArrow=Ct.NextArrow=void 0;var Z=D(T(38502)),I=D(T(53732)),z=T(11587);function D(B){return B&&B.__esModule?B:{default:B}}function V(){return V=Object.assign?Object.assign.bind():function(B){for(var W=1;W<arguments.length;W++){var ut=arguments[W];for(var H in ut)({}).hasOwnProperty.call(ut,H)&&(B[H]=ut[H])}return B},V.apply(null,arguments)}function ht(B,W){var ut=Object.keys(B);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(B);W&&(H=H.filter(function(N){return Object.getOwnPropertyDescriptor(B,N).enumerable})),ut.push.apply(ut,H)}return ut}function ot(B){for(var W=1;W<arguments.length;W++){var ut=arguments[W]!=null?arguments[W]:{};W%2?ht(Object(ut),!0).forEach(function(H){S(B,H,ut[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(ut)):ht(Object(ut)).forEach(function(H){Object.defineProperty(B,H,Object.getOwnPropertyDescriptor(ut,H))})}return B}function S(B,W,ut){return(W=ft(W))in B?Object.defineProperty(B,W,{value:ut,enumerable:!0,configurable:!0,writable:!0}):B[W]=ut,B}function O(B,W){if(!(B instanceof W))throw new TypeError("Cannot call a class as a function")}function $(B,W){for(var ut=0;ut<W.length;ut++){var H=W[ut];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(B,ft(H.key),H)}}function q(B,W,ut){return W&&$(B.prototype,W),ut&&$(B,ut),Object.defineProperty(B,"prototype",{writable:!1}),B}function ft(B){var W=K(B,"string");return F(W)=="symbol"?W:W+""}function K(B,W){if(F(B)!="object"||!B)return B;var ut=B[Symbol.toPrimitive];if(ut!==void 0){var H=ut.call(B,W||"default");if(F(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)(B)}function it(B,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(W&&W.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),W&&nt(B,W)}function nt(B,W){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ut,H){return ut.__proto__=H,ut},nt(B,W)}function vt(B){var W=yt();return function(){var ut,H=rt(B);if(W){var N=rt(this).constructor;ut=Reflect.construct(H,arguments,N)}else ut=H.apply(this,arguments);return at(this,ut)}}function at(B,W){if(W&&(F(W)=="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return et(B)}function et(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function yt(){try{var B=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(W){}return(yt=function(){return!!B})()}function rt(B){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},rt(B)}var ct=Ct.PrevArrow=function(B){it(ut,B);var W=vt(ut);function ut(){return O(this,ut),W.apply(this,arguments)}return q(ut,[{key:"clickHandler",value:function(N,Y){Y&&Y.preventDefault(),this.props.clickHandler(N,Y)}},{key:"render",value:function(){var N={"slick-arrow":!0,"slick-prev":!0},Y=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(N["slick-disabled"]=!0,Y=null);var gt={key:"0","data-role":"none",className:(0,I.default)(N),style:{display:"block"},onClick:Y},pt={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Tt;return this.props.prevArrow?Tt=Z.default.cloneElement(this.props.prevArrow,ot(ot({},gt),pt)):Tt=Z.default.createElement("button",V({key:"0",type:"button"},gt)," ","Previous"),Tt}}]),ut}(Z.default.PureComponent),G=Ct.NextArrow=function(B){it(ut,B);var W=vt(ut);function ut(){return O(this,ut),W.apply(this,arguments)}return q(ut,[{key:"clickHandler",value:function(N,Y){Y&&Y.preventDefault(),this.props.clickHandler(N,Y)}},{key:"render",value:function(){var N={"slick-arrow":!0,"slick-next":!0},Y=this.clickHandler.bind(this,{message:"next"});(0,z.canGoNext)(this.props)||(N["slick-disabled"]=!0,Y=null);var gt={key:"1","data-role":"none",className:(0,I.default)(N),style:{display:"block"},onClick:Y},pt={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Tt;return this.props.nextArrow?Tt=Z.default.cloneElement(this.props.nextArrow,ot(ot({},gt),pt)):Tt=Z.default.createElement("button",V({key:"1",type:"button"},gt)," ","Next"),Tt}}]),ut}(Z.default.PureComponent)},96427:(oe,Ct,T)=>{"use strict";T.d(Ct,{h:()=>Z});var F=T(5209);const Z=I=>{(0,F.kH)("mind_operation_V8",{operation_type:I})}},97453:(oe,Ct,T)=>{"use strict";T.d(Ct,{Ay:()=>q,EL:()=>S,nF:()=>V,pt:()=>ht,qs:()=>O});var F=T(38502),Z=T(53732),I=T.n(Z),z=T(72214);const D={none:{w:8,h:8,d:"M0 0 L0 0"},"start-solid-triangle":{w:8,h:8,d:"M1 4 L7 7 L7 1 L1 4"},"start-hollow-triangle":{w:8,h:8,d:"M1.5 4 L6.5 6.5 L6.5 1.5 L1.5 4 L6.5 6.5"},"start-arrow":{w:8,h:8,d:"M1 4 L7 8 L4 4 L7 0 L1 4"},"start-solid-circle":{w:8,h:8},"start-hollow-circle":{w:8,h:8},"start-solid-rect":{w:8,h:8,d:"M1 1 L7 1 L7 7 L1 7 L1 1"},"start-hollow-rect":{w:8,h:8,d:"M1.6 1.5 L6.5 1.5 L6.5 6.5 L1.5 6.5 L1.5 1.5 L6.5 1.5"},"start-solid-diamond":{w:8,h:8,d:"M1 4 L4 7 L7 4 L4 1 L1 4 L4 7"},"start-hollow-diamond":{w:8,h:8,d:"M1.5 4 L4 6.5 L6.5 4 L4 1.5 L1.5 4 L4 6.5"}},V={none:0,"start-solid-triangle":1,"start-hollow-triangle":1,"start-arrow":3,"start-solid-circle":4,"start-hollow-circle":4,"start-solid-rect":6,"start-hollow-rect":6,"start-solid-diamond":8,"start-hollow-diamond":8},ht={0:"none",1:"start-solid-triangle",2:"start-solid-triangle",3:"start-arrow",4:"start-solid-circle",5:"start-solid-circle",6:"start-solid-rect",7:"start-solid-rect",8:"start-solid-diamond",9:"start-solid-diamond"},ot={none:{w:8,h:8,d:"M0,0 L0,0"},"end-solid-triangle":{w:8,h:8,d:"M1 1 L1 7 L7 4 L1 1"},"end-hollow-triangle":{w:8,h:8,d:"M1.5 1.5 L1.5 6.5 L6.5 4 L1.5 1.5 L1.5 6.5"},"end-arrow":{w:8,h:8,d:"M1 0 L7 4 L1 8 L4 4 L1 0"},"end-solid-circle":{w:8,h:8},"end-hollow-circle":{w:8,h:8},"end-solid-rect":{w:8,h:8,d:"M1 1 L7 1 L7 7 L1 7 L1 1"},"end-hollow-rect":{w:8,h:8,d:"M1.6 1.5 L6.5 1.5 L6.5 6.5 L1.5 6.5 L1.5 1.5 L6.5 1.5"},"end-solid-diamond":{w:8,h:8,d:"M1 4 L4 7 L7 4 L4 1 L1 4 L4 7"},"end-hollow-diamond":{w:8,h:8,d:"M1.5 4 L4 6.5 L6.5 4 L4 1.5 L1.5 4 L4 6.5"}},S={none:0,"end-solid-triangle":1,"end-hollow-triangle":1,"end-arrow":3,"end-solid-circle":4,"end-hollow-circle":4,"end-solid-rect":6,"end-hollow-rect":6,"end-solid-diamond":8,"end-hollow-diamond":8},O={0:"none",1:"end-solid-triangle",2:"end-solid-triangle",3:"end-arrow",4:"end-solid-circle",5:"end-solid-circle",6:"end-solid-rect",7:"end-solid-rect",8:"end-solid-diamond",9:"end-solid-diamond"},$=ft=>{const{elbowKey:K,markerStart:it,markerEnd:nt,isShowText:vt,textPosition:at,w:et,h:yt,strokeWidth:rt,mode:ct}=ft,G=D[it],B=ot[nt],W=rt*8,ut=it.includes("hollow"),H=nt.includes("hollow");return(0,z.jsx)("svg",{className:"marker-wrap",children:(0,z.jsxs)("defs",{className:"",children:[vt&&at&&(0,z.jsxs)("clipPath",{id:K+"-clip-path",children:[at.t+W>0&&(0,z.jsx)("rect",{x:-W,y:-W,width:et+W*2,height:at.t+W}),yt-at.t-at.h+W>0&&(0,z.jsx)("rect",{x:-W,y:at.t+at.h,width:et+W*2,height:yt-at.t-at.h+W}),at.l+W>0&&(0,z.jsx)("rect",{x:-W,y:at.t,width:at.l+W,height:at.h}),et-at.l-at.w+W>0&&(0,z.jsx)("rect",{x:at.l+at.w,y:at.t,width:et-at.l-at.w+W,height:at.h})]}),G&&(0,z.jsxs)("marker",{className:I()("marker-wrap-ghost1",{hollow:ut}),id:it+"-"+K+"-start-"+ct,markerUnits:"strokeWidth",markerWidth:G.w,markerHeight:G.h,viewBox:"0 0 "+G.w+" "+G.h,refX:G.w/2-(B.w/2-2),refY:G.h/2,orient:"auto",children:[it.includes("circle")&&(0,z.jsx)("circle",{cx:G.w/2,cy:G.h/2,r:G.w/2-(ut?1.5:1)}),!it.includes("circle")&&(0,z.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:G.d})]}),B&&(0,z.jsxs)("marker",{className:I()("marker-wrap-ghost2",{hollow:H}),id:nt+"-"+K+"-end-"+ct,markerUnits:"strokeWidth",markerWidth:B.w,markerHeight:B.h,viewBox:"0 0 "+B.w+" "+B.h,refX:B.w/2+(B.w/2-2),refY:B.h/2,orient:"auto",children:[nt.includes("circle")&&(0,z.jsx)("circle",{cx:B.w/2,cy:B.h/2,r:B.w/2-(H?1.5:1)}),!nt.includes("circle")&&(0,z.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:B.d})]})]})})},q=(0,F.memo)($)}}]);
//# sourceMappingURL=5.fxqum-vendor-f8aaf1fb2db7ed4b19df.js.map