Files
prop-data-guard/frontend/dist/assets/Report-CnZkHpHB.js
T
2026-04-22 17:07:33 +08:00

3 lines
29 KiB
JavaScript

import{_ as J,f as Ut,G as rt,g as ut,S as $t,h as Xt,l as Zt,j as et,s as qt,k as Nt,m as ct,n as jt,Z as Jt,o as pt,p as zt,t as vt,q as tt,r as gt,v as Qt,w as Rt,x as Kt,y as Yt,z as ft,A as at,B as Vt,C as j,P as xt,D as yt,E as Gt,F as dt,I as te,J as bt,K as St,L as _t,M as Dt,N as nt,O as It,Q as ot,R as ee,T as ae,U as re,V as Mt,W as ie,X as ne,Y as oe,$ as se,a0 as Pt,a1 as le,a2 as ue,a3 as ve,a4 as he,u as ce,i as fe,a as me,b as pe,c as ge,d as ye,e as de,H as K}from"./index.esm.min-siVe36hz.js";import{d as be,o as Se,c as _e,a as B,b as F,w as q,r as At,g as Y,k as x,_ as De}from"./index-DIl-pxgT.js";var Ie=function(s){J(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Ut(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new rt,o=ut("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(o),o.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),n=r==="none"?"circle":r,u=t.itemHeight*.8,l=ut(n,(t.itemWidth-u)/2,(t.itemHeight-u)/2,u,u,t.itemStyle.fill);a.add(l),l.setStyle(t.itemStyle);var h=t.iconRotate==="inherit"?i:t.iconRotate||0;return l.rotation=h*Math.PI/180,l.setOrigin([t.itemWidth/2,t.itemHeight/2]),n.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}($t),mt=function(s){J(e,s);function e(t,a,o,r){var i=s.call(this)||this;return i.updateData(t,a,o,r),i}return e.prototype._createSymbol=function(t,a,o,r,i){this.removeAll();var n=ut(t,-1,-1,2,2,null,i);n.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),n.drift=Pe,this._symbolType=t,this.add(n)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Xt(this.childAt(0))},e.prototype.downplay=function(){Zt(this.childAt(0))},e.prototype.setZ=function(t,a){var o=this.childAt(0);o.zlevel=t,o.z=a},e.prototype.setDraggable=function(t,a){var o=this.childAt(0);o.draggable=t,o.cursor=!a&&t?"move":o.cursor},e.prototype.updateData=function(t,a,o,r){this.silent=!1;var i=t.getItemVisual(a,"symbol")||"circle",n=t.hostModel,u=e.getSymbolSize(t,a),l=i!==this._symbolType,h=r&&r.disableAnimation;if(l){var v=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(i,t,a,u,v)}else{var f=this.childAt(0);f.silent=!1;var c={scaleX:u[0]/2,scaleY:u[1]/2};h?f.attr(c):et(f,c,n,a),qt(f)}if(this._updateCommon(t,a,u,o,r),l){var f=this.childAt(0);if(!h){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Nt(f,c,n,a)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,o,r,i){var n=this.childAt(0),u=t.hostModel,l,h,v,f,c,p,m,b,g;if(r&&(l=r.emphasisItemStyle,h=r.blurItemStyle,v=r.selectItemStyle,f=r.focus,c=r.blurScope,m=r.labelStatesModels,b=r.hoverScale,g=r.cursorStyle,p=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(a),d=y.getModel("emphasis");l=d.getModel("itemStyle").getItemStyle(),v=y.getModel(["select","itemStyle"]).getItemStyle(),h=y.getModel(["blur","itemStyle"]).getItemStyle(),f=d.get("focus"),c=d.get("blurScope"),p=d.get("disabled"),m=ct(y),b=d.getShallow("scale"),g=y.getShallow("cursor")}var I=t.getItemVisual(a,"symbolRotate");n.attr("rotation",(I||0)*Math.PI/180||0);var D=jt(t.getItemVisual(a,"symbolOffset"),o);D&&(n.x=D[0],n.y=D[1]),g&&n.attr("cursor",g);var _=t.getItemVisual(a,"style"),S=_.fill;if(n instanceof Jt){var k=n.style;n.useStyle(pt({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},_))}else n.__isEmptyBrush?n.useStyle(pt({},_)):n.useStyle(_),n.style.decal=null,n.setColor(S,i&&i.symbolInnerColor),n.style.strokeNoScale=!0;var L=t.getItemVisual(a,"liftZ"),P=this._z2;L!=null?P==null&&(this._z2=n.z2,n.z2+=L):P!=null&&(n.z2=P,this._z2=null);var w=i&&i.useNameLabel;zt(n,m,{labelFetcher:u,labelDataIndex:a,defaultText:A,inheritColor:S,defaultOpacity:_.opacity});function A(O){return w?t.getName(O):Rt(t,O)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var E=n.ensureState("emphasis");E.style=l,n.ensureState("select").style=v,n.ensureState("blur").style=h;var z=b==null||b===!0?Math.max(1.1,3/this._sizeY):isFinite(b)&&b>0?+b:1;E.scaleX=this._sizeX*z,E.scaleY=this._sizeY*z,this.setSymbolScale(1),vt(this,f,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,o){var r=this.childAt(0),i=tt(this).dataIndex,n=o&&o.animation;if(this.silent=r.silent=!0,o&&o.fadeLabel){var u=r.getTextContent();u&&gt(u,{style:{opacity:0}},a,{dataIndex:i,removeOpt:n,cb:function(){r.removeTextContent()}})}else r.removeTextContent();gt(r,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:i,cb:t,removeOpt:n})},e.getSymbolSize=function(t,a){return Qt(t.getItemVisual(a,"symbolSize"))},e}(rt);function Pe(s,e){this.parent.drift(s,e)}function st(s,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&s.getItemVisual(t,"symbol")!=="none"}function Lt(s){return s!=null&&!Yt(s)&&(s={isIgnore:s}),s||{}}function wt(s){var e=s.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ct(e),cursorStyle:e.get("cursor")}}var Ae=function(){function s(e){this.group=new rt,this._SymbolCtor=e||mt}return s.prototype.updateData=function(e,t){this._progressiveEls=null,t=Lt(t);var a=this.group,o=e.hostModel,r=this._data,i=this._SymbolCtor,n=t.disableAnimation,u=wt(e),l={disableAnimation:n},h=t.getSymbolPoint||function(v){return e.getItemLayout(v)};r||a.removeAll(),e.diff(r).add(function(v){var f=h(v);if(st(e,f,v,t)){var c=new i(e,v,u,l);c.setPosition(f),e.setItemGraphicEl(v,c),a.add(c)}}).update(function(v,f){var c=r.getItemGraphicEl(f),p=h(v);if(!st(e,p,v,t)){a.remove(c);return}var m=e.getItemVisual(v,"symbol")||"circle",b=c&&c.getSymbolType&&c.getSymbolType();if(!c||b&&b!==m)a.remove(c),c=new i(e,v,u,l),c.setPosition(p);else{c.updateData(e,v,u,l);var g={x:p[0],y:p[1]};n?c.attr(g):et(c,g,o)}a.add(c),e.setItemGraphicEl(v,c)}).remove(function(v){var f=r.getItemGraphicEl(v);f&&f.fadeOut(function(){a.remove(f)},o)}).execute(),this._getSymbolPoint=h,this._data=e},s.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,o){var r=e._getSymbolPoint(o);a.setPosition(r),a.markRedraw()})},s.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=wt(e),this._data=null,this.group.removeAll()},s.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Lt(a);function o(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){var i=t.getItemLayout(r);if(st(t,i,r,a)){var n=new this._SymbolCtor(t,r,this._seriesScope);n.traverse(o),n.setPosition(i),this.group.add(n),t.setItemGraphicEl(r,n),this._progressiveEls.push(n)}}},s.prototype.eachRendered=function(e){Kt(this._progressiveEls||this.group,e)},s.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(o){o.fadeOut(function(){t.remove(o)},a.hostModel)}):t.removeAll()},s}();function Ft(s,e,t){var a=s.getBaseAxis(),o=s.getOtherAxis(a),r=Le(o,t),i=a.dim,n=o.dim,u=e.mapDimension(n),l=e.mapDimension(i),h=n==="x"||n==="radius"?1:0,v=ft(s.dimensions,function(p){return e.mapDimension(p)}),f=!1,c=e.getCalculationInfo("stackResultDimension");return at(e,v[0])&&(f=!0,v[0]=c),at(e,v[1])&&(f=!0,v[1]=c),{dataDimsForPoint:v,valueStart:r,valueAxisDim:n,baseAxisDim:i,stacked:!!f,valueDim:u,baseDim:l,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Le(s,e){var t=0,a=s.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Vt(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function Ht(s,e,t,a){var o=NaN;s.stacked&&(o=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(o)&&(o=s.valueStart);var r=s.baseDataOffset,i=[];return i[r]=t.get(s.baseDim,a),i[1-r]=o,e.dataToPoint(i)}function we(s,e){var t=[];return e.diff(s).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,o){t.push({cmd:"=",idx:o,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function ke(s,e,t,a,o,r,i,n){for(var u=we(s,e),l=[],h=[],v=[],f=[],c=[],p=[],m=[],b=Ft(o,e,i),g=s.getLayout("points")||[],y=e.getLayout("points")||[],d=0;d<u.length;d++){var I=u[d],D=!0,_=void 0,S=void 0;switch(I.cmd){case"=":_=I.idx*2,S=I.idx1*2;var k=g[_],L=g[_+1],P=y[S],w=y[S+1];(isNaN(k)||isNaN(L))&&(k=P,L=w),l.push(k,L),h.push(P,w),v.push(t[_],t[_+1]),f.push(a[S],a[S+1]),m.push(e.getRawIndex(I.idx1));break;case"+":var A=I.idx,E=b.dataDimsForPoint,z=o.dataToPoint([e.get(E[0],A),e.get(E[1],A)]);S=A*2,l.push(z[0],z[1]),h.push(y[S],y[S+1]);var O=Ht(b,o,e,A);v.push(O[0],O[1]),f.push(a[S],a[S+1]),m.push(e.getRawIndex(A));break;case"-":D=!1}D&&(c.push(I),p.push(p.length))}p.sort(function(R,it){return m[R]-m[it]});for(var N=l.length,M=j(N),T=j(N),C=j(N),H=j(N),W=[],d=0;d<p.length;d++){var Q=p[d],V=d*2,G=Q*2;M[V]=l[G],M[V+1]=l[G+1],T[V]=h[G],T[V+1]=h[G+1],C[V]=v[G],C[V+1]=v[G+1],H[V]=f[G],H[V+1]=f[G+1],W[d]=c[Q]}return{current:M,next:T,stackedOnCurrent:C,stackedOnNext:H,status:W}}var U=Math.min,$=Math.max;function Z(s,e){return isNaN(s)||isNaN(e)}function ht(s,e,t,a,o,r,i,n,u){for(var l,h,v,f,c,p,m=t,b=0;b<a;b++){var g=e[m*2],y=e[m*2+1];if(m>=o||m<0)break;if(Z(g,y)){if(u){m+=r;continue}break}if(m===t)s[r>0?"moveTo":"lineTo"](g,y),v=g,f=y;else{var d=g-l,I=y-h;if(d*d+I*I<.5){m+=r;continue}if(i>0){for(var D=m+r,_=e[D*2],S=e[D*2+1];_===g&&S===y&&b<a;)b++,D+=r,m+=r,_=e[D*2],S=e[D*2+1],g=e[m*2],y=e[m*2+1],d=g-l,I=y-h;var k=b+1;if(u)for(;Z(_,S)&&k<a;)k++,D+=r,_=e[D*2],S=e[D*2+1];var L=.5,P=0,w=0,A=void 0,E=void 0;if(k>=a||Z(_,S))c=g,p=y;else{P=_-l,w=S-h;var z=g-l,O=_-g,N=y-h,M=S-y,T=void 0,C=void 0;if(n==="x"){T=Math.abs(z),C=Math.abs(O);var H=P>0?1:-1;c=g-H*T*i,p=y,A=g+H*C*i,E=y}else if(n==="y"){T=Math.abs(N),C=Math.abs(M);var W=w>0?1:-1;c=g,p=y-W*T*i,A=g,E=y+W*C*i}else T=Math.sqrt(z*z+N*N),C=Math.sqrt(O*O+M*M),L=C/(C+T),c=g-P*i*(1-L),p=y-w*i*(1-L),A=g+P*i*L,E=y+w*i*L,A=U(A,$(_,g)),E=U(E,$(S,y)),A=$(A,U(_,g)),E=$(E,U(S,y)),P=A-g,w=E-y,c=g-P*T/C,p=y-w*T/C,c=U(c,$(l,g)),p=U(p,$(h,y)),c=$(c,U(l,g)),p=$(p,U(h,y)),P=g-c,w=y-p,A=g+P*C/T,E=y+w*C/T}s.bezierCurveTo(v,f,c,p,g,y),v=A,f=E}else s.lineTo(g,y)}l=g,h=y,m+=r}return b}var Bt=function(){function s(){this.smooth=0,this.smoothConstraint=!0}return s}(),Ee=function(s){J(e,s);function e(t){var a=s.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Bt},e.prototype.buildPath=function(t,a){var o=a.points,r=0,i=o.length/2;if(a.connectNulls){for(;i>0&&Z(o[i*2-2],o[i*2-1]);i--);for(;r<i&&Z(o[r*2],o[r*2+1]);r++);}for(;r<i;)r+=ht(t,o,r,i,i,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var o=this.path,r=o.data,i=xt.CMD,n,u,l=a==="x",h=[],v=0;v<r.length;){var f=r[v++],c=void 0,p=void 0,m=void 0,b=void 0,g=void 0,y=void 0,d=void 0;switch(f){case i.M:n=r[v++],u=r[v++];break;case i.L:if(c=r[v++],p=r[v++],d=l?(t-n)/(c-n):(t-u)/(p-u),d<=1&&d>=0){var I=l?(p-u)*d+u:(c-n)*d+n;return l?[t,I]:[I,t]}n=c,u=p;break;case i.C:c=r[v++],p=r[v++],m=r[v++],b=r[v++],g=r[v++],y=r[v++];var D=l?yt(n,c,m,g,t,h):yt(u,p,b,y,t,h);if(D>0)for(var _=0;_<D;_++){var S=h[_];if(S<=1&&S>=0){var I=l?dt(u,p,b,y,S):dt(n,c,m,g,S);return l?[t,I]:[I,t]}}n=g,u=y;break}}},e}(Gt),Te=function(s){J(e,s);function e(){return s!==null&&s.apply(this,arguments)||this}return e}(Bt),Ce=function(s){J(e,s);function e(t){var a=s.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new Te},e.prototype.buildPath=function(t,a){var o=a.points,r=a.stackedOnPoints,i=0,n=o.length/2,u=a.smoothMonotone;if(a.connectNulls){for(;n>0&&Z(o[n*2-2],o[n*2-1]);n--);for(;i<n&&Z(o[i*2],o[i*2+1]);i++);}for(;i<n;){var l=ht(t,o,i,n,n,1,a.smooth,u,a.connectNulls);ht(t,r,i+l-1,l,n,-1,a.stackedOnSmooth,u,a.connectNulls),i+=l+1,t.closePath()}},e}(Gt);function kt(s,e){if(s.length===e.length){for(var t=0;t<s.length;t++)if(s[t]!==e[t])return;return!0}}function Et(s){for(var e=1/0,t=1/0,a=-1/0,o=-1/0,r=0;r<s.length;){var i=s[r++],n=s[r++];isNaN(i)||(e=Math.min(i,e),a=Math.max(i,a)),isNaN(n)||(t=Math.min(n,t),o=Math.max(n,o))}return[[e,t],[a,o]]}function Tt(s,e){var t=Et(s),a=t[0],o=t[1],r=Et(e),i=r[0],n=r[1];return Math.max(Math.abs(a[0]-i[0]),Math.abs(a[1]-i[1]),Math.abs(o[0]-n[0]),Math.abs(o[1]-n[1]))}function Ct(s){return Vt(s)?s:s?.5:0}function Oe(s,e,t){if(!t.valueDim)return[];for(var a=e.count(),o=j(a*2),r=0;r<a;r++){var i=Ht(t,s,e,r);o[r*2]=i[0],o[r*2+1]=i[1]}return o}function X(s,e,t,a,o){var r=t.getBaseAxis(),i=r.dim==="x"||r.dim==="radius"?0:1,n=[],u=0,l=[],h=[],v=[],f=[];if(o){for(u=0;u<s.length;u+=2){var c=e||s;!isNaN(c[u])&&!isNaN(c[u+1])&&f.push(s[u],s[u+1])}s=f}for(u=0;u<s.length-2;u+=2)switch(v[0]=s[u+2],v[1]=s[u+3],h[0]=s[u],h[1]=s[u+1],n.push(h[0],h[1]),a){case"end":l[i]=v[i],l[1-i]=h[1-i],n.push(l[0],l[1]);break;case"middle":var p=(h[i]+v[i])/2,m=[];l[i]=m[i]=p,l[1-i]=h[1-i],m[1-i]=v[1-i],n.push(l[0],l[1]),n.push(m[0],m[1]);break;default:l[i]=h[i],l[1-i]=v[1-i],n.push(l[0],l[1])}return n.push(s[u++],s[u++]),n}function Ne(s,e){var t=[],a=s.length,o,r;function i(h,v,f){var c=h.coord,p=(f-c)/(v.coord-c),m=le(p,[h.color,v.color]);return{coord:f,color:m}}for(var n=0;n<a;n++){var u=s[n],l=u.coord;if(l<0)o=u;else if(l>e){r?t.push(i(r,u,e)):o&&t.push(i(o,u,0),i(o,u,e));break}else o&&(t.push(i(o,u,0)),o=null),t.push(u),r=u}return t}function ze(s,e,t){var a=s.getVisual("visualMeta");if(!(!a||!a.length||!s.count())&&e.type==="cartesian2d"){for(var o,r,i=a.length-1;i>=0;i--){var n=s.getDimensionInfo(a[i].dimension);if(o=n&&n.coordDim,o==="x"||o==="y"){r=a[i];break}}if(r){var u=e.getAxis(o),l=ft(r.stops,function(d){return{coord:u.toGlobalCoord(u.dataToCoord(d.value)),color:d.color}}),h=l.length,v=r.outerColors.slice();h&&l[0].coord>l[h-1].coord&&(l.reverse(),v.reverse());var f=Ne(l,o==="x"?t.getWidth():t.getHeight()),c=f.length;if(!c&&h)return l[0].coord<0?v[1]?v[1]:l[h-1].color:v[0]?v[0]:l[0].color;var p=10,m=f[0].coord-p,b=f[c-1].coord+p,g=b-m;if(g<.001)return"transparent";Mt(f,function(d){d.offset=(d.coord-m)/g}),f.push({offset:c?f[c-1].offset:.5,color:v[1]||"transparent"}),f.unshift({offset:c?f[0].offset:.5,color:v[0]||"transparent"});var y=new ie(0,0,0,0,f,!0);return y[o]=m,y[o+"2"]=b,y}}}function Re(s,e,t){var a=s.get("showAllSymbol"),o=a==="auto";if(!(a&&!o)){var r=t.getAxesByScale("ordinal")[0];if(r&&!(o&&Ve(r,e))){var i=e.mapDimension(r.dim),n={};return Mt(r.getViewLabels(),function(u){var l=r.scale.getRawOrdinalNumber(u.tickValue);n[l]=1}),function(u){return!n.hasOwnProperty(e.get(i,u))}}}}function Ve(s,e){var t=s.getExtent(),a=Math.abs(t[1]-t[0])/s.scale.count();isNaN(a)&&(a=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),i=0;i<o;i+=r)if(mt.getSymbolSize(e,i)[s.isHorizontal()?1:0]*1.5>a)return!1;return!0}function Ge(s,e){return isNaN(s)||isNaN(e)}function Me(s){for(var e=s.length/2;e>0&&Ge(s[e*2-2],s[e*2-1]);e--);return e-1}function Ot(s,e){return[s[e*2],s[e*2+1]]}function Fe(s,e,t){for(var a=s.length/2,o=t==="x"?0:1,r,i,n=0,u=-1,l=0;l<a;l++)if(i=s[l*2+o],!(isNaN(i)||isNaN(s[l*2+1-o]))){if(l===0){r=i;continue}if(r<=e&&i>=e||r>=e&&i<=e){u=l;break}n=l,r=i}return{range:[n,u],t:(e-r)/(i-r)}}function Wt(s){if(s.get(["endLabel","show"]))return!0;for(var e=0;e<Pt.length;e++)if(s.get([Pt[e],"endLabel","show"]))return!0;return!1}function lt(s,e,t,a){if(ne(e,"cartesian2d")){var o=a.getModel("endLabel"),r=o.get("valueAnimation"),i=a.getData(),n={lastFrameIndex:0},u=Wt(a)?function(c,p){s._endLabelOnDuring(c,p,i,n,r,o,e)}:null,l=e.getBaseAxis().isHorizontal(),h=oe(e,t,a,function(){var c=s._endLabel;c&&t&&n.originalX!=null&&c.attr({x:n.originalX,y:n.originalY})},u);if(!a.get("clip",!0)){var v=h.shape,f=Math.max(v.width,v.height);l?(v.y-=f,v.height+=f*2):(v.x-=f,v.width+=f*2)}return u&&u(1,h),h}else return se(e,t,a)}function He(s,e){var t=e.getBaseAxis(),a=t.isHorizontal(),o=t.inverse,r=a?o?"right":"left":"center",i=a?"middle":o?"top":"bottom";return{normal:{align:s.get("align")||r,verticalAlign:s.get("verticalAlign")||i}}}var Be=function(s){J(e,s);function e(){return s!==null&&s.apply(this,arguments)||this}return e.prototype.init=function(){var t=new rt,a=new Ae;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=te(this._changePolyState,this)},e.prototype.render=function(t,a,o){var r=t.coordinateSystem,i=this.group,n=t.getData(),u=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=n.getLayout("points")||[],v=r.type==="polar",f=this._coordSys,c=this._symbolDraw,p=this._polyline,m=this._polygon,b=this._lineGroup,g=!a.ssr&&t.get("animation"),y=!l.isEmpty(),d=l.get("origin"),I=Ft(r,n,d),D=y&&Oe(r,n,I),_=t.get("showSymbol"),S=t.get("connectNulls"),k=_&&!v&&Re(t,n,r),L=this._data;L&&L.eachItemGraphicEl(function(R,it){R.__temp&&(i.remove(R),L.setItemGraphicEl(it,null))}),_||c.remove(),i.add(b);var P=v?!1:t.get("step"),w;r&&r.getArea&&t.get("clip",!0)&&(w=r.getArea(),w.width!=null?(w.x-=.1,w.y-=.1,w.width+=.2,w.height+=.2):w.r0&&(w.r0-=.5,w.r+=.5)),this._clipShapeForSymbol=w;var A=ze(n,r,o)||n.getVisual("style")[n.getVisual("drawType")];if(!(p&&f.type===r.type&&P===this._step))_&&c.updateData(n,{isIgnore:k,clipShape:w,disableAnimation:!0,getSymbolPoint:function(R){return[h[R*2],h[R*2+1]]}}),g&&this._initSymbolLabelAnimation(n,r,w),P&&(D&&(D=X(D,h,r,P,S)),h=X(h,null,r,P,S)),p=this._newPolyline(h),y?m=this._newPolygon(h,D):m&&(b.remove(m),m=this._polygon=null),v||this._initOrUpdateEndLabel(t,r,bt(A)),b.setClipPath(lt(this,r,!0,t));else{y&&!m?m=this._newPolygon(h,D):m&&!y&&(b.remove(m),m=this._polygon=null),v||this._initOrUpdateEndLabel(t,r,bt(A));var E=b.getClipPath();if(E){var z=lt(this,r,!1,t);Nt(E,{shape:z.shape},t)}else b.setClipPath(lt(this,r,!0,t));_&&c.updateData(n,{isIgnore:k,clipShape:w,disableAnimation:!0,getSymbolPoint:function(R){return[h[R*2],h[R*2+1]]}}),(!kt(this._stackedOnPoints,D)||!kt(this._points,h))&&(g?this._doUpdateAnimation(n,D,r,o,P,d,S):(P&&(D&&(D=X(D,h,r,P,S)),h=X(h,null,r,P,S)),p.setShape({points:h}),m&&m.setShape({points:h,stackedOnPoints:D})))}var O=t.getModel("emphasis"),N=O.get("focus"),M=O.get("blurScope"),T=O.get("disabled");if(p.useStyle(St(u.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),_t(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var C=p.getState("emphasis").style;C.lineWidth=+p.style.lineWidth+1}tt(p).seriesIndex=t.seriesIndex,vt(p,N,M,T);var H=Ct(t.get("smooth")),W=t.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:W,connectNulls:S}),m){var Q=n.getCalculationInfo("stackedOnSeries"),V=0;m.useStyle(St(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:n.getVisual("style").decal})),Q&&(V=Ct(Q.get("smooth"))),m.setShape({smooth:H,stackedOnSmooth:V,smoothMonotone:W,connectNulls:S}),_t(m,t,"areaStyle"),tt(m).seriesIndex=t.seriesIndex,vt(m,N,M,T)}var G=this._changePolyState;n.eachItemGraphicEl(function(R){R&&(R.onHoverStateChange=G)}),this._polyline.onHoverStateChange=G,this._data=n,this._coordSys=r,this._stackedOnPoints=D,this._points=h,this._step=P,this._valueOrigin=d,t.get("triggerLineEvent")&&(this.packEventData(t,p),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,a){tt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,o,r){var i=t.getData(),n=Dt(i,r);if(this._changePolyState("emphasis"),!(n instanceof Array)&&n!=null&&n>=0){var u=i.getLayout("points"),l=i.getItemGraphicEl(n);if(!l){var h=u[n*2],v=u[n*2+1];if(isNaN(h)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,v))return;var f=t.get("zlevel")||0,c=t.get("z")||0;l=new mt(i,n),l.x=h,l.y=v,l.setZ(f,c);var p=l.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=c,p.z2=this._polyline.z2+1),l.__temp=!0,i.setItemGraphicEl(n,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else nt.prototype.highlight.call(this,t,a,o,r)},e.prototype.downplay=function(t,a,o,r){var i=t.getData(),n=Dt(i,r);if(this._changePolyState("normal"),n!=null&&n>=0){var u=i.getItemGraphicEl(n);u&&(u.__temp?(i.setItemGraphicEl(n,null),this.group.remove(u)):u.downplay())}else nt.prototype.downplay.call(this,t,a,o,r)},e.prototype._changePolyState=function(t){var a=this._polygon;It(this._polyline,t),a&&It(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new Ee({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new Ce({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(t,a,o){var r,i,n=a.getBaseAxis(),u=n.inverse;a.type==="cartesian2d"?(r=n.isHorizontal(),i=!1):a.type==="polar"&&(r=n.dim==="angle",i=!0);var l=t.hostModel,h=l.get("animationDuration");ot(h)&&(h=h(null));var v=l.get("animationDelay")||0,f=ot(v)?v(null):v;t.eachItemGraphicEl(function(c,p){var m=c;if(m){var b=[c.x,c.y],g=void 0,y=void 0,d=void 0;if(o)if(i){var I=o,D=a.pointToCoord(b);r?(g=I.startAngle,y=I.endAngle,d=-D[1]/180*Math.PI):(g=I.r0,y=I.r,d=D[0])}else{var _=o;r?(g=_.x,y=_.x+_.width,d=c.x):(g=_.y+_.height,y=_.y,d=c.y)}var S=y===g?0:(d-g)/(y-g);u&&(S=1-S);var k=ot(v)?v(p):h*S+f,L=m.getSymbolPath(),P=L.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:k}),L.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,o){var r=t.getModel("endLabel");if(Wt(t)){var i=t.getData(),n=this._polyline,u=i.getLayout("points");if(!u){n.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new ee({z2:200}),l.ignoreClip=!0,n.setTextContent(this._endLabel),n.disableLabelAnimation=!0);var h=Me(u);h>=0&&(zt(n,ct(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:h,defaultText:function(v,f,c){return c!=null?ue(i,c):Rt(i,v)},enableTextSetter:!0},He(r,a)),n.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,o,r,i,n,u){var l=this._endLabel,h=this._polyline;if(l){t<1&&r.originalX==null&&(r.originalX=l.x,r.originalY=l.y);var v=o.getLayout("points"),f=o.hostModel,c=f.get("connectNulls"),p=n.get("precision"),m=n.get("distance")||0,b=u.getBaseAxis(),g=b.isHorizontal(),y=b.inverse,d=a.shape,I=y?g?d.x:d.y+d.height:g?d.x+d.width:d.y,D=(g?m:0)*(y?-1:1),_=(g?0:-m)*(y?-1:1),S=g?"x":"y",k=Fe(v,I,S),L=k.range,P=L[1]-L[0],w=void 0;if(P>=1){if(P>1&&!c){var A=Ot(v,L[0]);l.attr({x:A[0]+D,y:A[1]+_}),i&&(w=f.getRawValue(L[0]))}else{var A=h.getPointOn(I,S);A&&l.attr({x:A[0]+D,y:A[1]+_});var E=f.getRawValue(L[0]),z=f.getRawValue(L[1]);i&&(w=ae(o,p,E,z,k.t))}r.lastFrameIndex=L[0]}else{var O=t===1||r.lastFrameIndex>0?L[0]:0,A=Ot(v,O);i&&(w=f.getRawValue(O)),l.attr({x:A[0]+D,y:A[1]+_})}if(i){var N=re(l);typeof N.setLabelText=="function"&&N.setLabelText(w)}}},e.prototype._doUpdateAnimation=function(t,a,o,r,i,n,u){var l=this._polyline,h=this._polygon,v=t.hostModel,f=ke(this._data,t,this._stackedOnPoints,a,this._coordSys,o,this._valueOrigin),c=f.current,p=f.stackedOnCurrent,m=f.next,b=f.stackedOnNext;if(i&&(p=X(f.stackedOnCurrent,f.current,o,i,u),c=X(f.current,null,o,i,u),b=X(f.stackedOnNext,f.next,o,i,u),m=X(f.next,null,o,i,u)),Tt(c,m)>3e3||h&&Tt(p,b)>3e3){l.stopAnimation(),l.setShape({points:m}),h&&(h.stopAnimation(),h.setShape({points:m,stackedOnPoints:b}));return}l.shape.__points=f.current,l.shape.points=c;var g={shape:{points:m}};f.current!==c&&(g.shape.__points=f.next),l.stopAnimation(),et(l,g,v),h&&(h.setShape({points:c,stackedOnPoints:p}),h.stopAnimation(),et(h,{shape:{stackedOnPoints:b}},v),l.shape.points!==h.shape.points&&(h.shape.points=l.shape.points));for(var y=[],d=f.status,I=0;I<d.length;I++){var D=d[I].cmd;if(D==="="){var _=t.getItemGraphicEl(d[I].idx1);_&&y.push({el:_,ptIdx:I})}}l.animators&&l.animators.length&&l.animators[0].during(function(){h&&h.dirtyShape();for(var S=l.shape.__points,k=0;k<y.length;k++){var L=y[k].el,P=y[k].ptIdx*2;L.x=S[P],L.y=S[P+1],L.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,o=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),o&&o.eachItemGraphicEl(function(r,i){r.__temp&&(a.remove(r),o.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(nt);function We(s,e){return{seriesType:s,plan:ve(),reset:function(t){var a=t.getData(),o=t.coordinateSystem;if(t.pipelineContext,!!o){var r=ft(o.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),i=r.length,n=a.getCalculationInfo("stackResultDimension");at(a,r[0])&&(r[0]=n),at(a,r[1])&&(r[1]=n);var u=a.getStore(),l=a.getDimensionIndex(r[0]),h=a.getDimensionIndex(r[1]);return i&&{progress:function(v,f){for(var c=v.end-v.start,p=j(c*i),m=[],b=[],g=v.start,y=0;g<v.end;g++){var d=void 0;if(i===1){var I=u.get(l,g);d=o.dataToPoint(I,null,b)}else m[0]=u.get(l,g),m[1]=u.get(h,g),d=o.dataToPoint(m,null,b);p[y++]=d[0],p[y++]=d[1]}f.setLayout("points",p)}}}}}}function Ue(s){s.registerChartView(Be),s.registerSeriesModel(Ie),s.registerLayout(We("line")),s.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),s.registerProcessor(s.PRIORITY.PROCESSOR.STATISTIC,he("line"))}const $e={class:"page-container"},Xe={class:"chart-card card-shadow"},Ze={class:"chart-card card-shadow"},qe={class:"chart-card card-shadow"},je={class:"chart-card card-shadow"},Je=be({__name:"Report",setup(s){ce([fe,me,pe,Ue,ge,ye,de]);const e=x({tooltip:{trigger:"item"},legend:{bottom:"0%",left:"center"},color:["#67c23a","#409eff","#e6a23c","#f56c6c","#909399"],series:[{type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:6,borderColor:"#fff",borderWidth:2},label:{show:!1},data:[{value:35e3,name:"L1 公开级"},{value:62e3,name:"L2 内部级"},{value:48e3,name:"L3 敏感级"},{value:22e3,name:"L4 重要级"},{value:6931,name:"L5 核心级"}]}]}),t=x({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["项目A","项目B","项目C","项目D"]},yAxis:{type:"value",max:100},series:[{type:"bar",data:[68,92,25,45],itemStyle:{borderRadius:[4,4,0,0],color:"#409eff"},label:{show:!0,position:"top",formatter:"{c}%"}}]}),a=x({tooltip:{trigger:"item"},legend:{bottom:"0%",left:"center"},color:["#e6a23c","#67c23a"],series:[{type:"pie",radius:["40%","70%"],itemStyle:{borderRadius:6,borderColor:"#fff",borderWidth:2},label:{show:!1},data:[{value:124500,name:"自动识别"},{value:27840,name:"人工打标"}]}]}),o=x({tooltip:{trigger:"axis"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["周一","周二","周三","周四","周五","周六","周日"]},yAxis:{type:"value"},series:[{type:"line",data:[120,132,101,134,90,230,210],smooth:!0,itemStyle:{color:"#f56c6c"},areaStyle:{color:"rgba(245,108,108,0.1)"}}]});return(r,i)=>{const n=At("el-col"),u=At("el-row");return Se(),_e("div",$e,[i[4]||(i[4]=B("h2",{class:"page-title"},"报表统计",-1)),F(u,{gutter:16,class:"chart-row"},{default:q(()=>[F(n,{xs:24,md:12},{default:q(()=>[B("div",Xe,[i[0]||(i[0]=B("div",{class:"chart-title"},"数据分级分布",-1)),F(Y(K),{class:"chart",option:e.value,autoresize:""},null,8,["option"])])]),_:1}),F(n,{xs:24,md:12},{default:q(()=>[B("div",Ze,[i[1]||(i[1]=B("div",{class:"chart-title"},"项目进度",-1)),F(Y(K),{class:"chart",option:t.value,autoresize:""},null,8,["option"])])]),_:1})]),_:1}),F(u,{gutter:16,class:"chart-row"},{default:q(()=>[F(n,{xs:24,md:12},{default:q(()=>[B("div",qe,[i[2]||(i[2]=B("div",{class:"chart-title"},"识别来源占比",-1)),F(Y(K),{class:"chart",option:a.value,autoresize:""},null,8,["option"])])]),_:1}),F(n,{xs:24,md:12},{default:q(()=>[B("div",je,[i[3]||(i[3]=B("div",{class:"chart-title"},"敏感数据趋势(近7天)",-1)),F(Y(K),{class:"chart",option:o.value,autoresize:""},null,8,["option"])])]),_:1})]),_:1})])}}}),Ye=De(Je,[["__scopeId","data-v-5f4e75fc"]]);export{Ye as default};
//# sourceMappingURL=Report-CnZkHpHB.js.map