import{bn as D,a as _i,bo as K,bp as ji,bq as Wt,q as V,X as B,e as qi,C as Xi,g as Vt,p as $,br as Ki,aN as Ji,h as J,bs as gi,i as Wi,I as Qi,bt as yi,J as $i,b5 as tr,L as ir,aR as rr,bu as ct,bv as er,bw as ar,bx as nr,by as sr,bz as or,bA as fr,bB as ur,bC as hr,bD as vr,E as M,bE as dr,bF as cr,W as Qt,bG as lr,c as pr,bH as _r,bI as mi,bJ as Bt,bK as gr,n as yr,bL as mr,bM as xr,l as br,o as Dt,bN as Y,bO as Lr,a0 as wr,bP as xi,_ as Ir,bQ as vt,bR as bi,B as ot,bS as At,aQ as Sr,bT as Li,as as Ct,bU as Tr,bV as Rr,bW as Ar,bX as Cr,bY as ft,bZ as mt,w as Pr,b_ as Nr,v as kr,r as xt,b$ as Er,a1 as Vr,c0 as Br,c1 as Dr}from"./graphic-DeMuFa6Q.js";var bt=Math.sin,Lt=Math.cos,wi=Math.PI,O=Math.PI*2,Mr=180/wi,Ii=(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,i){this._add("M",t,i)},r.prototype.lineTo=function(t,i){this._add("L",t,i)},r.prototype.bezierCurveTo=function(t,i,e,a,n,s){this._add("C",t,i,e,a,n,s)},r.prototype.quadraticCurveTo=function(t,i,e,a){this._add("Q",t,i,e,a)},r.prototype.arc=function(t,i,e,a,n,s){this.ellipse(t,i,e,e,0,a,n,s)},r.prototype.ellipse=function(t,i,e,a,n,s,f,o){var u=f-s,h=!o,v=Math.abs(u),d=D(v-O)||(h?u>=O:-u>=O),c=u>0?u%O:u%O+O,p=!1;d?p=!0:D(v)?p=!1:p=c>=wi==!!h;var l=t+e*Lt(s),g=i+a*bt(s);this._start&&this._add("M",l,g);var y=Math.round(n*Mr);if(d){var x=1/this._p,m=(h?1:-1)*(O-x);this._add("A",e,a,y,1,+h,t+e*Lt(s+m),i+a*bt(s+m)),x>.01&&this._add("A",e,a,y,0,+h,l,g)}else{var _=t+e*Lt(f),I=i+a*bt(f);this._add("A",e,a,y,+p,+h,_,I)}},r.prototype.rect=function(t,i,e,a){this._add("M",t,i),this._add("l",e,0),this._add("l",0,a),this._add("l",-e,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,i,e,a,n,s,f,o,u){for(var h=[],v=this._p,d=1;d"}function jr(r){return""}function Ot(r,t){t=t||{};var i=t.newline?` `:"";function e(a){var n=a.children,s=a.tag,f=a.attrs,o=a.text;return Zr(s,f)+(s!=="style"?qi(o):o||"")+(n?""+i+V(n,function(u){return e(u)}).join(i)+i:"")+jr(s)}return e(r)}function qr(r,t,i){i=i||{};var e=i.newline?` `:"",a=" {"+e,n=e+"}",s=V(B(r),function(o){return o+a+V(B(r[o]),function(u){return u+":"+r[o][u]+";"}).join(e)+n}).join(e),f=V(B(t),function(o){return"@keyframes "+o+a+V(B(t[o]),function(u){return u+a+V(B(t[o][u]),function(h){var v=t[o][u][h];return h==="d"&&(v='path("'+v+'")'),h+":"+v+";"}).join(e)+n}).join(e)+n}).join(e);return!s&&!f?"":[""].join(e)}function Nt(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ti(r,t,i,e){return S("svg","root",{width:r,height:t,xmlns:Si,"xmlns:xlink":Ti,version:"1.1",baseProfile:"full",viewBox:e?"0 0 "+r+" "+t:!1},i)}var Xr=0;function Ai(){return Xr++}var ii={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"},U="transform-origin";function Kr(r,t,i){var e=J({},r.shape);J(e,t),r.buildPath(i,e);var a=new Ii;return a.reset(yi(r)),i.rebuildPath(a,1),a.generateStr(),a.getStr()}function Jr(r,t){var i=t.originX,e=t.originY;(i||e)&&(r[U]=i+"px "+e+"px")}var Wr={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ci(r,t){var i=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[i]=r,i}function Qr(r,t,i){var e=r.shape.paths,a={},n,s;if(Vt(e,function(o){var u=Nt(i.zrId);u.animation=!0,lt(o,{},u,!0);var h=u.cssAnims,v=u.cssNodes,d=B(h),c=d.length;if(c){s=d[c-1];var p=h[s];for(var l in p){var g=p[l];a[l]=a[l]||{d:""},a[l].d+=g.d||""}for(var y in v){var x=v[y].animation;x.indexOf(s)>=0&&(n=x)}}}),!!n){t.d=!1;var f=Ci(a,i);return n.replace(s,f)}}function ri(r){return $(r)?ii[r]?"cubic-bezier("+ii[r]+")":Ki(r)?r:"":""}function lt(r,t,i,e){var a=r.animators,n=a.length,s=[];if(r instanceof Xi){var f=Qr(r,t,i);if(f)s.push(f);else if(!n)return}else if(!n)return;for(var o={},u=0;u0}).length){var Yi=Ci(L,i);return Yi+" "+x[0]+" both"}}for(var g in o){var f=l(o[g]);f&&s.push(f)}if(s.length){var y=i.zrId+"-cls-"+Ai();i.cssNodes["."+y]={animation:s.join(",")},t.class=y}}function $r(r,t,i){if(!r.ignore)if(r.isSilent()){var e={"pointer-events":"none"};ei(e,t,i)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=a.fill;if(!n){var s=r.style&&r.style.fill,f=r.states.select&&r.states.select.style&&r.states.select.style.fill,o=r.currentStates.indexOf("select")>=0&&f||s;o&&(n=tr(o))}var u=a.lineWidth;if(u){var h=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/h}var e={cursor:"pointer"};n&&(e.fill=n),a.stroke&&(e.stroke=a.stroke),u&&(e["stroke-width"]=u),ei(e,t,i)}}function ei(r,t,i,e){var a=JSON.stringify(r),n=i.cssStyleCache[a];n||(n=i.zrId+"-cls-"+Ai(),i.cssStyleCache[a]=n,i.cssNodes["."+n+":hover"]=r),t.class=t.class?t.class+" "+n:n}var W=Math.round;function Pi(r){return r&&$(r.src)}function Ni(r){return r&&yr(r.toDataURL)}function Ht(r,t,i,e){Fr(function(a,n){var s=a==="fill"||a==="stroke";s&&mi(n)?Ei(t,r,a,e):s&&Bt(n)?Vi(i,r,a,e):r[a]=n,s&&e.ssr&&n==="none"&&(r["pointer-events"]="visible")},t,i,!1),se(i,r,e)}function Ut(r,t){var i=gr(t);i&&(i.each(function(e,a){e!=null&&(r[($t+a).toLowerCase()]=e+"")}),t.isSilent()&&(r[$t+"silent"]="true"))}function ai(r){return D(r[0]-1)&&D(r[1])&&D(r[2])&&D(r[3]-1)}function te(r){return D(r[4])&&D(r[5])}function Gt(r,t,i){if(t&&!(te(t)&&ai(t))){var e=1e4;r.transform=ai(t)?"translate("+W(t[4]*e)/e+" "+W(t[5]*e)/e+")":_r(t)}}function ni(r,t,i){for(var e=r.points,a=[],n=0;n"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Qt(d,g),Qt(c,g)}else if(d==null||c==null){var y=function(b,C){if(b){var k=b.elm,w=d||C.width,N=c||C.height;b.tag==="pattern"&&(u?(N=1,w/=n.width):h&&(w=1,N/=n.height)),b.attrs.width=w,b.attrs.height=N,k&&(k.setAttribute("width",w),k.setAttribute("height",N))}},x=lr(p,null,r,function(b){o||y(A,b),y(v,b)});x&&x.width&&x.height&&(d=d||x.width,c=c||x.height)}v=S("image","img",{href:p,width:d,height:c}),s.width=d,s.height=c}else a.svgElement&&(v=pr(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(v){var m,_;o?m=_=1:u?(_=1,m=s.width/n.width):h?(m=1,_=s.height/n.height):s.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(s.width=m),_!=null&&!isNaN(_)&&(s.height=_);var I=gi(a);I&&(s.patternTransform=I);var A=S("pattern","",s,[v]),L=Ot(A),P=e.patternCache,T=P[L];T||(T=e.zrId+"-p"+e.patternIdx++,P[L]=T,s.id=T,A=e.defs[T]=S("pattern",T,s,[v])),t[i]=ct(T)}}function oe(r,t,i){var e=i.clipPathCache,a=i.defs,n=e[r.id];if(!n){n=i.zrId+"-c"+i.clipPathIdx++;var s={id:n};e[r.id]=n,a[n]=S("clipPath",n,s,[ki(r,i)])}t["clip-path"]=ct(n)}function fi(r){return document.createTextNode(r)}function G(r,t,i){r.insertBefore(t,i)}function ui(r,t){r.removeChild(t)}function hi(r,t){r.appendChild(t)}function Bi(r){return r.parentNode}function Di(r){return r.nextSibling}function wt(r,t){r.textContent=t}var vi=58,fe=120,ue=S("","");function kt(r){return r===void 0}function E(r){return r!==void 0}function he(r,t,i){for(var e={},a=t;a<=i;++a){var n=r[a].key;n!==void 0&&(e[n]=a)}return e}function q(r,t){var i=r.key===t.key,e=r.tag===t.tag;return e&&i}function Q(r){var t,i=r.children,e=r.tag;if(E(e)){var a=r.elm=Ri(e);if(Ft(ue,r),br(i))for(t=0;tn?(p=i[o+1]==null?null:i[o+1].elm,Mi(r,p,i,a,o)):dt(r,t,e,n))}function z(r,t){var i=t.elm=r.elm,e=r.children,a=t.children;r!==t&&(Ft(r,t),kt(t.text)?E(e)&&E(a)?e!==a&&ve(i,e,a):E(a)?(E(r.text)&&wt(i,""),Mi(i,null,a,0,a.length-1)):E(e)?dt(i,e,0,e.length-1):E(r.text)&&wt(i,""):r.text!==t.text&&(E(e)&&dt(i,e,0,e.length-1),wt(i,t.text)))}function de(r,t){if(q(r,t))z(r,t);else{var i=r.elm,e=Bi(i);Q(t),e!==null&&(G(e,t.elm,Di(i)),dt(e,[r],0,0))}return t}var ce=0,le=(function(){function r(t,i,e){if(this.type="svg",this.configLayer=pe(),this.storage=i,this._opts=e=J({},e),this.root=t,this._id="zr"+ce++,this._oldVNode=ti(e.width,e.height),t&&!e.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Ri("svg");Ft(null,this._oldVNode),a.appendChild(n),t.appendChild(a)}this.resize(e.width,e.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",de(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return oi(t,Nt(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var i=this.storage.getDisplayList(!0),e=this._width,a=this._height,n=Nt(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis,n.ssr=this._opts.ssr;var s=[],f=this._bgVNode=_e(e,a,this._backgroundColor,n);f&&s.push(f);var o=t.compress?null:this._mainVNode=S("g","main",{},[]);this._paintList(i,n,o?o.children:s),o&&s.push(o);var u=V(B(n.defs),function(d){return n.defs[d]});if(u.length&&s.push(S("defs","defs",{},u)),t.animation){var h=qr(n.cssNodes,n.cssAnims,{newline:!0});if(h){var v=S("style","stl",{},[],h);s.push(v)}}return ti(e,a,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},Ot(this.renderToVNode({animation:M(t.cssAnimation,!0),emphasis:M(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:M(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,i,e){for(var a=t.length,n=[],s=0,f,o,u=0,h=0;h=0&&!(d&&o&&d[l]===o[l]);l--);for(var g=p-1;g>l;g--)s--,f=n[s-1];for(var y=l+1;y=f)}}for(var v=ci(this),d=v.startIdx;d=0)&&(s=!0)}),!(!s&&!n.__dirty)){var f=e._opts.useDirtyRect&&!It(n)?n.createRepaintRects(t,i,e._width,e._height):null,o=e._i.layerStack[0],u=!0;if(n.__dirty){u=!1,n.__dirty=!1;var h=n.zlevel===o.zl&&n.zlevel2===o.zl2?e._backgroundColor:null;n.clear(!1,h,f)}ut(n,function(v){var d=e._paintPerCursor(n,v,t,f,u);a=a&&d})}},ht),kr.wxa&&R(this._i,function(n){n&&n.ctx&&n.ctx.draw&&n.ctx.draw()}),a},r.prototype._paintPerCursor=function(t,i,e,a,n){var s=t.ctx;if(a)if(!a.length)i.drawIdx=i.endIdx;else for(var f=this.dpr,o=0;o=i.endIdx},r.prototype._paintPerCursorInRect=function(t,i,e,a,n){for(var s={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:n}},f=t.ctx,o=It(t),u=o&&Ct.getTime(),h=i.drawIdx,v=i.notClearIdx,d=v>=0?Math.min(v,h):h;d15){d++;break}}}}mt(f,s),i.drawIdx=Math.max(d,h)},r.prototype.getLayer=function(t,i){return this._ensureLayer(t,0,i)},r.prototype._ensureLayer=function(t,i,e){i=i||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(t=H,i=0);var n=Rt(this._i,t)[i];return n||(n=pi("zr_"+t+"."+i,this,t,i),this._layerConfig[t]&&xt(n,this._layerConfig[t],!0),(e||a&&t!==H)&&(n.virtual=!0),this._insertLayer(n,t,i,!1),n.initContext()),n},r.prototype.insertLayer=function(t,i){this._insertLayer(i,t,0,!1)},r.prototype._insertLayer=function(t,i,e,a){var n=this._i,s=n.layers,f=n.layerStack,o=this._domRoot,u=null;if(!(s[i]&&s[i][e])&&ye(t)){for(var h=f.length,v=0;v0&&(u=Rt(n,f[v-1].zl)[f[v-1].zl2]),f.splice(v,0,{zl:i,zl2:e}),Rt(n,i)[e]=t,!a&&!t.virtual)if(u){var d=u.dom;d.nextSibling?o.insertBefore(t.dom,d.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(t,i){return R(this._i,function(e,a){t.call(i,e,a)})},r.prototype.eachBuiltinLayer=function(t,i){return R(this._i,function(e,a){t.call(i,e,a)},X)},r.prototype.eachOtherLayer=function(t,i){return R(this._i,function(e,a){t.call(i,e,a)},Et)},r.prototype.getLayers=function(){var t={};return R(this._i,function(i,e,a){t[i.id]=i}),t},r.prototype._updateLayerStatus=function(t,i){var e=this;if(e._singleCanvas)for(var a=1;a=0;m--){var _=x.get(y[m]);if(!_.used)g.__dirty=!0,x.removeKey(y[m]),y.splice(m,1);else{var I=_.endIdxNew;(It(g)?I<_.drawIdx:I!==_.endIdx||!I||t[I-1].id!==_.last)&&(g.__dirty=!0),_.endIdx=_.endIdxNew,_.last=I?t[I-1].id:NaN}}g.__dirty&&(ut(g,function(A){A.drawIdx=A.startIdx}),e._hoverLayerDirty===St&&(e._hoverLayerDirty=ge))},ht)},r.prototype.clear=function(){return R(this._i,function(t){t.clear(),Hi(t)},X),this},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._i,function(i){i.setUnpainted()})},r.prototype.configLayer=function(t,i){if(i){var e=this._layerConfig;e[t]?xt(e[t],i,!0):e[t]=i,R(this._i,function(a,n){xt(a,e[n],!0)})}},r.prototype.delLayer=function(t){for(var i=this._i.layerStack,e=this._i.layers,a=i.length-1;a>=0;a--){var n=i[a];if(n.zl===t){var s=e[t][n.zl2];if(s.__builtin__)continue;if(i.splice(a,1),e[t][n.zl2]=void 0,!s.virtual){var f=s.dom.parentNode;f&&f.removeChild(s.dom)}}}},r.prototype.resize=function(t,i){if(this._domRoot.style){var e=this._domRoot;e.style.display="none";var a=this._opts,n=this.root;t!=null&&(a.width=t),i!=null&&(a.height=i),t=Y(n,0,a),i=Y(n,1,a),e.style.display="",(this._width!==t||i!==this._height)&&(e.style.width=t+"px",e.style.height=i+"px",R(this._i,function(s){s.resize(t,i)}),this.refresh({paintAll:!0})),this._width=t,this._height=i}else{if(t==null||i==null)return;this._width=t,this._height=i,this._ensureLayer(H).resize(t,i)}return this},r.prototype.clearLayer=function(t){Vt(this._i.layers[t],function(i){i&&!i.__builtin__&&i.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[H][0].dom;var i=new Oi("image",this,t.pixelRatio||this.dpr);i.initContext(),i.clear(!1,t.backgroundColor||this._backgroundColor);var e=i.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=i.dom.width,n=i.dom.height;R(this._i,function(v){v.__builtin__?e.drawImage(v.dom,0,0,a,n):v.renderToCanvas&&(e.save(),v.renderToCanvas(e),e.restore())})}else{for(var s={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},f=this.storage.getDisplayList(!0),o=0,u=f.length;o