You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
1.1 MiB
108 lines
1.1 MiB
5 months ago
|
!(function(){var ir=Math.pow;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[435],{26839:function(Ce,Tn,tt){"use strict";tt.d(Tn,{P:function(){return nht}});var wt={};tt.r(wt),tt.d(wt,{add:function(){return n6},adjoint:function(){return HD},clone:function(){return Ex},copy:function(){return is},create:function(){return cn},determinant:function(){return Ax},equals:function(){return o6},exactEquals:function(){return a6},frob:function(){return e6},fromQuat:function(){return Z0},fromQuat2:function(){return VD},fromRotation:function(){return kx},fromRotationTranslation:function(){return jx},fromRotationTranslationScale:function(){return XD},fromRotationTranslationScaleOrigin:function(){return Rl},fromScaling:function(){return ss},fromTranslation:function(){return os},fromValues:function(){return YD},fromXRotation:function(){return Lx},fromYRotation:function(){return Nx},fromZRotation:function(){return q0},frustum:function(){return qD},getRotation:function(){return Xf},getScaling:function(){return uc},getTranslation:function(){return Vf},identity:function(){return as},invert:function(){return da},lookAt:function(){return Bx},mul:function(){return Gx},multiply:function(){return Rr},multiplyScalar:function(){return r6},multiplyScalarAndAdd:function(){return i6},ortho:function(){return Dx},orthoNO:function(){return Ix},orthoZO:function(){return Fx},perspective:function(){return ZD},perspectiveFromFieldOfView:function(){return QD},perspectiveNO:function(){return Rx},perspectiveZO:function(){return KD},rotate:function(){return $D},rotateX:function(){return Tx},rotateY:function(){return Cx},rotateZ:function(){return UD},scale:function(){return Uf},set:function(){return X0},str:function(){return t6},sub:function(){return s6},subtract:function(){return zx},targetTo:function(){return JD},translate:function(){return lc},transpose:function(){return Px}});var lt={};tt.r(lt),tt.d(lt,{area:function(){return ZH},bottom:function(){return $a},bottomLeft:function(){return $a},bottomRight:function(){return $a},inside:function(){return $a},left:function(){return $a},outside:function(){return JH},right:function(){return $a},spider:function(){return e$},surround:function(){return r$},top:function(){return $a},topLeft:function(){return $a},topRight:function(){return $a}});var $t={};tt.r($t),tt.d($t,{interpolateBlues:function(){return AU},interpolateBrBG:function(){return sU},interpolateBuGn:function(){return gU},interpolateBuPu:function(){return yU},interpolateCividis:function(){return jU},interpolateCool:function(){return zU},interpolateCubehelixDefault:function(){return FU},interpolateGnBu:function(){return mU},interpolateGreens:function(){return TU},interpolateGreys:function(){return CU},interpolateInferno:function(){return XU},interpolateMagma:function(){return VU},interpolateOrRd:function(){return bU},interpolateOranges:function(){return NU},interpolatePRGn:function(){return cU},interpolatePiYG:function(){return lU},interpolatePlasma:function(){return qU},interpolatePuBu:function(){return _U},interpolatePuBuGn:function(){return xU},interpolatePuOr:function(){return uU},interpolatePuRd:function(){return OU},interpolatePurples:function(){return kU},interpolateRainbow:function(){return GU},interpolateRdBu:function(){return fU},interpolateRdGy:function(){return dU},interpolateRdPu:function(){return wU},interpolateRdYlBu:function(){return hU},interpolateRdYlGn:function(){return pU},interpolateReds:function(){return LU},interpolateSinebow:function(){return HU},interpolateSpectral:function(){return vU},interpolateTurbo:function(){return $U},interpolateViridis:function(){return UU},interpolateWarm:function(){return BU},interpolateYlGn:function(){return MU},interpolateYlGnBu:function(){return SU},interpolateYlOrBr:function(){return EU},interpolateYlOrRd:function(){return PU},schemeAccent:function(){return $$},schemeBlues:function(){return lM},schemeBrBG:function(){return WS},schemeBuGn:function(){return KS},schemeBuPu:function(){return QS},schemeCategory10:function(){return H$},schemeDark2:function(){return U$},schemeGnBu:f
|
||
6 months ago
|
display: inline-block;
|
||
|
position: relative;
|
||
|
width: 80px;
|
||
|
height: 80px;
|
||
|
}
|
||
|
.loading div {
|
||
|
position: absolute;
|
||
|
top: 33px;
|
||
|
width: 13px;
|
||
|
height: 13px;
|
||
|
border-radius: 50%;
|
||
|
background: #ccc;
|
||
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
||
|
}
|
||
|
.loading div:nth-child(1) {
|
||
|
left: 8px;
|
||
|
animation: loading1 0.6s infinite;
|
||
|
}
|
||
|
.loading div:nth-child(2) {
|
||
|
left: 8px;
|
||
|
animation: loading2 0.6s infinite;
|
||
|
}
|
||
|
.loading div:nth-child(3) {
|
||
|
left: 32px;
|
||
|
animation: loading2 0.6s infinite;
|
||
|
}
|
||
|
.loading div:nth-child(4) {
|
||
|
left: 56px;
|
||
|
animation: loading3 0.6s infinite;
|
||
|
}
|
||
|
@keyframes loading1 {
|
||
|
0% {
|
||
|
transform: scale(0);
|
||
|
}
|
||
|
100% {
|
||
|
transform: scale(1);
|
||
|
}
|
||
|
}
|
||
|
@keyframes loading3 {
|
||
|
0% {
|
||
|
transform: scale(1);
|
||
|
}
|
||
|
100% {
|
||
|
transform: scale(0);
|
||
|
}
|
||
|
}
|
||
|
@keyframes loading2 {
|
||
|
0% {
|
||
|
transform: translate(0, 0);
|
||
|
}
|
||
|
100% {
|
||
|
transform: translate(24px, 0);
|
||
|
}
|
||
|
}
|
||
5 months ago
|
`,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},Tr=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=yt.useRef(null);yt.useEffect(function(){!e&&i.current&&xr(i.current)},[]);var a=function(){return e||yt.createElement("div",{ref:i})};return yt.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},a())},hr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qn=function(t){hr(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||yt.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):yt.createElement(yt.Fragment,null,this.props.children)},e}(yt.Component),pr=typeof global=="object"&&global&&global.Object===Object&&global,ei=pr,mi=typeof self=="object"&&self&&self.Object===Object&&self,Ei=ei||mi||Function("return this")(),$n=Ei,vr=$n.Symbol,Jn=vr,lr=Object.prototype,tn=lr.hasOwnProperty,Pi=lr.toString,Ai=Jn?Jn.toStringTag:void 0;function bl(t){var e=tn.call(t,Ai),n=t[Ai];try{t[Ai]=void 0;var r=!0}catch(a){}var i=Pi.call(t);return r&&(e?t[Ai]=n:delete t[Ai]),i}var Yo=bl,Zs=Object.prototype,Xi=Zs.toString;function xl(t){return Xi.call(t)}var _l=xl,Ks="[object Null]",Ol="[object Undefined]",eo=Jn?Jn.toStringTag:void 0;function Qs(t){return t==null?t===void 0?Ol:Ks:eo&&eo in Object(t)?Yo(t):_l(t)}var _r=Qs;function Js(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var bn=Js,tc="[object AsyncFunction]",Ho="[object Function]",ee="[object GeneratorFunction]",ft="[object Proxy]";function ve(t){if(!bn(t))return!1;var e=_r(t);return e==Ho||e==ee||e==tc||e==ft}var Yt=ve,Ae=function(t){var e=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return e.test(t)},Cn=Array.isArray,qt=Cn;function he(){this.__data__=[],this.size=0}var Ye=he;function In(t,e){return t===e||t!==t&&e!==e}var xn=In;function Le(t,e){for(var n=t.length;n--;)if(xn(t[n][0],e))return n;return-1}var ue=Le,Cr=Array.prototype,kr=Cr.splice;function oa(t){var e=this.__data__,n=ue(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():kr.call(e,n,1),--this.size,!0}var Ti=oa;function or(t){var e=this.__data__,n=ue(e,t);return n<0?void 0:e[n][1]}var Ci=or;function sa(t){return ue(this.__data__,t)>-1}var Or=sa;function ni(t,e){var n=this.__data__,r=ue(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var $r=ni;function ki(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ki.prototype.clear=Ye,ki.prototype.delete=Ti,ki.prototype.get=Ci,ki.prototype.has=Or,ki.prototype.set=$r;var ca=ki;function $o(){this.__data__=new ca,this.size=0}var no=$o;function ro(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var la=ro;function Uo(t){return this.__data__.get(t)}var wl=Uo;function Sl(t){return this.__data__.has(t)}var Vo=Sl,Xo=$n["__core-js_shared__"],io=Xo,Cf=function(){var t=/[^.]+$/.exec(i
|
||
|
`)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:ys.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:ys.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=dt([],D(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&w2.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!w2.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),nt={},jB=function(){var t,e=new fB,n=new uB;return t={},t[st.CIRCLE]=new oB,t[st.ELLIPSE]=new sB,t[st.RECT]=e,t[st.IMAGE]=e,t[st.GROUP]=new hB,t[st.LINE]=new cB,t[st.TEXT]=new dB(nt),t[st.POLYLINE]=n,t[st.POLYGON]=n,t[st.PATH]=new lB,t[st.HTML]=null,t[st.MESH]=null,t}(),RB=function(){var t,e=new xF,n=new Cv;return t={},t[Tt.PERCENTAGE]=null,t[Tt.NUMBER]=new MF,t[Tt.ANGLE]=new mF,t[Tt.DEFINED_PATH]=new bF,t[Tt.PAINT]=e,t[Tt.COLOR]=e,t[Tt.FILTER]=new _F,t[Tt.LENGTH]=n,t[Tt.LENGTH_PERCENTAGE]=n,t[Tt.LENGTH_PERCENTAGE_12]=new OF,t[Tt.LENGTH_PERCENTAGE_14]=new wF,t[Tt.COORDINATE]=new Cv,t[Tt.OFFSET_DISTANCE]=new EF,t[Tt.OPACITY_VALUE]=new PF,t[Tt.PATH]=new AF,t[Tt.LIST_OF_POINTS]=new TF,t[Tt.SHADOW_BLUR]=new CF,t[Tt.TEXT]=new kF,t[Tt.TEXT_TRANSFORM]=new LF,t[Tt.TRANSFORM]=new rB,t[Tt.TRANSFORM_ORIGIN]=new iB,t[Tt.Z_INDEX]=new aB,t[Tt.MARKER]=new SF,t}(),IB=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof tt.g!="undefined"?tt.g:{}};nt.CameraContribution=I_,nt.AnimationTimeline=null,nt.EasingFunction=null,nt.offscreenCanvasCreator=new yB,nt.sceneGraphSelector=new xB,nt.sceneGraphService=new OB(nt),nt.textService=new NB(nt),nt.geometryUpdaterFactory=jB,nt.CSSPropertySyntaxFactory=RB,nt.styleValueRegistry=new yF(nt),nt.layoutRegistry=null,nt.globalThis=IB(),nt.enableCSSParsing=!1,nt.enableDataset=!1,nt.enableStyleSyntax=!0,nt.enableAttributeDashCased=!1,nt.enableSizeAttenuation=!1;var S2=0;function xvt(){S2=0}var M2=new vo(re.INSERTED,null,"","","",0,"",""),E2=new vo(re.REMOVED,null,"","","",0,"",""),DB=new sn(re.DESTROY),FB=function(t){It(e,t);function e(){var n=t.call(this)||this;return n.entity=S2++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:mv.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=nt.enableCSSParsing?{opacity:Sn,fillOpacity:Sn,strokeOpacity:Sn,fill:Sn,stroke:Sn,transform:Sn,transformOrigin:Sn,visibility:Sn,pointerEvents:Sn,lineWidth:Sn,lineCap:Sn,lineJoin:Sn,increasedLineWidthForHitTesting:Sn,fontSize:Sn,fontFamily:Sn,fontStyle:Sn,fontWeight:Sn,fontVariant:Sn,textAlign:Sn,textBaseline:Sn,textTransform:Sn,zIndex:Sn,filter:Sn,shadowType:Sn}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.protot
|
||
6 months ago
|
M ${e} ${n}
|
||
|
L ${e+r} ${n}
|
||
|
L ${e+r} ${n+i}
|
||
|
L ${e} ${n+i}
|
||
|
Z
|
||
5 months ago
|
`}function nJ(t,e){const[n,r,i,a]=bm(t),o=a/i,s=Math.ceil(Math.sqrt(e/o)),c=Math.ceil(e/s),l=[],u=a/c;let f=0,d=e;for(;d>0;){const h=Math.min(d,s),p=i/h;for(let v=0;v<h;v++){const g=n+v*p,y=r+f*u;l.push(eJ([g,y,p,u]))}d-=h,f+=1}return l}function rJ(t="pack"){return typeof t=="function"?t:nJ}function iJ(t,e,n){let{transform:r}=t.style;const{transform:i}=e.style;PC(e,t);let a=Uu;if(t.nodeName===st.GROUP){const[c,l,u,f]=bm(t),[d,h,p,v]=bm(e),g=c-d,y=l-h,m=u/p,b=f/v;r=`translate(${g}, ${y}) scale(${m}, ${b})`}else a=a.concat(tJ[t.nodeName]||[]);const o=[Object.assign({transform:r!=null?r:"none"},rl(t,a,!0)),Object.assign({transform:i!=null?i:"none"},rl(e,a,!0))];return e.animate(o,n)}function PC(t,e){t.__data__=e.__data__,t.className=e.className,t.markType=e.markType,e.parentNode.replaceChild(t,e)}function aJ(t,e){const{nodeName:n}=t;if(n==="path")return t;const r=new Zr({style:Object.assign(Object.assign({},rl(t,Uu)),{d:e})});return PC(r,t),r}function AC(t,e){const n=t.indexOf(e),r=t.lastIndexOf(e);return n===r}function oJ(t){return!AC(t,"m")||!AC(t,"M")}function TC(t){const e=n2(t);if(e&&!oJ(e))return e}function xm(t,e,n,r){const{nodeName:i}=e,{nodeName:a}=n,o=TC(e),s=TC(n);if(i===a&&i!=="path"||(o===void 0||s===void 0))return iJ(e,n,r);const u=aJ(t,o),f=[Object.assign({},rl(e,Uu)),Object.assign({},rl(n,Uu))];if(o!==s){f[0].d=o,f[1].d=s;const d=u.animate(f,r);return d.onfinish=()=>{const h=u.style.d;ag(u,n),u.style.d=h,u.style.transform="none"},u.style.transform="none",d}return null}function sJ(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((a,o)=>{const s=new Zr({style:Object.assign({d:i[o]},rl(t,Uu))});return xm(a,s,a,n)})}function cJ(t,e,n,r){const i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=e.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:s}],l=e.animate(c,n);return[...t.map((f,d)=>{const h=new Zr({style:{d:i[d],fill:e.style.fill}});return xm(f,f,h,n)}),l]}const CC=t=>(e,n,r)=>{const i=rJ(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:s}=n;if(o===1&&s===1||o>1&&s>1){const[c]=e,[l]=n;return xm(c,c,l,a)}if(o===1&&s>1){const[c]=e;return sJ(c,n,a,i)}if(o>1&&s===1){const[c]=n;return cJ(e,c,a,i)}return null};CC.props={};const kC=(t,e)=>(n,r,i)=>{const[a]=n,{min:[o,s],halfExtents:c}=a.getLocalBounds(),l=c[0]*2,u=c[1]*2,f=new Zr({style:{d:`M${o},${s}L${o+l},${s}L${o+l},${s+u}L${o},${s+u}Z`}});return a.appendChild(f),a.style.clipPath=f,mm(t,e)([f],r,i)};kC.props={};const LC=(t,e)=>(n,r,i)=>{const[a]=n,{min:[o,s],halfExtents:c}=a.getLocalBounds(),l=c[0]*2,u=c[1]*2,f=new Zr({style:{d:`M${o},${s}L${o+l},${s}L${o+l},${s+u}L${o},${s+u}Z`}});return a.appendChild(f),a.style.clipPath=f,OC(t,e)([f],r,i)};LC.props={};var lJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function uJ(t,{elements:e,datum:n,groupKey:r=f=>f,link:i=!1,background:a=!1,delay:o=60,scale:s,coordinate:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Nn(d,r),v=Eu(d,n),[g,y]=TS(Object.assign({elements:d,valueof:v,link:i,coordinate:c},At(u.active,"link"))),[m,b,x]=kS(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},At(u.active,"background"))),_=at(u,{active:Object.assign({},((f=u.active)===null||f===void 0?void 0:f.offset)&&{transform:(...F)=>{const R=u.active.offset(...F),[,I]=F;return CS(d[I],R,c)}})}),{setState:O,removeState:w,hasState:S}=Va(_,v);let M;const E=F=>{const{target:R,nativeEvent:I=!0}=F;if(!h.has(R))return;M&&clearTimeout(M);const z=r(R),W=p.get(z),U=new Set(W);for(const $ of d)U.has($)?S($,"active")||O($,"active"):(O($,"inactive"),y($)),$!==R&&b($);m(R),g(W),I&&l.emit("element:highlight",{nativeEvent:I,data:{data:n(R),group:W.map(n)}})},P=()=>{M&&clearTimeout(M),M=set
|
||
6 months ago
|
<span class="`).concat(s.NAME,`">
|
||
|
<span class="`).concat(s.MARKER,`" style="background:{color}"></span>
|
||
|
<span class="`).concat(s.NAME_LABEL,`" title="{name}">{name}</span>
|
||
|
</span>
|
||
|
<span class="`).concat(s.VALUE,`" title="{value}">{value}</span>
|
||
5 months ago
|
</li>`)},style:_J(o)})||this,r.timestamp=-1,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,r=this.element.offsetHeight;return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,r=n.data,i=n.template;return r.map(function(a,o){var s=a.name,c=s===void 0?"":s,l=a.color,u=l===void 0?"black":l,f=a.index,d=wn(a,["name","color","index"]),h=J({name:c,color:u,index:f!=null?f:o},d);return FC(xJ(i.item,h))})},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(n,r){var i=this;if(n!==void 0&&r!==void 0){var a=this.element.style.visibility==="hidden",o=function(){i.attributes.x=n!=null?n:i.attributes.x,i.attributes.y=r!=null?r:i.attributes.y,i.updatePosition()};a?this.closeTransition(o):o()}this.element.style.visibility="visible"},e.prototype.hide=function(n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=this.attributes.enterable;i&&this.isCursorEntered(n,r)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var n=this.attributes.template;this.element=FC(n.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:this.element.replaceChildren(n))}},e.prototype.renderHTMLTooltipElement=function(){var n,r,i=this.attributes,a=i.template,o=i.title,s=i.enterable,c=i.style,l=i.content,u=_m(a.prefixCls),f=this.element;if(this.element.style.pointerEvents=s?"auto":"none",l)this.renderCustomContent();else{o?(f.innerHTML=a.title,f.getElementsByClassName(u.TITLE)[0].innerHTML=o):(r=(n=f.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||r===void 0||r.remove();var d=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=u.LIST,h.replaceChildren.apply(h,dt([],D(d),!1));var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(h):f.appendChild(h)}NG(f,c)},e.prototype.getRelativeOffsetFromCursor=function(n){var r=this.attributes,i=r.position,a=r.offset,o=n||i,s=o.split("-"),c={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},l=this.elementSize,u=l.width,f=l.height,d=[-u/2,-f/2];return s.forEach(function(h){var p=D(d,2),v=p[0],g=p[1],y=D(c[h],2),m=y[0],b=y[1];d=[v+(u/2+a[0])*m,g+(f/2+a[1])*b]}),d},e.prototype.setOffsetPosition=function(n){var r=D(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=s===void 0?0:s,l=o.y,u=l===void 0?0:l,f=o.container,d=f.x,h=f.y;this.element.style.left="".concat(+c+d+i,"px"),this.element.style.top="".concat(+u+h+a,"px")},e.prototype.updatePosition=function(){var n=this.attributes.showDelay,r=n===void 0?60:n,i=Date.now();this.timestamp>0&&i-this.timestamp<r||(this.timestamp=i,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(n){var r=D(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=o.y,l=o.bounding,u=o.position;if(!l)return[i,a];var f=this.element,d=f.offsetWidth,h=f.offsetHeight,p=D([+s+i,+c+a],2),v=p[0],g=p[1],y={left:"right",right:"left",top:"bottom",bottom:"top"},m=l.x,b=l.y,x=l.width,_=l.height,O={left:v<m,right:v+d>m+x,top:g<b,bottom:g+h>b+_},w=[];u.split("-").forEach(function(M){O[M]?w.push(y[M]):w.push(M)});var S=w.join("-");return this.getRelativeOffsetFromCursor(S)},e.prototype.isCursorEntered=function(n,r){if(this.element){var i=this.element.getBoundingClientRect(),a=i.x,o=i.y,s=i.widt
|
||
6 months ago
|
M${_},${O}L${w},${O}L${w},${S}L${_},${S}Z
|
||
|
M${it},${et}L${it},${xt}L${_t},${xt}L${_t},${et}Z
|
||
5 months ago
|
`,m.style.x=it,m.style.y=et,m.style.width=_t-it,m.style.height=xt-et},N=it=>{const et=(pe,Ge,le,me,mn)=>pe+Ge<me?me-Ge:pe+le>mn?mn-le:pe,_t=it[0]-y[0],xt=it[1]-y[1],Nt=et(_t,v[0],g[0],_,w),Gt=et(xt,v[1],g[1],O,S),Jt=[v[0]+Nt,v[1]+Gt],te=[g[0]+Nt,g[1]+Gt];A(Jt,te)},F={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},R=it=>z(it)||I(it),I=it=>{const{id:et}=it;return h.indexOf(et)===-1?!1:new Set(Object.keys(F)).has(et)},z=it=>it===m.getElementById("selection"),W=it=>{const{target:et}=it,[_t,xt]=ty(t,it);if(!m||!R(et)){M(_t,xt,it),x=!0;return}R(et)&&(y=[_t,xt])},U=it=>{const{target:et}=it,_t=ty(t,it);if(!v)return;if(!y)return A(v,_t);if(z(et))return N(_t);const[xt,Nt]=[_t[0]-y[0],_t[1]-y[1]],{id:Gt}=et;if(F[Gt]){const[Jt,te,pe,Ge]=F[Gt].vector;return A([v[0]+xt*Jt,v[1]+Nt*te],[g[0]+xt*pe,g[1]+Nt*Ge])}},$=it=>{if(y){y=null;const{x:Gt,y:Jt,width:te,height:pe}=m.style;v=[Gt,Jt],g=[Gt+te,Jt+pe],o(Gt,Jt,Gt+te,Jt+pe,it);return}g=ty(t,it);const[et,_t,xt,Nt]=A(v,g);x=!1,i(et,_t,xt,Nt,it)},Q=it=>{const{target:et}=it;m&&!R(et)&&k()},ct=it=>{const{target:et}=it;!m||!R(et)||x?Ao(t,"crosshair"):z(et)?Ao(t,"move"):I(et)&&Ao(t,F[et.id].cursor)},gt=()=>{Ao(t,"default")};return t.addEventListener("dragstart",W),t.addEventListener("drag",U),t.addEventListener("dragend",$),t.addEventListener("click",Q),t.addEventListener("pointermove",ct),t.addEventListener("pointerleave",gt),{mask:m,move(it,et,_t,xt,Nt=!0){m||M(it,et,{}),v=[it,et],g=[_t,xt],A([it,et],[_t,xt],Nt)},remove(it=!0){m&&k(it)},destroy(){m&&k(!1),Ao(t,"default"),t.removeEventListener("dragstart",W),t.removeEventListener("drag",U),t.removeEventListener("dragend",$),t.removeEventListener("click",Q),t.removeEventListener("pointermove",ct),t.removeEventListener("pointerleave",gt)}}}function Pm(t,e,n){return e.filter(r=>{if(r===t)return!1;const{interaction:i={}}=r.options;return Object.values(i).find(a=>a.brushKey===n)})}function UJ(t,e,n){return Pm(t,e,n).map(r=>wa(r.container))}function VJ(t,e,n){return Pm(t,e,n).map(r=>r.options)}function ik(t,e){var{elements:n,selectedHandles:r,siblings:i=U=>[],datum:a,brushRegion:o,extent:s,reverse:c,scale:l,coordinate:u,series:f=!1,key:d=U=>U,bboxOf:h=U=>{const{x:$,y:Q,width:ct,height:gt}=U.style;return{x:$,y:Q,width:ct,height:gt}},state:p={},emitter:v}=e,g=Hi(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const y=n(t),m=i(t),b=m.flatMap(n),x=Eu(y,a),_=At(g,"mask"),{setState:O,removeState:w}=Va(p,x),S=new Map,{width:M,height:E,x:P=0,y:k=0}=h(t),A=s||[0,0,M,E],T=()=>{for(const U of[...y,...b])w(U,"active","inactive")},C=(U,$,Q,ct)=>{var gt;for(const et of m)(gt=et.brush)===null||gt===void 0||gt.remove();const it=new Set;for(const et of y){const{min:_t,max:xt}=et.getLocalBounds(),[Nt,Gt]=_t,[Jt,te]=xt;YJ([Nt,Gt,Jt,te],[U,$,Q,ct])?(O(et,"active"),it.add(d(et))):O(et,"inactive")}for(const et of b)it.has(d(et))?O(et,"active"):O(et,"inactive")},N=()=>{for(const U of y)w(U,"inactive");for(const U of S.values())U.remove();S.clear()},F=(U,$,Q,ct)=>{const gt=et=>{const _t=et.cloneNode();return _t.__data__=et.__data__,et.parentNode.appendChild(_t),S.set(et,_t),_t},it=new bs({style:{x:U+P,y:$+k,width:Q-U,height:ct-$}});t.appendChild(it);for(const et of y){const _t=S.get(et)||gt(et);_t.style.clipPath=it,O(et,"inactive"),O(_t,"active")}},R=Em(t,Object.assign(Object.assign({},_),{extent:A,brushRegion:o,reverse:c,selectedHandles:r,brushended:U=>{const $=f?N:T;U&&v.emit("brush:remove",{nativeEvent:!0}),$()},brushed:(U,$,Q,ct,gt)=>{const it=gh(U,$,Q,ct,l,u);gt&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:it}}),(f?F:C)(U,$,Q,ct)},brushcreated:(U,$,Q,ct,gt)=>{const it=gh(U,$,Q,ct,l,u);v.emit("brush:end
|
||
|
\r]`),n=t.charCodeAt(0);function r(f,d){var h,p,v=i(f,function(g,y){if(h)return h(g,y-1);p=g,h=d?dnt(g,d):h3(g)});return v.columns=p||[],v}function i(f,d){var h=[],p=f.length,v=0,g=0,y,m=p<=0,b=!1;f.charCodeAt(p-1)===tf&&--p,f.charCodeAt(p-1)===Km&&--p;function x(){if(m)return qm;if(b)return b=!1,d3;var O,w=v,S;if(f.charCodeAt(w)===Zm){for(;v++<p&&f.charCodeAt(v)!==Zm||f.charCodeAt(++v)===Zm;);return(O=v)>=p?m=!0:(S=f.charCodeAt(v++))===tf?b=!0:S===Km&&(b=!0,f.charCodeAt(v)===tf&&++v),f.slice(w+1,O-1).replace(/""/g,'"')}for(;v<p;){if((S=f.charCodeAt(O=v++))===tf)b=!0;else if(S===Km)b=!0,f.charCodeAt(v)===tf&&++v;else if(S!==n)continue;return f.slice(w,O)}return m=!0,f.slice(w,p)}for(;(y=x())!==qm;){for(var _=[];y!==d3&&y!==qm;)_.push(y),y=x();d&&(_=d(_,g++))==null||h.push(_)}return h}function a(f,d){return f.map(function(h){return d.map(function(p){return u(h[p])}).join(t)})}function o(f,d){return d==null&&(d=p3(f)),[d.map(u).join(t)].concat(a(f,d)).join(`
|
||
|
`)}function s(f,d){return d==null&&(d=p3(f)),a(f,d).join(`
|
||
6 months ago
|
`)}function c(f){return f.map(l).join(`
|
||
5 months ago
|
`)}function l(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?pnt(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:c,formatRow:l,formatValue:u}}function gnt(t){for(var e in t){var n=t[e].trim(),r,i;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(i=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))ynt&&i[4]&&!i[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;t[e]=n}return t}const ynt=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var mnt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const v3=t=>{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>mnt(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return vnt(r).parse(o,i?gnt:_s)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};v3.props={};const g3=t=>{const{value:e}=t;return()=>e};g3.props={};function bnt(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const y3=t=>{const{fields:e=[]}=t,n=bnt(e,!0);return r=>{const i=(a,o)=>n.reduce((s,[c,l=!0])=>s!==0?s:l?a[c]<o[c]?-1:+(a[c]!==o[c]):a[c]>o[c]?-1:+(a[c]!==o[c]),0);return[...r].sort(i)}};y3.props={};function Rgt(t){return t!=null&&!Number.isNaN(t)}const m3=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};m3.props={};function xnt(t){return t!=null&&!Number.isNaN(t)}const b3=t=>{const{callback:e=xnt}=t;return n=>n.filter(e)};b3.props={};function _nt(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const x3=t=>{const{fields:e}=t;return n=>n.map(r=>_nt(r,e))};x3.props={};function Ont(t){return Object.keys(t).length===0}const _3=t=>e=>{if(!t||Ont(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};_3.props={};function wnt(t){return!t||Object.keys(t).length===0}const O3=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>wnt(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};O3.props={};const w3=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};w3.props={};const S3=t=>{const{callback:e=_s}=t;return n=>e(n)};S3.props={};const M3=t=>{const{callback:e=_s}=t;return n=>Array.isArray(n)?n.map(e):n};M3.props={};function E3(t){return typeof t=="string"?e=>e[t]:t}const P3=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=E3(s),l=E3(o),u=eg(e,([f])=>f,f=>c(f));return f=>f.map(d=>{const h=u.get(l(d));return Object.assign(Object.assign({},d),r.reduce((p,v,g)=>(p[i[g]]=h?h[v]:a,p),{}))})};P3.props={};var Snt=tt(53843),Mnt=tt.n(Snt);function Igt(t){return t!=null&&!Number.isNaN(t)}const A3=t=>{const{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(Nn(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=Mnt().create(d.map(g=>g[e]),{min:i,max:a,size:o,width:s}),p=h.map(g=>g.x),v=h.map(g=>g.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:v})})};A3.props={};const T3=()=>t=>(console.log("G2 data section:",t),t);T3.props={};var Ent=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function Pnt(t,e){return{set(n,r,i){if(e[n]===void 0)return this;const a=r?r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this},setAsync(n,r,i){return Ent(this,void 0,void 0,function*(){if(e[n]===void 0)return this;const a=r?yield
|
||
6 months ago
|
M ${t} ${e-n}
|
||
|
a ${n} ${n} 0 1 0 0 ${n*2}
|
||
|
a ${n} ${n} 0 1 0 0 ${-n*2}
|
||
|
Z
|
||
5 months ago
|
`}function Aot(t,e,n){const i=n*.618;return`
|
||
6 months ago
|
M ${t-i} ${e-n}
|
||
|
L ${t+i} ${e-n}
|
||
|
L ${t+i} ${e+n}
|
||
|
L ${t-i} ${e+n}
|
||
|
Z
|
||
5 months ago
|
`}function Tot(t,e,n){return`
|
||
6 months ago
|
M ${t} ${e-n}
|
||
|
L ${t+n} ${e}
|
||
|
L ${t} ${e+n}
|
||
|
L ${t-n} ${e}
|
||
|
Z
|
||
|
`}function Cot(t,e,n){return`
|
||
|
M ${t} ${e-n}
|
||
|
L ${t+n} ${e+n}
|
||
|
L ${t-n} ${e+n}
|
||
|
Z
|
||
5 months ago
|
`}function kot(t,e,n){const r=n*4/3,i=Math.max(r,n*2),a=r/2,o=t,s=a+e-i/2,c=Math.asin(a/((i-a)*.85)),l=Math.sin(c)*a,u=Math.cos(c)*a,f=o-u,d=s+l,h=t,p=s+a/Math.sin(c);return`
|
||
6 months ago
|
M ${f} ${d}
|
||
|
A ${a} ${a} 0 1 1 ${f+u*2} ${d}
|
||
|
Q ${h} ${p} ${t} ${e+i/2}
|
||
|
Q ${h} ${p} ${f} ${d}
|
||
|
Z
|
||
5 months ago
|
`}const CL={pin:kot,rect:Aot,circle:Pot,diamond:Tot,triangle:Cot};var kL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Lot=(t="circle")=>CL[t]||CL.circle,LL=(t,e)=>{if(!e)return;const{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:s,outline:c={},wave:l={}}=i,u=kL(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=kL(c,["border","distance"]),{length:p=192,count:v=3}=l;return(g,y,m)=>{const{document:b}=e.canvas,{color:x,fillOpacity:_}=m,O=Object.assign(Object.assign({fill:x},m),u),w=b.createElement("g",{}),[S,M]=n.getCenter(),E=n.getSize(),P=Math.min(...E)/2,A=(Kr(a)?a:Lot(a))(S,M,P,...E);if(Object.keys(s).length){const N=b.createElement("path",{style:Object.assign({d:A,fill:"#fff"},s)});w.appendChild(N)}if(o>0){const N=b.createElement("path",{style:{d:A}});w.appendChild(N),w.style.clipPath=N,Eot(S,M,1-o,v,O,w,N.getBBox().y,P*2,p,!0,b)}const T=b.createElement("path",{style:{d:A,fill:"transparent",lineWidth:f+2*d,stroke:"#fff"}}),C=b.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:A,stroke:x,strokeOpacity:_,lineWidth:f},O),h),{fill:"transparent"})});return w.appendChild(T),w.appendChild(C),w}};LL.props={};var Not=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const jot={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:LL},animate:{enter:{type:"fadeIn"}}},Rot={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},NL=t=>{const{data:e={},style:n={},animate:r}=t,i=Not(t,["data","style","animate"]),a=Math.max(0,vn(e)?e:e==null?void 0:e.percent),o=[{percent:a,type:"liquid"}],s=Object.assign(Object.assign({},At(n,"text")),At(n,"content")),c=At(n,"outline"),l=At(n,"wave"),u=At(n,"background");return[at({},jot,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:n==null?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:c,wave:l,background:u})},animate:r},i)),at({},Rot,{style:Object.assign({text:`${Ud(a*100)} %`},s),animate:r})]};NL.props={};var Qa=tt(69916);const jL=1e-10;function RL(t,e){const n=Dot(t),r=n.filter(function(c){return Iot(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=Fot(r);for(o=0;o<r.length;++o){const u=r[o];u.angle=Math.atan2(u.x-c.x,u.y-c.y)}r.sort(function(u,f){return f.angle-u.angle});let l=r[r.length-1];for(o=0;o<r.length;++o){const u=r[o];a+=(l.x+u.x)*(u.y-l.y);const f={x:(u.x+l.x)/2,y:(u.y+l.y)/2};let d=null;for(let h=0;h<u.parentIndex.length;++h)if(l.parentIndex.indexOf(u.parentIndex[h])>-1){const p=t[u.parentIndex[h]],v=Math.atan2(u.x-p.x,u.y-p.y),g=Math.atan2(l.x-p.x,l.y-p.y);let y=g-v;y<0&&(y+=2*Math.PI);const m=g-y/2;let b=wf(f,{x:p.x+p.radius*Math.sin(m),y:p.y+p.radius*Math.cos(m)});b>p.radius*2&&(b=p.radius*2),(d===null||d.width>b)&&(d={circle:p,width:b,p1:u,p2:l})}d!==null&&(s.push(d),i+=V1(d.circle.radius,d.width),l=u)}}else{let c=t[0];for(o=1;o<t.length;++o)t[o].radius<c.radius&&(c=t[o]);let l=!1;for(o=0;o<t.length;++o)if(wf(t[o],c)>Math.abs(c.radius-t[o].radius)){l=!0;break}l?i=a=0:(i=c.radius*c.radius*Math.PI,s.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-jL,y:c.y+c.radius},width:c.radius*2}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),i+a}function Iot(t,e){for(let n=0;n<e.length;++n)if(wf(t,e[n])>e[n].radius+jL)return!1;return!0}function Dot(t){const e=[];for(let n=0;n<t.lengt
|
||
6 months ago
|
M`,n[0].p2.x,n[0].p2.y];for(let i=0;i<n.length;++i){const a=n[i],o=a.circle.radius,s=a.width>o;r.push(`
|
||
5 months ago
|
A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const BL=t=>{const{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[e],size:f[n],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Bot(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||Xot(l,p,v,i);const g=d.map(m=>u[m]);let y=Zot(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};BL.props={};function Kot(){return{"data.venn":BL,"mark.boxplot":SL,"mark.gauge":PL,"mark.wordCloud":nm,"mark.liquid":NL}}function Qot(){return Object.assign(Object.assign(Object.assign(Object.assign({},lit()),dot()),Kot()),art())}var Jp=function(){return Jp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Jp.apply(this,arguments)},Jot=Lq(kq,Jp(Jp({},Qot()),gZ())),tst="[object Boolean]";function est(t){return t===!0||t===!1||ii(t)&&_r(t)==tst}var K1=est,Sf=function(){return Sf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Sf.apply(this,arguments)},nst=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},rst=["renderer"],zL=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction"],Q1="__transform__",ist="__skipDelCustomKeys__",$s=function(t,e){return K1(e)?{type:t,available:e}:Sf({type:t},e)},J1={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",radius:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(t){return $s("stackY",t)}},normalize:{target:"transform",value:function(t){return $s("normalizeY",t)}},percent:{target:"transform",value:function(t){return $s("normalizeY",t)}},group:{target:"transform",value:function(t){return $s("dodgeX",t)}},sort:{target:"transform",value:function(t){return $s("sortX",t)}},symmetry:{target:"transform",value:function(t){return $s("symmetryY",t)}},diff:{target:"transform",value:function(t){return $s("diffY",t)}},meta:{target:"scale",value:function(t){return t}},label:{target:"labels",value:function(t){return t}},shape:"style.shape",connectNulls:{target:"style",value:function(t){return K1(t)?{connect:t}:t}}},tb=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],t0=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:tb},{key:"point",type:"point",extend_keys:tb},{key:"area",type:"area",extend_keys:tb}],ast=[{key:"transform",callback:function(t,e,n){var r;t[e]=t[e]||[];var i=n.available,a=i===void 0?!0:i,o=nst(n,["available"]);if(a)t[e].push(Sf((r={},r[Q1]=!0,r),o));else{var s=t[e].indexOf(function(c){return c.type===n.type});s!==-1&&t[e].splice(s,1)}}},{key:"labels",callback:function(t,e,n){var r;if(!n||qt(n)){t[e]=n||[];return}n.text||(n.text=t.yField
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pt=!0,K=!1,jt;return{s:function(){Ft=Ft.call($t)},n:function(){var Ct=Ft.next();return Pt=Ct.done,Ct},e:function(Ct){K=!0,jt=Ct},f:function(){try{!Pt&&Ft.return!=null&&Ft.return()}finally{if(K)throw jt}}}}Ce.exports=lt,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports}}]);
|
||
6 months ago
|
}());
|