detail-9455e330.js 75 KB

12345
  1. import{u as xa,y as wa,r as ce,l as Ca,b as W,o as q,c as ee,d as k,i as z,t as U,e as B,w as F,m as ct,x as Ta,z as Aa,E as Da,F as ht,h as dt,g as Ia,p as La,j as Pa}from"./index-f4f34206.js";import{A as ka}from"./index-99ee9cb9.js";import{_ as Oa}from"./_plugin-vue_export-helper-c27b6911.js";import{a7 as Ht,R as de,_ as N,C as Yt,a8 as Y,a9 as Xt,aa as Ma,ab as ke,ac as X,F as E,ad as Ra,e as O,ae as K,v as Ut,af as $t,ag as Ba,ah as qt,ai as Na,aj as xe,ak as Va,al as Ga,am as vt,an as za,g as j,ao as Ea,ap as Wa,aq as gt,ar as Fa,as as Ha,at as Ya,au as ft,av as V,aw as pt,ax as jt,ay as Xa,az as Ua,i as Oe,p as H,a0 as Me,aA as $a,A as Zt,M as _e,aB as qa,aC as ja,aD as Ee,D as we,aE as Za,aF as mt,X as Ka,aG as Qa,aH as Kt,G as Je,f as Ja,aI as Re,P as er,I as tr,aJ as ar,aK as et,aL as yt,aM as rr,aN as ir,aO as Se,aP as nr,aQ as or,aR as Z,aS as tt,aT as sr,aU as Qt,aV as lr,aW as ur,r as cr,w as ae,aX as Jt,Q as at,aY as ea,aZ as _t,a_ as hr,a$ as dr,t as oe,b0 as ta,q as vr,b1 as qe,b2 as gr,V as aa,b3 as ra,b4 as fr,b5 as pr,b6 as ia,b7 as na,b8 as mr,b9 as oa,ba as Be,bb as yr,bc as _r,bd as br,be as Sr,bf as xr,bg as bt,bh as wr,bi as Cr,d as Tr,bj as Ar,j as Dr,bk as Ir,l as Lr,bl as Pr,U as kr,bm as Or,bn as Mr,bo as Rr,m as Br,bp as Nr,bq as We,a3 as Vr,a4 as Gr,E as zr,a5 as Er,a6 as Wr,a2 as Fe}from"./installCanvasRenderer-019b318b.js";function Fr(r,a){var e=Ht(a.get("padding")),t=a.getItemStyle(["color","opacity"]);return t.fill=a.get("backgroundColor"),r=new de({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:a.get("borderRadius")},style:t,silent:!0,z2:-1}),r}var Hr=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.type="tooltip",a.dependencies=["axisPointer"],a.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}},a}(Yt);const Yr=Hr;function sa(r){var a=r.get("confine");return a!=null?!!a:r.get("renderMode")==="richText"}function la(r){if(Y.domSupported){for(var a=document.documentElement.style,e=0,t=r.length;e<t;e++)if(r[e]in a)return r[e]}}var ua=la(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Xr=la(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ca(r,a){if(!r)return a;a=Xt(a,!0);var e=r.indexOf(a);return r=e===-1?a:"-"+r.slice(0,e)+"-"+a,r.toLowerCase()}function Ur(r,a){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?a?e[a]:e:null}var $r=ca(Xr,"transition"),rt=ca(ua,"transform"),qr="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Y.transform3dSupported?"will-change:transform;":"");function jr(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Zr(r,a,e){if(!X(e)||e==="inside")return"";var t=r.get("backgroundColor"),i=r.get("borderWidth");a=ke(a);var n=jr(e),o=Math.max(Math.round(i)*1.5,6),l="",s=rt+":",u;Ut(["left","right"],n)>-1?(l+="top:50%",s+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(l+="left:50%",s+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;l+=";"+n+":-"+d+"px";var g=a+" solid "+i+"px;",f=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",l+";"+s+";","border-bottom:"+g,"border-right:"+g,"background-color:"+t+";"];return'<div style="'+f.join("")+'"></div>'}function Kr(r,a){var e="cubic-bezier(0.23,1,0.32,1)",t=" "+r/2+"s "+e,i="opacity"+t+",visibility"+t;return a||(t=" "+r+"s "+e,i+=Y.transformSupported?","+rt+t:",left"+t+",top"+t),$r+":"+i}function St(r,a,e){var t=r.toFixed(0)+"px",i=a.toFixed(0)+"px";if(!Y.transformSupported)return e?"top:"+i+";left:"+t+";":[["top",i],["left",t]];var n=Y.transform3dSupported,o="translate"+(n?"3d":"")+"("+t+","+i+(n?",0":"")+")";return e?"top:0;left:0;"+rt+":"+o+";":[["top",0],["left",0],[ua,o]]}function Qr(r){var a=[],e=r.get("fontSize"),t=r.getTextColor();t&&a.push("color:"+t),a.push("font:"+r.getFont()),e&&a.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&n&&a.push("text-shadow:"+o+"px "+l+"px "+n+"px "+i),O(["decoration","align"],function(s){var u=r.get(s);u&&a.push("text-"+s+":"+u)}),a.join(";")}function Jr(r,a,e){var t=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),l=r.get("shadowColor"),s=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=$t(r,"html"),v=s+"px "+u+"px "+o+"px "+l;return t.push("box-shadow:"+v),a&&i&&t.push(Kr(i,e)),n&&t.push("background-color:"+n),O(["width","color","radius"],function(d){var g="border-"+d,f=Xt(g),_=r.get(f);_!=null&&t.push(g+":"+_+(d==="color"?"":"px"))}),t.push(Qr(c)),h!=null&&t.push("padding:"+Ht(h).join("px ")+"px"),t.join(";")+";"}function xt(r,a,e,t,i){var n=a&&a.painter;if(e){var o=n&&n.getViewportRoot();o&&Ba(r,o,document.body,t,i)}else{r[0]=t,r[1]=i;var l=n&&n.getViewportRootOffset();l&&(r[0]+=l.offsetLeft,r[1]+=l.offsetTop)}r[2]=r[0]/a.getWidth(),r[3]=r[1]/a.getHeight()}var ei=function(){function r(a,e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Y.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),o=this._appendToBody=t&&t.appendToBody;xt(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):a.appendChild(i),this._container=a;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(s){if(s=s||window.event,!l._enterable){var u=n.handler,c=n.painter.getViewportRoot();Ma(c,s,!0),u.dispatch("mousemove",s)}},i.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return r.prototype.update=function(a){var e=this._container,t=Ur(e,"position"),i=e.style;i.position!=="absolute"&&t!=="absolute"&&(i.position="relative");var n=a.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=a.get("className")||""},r.prototype.show=function(a,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el,i=t.style,n=this._styleCoord;t.innerHTML?i.cssText=qr+Jr(a,!this._firstShow,this._longHide)+St(n[0],n[1],!0)+("border-color:"+ke(e)+";")+(a.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(a,e,t,i,n){var o=this.el;if(a==null){o.innerHTML="";return}var l="";if(X(n)&&t.get("trigger")==="item"&&!sa(t)&&(l=Zr(t,i,n)),X(a))o.innerHTML=a+l;else if(a){o.innerHTML="",E(a)||(a=[a]);for(var s=0;s<a.length;s++)Ra(a[s])&&a[s].parentNode!==o&&o.appendChild(a[s]);if(l&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=l,o.appendChild(u)}}},r.prototype.setEnterable=function(a){this._enterable=a},r.prototype.getSize=function(){var a=this.el;return[a.offsetWidth,a.offsetHeight]},r.prototype.moveTo=function(a,e){var t=this._styleCoord;if(xt(t,this._zr,this._appendToBody,a,e),t[0]!=null&&t[1]!=null){var i=this.el.style,n=St(t[0],t[1]);O(n,function(o){i[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var a=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(a*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var a=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Y.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return a._longHide=!0},500)},r.prototype.hideLater=function(a){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(a?(this._hideDelay=a,this._show=!1,this._hideTimeout=setTimeout(K(this.hide,this),a)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const ti=ei;var ai=function(){function r(a){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=a.getZr(),Ct(this._styleCoord,this._zr,a.getWidth()/2,a.getHeight()/2)}return r.prototype.update=function(a){var e=a.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(a,e,t,i,n){var o=this;qt(a)&&Na(""),this.el&&this._zr.remove(this.el);var l=t.getModel("textStyle");this.el=new xe({style:{rich:e.richTextStyles,text:a,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:l.get("textShadowColor"),fill:t.get(["textStyle","color"]),padding:$t(t,"richText"),verticalAlign:"top",align:"left"},z:t.get("z")}),O(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=t.get(u)}),O(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=l.get(u)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},r.prototype.setEnterable=function(a){this._enterable=a},r.prototype.getSize=function(){var a=this.el,e=this.el.getBoundingRect(),t=wt(a.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},r.prototype.moveTo=function(a,e){var t=this.el;if(t){var i=this._styleCoord;Ct(i,this._zr,a,e),a=i[0],e=i[1];var n=t.style,o=te(n.borderWidth||0),l=wt(n);t.x=a+o+l.left,t.y=e+o+l.top,t.markRedraw()}},r.prototype._moveIfResized=function(){var a=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(a*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(a){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(a?(this._hideDelay=a,this._show=!1,this._hideTimeout=setTimeout(K(this.hide,this),a)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function te(r){return Math.max(0,r)}function wt(r){var a=te(r.shadowBlur||0),e=te(r.shadowOffsetX||0),t=te(r.shadowOffsetY||0);return{left:te(a-e),right:te(a+e),top:te(a-t),bottom:te(a+t)}}function Ct(r,a,e,t){r[0]=e,r[1]=t,r[2]=r[0]/a.getWidth(),r[3]=r[1]/a.getHeight()}const ri=ai;var ii=new de({shape:{x:-1,y:-1,width:2,height:2}}),ni=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.prototype.init=function(e,t){if(!(Y.node||!t.getDom())){var i=e.getComponent("tooltip"),n=this._renderMode=Va(i.get("renderMode"));this._tooltipContent=n==="richText"?new ri(t):new ti(t.getDom(),t,{appendToBody:i.get("appendToBody",!0)})}},a.prototype.render=function(e,t,i){if(!(Y.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=i;var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Ga(this,"_updatePosition",50,"fixRate"):vt(this,"_updatePosition")}},a.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");za("itemTooltip",this._api,K(function(i,n,o){t!=="none"&&(t.indexOf(i)>=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},a.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,i=this._api,n=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,t,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},a.prototype.manuallyShowTip=function(e,t,i,n){if(!(n.from===this.uid||Y.node||!i.getDom())){var o=Tt(n,i);this._ticket="";var l=n.dataByCoordSys,s=ui(n,t,i);if(s){var u=s.el.getBoundingRect().clone();u.applyTransform(s.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:s.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var c=ii;c.x=n.x,c.y=n.y,c.update(),j(c).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:c},o)}else if(l)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:l,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,i,n))return;var h=Ea(n,t),v=h.point[0],d=h.point[1];v!=null&&d!=null&&this._tryShow({offsetX:v,offsetY:d,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},a.prototype.manuallyHideTip=function(e,t,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Tt(n,i))},a.prototype._manuallyAxisShowTip=function(e,t,i,n){var o=n.seriesIndex,l=n.dataIndex,s=t.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||l==null||s==null)){var u=t.getSeriesByIndex(o);if(u){var c=u.getData(),h=me([c.getItemModel(l),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:l,position:n.position}),!0}}},a.prototype._tryShow=function(e,t){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var l,s;Wa(i,function(u){if(j(u).dataIndex!=null)return l=u,!0;if(j(u).tooltipConfig!=null)return s=u,!0},!0),l?this._showSeriesItemTooltip(e,l,t):s?this._showComponentItemTooltip(e,s,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},a.prototype._showOrMove=function(e,t){var i=e.get("showDelay");t=K(t,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(t,i):t()},a.prototype._showAxisTooltip=function(e,t){var i=this._ecModel,n=this._tooltipModel,o=[t.offsetX,t.offsetY],l=me([t.tooltipOption],n),s=this._renderMode,u=[],c=gt("section",{blocks:[],noHeader:!0}),h=[],v=new Ee;O(e,function(p){O(p.dataByAxis,function(m){var S=i.getComponent(m.axisDim+"Axis",m.axisIndex),b=m.value;if(!(!S||b==null)){var x=Fa(b,S.axis,i,m.seriesDataIndices,m.valueLabelOpt),T=gt("section",{header:x,noHeader:!Ha(x),sortBlocks:!0,blocks:[]});c.blocks.push(T),O(m.seriesDataIndices,function(w){var I=i.getSeriesByIndex(w.seriesIndex),L=w.dataIndexInside,C=I.getDataParams(L);if(!(C.dataIndex<0)){C.axisDim=m.axisDim,C.axisIndex=m.axisIndex,C.axisType=m.axisType,C.axisId=m.axisId,C.axisValue=Ya(S.axis,{value:b}),C.axisValueLabel=x,C.marker=v.makeTooltipMarker("item",ke(C.color),s);var A=ft(I.formatTooltip(L,!0,null)),D=A.frag;if(D){var M=me([I],n).get("valueFormatter");T.blocks.push(M?V({valueFormatter:M},D):D)}A.text&&h.push(A.text),u.push(C)}})}})}),c.blocks.reverse(),h.reverse();var d=t.position,g=l.get("order"),f=pt(c,v,s,g,i.get("useUTC"),l.get("textStyle"));f&&h.unshift(f);var _=s==="richText"?`
  2. `:"<br/>",y=h.join(_);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(l,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(l,y,u,Math.random()+"",o[0],o[1],d,null,v)})},a.prototype._showSeriesItemTooltip=function(e,t,i){var n=this._ecModel,o=j(t),l=o.seriesIndex,s=n.getSeriesByIndex(l),u=o.dataModel||s,c=o.dataIndex,h=o.dataType,v=u.getData(h),d=this._renderMode,g=e.positionDefault,f=me([v.getItemModel(c),u,s&&(s.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=f.get("trigger");if(!(_!=null&&_!=="item")){var y=u.getDataParams(c,h),p=new Ee;y.marker=p.makeTooltipMarker("item",ke(y.color),d);var m=ft(u.formatTooltip(c,!1,h)),S=f.get("order"),b=f.get("valueFormatter"),x=m.frag,T=x?pt(b?V({valueFormatter:b},x):x,p,d,S,n.get("useUTC"),f.get("textStyle")):m.text,w="item_"+u.name+"_"+c;this._showOrMove(f,function(){this._showTooltipContent(f,T,y,w,e.offsetX,e.offsetY,e.position,e.target,p)}),i({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:l,from:this.uid})}},a.prototype._showComponentItemTooltip=function(e,t,i){var n=j(t),o=n.tooltipConfig,l=o.option||{};if(X(l)){var s=l;l={content:s,formatter:s}}var u=[l],c=this._ecModel.getComponent(n.componentMainType,n.componentIndex);c&&u.push(c),u.push({formatter:l.content});var h=e.positionDefault,v=me(u,this._tooltipModel,h?{position:h}:null),d=v.get("content"),g=Math.random()+"",f=new Ee;this._showOrMove(v,function(){var _=jt(v.get("formatterParams")||{});this._showTooltipContent(v,d,_,g,e.offsetX,e.offsetY,e.position,t,f)}),i({type:"showTip",from:this.uid})},a.prototype._showTooltipContent=function(e,t,i,n,o,l,s,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");s=s||e.get("position");var d=t,g=this._getNearestPoint([o,l],i,e.get("trigger"),e.get("borderColor")),f=g.color;if(v)if(X(v)){var _=e.ecModel.get("useUTC"),y=E(i)?i[0]:i,p=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=v,p&&(d=Xa(y.axisValue,d,_)),d=Ua(d,i,!0)}else if(Oe(v)){var m=K(function(S,b){S===this._ticket&&(h.setContent(b,c,e,f,s),this._updatePosition(e,s,o,l,h,i,u))},this);this._ticket=n,d=v(i,n,m)}else d=v;h.setContent(d,c,e,f,s),h.show(e,f),this._updatePosition(e,s,o,l,h,i,u)}},a.prototype._getNearestPoint=function(e,t,i,n){if(i==="axis"||E(t))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!E(t))return{color:n||t.color||t.borderColor}},a.prototype._updatePosition=function(e,t,i,n,o,l,s){var u=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var h=o.getSize(),v=e.get("align"),d=e.get("verticalAlign"),g=s&&s.getBoundingRect().clone();if(s&&g.applyTransform(s.transform),Oe(t)&&(t=t([i,n],l,o.el,g,{viewSize:[u,c],contentSize:h.slice()})),E(t))i=H(t[0],u),n=H(t[1],c);else if(qt(t)){var f=t;f.width=h[0],f.height=h[1];var _=Me(f,{width:u,height:c});i=_.x,n=_.y,v=null,d=null}else if(X(t)&&s){var y=li(t,g,h,e.get("borderWidth"));i=y[0],n=y[1]}else{var y=oi(i,n,o,u,c,v?null:20,d?null:20);i=y[0],n=y[1]}if(v&&(i-=At(v)?h[0]/2:v==="right"?h[0]:0),d&&(n-=At(d)?h[1]/2:d==="bottom"?h[1]:0),sa(e)){var y=si(i,n,o,u,c);i=y[0],n=y[1]}o.moveTo(i,n)},a.prototype._updateContentNotChangedOnAxis=function(e,t){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===e.length;return o&&O(i,function(l,s){var u=l.dataByAxis||[],c=e[s]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&O(u,function(v,d){var g=h[d]||{},f=v.seriesDataIndices||[],_=g.seriesDataIndices||[];o=o&&v.value===g.value&&v.axisType===g.axisType&&v.axisId===g.axisId&&f.length===_.length,o&&O(f,function(y,p){var m=_[p];o=o&&y.seriesIndex===m.seriesIndex&&y.dataIndex===m.dataIndex}),n&&O(v.seriesDataIndices,function(y){var p=y.seriesIndex,m=t[p],S=n[p];m&&S&&S.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!o},a.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},a.prototype.dispose=function(e,t){Y.node||!t.getDom()||(vt(this,"_updatePosition"),this._tooltipContent.dispose(),$a("itemTooltip",t))},a.type="tooltip",a}(Zt);function me(r,a,e){var t=a.ecModel,i;e?(i=new _e(e,t,t),i=new _e(a.option,i,t)):i=a;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof _e&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(i=new _e(o,i,t)))}return i}function Tt(r,a){return r.dispatchAction||K(a.dispatchAction,a)}function oi(r,a,e,t,i,n,o){var l=e.getSize(),s=l[0],u=l[1];return n!=null&&(r+s+n+2>t?r-=s+n:r+=n),o!=null&&(a+u+o>i?a-=u+o:a+=o),[r,a]}function si(r,a,e,t,i){var n=e.getSize(),o=n[0],l=n[1];return r=Math.min(r+o,t)-o,a=Math.min(a+l,i)-l,r=Math.max(r,0),a=Math.max(a,0),[r,a]}function li(r,a,e,t){var i=e[0],n=e[1],o=Math.ceil(Math.SQRT2*t)+8,l=0,s=0,u=a.width,c=a.height;switch(r){case"inside":l=a.x+u/2-i/2,s=a.y+c/2-n/2;break;case"top":l=a.x+u/2-i/2,s=a.y-n-o;break;case"bottom":l=a.x+u/2-i/2,s=a.y+c+o;break;case"left":l=a.x-i-o,s=a.y+c/2-n/2;break;case"right":l=a.x+u+o,s=a.y+c/2-n/2}return[l,s]}function At(r){return r==="center"||r==="middle"}function ui(r,a,e){var t=qa(r).queryOptionMap,i=t.keys()[0];if(!(!i||i==="series")){var n=ja(a,i,t.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var l=e.getViewOfComponentModel(o),s;if(l.group.traverse(function(u){var c=j(u).tooltipConfig;if(c&&c.name===r.name)return s=u,!0}),s)return{componentMainType:i,componentIndex:o.componentIndex,el:s}}}}const ci=ni;function hi(r){we(Za),r.registerComponentModel(Yr),r.registerComponentView(ci),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var di=function(r,a){if(a==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(a==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},vi=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e.layoutMode={type:"box",ignoreSize:!0},e}return a.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},a.prototype.mergeOption=function(e,t){r.prototype.mergeOption.call(this,e,t),this._updateSelector(e)},a.prototype._updateSelector=function(e){var t=e.selector,i=this.ecModel;t===!0&&(t=e.selector=["all","inverse"]),E(t)&&O(t,function(n,o){X(n)&&(n={type:n}),t[o]=Ka(n,di(i,n.type))})},a.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var t=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),t=!0;break}}!t&&this.select(e[0].get("name"))}},a.prototype._updateData=function(e){var t=[],i=[];e.eachRawSeries(function(s){var u=s.name;i.push(u);var c;if(s.legendVisualProvider){var h=s.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(s)||(i=i.concat(v)),v.length?t=t.concat(v):c=!0}else c=!0;c&&Qa(s)&&t.push(s.name)}),this._availableNames=i;var n=this.get("data")||t,o=Kt(),l=Je(n,function(s){return(X(s)||Re(s))&&(s={name:s}),o.get(s.name)?null:(o.set(s.name,!0),new _e(s,this,this.ecModel))},this);this._data=Ja(l,function(s){return!!s})},a.prototype.getData=function(){return this._data},a.prototype.select=function(e){var t=this.option.selected,i=this.get("selectedMode");if(i==="single"){var n=this._data;O(n,function(o){t[o.get("name")]=!1})}t[e]=!0},a.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},a.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},a.prototype.allSelect=function(){var e=this._data,t=this.option.selected;O(e,function(i){t[i.get("name",!0)]=!0})},a.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;O(e,function(i){var n=i.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},a.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Ut(this._availableNames,e)>=0},a.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},a.type="legend.plain",a.dependencies=["series"],a.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}},a}(Yt);const je=vi;var he=Z,Ze=O,Ae=tt,gi=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e.newlineDisabled=!1,e}return a.prototype.init=function(){this.group.add(this._contentGroup=new Ae),this.group.add(this._selectorGroup=new Ae),this._isFirstRender=!0},a.prototype.getContentGroup=function(){return this._contentGroup},a.prototype.getSelectorGroup=function(){return this._selectorGroup},a.prototype.render=function(e,t,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),l=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&l==="vertical"?"right":"left");var s=e.get("selector",!0),u=e.get("selectorPosition",!0);s&&(!u||u==="auto")&&(u=l==="horizontal"?"end":"start"),this.renderInner(o,e,t,i,s,l,u);var c=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=e.get("padding"),d=Me(c,h,v),g=this.layoutInner(e,o,d,n,s,u),f=Me(er({width:g.width,height:g.height},c),h,v);this.group.x=f.x-g.x,this.group.y=f.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Fr(g,e))}},a.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},a.prototype.renderInner=function(e,t,i,n,o,l,s){var u=this.getContentGroup(),c=Kt(),h=t.get("selectedMode"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Ze(t.getData(),function(d,g){var f=d.get("name");if(!this.newlineDisabled&&(f===""||f===`
  3. `)){var _=new Ae;_.newline=!0,u.add(_);return}var y=i.getSeriesByName(f)[0];if(!c.get(f))if(y){var p=y.getData(),m=p.getVisual("legendLineStyle")||{},S=p.getVisual("legendIcon"),b=p.getVisual("style"),x=this._createItem(y,f,g,d,t,e,m,b,S,h,n);x.on("click",he(Dt,f,null,n,v)).on("mouseover",he(Ke,y.name,null,n,v)).on("mouseout",he(Qe,y.name,null,n,v)),c.set(f,!0)}else i.eachRawSeries(function(T){if(!c.get(f)&&T.legendVisualProvider){var w=T.legendVisualProvider;if(!w.containName(f))return;var I=w.indexOfName(f),L=w.getItemVisual(I,"style"),C=w.getItemVisual(I,"legendIcon"),A=tr(L.fill);A&&A[3]===0&&(A[3]=.2,L=V(V({},L),{fill:ar(A,"rgba")}));var D=this._createItem(T,f,g,d,t,e,{},L,C,h,n);D.on("click",he(Dt,null,f,n,v)).on("mouseover",he(Ke,null,f,n,v)).on("mouseout",he(Qe,null,f,n,v)),c.set(f,!0)}},this)},this),o&&this._createSelector(o,t,n,l,s)},a.prototype._createSelector=function(e,t,i,n,o){var l=this.getSelectorGroup();Ze(e,function(u){var c=u.type,h=new xe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});l.add(h);var v=t.getModel("selectorLabel"),d=t.getModel(["emphasis","selectorLabel"]);et(h,{normal:v,emphasis:d},{defaultText:u.title}),yt(h)})},a.prototype._createItem=function(e,t,i,n,o,l,s,u,c,h,v){var d=e.visualDrawType,g=o.get("itemWidth"),f=o.get("itemHeight"),_=o.isSelected(t),y=n.get("symbolRotate"),p=n.get("symbolKeepAspect"),m=n.get("icon");c=m||c||"roundRect";var S=fi(c,n,s,u,d,_,v),b=new Ae,x=n.getModel("textStyle");if(Oe(e.getLegendIcon)&&(!m||m==="inherit"))b.add(e.getLegendIcon({itemWidth:g,itemHeight:f,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:p}));else{var T=m==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(pi({itemWidth:g,itemHeight:f,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:p}))}var w=l==="left"?g+5:-5,I=l,L=o.get("formatter"),C=t;X(L)&&L?C=L.replace("{name}",t??""):Oe(L)&&(C=L(t));var A=_?x.getTextColor():n.get("inactiveColor");b.add(new xe({style:rr(x,{text:C,x:w,y:f/2,fill:A,align:I,verticalAlign:"middle"},{inheritColor:A})}));var D=new de({shape:b.getBoundingRect(),invisible:!0}),M=n.getModel("tooltip");return M.get("show")&&ir({el:D,componentModel:o,itemName:t,itemTooltipOption:M.option}),b.add(D),b.eachChild(function(P){P.silent=!0}),D.silent=!h,this.getContentGroup().add(b),yt(b),b.__legendDataIndex=i,b},a.prototype.layoutInner=function(e,t,i,n,o,l){var s=this.getContentGroup(),u=this.getSelectorGroup();Se(e.get("orient"),s,e.get("itemGap"),i.width,i.height);var c=s.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),s.markRedraw(),o){Se("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),d=[-v.x,-v.y],g=e.get("selectorButtonGap",!0),f=e.getOrient().index,_=f===0?"width":"height",y=f===0?"height":"width",p=f===0?"y":"x";l==="end"?d[f]+=c[_]+g:h[f]+=v[_]+g,d[1-f]+=c[y]/2-v[y]/2,u.x=d[0],u.y=d[1],s.x=h[0],s.y=h[1];var m={x:0,y:0};return m[_]=c[_]+g+v[_],m[y]=Math.max(c[y],v[y]),m[p]=Math.min(0,v[p]+d[1-f]),m}else return s.x=h[0],s.y=h[1],this.group.getBoundingRect()},a.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},a.type="legend.plain",a}(Zt);function fi(r,a,e,t,i,n,o){function l(_,y){_.lineWidth==="auto"&&(_.lineWidth=y.lineWidth>0?2:0),Ze(_,function(p,m){_[m]==="inherit"&&(_[m]=y[m])})}var s=a.getModel("itemStyle"),u=s.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=s.getShallow("decal");u.decal=!h||h==="inherit"?t.decal:nr(h,o),u.fill==="inherit"&&(u.fill=t[i]),u.stroke==="inherit"&&(u.stroke=t[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?t:e).opacity),l(u,t);var v=a.getModel("lineStyle"),d=v.getLineStyle();if(l(d,e),u.fill==="auto"&&(u.fill=t.fill),u.stroke==="auto"&&(u.stroke=t.fill),d.stroke==="auto"&&(d.stroke=t.fill),!n){var g=a.get("inactiveBorderWidth"),f=u[c];u.lineWidth=g==="auto"?t.lineWidth>0&&f?2:0:u.lineWidth,u.fill=a.get("inactiveColor"),u.stroke=a.get("inactiveBorderColor"),d.stroke=v.get("inactiveColor"),d.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function pi(r){var a=r.icon||"roundRect",e=or(a,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]),a.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Dt(r,a,e,t){Qe(r,a,e,t),e.dispatchAction({type:"legendToggleSelect",name:r??a}),Ke(r,a,e,t)}function ha(r){for(var a=r.getZr().storage.getDisplayList(),e,t=0,i=a.length;t<i&&!(e=a[t].states.emphasis);)t++;return e&&e.hoverLayer}function Ke(r,a,e,t){ha(e)||e.dispatchAction({type:"highlight",seriesName:r,name:a,excludeSeriesId:t})}function Qe(r,a,e,t){ha(e)||e.dispatchAction({type:"downplay",seriesName:r,name:a,excludeSeriesId:t})}const da=gi;function mi(r){var a=r.findComponents({mainType:"legend"});a&&a.length&&r.filterSeries(function(e){for(var t=0;t<a.length;t++)if(!a[t].isSelected(e.name))return!1;return!0})}function ye(r,a,e){var t={},i=r==="toggleSelected",n;return e.eachComponent("legend",function(o){i&&n!=null?o[n?"select":"unSelect"](a.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](a.name),n=o.isSelected(a.name));var l=o.getData();O(l,function(s){var u=s.get("name");if(!(u===`
  4. `||u==="")){var c=o.isSelected(u);t.hasOwnProperty(u)?t[u]=t[u]&&c:t[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:t}:{name:a.name,selected:t}}function yi(r){r.registerAction("legendToggleSelect","legendselectchanged",Z(ye,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Z(ye,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Z(ye,"inverseSelect")),r.registerAction("legendSelect","legendselected",Z(ye,"select")),r.registerAction("legendUnSelect","legendunselected",Z(ye,"unSelect"))}function va(r){r.registerComponentModel(je),r.registerComponentView(da),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,mi),r.registerSubTypeDefaulter("legend",function(){return"plain"}),yi(r)}var _i=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},a.prototype.init=function(e,t,i){var n=sr(e);r.prototype.init.call(this,e,t,i),It(this,e,n)},a.prototype.mergeOption=function(e,t){r.prototype.mergeOption.call(this,e,t),It(this,this.option,e)},a.type="legend.scroll",a.defaultOption=Qt(je.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}),a}(je);function It(r,a,e){var t=r.getOrient(),i=[1,1];i[t.index]=0,lr(a,e,{type:"box",ignoreSize:!!i})}const bi=_i;var Lt=tt,He=["width","height"],Ye=["x","y"],Si=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e.newlineDisabled=!0,e._currentIndex=0,e}return a.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Lt),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Lt)},a.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},a.prototype.renderInner=function(e,t,i,n,o,l,s){var u=this;r.prototype.renderInner.call(this,e,t,i,n,o,l,s);var c=this._controllerGroup,h=t.get("pageIconSize",!0),v=E(h)?h:[h,h];g("pagePrev",0);var d=t.getModel("pageTextStyle");c.add(new xe({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(f,_){var y=f+"DataIndex",p=ur(t.get("pageIcons",!0)[t.getOrient().name][_],{onclick:K(u._pageGo,u,y,t,n)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});p.name=f,c.add(p)}},a.prototype.layoutInner=function(e,t,i,n,o,l){var s=this.getSelectorGroup(),u=e.getOrient().index,c=He[u],h=Ye[u],v=He[1-u],d=Ye[1-u];o&&Se("horizontal",s,e.get("selectorItemGap",!0));var g=e.get("selectorButtonGap",!0),f=s.getBoundingRect(),_=[-f.x,-f.y],y=jt(i);o&&(y[c]=i[c]-f[c]-g);var p=this._layoutContentAndController(e,n,y,u,c,v,d,h);if(o){if(l==="end")_[u]+=p[c]+g;else{var m=f[c]+g;_[u]-=m,p[h]-=m}p[c]+=f[c]+g,_[1-u]+=p[d]+p[v]/2-f[v]/2,p[v]=Math.max(p[v],f[v]),p[d]=Math.min(p[d],f[d]+_[1-u]),s.x=_[0],s.y=_[1],s.markRedraw()}return p},a.prototype._layoutContentAndController=function(e,t,i,n,o,l,s,u){var c=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Se(e.get("orient"),c,e.get("itemGap"),n?i.width:null,n?null:i.height),Se("horizontal",v,e.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),g=v.getBoundingRect(),f=this._showController=d[o]>i[o],_=[-d.x,-d.y];t||(_[n]=c[u]);var y=[0,0],p=[-g.x,-g.y],m=cr(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var S=e.get("pageButtonPosition",!0);S==="end"?p[n]+=i[o]-g[o]:y[n]+=g[o]+m}p[1-n]+=d[l]/2-g[l]/2,c.setPosition(_),h.setPosition(y),v.setPosition(p);var b={x:0,y:0};if(b[o]=f?i[o]:d[o],b[l]=Math.max(d[l],g[l]),b[s]=Math.min(0,g[s]+p[1-n]),h.__rectSize=i[o],f){var x={x:0,y:0};x[o]=Math.max(i[o]-g[o]-m,0),x[l]=b[l],h.setClipPath(new de({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(w){w.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&ae(c,{x:T.contentPosition[0],y:T.contentPosition[1]},f?e:null),this._updatePageInfoView(e,T),b},a.prototype._pageGo=function(e,t,i){var n=this._getPageInfo(t)[e];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},a.prototype._updatePageInfoView=function(e,t){var i=this._controllerGroup;O(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",v=t[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),d.cursor=v?"pointer":"default")});var n=i.childOfName("pageText"),o=e.get("pageFormatter"),l=t.pageIndex,s=l!=null?l+1:0,u=t.pageCount;n&&o&&n.setStyle("text",X(o)?o.replace("{current}",s==null?"":s+"").replace("{total}",u==null?"":u+""):o({current:s,total:u}))},a.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,l=He[o],s=Ye[o],u=this._findTargetItemIndex(t),c=i.children(),h=c[u],v=c.length,d=v?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var f=S(h);g.contentPosition[o]=-f.s;for(var _=u+1,y=f,p=f,m=null;_<=v;++_)m=S(c[_]),(!m&&p.e>y.s+n||m&&!b(m,y.s))&&(p.i>y.i?y=p:y=m,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),p=m;for(var _=u-1,y=f,p=f,m=null;_>=-1;--_)m=S(c[_]),(!m||!b(p,m.s))&&y.i<p.i&&(p=y,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=y.i),++g.pageCount,++g.pageIndex),y=m;return g;function S(x){if(x){var T=x.getBoundingRect(),w=T[s]+x[s];return{s:w,e:w+T[l],i:x.__legendDataIndex}}}function b(x,T){return x.e>=T&&x.s<=T+n}},a.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,i=this.getContentGroup(),n;return i.eachChild(function(o,l){var s=o.__legendDataIndex;n==null&&s!=null&&(n=l),s===e&&(t=l)}),t??n},a.type="legend.scroll",a}(da);const xi=Si;function wi(r){r.registerAction("legendScroll","legendscroll",function(a,e){var t=a.scrollDataIndex;t!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:a},function(i){i.setScrollDataIndex(t)})})}function Ci(r){we(va),r.registerComponentModel(bi),r.registerComponentView(xi),wi(r)}function Ti(r){we(va),we(Ci)}var ga=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.prototype.getInitialData=function(e,t){return Jt(null,this,{useEncodeDefaulter:!0})},a.prototype.getMarkerPosition=function(e,t,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),l=n.dataToPoint(o);if(i)O(n.getAxes(),function(v,d){if(v.type==="category"&&t!=null){var g=v.getTicksCoords(),f=o[d],_=t[d]==="x1"||t[d]==="y1";if(_&&(f+=1),g.length<2)return;if(g.length===2){l[d]=v.toGlobalCoord(v.getExtent()[_?1:0]);return}for(var y=void 0,p=void 0,m=1,S=0;S<g.length;S++){var b=g[S].coord,x=S===g.length-1?g[S-1].tickValue+m:g[S].tickValue;if(x===f){p=b;break}else if(x<f)y=b;else if(y!=null&&x>f){p=(b+y)/2;break}S===1&&(m=x-g[0].tickValue)}p==null&&(y?y&&(p=g[g.length-1].coord):p=g[0].coord),l[d]=v.toGlobalCoord(p)}});else{var s=this.getData(),u=s.getLayout("offset"),c=s.getLayout("size"),h=n.getBaseAxis().isHorizontal()?0:1;l[h]+=u+c/2}return l}return[NaN,NaN]},a.type="series.__base_bar__",a.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},a}(at);at.registerClass(ga);const Pt=ga;var Ai=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=a.type,e}return a.prototype.getInitialData=function(){return Jt(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},a.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},a.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},a.prototype.brushSelector=function(e,t,i){return i.rect(t.getItemLayout(e))},a.type="series.bar",a.dependencies=["grid","polar"],a.defaultOption=Qt(Pt.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}),a}(Pt);const Di=Ai;var Ii=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}(),Li=function(r){N(a,r);function a(e){var t=r.call(this,e)||this;return t.type="sausage",t}return a.prototype.getDefaultShape=function(){return new Ii},a.prototype.buildPath=function(e,t){var i=t.cx,n=t.cy,o=Math.max(t.r0||0,0),l=Math.max(t.r,0),s=(l-o)*.5,u=o+s,c=t.startAngle,h=t.endAngle,v=t.clockwise,d=Math.PI*2,g=v?h-c<d:c-h<d;g||(c=h-(v?d:-d));var f=Math.cos(c),_=Math.sin(c),y=Math.cos(h),p=Math.sin(h);g?(e.moveTo(f*o+i,_*o+n),e.arc(f*u+i,_*u+n,s,-Math.PI+c,c,!v)):e.moveTo(f*l+i,_*l+n),e.arc(i,n,l,c,h,!v),e.arc(y*u+i,p*u+n,s,h-Math.PI*2,h-Math.PI,!v),o!==0&&e.arc(i,n,o,h,c,v)},a}(ea);const kt=Li;function Pi(r,a){a=a||{};var e=a.isRoundCap;return function(t,i,n){var o=i.position;if(!o||o instanceof Array)return _t(t,i,n);var l=r(o),s=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,h=u.cy,v=u.r,d=u.r0,g=(v+d)/2,f=u.startAngle,_=u.endAngle,y=(f+_)/2,p=e?Math.abs(v-d)/2:0,m=Math.cos,S=Math.sin,b=c+v*m(f),x=h+v*S(f),T="left",w="top";switch(l){case"startArc":b=c+(d-s)*m(y),x=h+(d-s)*S(y),T="center",w="top";break;case"insideStartArc":b=c+(d+s)*m(y),x=h+(d+s)*S(y),T="center",w="bottom";break;case"startAngle":b=c+g*m(f)+De(f,s+p,!1),x=h+g*S(f)+Ie(f,s+p,!1),T="right",w="middle";break;case"insideStartAngle":b=c+g*m(f)+De(f,-s+p,!1),x=h+g*S(f)+Ie(f,-s+p,!1),T="left",w="middle";break;case"middle":b=c+g*m(y),x=h+g*S(y),T="center",w="middle";break;case"endArc":b=c+(v+s)*m(y),x=h+(v+s)*S(y),T="center",w="bottom";break;case"insideEndArc":b=c+(v-s)*m(y),x=h+(v-s)*S(y),T="center",w="top";break;case"endAngle":b=c+g*m(_)+De(_,s+p,!0),x=h+g*S(_)+Ie(_,s+p,!0),T="left",w="middle";break;case"insideEndAngle":b=c+g*m(_)+De(_,-s+p,!0),x=h+g*S(_)+Ie(_,-s+p,!0),T="right",w="middle";break;default:return _t(t,i,n)}return t=t||{},t.x=b,t.y=x,t.align=T,t.verticalAlign=w,t}}function ki(r,a,e,t){if(Re(t)){r.setTextConfig({rotation:t});return}else if(E(a)){r.setTextConfig({rotation:0});return}var i=r.shape,n=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,l=(n+o)/2,s,u=e(a);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":s=l;break;case"startAngle":case"insideStartAngle":s=n;break;case"endAngle":case"insideEndAngle":s=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-s;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function De(r,a,e){return a*Math.sin(r)*(e?-1:1)}function Ie(r,a,e){return a*Math.cos(r)*(e?1:-1)}function be(r,a,e){var t=r.get("borderRadius");if(t==null)return e?{cornerRadius:0}:null;E(t)||(t=[t,t,t,t]);var i=Math.abs(a.r||0-a.r0||0);return{cornerRadius:Je(t,function(n){return hr(n,i)})}}var Xe=Math.max,Ue=Math.min;function Oi(r,a){var e=r.getArea&&r.getArea();if(oa(r,"cartesian2d")){var t=r.getBaseAxis();if(t.type!=="category"||!t.onBand){var i=a.getLayout("bandWidth");t.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var Mi=function(r){N(a,r);function a(){var e=r.call(this)||this;return e.type=a.type,e._isFirstFrame=!0,e}return a.prototype.render=function(e,t,i,n){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,t,i):this._renderNormal(e,t,i,n))},a.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},a.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},a.prototype.eachRendered=function(e){dr(this._progressiveEls||this.group,e)},a.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},a.prototype._renderNormal=function(e,t,i,n){var o=this.group,l=e.getData(),s=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var v=e.isAnimationEnabled()?e:null,d=Ri(e,u);d&&this._enableRealtimeSort(d,l,i);var g=e.get("clip",!0)||d,f=Oi(u,l);o.removeClipPath();var _=e.get("roundCap",!0),y=e.get("showBackground",!0),p=e.getModel("backgroundStyle"),m=p.get("borderRadius")||0,S=[],b=this._backgroundEls,x=n&&n.isInitSort,T=n&&n.type==="changeAxisOrder";function w(C){var A=Le[u.type](l,C),D=Wi(u,h,A);return D.useStyle(p.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",m):D.setShape("cornerRadius",m),S[C]=D,D}l.diff(s).add(function(C){var A=l.getItemModel(C),D=Le[u.type](l,C,A);if(y&&w(C),!(!l.hasValue(C)||!Nt[u.type](D))){var M=!1;g&&(M=Ot[u.type](f,D));var P=Mt[u.type](e,l,C,D,h,v,c.model,!1,_);d&&(P.forceLabelAnimation=!0),Vt(P,l,C,A,D,e,h,u.type==="polar"),x?P.attr({shape:D}):d?Rt(d,v,P,D,C,h,!1,!1):oe(P,{shape:D},e,C),l.setItemGraphicEl(C,P),o.add(P),P.ignore=M}}).update(function(C,A){var D=l.getItemModel(C),M=Le[u.type](l,C,D);if(y){var P=void 0;b.length===0?P=w(A):(P=b[A],P.useStyle(p.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",m):P.setShape("cornerRadius",m),S[C]=P);var Q=Le[u.type](l,C),Ne=pa(h,Q,u);ae(P,{shape:Ne},v,C)}var R=s.getItemGraphicEl(A);if(!l.hasValue(C)||!Nt[u.type](M)){o.remove(R);return}var $=!1;if(g&&($=Ot[u.type](f,M),$&&o.remove(R)),R?ta(R):R=Mt[u.type](e,l,C,M,h,v,c.model,!!R,_),d&&(R.forceLabelAnimation=!0),T){var ie=R.getTextContent();if(ie){var J=vr(ie);J.prevValue!=null&&(J.prevValue=J.value)}}else Vt(R,l,C,D,M,e,h,u.type==="polar");x?R.attr({shape:M}):d?Rt(d,v,R,M,C,h,!0,T):ae(R,{shape:M},e,C,null),l.setItemGraphicEl(C,R),R.ignore=$,o.add(R)}).remove(function(C){var A=s.getItemGraphicEl(C);A&&qe(A,e,C)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new tt);I.removeAll();for(var L=0;L<S.length;++L)I.add(S[L]);o.add(I),this._backgroundEls=S,this._data=l},a.prototype._renderLarge=function(e,t,i){this._clear(),zt(e,this.group),this._updateLargeClip(e)},a.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),zt(t,this.group,this._progressiveEls,!0)},a.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&gr(e.coordinateSystem,!1,e),i=this.group;t?i.setClipPath(t):i.removeClipPath()},a.prototype._enableRealtimeSort=function(e,t,i){var n=this;if(t.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,i),this._isFirstFrame=!1;else{var l=function(s){var u=t.getItemGraphicEl(s),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){n._updateSortWithinSameData(t,l,o,i)},i.getZr().on("rendered",this._onRendered)}}},a.prototype._dataSort=function(e,t,i){var n=[];return e.each(e.mapDimension(t.dim),function(o,l){var s=i(l);s=s??NaN,n.push({dataIndex:l,mappedValue:s,ordinalNumber:o})}),n.sort(function(o,l){return l.mappedValue-o.mappedValue}),{ordinalNumbers:Je(n,function(o){return o.ordinalNumber})}},a.prototype._isOrderChangedWithinSameData=function(e,t,i){for(var n=i.scale,o=e.mapDimension(i.dim),l=Number.MAX_VALUE,s=0,u=n.getOrdinalMeta().categories.length;s<u;++s){var c=e.rawIndexOf(o,n.getRawOrdinalNumber(s)),h=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(h>l)return!0;l=h}return!1},a.prototype._isOrderDifferentInView=function(e,t){for(var i=t.scale,n=i.getExtent(),o=Math.max(0,n[0]),l=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=l;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},a.prototype._updateSortWithinSameData=function(e,t,i,n){if(this._isOrderChangedWithinSameData(e,t,i)){var o=this._dataSort(e,i,t);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},a.prototype._dispatchInitSort=function(e,t,i){var n=t.baseAxis,o=this._dataSort(e,n,function(l){return e.get(e.mapDimension(t.otherAxis.dim),l)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},a.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},a.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},a.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},a.prototype._clear=function(e){var t=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){qe(n,e,j(n).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},a.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},a.type="bar",a}(aa),Ot={cartesian2d:function(r,a){var e=a.width<0?-1:1,t=a.height<0?-1:1;e<0&&(a.x+=a.width,a.width=-a.width),t<0&&(a.y+=a.height,a.height=-a.height);var i=r.x+r.width,n=r.y+r.height,o=Xe(a.x,r.x),l=Ue(a.x+a.width,i),s=Xe(a.y,r.y),u=Ue(a.y+a.height,n),c=l<o,h=u<s;return a.x=c&&o>i?l:o,a.y=h&&s>n?u:s,a.width=c?0:l-o,a.height=h?0:u-s,e<0&&(a.x+=a.width,a.width=-a.width),t<0&&(a.y+=a.height,a.height=-a.height),c||h},polar:function(r,a){var e=a.r0<=a.r?1:-1;if(e<0){var t=a.r;a.r=a.r0,a.r0=t}var i=Ue(a.r,r.r),n=Xe(a.r0,r.r0);a.r=i,a.r0=n;var o=i-n<0;if(e<0){var t=a.r;a.r=a.r0,a.r0=t}return o}},Mt={cartesian2d:function(r,a,e,t,i,n,o,l,s){var u=new de({shape:V({},t),z2:1});if(u.__dataIndex=e,u.name="item",n){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(r,a,e,t,i,n,o,l,s){var u=!i&&s?kt:Be,c=new u({shape:t,z2:1});c.name="item";var h=fa(i);if(c.calculateTextPosition=Pi(h,{isRoundCap:u===kt}),n){var v=c.shape,d=i?"r":"endAngle",g={};v[d]=i?t.r0:t.startAngle,g[d]=t[d],(l?ae:oe)(c,{shape:g},n)}return c}};function Ri(r,a){var e=r.get("realtimeSort",!0),t=a.getBaseAxis();if(e&&t.type==="category"&&a.type==="cartesian2d")return{baseAxis:t,otherAxis:a.getOtherAxis(t)}}function Rt(r,a,e,t,i,n,o,l){var s,u;n?(u={x:t.x,width:t.width},s={y:t.y,height:t.height}):(u={y:t.y,height:t.height},s={x:t.x,width:t.width}),l||(o?ae:oe)(e,{shape:s},a,i,null);var c=a?r.baseAxis.model:null;(o?ae:oe)(e,{shape:u},c,i)}function Bt(r,a){for(var e=0;e<a.length;e++)if(!isFinite(r[a[e]]))return!0;return!1}var Bi=["x","y","width","height"],Ni=["cx","cy","r","startAngle","endAngle"],Nt={cartesian2d:function(r){return!Bt(r,Bi)},polar:function(r){return!Bt(r,Ni)}},Le={cartesian2d:function(r,a,e){var t=r.getItemLayout(a),i=e?Gi(e,t):0,n=t.width>0?1:-1,o=t.height>0?1:-1;return{x:t.x+n*i/2,y:t.y+o*i/2,width:t.width-n*i,height:t.height-o*i}},polar:function(r,a,e){var t=r.getItemLayout(a);return{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}}};function Vi(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function fa(r){return function(a){var e=a?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(r)}function Vt(r,a,e,t,i,n,o,l){var s=a.getItemVisual(e,"style");if(l){if(!n.get("roundCap")){var c=r.shape,h=be(t.getModel("itemStyle"),c,!0);V(c,h),r.setShape(c)}}else{var u=t.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(s);var v=t.getShallow("cursor");v&&r.attr("cursor",v);var d=l?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=ra(t);et(r,g,{labelFetcher:n,labelDataIndex:e,defaultText:fr(n.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:d});var f=r.getTextContent();if(l&&f){var _=t.get(["label","position"]);r.textConfig.inside=_==="middle"?!0:null,ki(r,_==="outside"?d:_,fa(o),t.get(["label","rotate"]))}pr(f,g,n.getRawValue(e),function(p){return yr(a,p)});var y=t.getModel(["emphasis"]);ia(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),na(r,t),Vi(i)&&(r.style.fill="none",r.style.stroke="none",O(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function Gi(r,a){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var t=r.get(["itemStyle","borderWidth"])||0,i=isNaN(a.width)?Number.MAX_VALUE:Math.abs(a.width),n=isNaN(a.height)?Number.MAX_VALUE:Math.abs(a.height);return Math.min(t,i,n)}var zi=function(){function r(){}return r}(),Gt=function(r){N(a,r);function a(e){var t=r.call(this,e)||this;return t.type="largeBar",t}return a.prototype.getDefaultShape=function(){return new zi},a.prototype.buildPath=function(e,t){for(var i=t.points,n=this.baseDimIdx,o=1-this.baseDimIdx,l=[],s=[],u=this.barWidth,c=0;c<i.length;c+=3)s[n]=u,s[o]=i[c+2],l[n]=i[c+n],l[o]=i[c+o],e.rect(l[0],l[1],s[0],s[1])},a}(ea);function zt(r,a,e,t){var i=r.getData(),n=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),l=i.getLayout("size"),s=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new Gt({shape:{points:u},incremental:!!t,silent:!0,z2:0});c.baseDimIdx=n,c.largeDataIndices=o,c.barWidth=l,c.useStyle(s.getItemStyle()),a.add(c),e&&e.push(c)}var h=new Gt({shape:{points:i.getLayout("largePoints")},incremental:!!t,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=l,a.add(h),h.useStyle(i.getVisual("style")),j(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",Et),h.on("mousemove",Et)),e&&e.push(h)}var Et=mr(function(r){var a=this,e=Ei(a,r.offsetX,r.offsetY);j(a).dataIndex=e>=0?e:null},30,!1);function Ei(r,a,e){for(var t=r.baseDimIdx,i=1-t,n=r.shape.points,o=r.largeDataIndices,l=[],s=[],u=r.barWidth,c=0,h=n.length/3;c<h;c++){var v=c*3;if(s[t]=u,s[i]=n[v+2],l[t]=n[v+t],l[i]=n[v+i],s[i]<0&&(l[i]+=s[i],s[i]=-s[i]),a>=l[0]&&a<=l[0]+s[0]&&e>=l[1]&&e<=l[1]+s[1])return o[c]}return-1}function pa(r,a,e){if(oa(e,"cartesian2d")){var t=a,i=e.getArea();return{x:r?t.x:i.x,y:r?i.y:t.y,width:r?t.width:i.width,height:r?i.height:t.height}}else{var i=e.getArea(),n=a;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function Wi(r,a,e){var t=r.type==="polar"?Be:de;return new t({shape:pa(a,e,r),silent:!0,z2:0})}const Fi=Mi;function Hi(r){r.registerChartView(Fi),r.registerSeriesModel(Di),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Z(Sr,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_r("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,br("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(a,e){var t=a.componentType||"series";e.eachComponent({mainType:t,query:a},function(i){a.sortInfo&&i.axis.setCategorySortInfo(a.sortInfo)})})}var Pe=Math.PI*2,Wt=Math.PI/180;function ma(r,a){return Me(r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function ya(r,a){var e=ma(r,a),t=r.get("center"),i=r.get("radius");E(i)||(i=[0,i]);var n=H(e.width,a.getWidth()),o=H(e.height,a.getHeight()),l=Math.min(n,o),s=H(i[0],l/2),u=H(i[1],l/2),c,h,v=r.coordinateSystem;if(v){var d=v.dataToPoint(t);c=d[0]||0,h=d[1]||0}else E(t)||(t=[t,t]),c=H(t[0],n)+e.x,h=H(t[1],o)+e.y;return{cx:c,cy:h,r0:s,r:u}}function Yi(r,a,e){a.eachSeriesByType(r,function(t){var i=t.getData(),n=i.mapDimension("value"),o=ma(t,e),l=ya(t,e),s=l.cx,u=l.cy,c=l.r,h=l.r0,v=-t.get("startAngle")*Wt,d=t.get("minAngle")*Wt,g=0;i.each(n,function(L){!isNaN(L)&&g++});var f=i.getSum(n),_=Math.PI/(f||g)*2,y=t.get("clockwise"),p=t.get("roseType"),m=t.get("stillShowZeroSum"),S=i.getDataExtent(n);S[0]=0;var b=Pe,x=0,T=v,w=y?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(n,function(L,C){var A;if(isNaN(L)){i.setItemLayout(C,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:s,cy:u,r0:h,r:p?NaN:c});return}p!=="area"?A=f===0&&m?_:L*_:A=Pe/g,A<d?(A=d,b-=d):x+=L;var D=T+w*A;i.setItemLayout(C,{angle:A,startAngle:T,endAngle:D,clockwise:y,cx:s,cy:u,r0:h,r:p?xr(L,S,[h,c]):c}),T=D}),b<Pe&&g)if(b<=.001){var I=Pe/g;i.each(n,function(L,C){if(!isNaN(L)){var A=i.getItemLayout(C);A.angle=I,A.startAngle=v+w*C*I,A.endAngle=v+w*(C+1)*I}})}else _=b/x,T=v,i.each(n,function(L,C){if(!isNaN(L)){var A=i.getItemLayout(C),D=A.angle===d?d:L*_;A.startAngle=T,A.endAngle=T+w*D,T+=w*D}})})}function Xi(r){return{seriesType:r,reset:function(a,e){var t=e.findComponents({mainType:"legend"});if(!(!t||!t.length)){var i=a.getData();i.filterSelf(function(n){for(var o=i.getName(n),l=0;l<t.length;l++)if(!t[l].isSelected(o))return!1;return!0})}}}}var Ui=Math.PI/180;function Ft(r,a,e,t,i,n,o,l,s,u){if(r.length<2)return;function c(f){for(var _=f.rB,y=_*_,p=0;p<f.list.length;p++){var m=f.list[p],S=Math.abs(m.label.y-e),b=t+m.len,x=b*b,T=Math.sqrt((1-Math.abs(S*S/y))*x),w=a+(T+m.len2)*i,I=w-m.label.x,L=m.targetTextWidth-I*i;_a(m,L,!0),m.label.x=w}}function h(f){for(var _={list:[],maxY:0},y={list:[],maxY:0},p=0;p<f.length;p++)if(f[p].labelAlignTo==="none"){var m=f[p],S=m.label.y>e?y:_,b=Math.abs(m.label.y-e);if(b>=S.maxY){var x=m.label.x-a-m.len2*i,T=t+m.len,w=Math.abs(x)<T?Math.sqrt(b*b/(1-x*x/T/T)):T;S.rB=w,S.maxY=b}S.list.push(m)}c(_),c(y)}for(var v=r.length,d=0;d<v;d++)if(r[d].position==="outer"&&r[d].labelAlignTo==="labelLine"){var g=r[d].label.x-u;r[d].linePoints[1][0]+=g,r[d].label.x=u}Tr(r,s,s+o)&&h(r)}function $i(r,a,e,t,i,n,o,l){for(var s=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var d=r[v].label;$e(r[v])||(d.x<a?(c=Math.min(c,d.x),s.push(r[v])):(h=Math.max(h,d.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var g=r[v];if(!$e(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var d=g.label,f=g.linePoints,_=void 0;g.labelAlignTo==="edge"?d.x<a?_=f[2][0]-g.labelDistance-o-g.edgeDistance:_=o+i-g.edgeDistance-f[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?d.x<a?_=c-o-g.bleedMargin:_=o+i-h-g.bleedMargin:d.x<a?_=d.x-o-g.bleedMargin:_=o+i-d.x-g.bleedMargin,g.targetTextWidth=_,_a(g,_)}}Ft(u,a,e,t,1,i,n,o,l,h),Ft(s,a,e,t,-1,i,n,o,l,c);for(var v=0;v<r.length;v++){var g=r[v];if(!$e(g)&&g.linePoints){var d=g.label,f=g.linePoints,y=g.labelAlignTo==="edge",p=d.style.padding,m=p?p[1]+p[3]:0,S=d.style.backgroundColor?0:m,b=g.rect.width+S,x=f[1][0]-f[2][0];y?d.x<a?f[2][0]=o+g.edgeDistance+b+g.labelDistance:f[2][0]=o+i-g.edgeDistance-b-g.labelDistance:(d.x<a?f[2][0]=d.x+g.labelDistance:f[2][0]=d.x-g.labelDistance,f[1][0]=f[2][0]+x),f[1][1]=f[2][1]=d.y}}}function _a(r,a,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var t=r.label,i=t.style,n=r.rect,o=i.backgroundColor,l=i.padding,s=l?l[1]+l[3]:0,u=i.overflow,c=n.width+(o?0:s);if(a<c||e){var h=n.height;if(u&&u.match("break")){t.setStyle("backgroundColor",null),t.setStyle("width",a-s);var v=t.getBoundingRect();t.setStyle("width",Math.ceil(v.width)),t.setStyle("backgroundColor",o)}else{var d=a-s,g=a<c?d:e?d>r.unconstrainedWidth?null:d:null;t.setStyle("width",g)}var f=t.getBoundingRect();n.width=f.width;var _=(t.style.margin||0)+2.1;n.height=f.height+_,n.y-=(n.height-h)/2}}}function $e(r){return r.position==="center"}function qi(r){var a=r.getData(),e=[],t,i,n=!1,o=(r.get("minShowLabelAngle")||0)*Ui,l=a.getLayout("viewRect"),s=a.getLayout("r"),u=l.width,c=l.x,h=l.y,v=l.height;function d(x){x.ignore=!0}function g(x){if(!x.ignore)return!0;for(var T in x.states)if(x.states[T].ignore===!1)return!0;return!1}a.each(function(x){var T=a.getItemGraphicEl(x),w=T.shape,I=T.getTextContent(),L=T.getTextGuideLine(),C=a.getItemModel(x),A=C.getModel("label"),D=A.get("position")||C.get(["emphasis","label","position"]),M=A.get("distanceToLabelLine"),P=A.get("alignTo"),Q=H(A.get("edgeDistance"),u),Ne=A.get("bleedMargin"),R=C.getModel("labelLine"),$=R.get("length");$=H($,u);var ie=R.get("length2");if(ie=H(ie,u),Math.abs(w.endAngle-w.startAngle)<o){O(I.states,d),I.ignore=!0,L&&(O(L.states,d),L.ignore=!0);return}if(g(I)){var J=(w.startAngle+w.endAngle)/2,G=Math.cos(J),ne=Math.sin(J),ve,Ce,it,Te;t=w.cx,i=w.cy;var se=D==="inside"||D==="inner";if(D==="center")ve=w.cx,Ce=w.cy,Te="center";else{var Ve=(se?(w.r+w.r0)/2*G:w.r*G)+t,Ge=(se?(w.r+w.r0)/2*ne:w.r*ne)+i;if(ve=Ve+G*3,Ce=Ge+ne*3,!se){var nt=Ve+G*($+s-w.r),ot=Ge+ne*($+s-w.r),st=nt+(G<0?-1:1)*ie,lt=ot;P==="edge"?ve=G<0?c+Q:c+u-Q:ve=st+(G<0?-M:M),Ce=lt,it=[[Ve,Ge],[nt,ot],[st,lt]]}Te=se?"center":P==="edge"?G>0?"right":"left":G>0?"left":"right"}var ge=Math.PI,le=0,fe=A.get("rotate");if(Re(fe))le=fe*(ge/180);else if(D==="center")le=0;else if(fe==="radial"||fe===!0){var ba=G<0?-J+ge:-J;le=ba}else if(fe==="tangential"&&D!=="outside"&&D!=="outer"){var ue=Math.atan2(G,ne);ue<0&&(ue=ge*2+ue);var Sa=ne>0;Sa&&(ue=ge+ue),le=ue-ge}if(n=!!le,I.x=ve,I.y=Ce,I.rotation=le,I.setStyle({verticalAlign:"middle"}),se){I.setStyle({align:Te});var ze=I.states.select;ze&&(ze.x+=I.x,ze.y+=I.y)}else{var pe=I.getBoundingRect().clone();pe.applyTransform(I.getComputedTransform());var ut=(I.style.margin||0)+2.1;pe.y-=ut/2,pe.height+=ut,e.push({label:I,labelLine:L,position:D,len:$,len2:ie,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new bt(G,ne),linePoints:it,textAlign:Te,labelDistance:M,labelAlignTo:P,edgeDistance:Q,bleedMargin:Ne,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:I.style.width})}T.setTextConfig({inside:se})}}),!n&&r.get("avoidLabelOverlap")&&$i(e,t,i,s,u,v,c,h);for(var f=0;f<e.length;f++){var _=e[f],y=_.label,p=_.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:_.textAlign}),m&&(O(y.states,d),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(p){var b=_.linePoints;m||!b?(O(p.states,d),p.ignore=!0):(wr(b,_.minTurnAngle),Cr(b,_.surfaceNormal,_.maxSurfaceAngle),p.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new bt(b[0][0],b[0][1])})}}}var ji=function(r){N(a,r);function a(e,t,i){var n=r.call(this)||this;n.z2=2;var o=new xe;return n.setTextContent(o),n.updateData(e,t,i,!0),n}return a.prototype.updateData=function(e,t,i,n){var o=this,l=e.hostModel,s=e.getItemModel(t),u=s.getModel("emphasis"),c=e.getItemLayout(t),h=V(be(s.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){o.setShape(h);return}if(n){o.setShape(h);var v=l.getShallow("animationType");l.ecModel.ssr?(oe(o,{scaleX:0,scaleY:0},l,{dataIndex:t,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=c.r0,oe(o,{shape:{r:c.r}},l,t)):i!=null?(o.setShape({startAngle:i,endAngle:i}),oe(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},l,t)):(o.shape.endAngle=c.startAngle,ae(o,{shape:{endAngle:c.endAngle}},l,t))}else ta(o),ae(o,{shape:h},l,t);o.useStyle(e.getItemVisual(t,"style")),na(o,s);var d=(c.startAngle+c.endAngle)/2,g=l.get("selectedOffset"),f=Math.cos(d)*g,_=Math.sin(d)*g,y=s.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(l,e,t),o.ensureState("emphasis").shape=V({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},be(u.getModel("itemStyle"),c)),V(o.ensureState("select"),{x:f,y:_,shape:be(s.getModel(["select","itemStyle"]),c)}),V(o.ensureState("blur"),{shape:be(s.getModel(["blur","itemStyle"]),c)});var p=o.getTextGuideLine(),m=o.getTextContent();p&&V(p.ensureState("select"),{x:f,y:_}),V(m.ensureState("select"),{x:f,y:_}),ia(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},a.prototype._updateLabel=function(e,t,i){var n=this,o=t.getItemModel(i),l=o.getModel("labelLine"),s=t.getItemVisual(i,"style"),u=s&&s.fill,c=s&&s.opacity;et(n,ra(o),{labelFetcher:t.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(i,"normal")||t.getName(i)});var h=n.getTextContent();n.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")n.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Ar,this.setTextGuideLine(d)),Dr(this,Lr(o),{stroke:u,opacity:Ir(l.get(["lineStyle","opacity"]),c,1)})}},a}(Be),Zi=function(r){N(a,r);function a(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return a.prototype.render=function(e,t,i,n){var o=e.getData(),l=this._data,s=this.group,u;if(!l&&o.count()>0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<o.count();++h)c=o.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=new Be({shape:ya(e,i)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,s.add(v)}o.diff(l).add(function(d){var g=new ji(o,d,u);o.setItemGraphicEl(d,g),s.add(g)}).update(function(d,g){var f=l.getItemGraphicEl(g);f.updateData(o,d,u),f.off("click"),s.add(f),o.setItemGraphicEl(d,f)}).remove(function(d){var g=l.getItemGraphicEl(d);qe(g,e,d)}).execute(),qi(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},a.prototype.dispose=function(){},a.prototype.containPoint=function(e,t){var i=t.getData(),n=i.getItemLayout(0);if(n){var o=e[0]-n.cx,l=e[1]-n.cy,s=Math.sqrt(o*o+l*l);return s<=n.r&&s>=n.r0}},a.type="pie",a}(aa);const Ki=Zi;function Qi(r,a,e){a=E(a)&&{coordDimensions:a}||V({encodeDefine:r.getEncode()},a);var t=r.getSource(),i=Pr(t,a).dimensions,n=new kr(i,r);return n.initData(t,e),n}var Ji=function(){function r(a,e){this._getDataWithEncodedVisual=a,this._getRawData=e}return r.prototype.getAllNames=function(){var a=this._getRawData();return a.mapArray(a.getName)},r.prototype.containName=function(a){var e=this._getRawData();return e.indexOfName(a)>=0},r.prototype.indexOfName=function(a){var e=this._getDataWithEncodedVisual();return e.indexOfName(a)},r.prototype.getItemVisual=function(a,e){var t=this._getDataWithEncodedVisual();return t.getItemVisual(a,e)},r}();const en=Ji;var tn=Br(),an=function(r){N(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new en(K(this.getData,this),K(this.getRawData,this)),this._defaultLabelLine(e)},a.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},a.prototype.getInitialData=function(){return Qi(this,{coordDimensions:["value"],encodeDefaulter:Z(Or,this)})},a.prototype.getDataParams=function(e){var t=this.getData(),i=tn(t),n=i.seats;if(!n){var o=[];t.each(t.mapDimension("value"),function(s){o.push(s)}),n=i.seats=Mr(o,t.hostModel.get("percentPrecision"))}var l=r.prototype.getDataParams.call(this,e);return l.percent=n[e]||0,l.$vars.push("percent"),l},a.prototype._defaultLabelLine=function(e){Rr(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},a.type="series.pie",a.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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"},a}(at);const rn=an;function nn(r){return{seriesType:r,reset:function(a,e){var t=a.getData();t.filterSelf(function(i){var n=t.mapDimension("value"),o=t.get(n,i);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function on(r){r.registerChartView(Ki),r.registerSeriesModel(rn),Nr("pie",r.registerAction),r.registerLayout(Z(Yi,"pie")),r.registerProcessor(Xi("pie")),r.registerProcessor(nn("pie"))}const re=r=>(La("data-v-909e8a4d"),r=r(),Pa(),r),sn={class:"container"},ln={class:"title"},un=re(()=>k("span",null,null,-1)),cn=re(()=>k("a",{href:""}," 审定核证项目列表 ",-1)),hn={class:"content-wrap"},dn={key:0,class:"template_image"},vn={class:"filter-bar"},gn={key:0,class:"button-right"},fn={class:"content"},pn={key:1,class:"template_text"},mn={class:"card-header"},yn={class:"text item"},_n={class:"card-header"},bn={class:"text item"},Sn={key:2,class:"template_imagetext"},xn={class:"result"},wn={class:"template_chart_head"},Cn=re(()=>k("div",{class:"result-title"},[k("span"),z(" 项目结论")],-1)),Tn={class:"result"},An={class:"chart"},Dn={class:"chart-item chart-item-left"},In=re(()=>k("div",{class:"product-title"},[k("span"),z(" 项目信息")],-1)),Ln={class:"product-content"},Pn={class:"item"},kn={class:"item-count"},On=re(()=>k("span",null,"tCO2eq",-1)),Mn={class:"item"},Rn={class:"item-count"},Bn=re(()=>k("span",null,"tCO2eq ",-1)),Nn={class:"item"},Vn={class:"item-count"},Gn=re(()=>k("span",null,"% ",-1)),zn=re(()=>k("div",{id:"chart_man",style:{width:"100%",height:"70%"}},null,-1)),En=Aa('<div class="chart-item chart-item-right" data-v-909e8a4d><div class="chart-man1" data-v-909e8a4d><div class="product-title" data-v-909e8a4d><span data-v-909e8a4d></span> 单位面积碳储量tCO2eq/公 </div><div id="chart_man1" style="width:100%;height:100%;" data-v-909e8a4d></div></div><div class="chart-man2" data-v-909e8a4d><div class="product-title" data-v-909e8a4d><span data-v-909e8a4d></span> 碳储量tCO2eq</div><div id="chart_man2" style="width:100%;height:100%;" data-v-909e8a4d></div></div></div>',1),Wn={__name:"detail",setup(r){we([Vr,Gr,zr,Er,Hi,on,Wr,Ti,hi]);const a={boundary:{label:"项目边界范围",template:"image"},landUse:{label:"土地利用状况",template:"image"},plant:{label:"植物净初级生产力",template:"image"},turn:{label:"碳逆转风险监测",template:"image"},adapt:{label:"适用性条件检查",template:"text"},extra:{label:"额外性论证",template:"text"},sampleResult:{label:"样地抽样结果",template:"imagetext"},reservesResult:{label:"碳储量监测结果",template:"image"},reservesExtent:{label:"结果汇总",name:"reservesExtent",template:"chart"}};xa();const e=wa(),t=ce(""),i=ce("boundary"),n=ce(""),o=ce([]),l=ce(!1),s=ce({}),u=()=>{switch(n.value=a[i.value].template,console.log(n.value),n.value){case"image":setTimeout(()=>{o.value=[],t.value="",o.value=s.value[i.value],o.value.length&&(t.value=o.value[0].img)},0);break;case"text":case"imagetext":setTimeout(()=>{o.value=s.value[i.value],i.value==="adapt"?o.value.extra="适用性条件":i.value==="extra"&&(o.value.extra="免予论证额外性条件")});break;case"chart":setTimeout(()=>{v([{value:s.value.field,name:"项目区面积"},{value:s.value.field,name:"样地数"}]),_(s.value.reservesExtent),y(s.value.reserves)},500);break}console.log(o.value)},c=()=>{},h=async()=>{let{id:p}=e.query,{code:m=0,data:S={}}=await ka.getDetailData(p);if(m)return Da.error(errMsg);console.log(S),S.baseline=S.boundary.baseline,S.boundary=[{name:"基准",img:S.boundary.baseline},{name:"检测",img:S.boundary.monitor}],s.value=S,u()},v=p=>{var m=document.getElementById("chart_man");console.log(m);var S=Fe(m);S.setOption({tooltip:{trigger:"item"},legend:{top:"5%",left:"center",textStyle:{color:"#fff"}},series:[{name:"Access From",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#fff",formatter:b=>b.name+b.value+`${b.name=="项目区面积"?"公顷":""}`},data:p}],color:["#1AD443",d]})},d=new We(1,0,0,0,[{offset:0,color:"#3B65F5"},{offset:1,color:"#435CB4"}]),g=new We(0,0,0,1,[{offset:0,color:"#36EBCA"},{offset:.7,color:"#1C6371"},{offset:1,color:"#0f1d4300"}]),f=new We(0,0,0,1,[{offset:0,color:"#FFBE15"},{offset:.7,color:"#b69624e8"},{offset:1,color:"#433b0f00"}]),_=p=>{var m=document.getElementById("chart_man1");console.log(m);var S=Fe(m);S.setOption({grid:{x:50,y:35,x2:30,y2:35},xAxis:{type:"category",data:p.map(b=>b.name),axisLabel:{color:"#fff"}},yAxis:{type:"value",axisLabel:{color:"#fff"},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#ffffff26"}}},legend:{top:0,right:60,icon:"circle",textStyle:{color:"#fff"}},series:[{data:p.map(b=>b.count),type:"bar",name:"实测数据",barWidth:6,itemStyle:{borderRadius:6}},{data:p.map(b=>b.sCount),type:"bar",name:"卫星数据",barWidth:6,itemStyle:{borderRadius:6}}],color:[g,f]})},y=p=>{var m=document.getElementById("chart_man2"),S=Fe(m);S.setOption({grid:{x:50,y:35,x2:30,y2:35},xAxis:{type:"category",data:p.map(b=>b.name),axisLabel:{color:"#fff"}},yAxis:{type:"value",axisLabel:{color:"#fff"},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#ffffff26"}}},legend:{top:0,right:60,icon:"circle",textStyle:{color:"#fff"}},series:[{data:p.map(b=>b.count),type:"bar",name:"实测数据",barWidth:6,itemStyle:{borderRadius:6}},{data:p.map(b=>b.sCount),type:"bar",name:"卫星数据",barWidth:6,itemStyle:{borderRadius:6}}],color:[g,f]})};return Ca(()=>{h()}),(p,m)=>{const S=W("el-tab-pane"),b=W("el-tabs"),x=W("el-option"),T=W("el-select"),w=W("el-button"),I=W("el-image"),L=W("el-card"),C=W("el-col"),A=W("el-row"),D=W("el-input"),M=W("el-dialog");return q(),ee("div",sn,[k("h1",ln,[un,cn,z(" - "+U(s.value.name),1)]),B(b,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=P=>i.value=P),class:"tabs",onTabChange:u},{default:F(()=>[(q(),ee(ht,null,dt(a,(P,Q)=>B(S,{label:P.label,name:Q},null,8,["label","name"])),64))]),_:1},8,["modelValue"]),k("div",hn,[n.value=="image"?(q(),ee("div",dn,[k("div",vn,[z(" 筛选: "),B(T,{modelValue:t.value,"onUpdate:modelValue":m[1]||(m[1]=P=>t.value=P),class:"m-2",placeholder:"请选择",onChange:c},{default:F(()=>[(q(!0),ee(ht,null,dt(o.value,(P,Q)=>(q(),Ia(x,{key:P.img,label:P.name,value:P.img},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i.value=="reservesResult"?(q(),ee("div",gn,[z(" 实测数据与卫星遥感数据比对: "),B(w,{type:"primary",onClick:m[2]||(m[2]=P=>l.value=!0)},{default:F(()=>[z("查看")]),_:1})])):ct("",!0)]),k("div",fn,[B(I,{style:{margin:"20px auto 0","max-width":"900px",display:"block"},src:t.value,fit:"contain"},null,8,["src"])])])):n.value=="text"?(q(),ee("div",pn,[B(A,null,{default:F(()=>[B(C,{span:11},{default:F(()=>[B(L,{class:"box-card"},{header:F(()=>[k("div",mn,[k("span",null,"方法学"+U(o.value.name)+U(o.value.extra),1)])]),default:F(()=>[k("div",yn,[k("pre",null,U(o.value.content),1)])]),_:1})]),_:1}),B(C,{span:11},{default:F(()=>[B(L,{class:"box-card"},{header:F(()=>[k("div",_n,[k("span",null,U(o.value.extra)+"检查",1)])]),default:F(()=>[k("div",bn,[k("pre",null,U(o.value.result),1)])]),_:1})]),_:1})]),_:1})])):n.value=="imagetext"?(q(),ee("div",Sn,[k("div",xn,U(o.value.desc),1),B(I,{style:{width:"100%",height:"100%","margin-top":"50px"},src:o.value.img,fit:"contain"},null,8,["src"])])):n.value=="chart"?(q(),ee("div",{key:3,class:"template_chart",style:Ta({"background-image":"url("+s.value.baseline+")"})},[k("section",wn,[Cn,k("div",Tn,[B(D,{class:"row-input",modelValue:s.value.conclusion,"onUpdate:modelValue":m[3]||(m[3]=P=>s.value.conclusion=P),rows:5,type:"textarea",disabled:""},null,8,["modelValue"])])]),k("div",An,[k("div",Dn,[In,k("ul",Ln,[k("li",Pn,[z(" 实地监测碳减排 "),k("div",kn,[z(U(s.value.field),1),On])]),k("li",Mn,[z(" 卫星遥感碳减排 "),k("div",Rn,[z(U(s.value.satellite),1),Bn])]),k("li",Nn,[z(" 实地/卫星遥感监测变化率 "),k("div",Vn,[z(U(s.value.satellite-s.value.field/s.value.field*100)+" ",1),Gn])])]),zn]),En])],4)):ct("",!0)]),B(M,{modelValue:l.value,"onUpdate:modelValue":m[4]||(m[4]=P=>l.value=P),width:"60%","before-close":p.handleClose},{default:F(()=>[B(I,{src:s.value.contrast,fit:p.fit},null,8,["src","fit"])]),_:1},8,["modelValue","before-close"])])}}},Un=Oa(Wn,[["__scopeId","data-v-909e8a4d"]]);export{Un as default};