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
6 months ago
|
!(function(){var ir=Math.pow;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[841],{11415:function(je,Dn,tt){"use strict";tt.d(Dn,{Z:function(){return eht}});var Et={};tt.r(Et),tt.d(Et,{add:function(){return JD},adjoint:function(){return GD},clone:function(){return Ex},copy:function(){return is},create:function(){return cn},determinant:function(){return Ax},equals:function(){return r6},exactEquals:function(){return n6},frob:function(){return QD},fromQuat:function(){return Z0},fromQuat2:function(){return HD},fromRotation:function(){return Cx},fromRotationTranslation:function(){return jx},fromRotationTranslationScale:function(){return $D},fromRotationTranslationScaleOrigin:function(){return Rl},fromScaling:function(){return ss},fromTranslation:function(){return os},fromValues:function(){return zD},fromXRotation:function(){return Lx},fromYRotation:function(){return Nx},fromZRotation:function(){return q0},frustum:function(){return UD},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 t6},multiplyScalarAndAdd:function(){return e6},ortho:function(){return Dx},orthoNO:function(){return Ix},orthoZO:function(){return Fx},perspective:function(){return VD},perspectiveFromFieldOfView:function(){return qD},perspectiveNO:function(){return Rx},perspectiveZO:function(){return XD},rotate:function(){return WD},rotateX:function(){return Tx},rotateY:function(){return kx},rotateZ:function(){return YD},scale:function(){return Uf},set:function(){return X0},str:function(){return KD},sub:function(){return i6},subtract:function(){return zx},targetTo:function(){return ZD},translate:function(){return lc},transpose:function(){return Px}});var lt={};tt.r(lt),tt.d(lt,{area:function(){return VH},bottom:function(){return $a},bottomLeft:function(){return $a},bottomRight:function(){return $a},inside:function(){return $a},left:function(){return $a},outside:function(){return ZH},right:function(){return $a},spider:function(){return QH},surround:function(){return t$},top:function(){return $a},topLeft:function(){return $a},topRight:function(){return $a}});var te={};tt.r(te),tt.d(te,{interpolateBlues:function(){return MU},interpolateBrBG:function(){return iU},interpolateBuGn:function(){return hU},interpolateBuPu:function(){return pU},interpolateCividis:function(){return CU},interpolateCool:function(){return DU},interpolateCubehelixDefault:function(){return RU},interpolateGnBu:function(){return vU},interpolateGreens:function(){return EU},interpolateGreys:function(){return PU},interpolateInferno:function(){return $U},interpolateMagma:function(){return HU},interpolateOrRd:function(){return gU},interpolateOranges:function(){return kU},interpolatePRGn:function(){return aU},interpolatePiYG:function(){return oU},interpolatePlasma:function(){return UU},interpolatePuBu:function(){return mU},interpolatePuBuGn:function(){return yU},interpolatePuOr:function(){return sU},interpolatePuRd:function(){return bU},interpolatePurples:function(){return AU},interpolateRainbow:function(){return FU},interpolateRdBu:function(){return cU},interpolateRdGy:function(){return lU},interpolateRdPu:function(){return xU},interpolateRdYlBu:function(){return uU},interpolateRdYlGn:function(){return fU},interpolateReds:function(){return TU},interpolateSinebow:function(){return GU},interpolateSpectral:function(){return dU},interpolateTurbo:function(){return WU},interpolateViridis:function(){return YU},interpolateWarm:function(){return IU},interpolateYlGn:function(){return OU},interpolateYlGnBu:function(){return _U},interpolateYlOrBr:function(){return wU},interpolateYlOrRd:function(){return SU},schemeAccent:function(){return W$},schemeBlues:function(){return oM},schemeBrBG:function(){return BS},schemeBuGn:function(){return XS},schemeBuPu:function(){return qS},schemeCategory10:function(){return G$},schemeDark2:function(){return Y$},schemeGnBu:f
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
`,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=bt.useRef(null);bt.useEffect(function(){!e&&i.current&&xr(i.current)},[]);var a=function(){return e||bt.createElement("div",{ref:i})};return bt.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||bt.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):bt.createElement(bt.Fragment,null,this.props.children)},e}(bt.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 Wt=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)},Tn=Array.isArray,Xt=Tn;function he(){this.__data__=[],this.size=0}var Ye=he;function Rn(t,e){return t===e||t!==t&&e!==e}var xn=Rn;function Ce(t,e){for(var n=t.length;n--;)if(xn(t[n][0],e))return n;return-1}var ue=Ce,kr=Array.prototype,Cr=kr.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():Cr.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 ki=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 Ci(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])}}Ci.prototype.clear=Ye,Ci.prototype.delete=Ti,Ci.prototype.get=ki,Ci.prototype.has=Or,Ci.prototype.set=$r;var ca=Ci;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,kf=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}(),et={},CB=function(){var t,e=new cB,n=new sB;return t={},t[st.CIRCLE]=new rB,t[st.ELLIPSE]=new iB,t[st.RECT]=e,t[st.IMAGE]=e,t[st.GROUP]=new uB,t[st.LINE]=new aB,t[st.TEXT]=new lB(et),t[st.POLYLINE]=n,t[st.POLYGON]=n,t[st.PATH]=new oB,t[st.HTML]=null,t[st.MESH]=null,t}(),LB=function(){var t,e=new yF,n=new kv;return t={},t[Tt.PERCENTAGE]=null,t[Tt.NUMBER]=new OF,t[Tt.ANGLE]=new vF,t[Tt.DEFINED_PATH]=new gF,t[Tt.PAINT]=e,t[Tt.COLOR]=e,t[Tt.FILTER]=new mF,t[Tt.LENGTH]=n,t[Tt.LENGTH_PERCENTAGE]=n,t[Tt.LENGTH_PERCENTAGE_12]=new bF,t[Tt.LENGTH_PERCENTAGE_14]=new xF,t[Tt.COORDINATE]=new kv,t[Tt.OFFSET_DISTANCE]=new wF,t[Tt.OPACITY_VALUE]=new SF,t[Tt.PATH]=new MF,t[Tt.LIST_OF_POINTS]=new EF,t[Tt.SHADOW_BLUR]=new PF,t[Tt.TEXT]=new AF,t[Tt.TEXT_TRANSFORM]=new TF,t[Tt.TRANSFORM]=new tB,t[Tt.TRANSFORM_ORIGIN]=new eB,t[Tt.Z_INDEX]=new nB,t[Tt.MARKER]=new _F,t}(),NB=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof tt.g!="undefined"?tt.g:{}};et.CameraContribution=I_,et.AnimationTimeline=null,et.EasingFunction=null,et.offscreenCanvasCreator=new pB,et.sceneGraphSelector=new yB,et.sceneGraphService=new bB(et),et.textService=new kB(et),et.geometryUpdaterFactory=CB,et.CSSPropertySyntaxFactory=LB,et.styleValueRegistry=new pF(et),et.layoutRegistry=null,et.globalThis=NB(),et.enableCSSParsing=!1,et.enableDataset=!1,et.enableStyleSyntax=!0,et.enableAttributeDashCased=!1,et.enableSizeAttenuation=!1;var S2=0;function bvt(){S2=0}var M2=new vo(re.INSERTED,null,"","","",0,"",""),E2=new vo(re.REMOVED,null,"","","",0,"",""),jB=new sn(re.DESTROY),RB=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=et.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
|
||
|
M ${e} ${n}
|
||
|
L ${e+r} ${n}
|
||
|
L ${e+r} ${n+i}
|
||
|
L ${e} ${n+i}
|
||
|
Z
|
||
|
`}function JQ(t,e){const[n,r,i,a]=mm(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(QQ([g,y,p,u]))}d-=h,f+=1}return l}function tJ(t="pack"){return typeof t=="function"?t:JQ}function eJ(t,e,n){let{transform:r}=t.style;const{transform:i}=e.style;Sk(e,t);let a=Uu;if(t.nodeName===st.GROUP){const[c,l,u,f]=mm(t),[d,h,p,v]=mm(e),g=c-d,y=l-h,m=u/p,b=f/v;r=`translate(${g}, ${y}) scale(${m}, ${b})`}else a=a.concat(KQ[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 Sk(t,e){t.__data__=e.__data__,t.className=e.className,t.markType=e.markType,e.parentNode.replaceChild(t,e)}function nJ(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 Sk(r,t),r}function Mk(t,e){const n=t.indexOf(e),r=t.lastIndexOf(e);return n===r}function rJ(t){return!Mk(t,"m")||!Mk(t,"M")}function Ek(t){const e=n2(t);if(e&&!rJ(e))return e}function bm(t,e,n,r){const{nodeName:i}=e,{nodeName:a}=n,o=Ek(e),s=Ek(n);if(i===a&&i!=="path"||(o===void 0||s===void 0))return eJ(e,n,r);const u=nJ(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;ig(u,n),u.style.d=h,u.style.transform="none"},u.style.transform="none",d}return null}function iJ(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 bm(a,s,a,n)})}function aJ(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 bm(f,f,h,n)}),l]}const Pk=t=>(e,n,r)=>{const i=tJ(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 bm(c,c,l,a)}if(o===1&&s>1){const[c]=e;return iJ(c,n,a,i)}if(o>1&&s===1){const[c]=n;return aJ(e,c,a,i)}return null};Pk.props={};const Ak=(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,ym(t,e)([f],r,i)};Ak.props={};const Tk=(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,bk(t,e)([f],r,i)};Tk.props={};var oJ=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 sJ(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=Ln(d,r),v=Eu(d,n),[g,y]=ES(Object.assign({elements:d,valueof:v,link:i,coordinate:c},Pt(u.active,"link"))),[m,b,x]=AS(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},Pt(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 PS(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
|
||
|
<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>
|
||
|
</li>`)},style:mJ(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=Q({name:c,color:u,index:f!=null?f:o},d);return Rk(yJ(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=Rk(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=xm(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)}kG(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
|
||
|
M${_},${O}L${w},${O}L${w},${S}L${_},${S}Z
|
||
|
M${it},${nt}L${it},${yt}L${_t},${yt}L${_t},${nt}Z
|
||
|
`,m.style.x=it,m.style.y=nt,m.style.width=_t-it,m.style.height=yt-nt},N=it=>{const nt=(pe,Ge,le,ye,mn)=>pe+Ge<ye?ye-Ge:pe+le>mn?mn-le:pe,_t=it[0]-y[0],yt=it[1]-y[1],Rt=nt(_t,v[0],g[0],_,w),Yt=nt(yt,v[1],g[1],O,S),Qt=[v[0]+Rt,v[1]+Yt],Jt=[g[0]+Rt,g[1]+Yt];A(Qt,Jt)},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:nt}=it;return h.indexOf(nt)===-1?!1:new Set(Object.keys(F)).has(nt)},z=it=>it===m.getElementById("selection"),W=it=>{const{target:nt}=it,[_t,yt]=Jg(t,it);if(!m||!R(nt)){M(_t,yt,it),x=!0;return}R(nt)&&(y=[_t,yt])},U=it=>{const{target:nt}=it,_t=Jg(t,it);if(!v)return;if(!y)return A(v,_t);if(z(nt))return N(_t);const[yt,Rt]=[_t[0]-y[0],_t[1]-y[1]],{id:Yt}=nt;if(F[Yt]){const[Qt,Jt,pe,Ge]=F[Yt].vector;return A([v[0]+yt*Qt,v[1]+Rt*Jt],[g[0]+yt*pe,g[1]+Rt*Ge])}},$=it=>{if(y){y=null;const{x:Yt,y:Qt,width:Jt,height:pe}=m.style;v=[Yt,Qt],g=[Yt+Jt,Qt+pe],o(Yt,Qt,Yt+Jt,Qt+pe,it);return}g=Jg(t,it);const[nt,_t,yt,Rt]=A(v,g);x=!1,i(nt,_t,yt,Rt,it)},J=it=>{const{target:nt}=it;m&&!R(nt)&&C()},ct=it=>{const{target:nt}=it;!m||!R(nt)||x?Ao(t,"crosshair"):z(nt)?Ao(t,"move"):I(nt)&&Ao(t,F[nt.id].cursor)},pt=()=>{Ao(t,"default")};return t.addEventListener("dragstart",W),t.addEventListener("drag",U),t.addEventListener("dragend",$),t.addEventListener("click",J),t.addEventListener("pointermove",ct),t.addEventListener("pointerleave",pt),{mask:m,move(it,nt,_t,yt,Rt=!0){m||M(it,nt,{}),v=[it,nt],g=[_t,yt],A([it,nt],[_t,yt],Rt)},remove(it=!0){m&&C(it)},destroy(){m&&C(!1),Ao(t,"default"),t.removeEventListener("dragstart",W),t.removeEventListener("drag",U),t.removeEventListener("dragend",$),t.removeEventListener("click",J),t.removeEventListener("pointermove",ct),t.removeEventListener("pointerleave",pt)}}}function Em(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 YJ(t,e,n){return Em(t,e,n).map(r=>wa(r.container))}function HJ(t,e,n){return Em(t,e,n).map(r=>r.options)}function eC(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:J,width:ct,height:pt}=U.style;return{x:$,y:J,width:ct,height:pt}},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),_=Pt(g,"mask"),{setState:O,removeState:w}=Va(p,x),S=new Map,{width:M,height:E,x:P=0,y:C=0}=h(t),A=s||[0,0,M,E],T=()=>{for(const U of[...y,...b])w(U,"active","inactive")},k=(U,$,J,ct)=>{var pt;for(const nt of m)(pt=nt.brush)===null||pt===void 0||pt.remove();const it=new Set;for(const nt of y){const{min:_t,max:yt}=nt.getLocalBounds(),[Rt,Yt]=_t,[Qt,Jt]=yt;zJ([Rt,Yt,Qt,Jt],[U,$,J,ct])?(O(nt,"active"),it.add(d(nt))):O(nt,"inactive")}for(const nt of b)it.has(d(nt))?O(nt,"active"):O(nt,"inactive")},N=()=>{for(const U of y)w(U,"inactive");for(const U of S.values())U.remove();S.clear()},F=(U,$,J,ct)=>{const pt=nt=>{const _t=nt.cloneNode();return _t.__data__=nt.__data__,nt.parentNode.appendChild(_t),S.set(nt,_t),_t},it=new bs({style:{x:U+P,y:$+C,width:J-U,height:ct-$}});t.appendChild(it);for(const nt of y){const _t=S.get(nt)||pt(nt);_t.style.clipPath=it,O(nt,"inactive"),O(_t,"active")}},R=Mm(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,$,J,ct,pt)=>{const it=gh(U,$,J,ct,l,u);pt&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:it}}),(f?F:k)(U,$,J,ct)},brushcreated:(U,$,J,ct,pt)=>{const it=gh(U,$,J,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?lnt(g,d):u3(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)===Zm&&--p;function x(){if(m)return Xm;if(b)return b=!1,l3;var O,w=v,S;if(f.charCodeAt(w)===qm){for(;v++<p&&f.charCodeAt(v)!==qm||f.charCodeAt(++v)===qm;);return(O=v)>=p?m=!0:(S=f.charCodeAt(v++))===tf?b=!0:S===Zm&&(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===Zm)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())!==Xm;){for(var _=[];y!==l3&&y!==Xm;)_.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=f3(f)),[d.map(u).join(t)].concat(a(f,d)).join(`
|
||
|
`)}function s(f,d){return d==null&&(d=f3(f)),a(f,d).join(`
|
||
|
`)}function c(f){return f.map(l).join(`
|
||
|
`)}function l(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?fnt(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:c,formatRow:l,formatValue:u}}function hnt(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})?)?$/))pnt&&i[4]&&!i[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;t[e]=n}return t}const pnt=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var vnt=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 d3=t=>{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>vnt(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return dnt(r).parse(o,i?hnt:_s)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};d3.props={};const h3=t=>{const{value:e}=t;return()=>e};h3.props={};function gnt(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const p3=t=>{const{fields:e=[]}=t,n=gnt(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)}};p3.props={};function jgt(t){return t!=null&&!Number.isNaN(t)}const v3=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};v3.props={};function ynt(t){return t!=null&&!Number.isNaN(t)}const g3=t=>{const{callback:e=ynt}=t;return n=>n.filter(e)};g3.props={};function mnt(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const y3=t=>{const{fields:e}=t;return n=>n.map(r=>mnt(r,e))};y3.props={};function bnt(t){return Object.keys(t).length===0}const m3=t=>e=>{if(!t||bnt(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};m3.props={};function xnt(t){return!t||Object.keys(t).length===0}const b3=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>xnt(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};b3.props={};const x3=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};x3.props={};const _3=t=>{const{callback:e=_s}=t;return n=>e(n)};_3.props={};const O3=t=>{const{callback:e=_s}=t;return n=>Array.isArray(n)?n.map(e):n};O3.props={};function w3(t){return typeof t=="string"?e=>e[t]:t}const S3=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=w3(s),l=w3(o),u=tg(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),{}))})};S3.props={};var _nt=tt(53843),Ont=tt.n(_nt);function Rgt(t){return t!=null&&!Number.isNaN(t)}const M3=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(Ln(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=Ont().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})})};M3.props={};const E3=()=>t=>(console.log("G2 data section:",t),t);E3.props={};var wnt=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 Snt(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 wnt(this,void 0,void 0,function*(){if(e[n]===void 0)return this;const a=r?yield
|
||
|
M ${t} ${e-n}
|
||
|
a ${n} ${n} 0 1 0 0 ${n*2}
|
||
|
a ${n} ${n} 0 1 0 0 ${-n*2}
|
||
|
Z
|
||
|
`}function Mot(t,e,n){const i=n*.618;return`
|
||
|
M ${t-i} ${e-n}
|
||
|
L ${t+i} ${e-n}
|
||
|
L ${t+i} ${e+n}
|
||
|
L ${t-i} ${e+n}
|
||
|
Z
|
||
|
`}function Eot(t,e,n){return`
|
||
|
M ${t} ${e-n}
|
||
|
L ${t+n} ${e}
|
||
|
L ${t} ${e+n}
|
||
|
L ${t-n} ${e}
|
||
|
Z
|
||
|
`}function Pot(t,e,n){return`
|
||
|
M ${t} ${e-n}
|
||
|
L ${t+n} ${e+n}
|
||
|
L ${t-n} ${e+n}
|
||
|
Z
|
||
|
`}function Aot(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`
|
||
|
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
|
||
|
`}const PL={pin:Aot,rect:Mot,circle:Sot,diamond:Eot,triangle:Pot};var AL=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 Tot=(t="circle")=>PL[t]||PL.circle,TL=(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=AL(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=AL(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:Tot(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,wot(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"}}),k=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(k),w}};TL.props={};var kot=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 Cot={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:TL},animate:{enter:{type:"fadeIn"}}},Lot={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},kL=t=>{const{data:e={},style:n={},animate:r}=t,i=kot(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({},Pt(n,"text")),Pt(n,"content")),c=Pt(n,"outline"),l=Pt(n,"wave"),u=Pt(n,"background");return[at({},Cot,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({},Lot,{style:Object.assign({text:`${Ud(a*100)} %`},s),animate:r})]};kL.props={};var Qa=tt(69916);const CL=1e-10;function LL(t,e){const n=jot(t),r=n.filter(function(c){return Not(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=Rot(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+=U1(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-CL,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 Not(t,e){for(let n=0;n<e.length;++n)if(wf(t,e[n])>e[n].radius+CL)return!1;return!0}function jot(t){const e=[];for(let n=0;n<t.lengt
|
||
|
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(`
|
||
|
A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const IL=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=Iot(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||$ot(l,p,v,i);const g=d.map(m=>u[m]);let y=Vot(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};IL.props={};function Xot(){return{"data.venn":IL,"mark.boxplot":_L,"mark.gauge":SL,"mark.wordCloud":em,"mark.liquid":kL}}function qot(){return Object.assign(Object.assign(Object.assign(Object.assign({},oit()),lot()),Xot()),nrt())}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)},Zot=Tq(Aq,Jp(Jp({},qot()),hZ())),Kot="[object Boolean]";function Qot(t){return t===!0||t===!1||ii(t)&&_r(t)==Kot}var Z1=Qot,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)},Jot=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},tst=["renderer"],DL=["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"],K1="__transform__",est="__skipDelCustomKeys__",$s=function(t,e){return Z1(e)?{type:t,available:e}:Sf({type:t},e)},Q1={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 Z1(t)?{connect:t}:t}}},J1=["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:J1},{key:"point",type:"point",extend_keys:J1},{key:"area",type:"area",extend_keys:J1}],nst=[{key:"transform",callback:function(t,e,n){var r;t[e]=t[e]||[];var i=n.available,a=i===void 0?!0:i,o=Jot(n,["available"]);if(a)t[e].push(Sf((r={},r[K1]=!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||Xt(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 At=!0,K=!1,Nt;return{s:function(){zt=zt.call(te)},n:function(){var kt=zt.next();return At=kt.done,kt},e:function(kt){K=!0,Nt=kt},f:function(){try{!At&&zt.return!=null&&zt.return()}finally{if(K)throw Nt}}}}je.exports=lt,je.exports.__esModule=!0,je.exports.default=je.exports}}]);
|
||
|
}());
|