@gientech/modual 2.2.34 → 2.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{g as l}from"./index-CmltVl0j.js";import u from"react-dom";function s(e,i){for(var n=0;n<i.length;n++){const t=i[n];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o={},c;function p(){if(c)return o;c=1;var e=u;return o.createRoot=e.createRoot,o.hydrateRoot=e.hydrateRoot,o}var f=p();const d=l(f),y=s({__proto__:null,default:d},[f]);export{y as c};
1
+ import{g as l}from"./index-DBmGcDq0.js";import u from"react-dom";function s(e,i){for(var n=0;n<i.length;n++){const t=i[n];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o={},c;function p(){if(c)return o;c=1;var e=u;return o.createRoot=e.createRoot,o.hydrateRoot=e.hydrateRoot,o}var f=p();const d=l(f),y=s({__proto__:null,default:d},[f]);export{y as c};
@@ -235,7 +235,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
235
235
  `)}function c(f){return f.map(l).join(`
236
236
  `)}function l(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?Byt(f):n.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:c,formatRow:l,formatValue:u}}function Wyt(t){for(var n in t){var e=t[n].trim(),r,i;if(!e)e=null;else if(e==="true")e=!0;else if(e==="false")e=!1;else if(e==="NaN")e=NaN;else if(!isNaN(r=+e))e=r;else if(i=e.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))Gyt&&i[4]&&!i[7]&&(e=e.replace(/-/g,"/").replace(/T/," ")),e=new Date(e);else continue;t[n]=e}return t}const Gyt=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var Yyt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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,n||[])).next())})};const RD=t=>{const{value:n,format:e=n.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>Yyt(void 0,void 0,void 0,function*(){const a=yield fetch(n);if(e==="csv"){const o=yield a.text();return zyt(r).parse(o,i?Wyt:Us)}if(e==="json")return yield a.json();throw new Error(`Unknown format: ${e}.`)})};RD.props={};function Hyt(t){return!t||Object.keys(t).length===0}const ID=t=>{const{fields:n,key:e="key",value:r="value"}=t;return i=>Hyt(n)?i:i.flatMap(a=>n.map(o=>Object.assign(Object.assign({},a),{[e]:o,[r]:a[o]})))};ID.props={};function Vyt(t){return t!=null&&!Number.isNaN(t)}const DD=t=>{const{callback:n=Vyt}=t;return e=>e.filter(n)};DD.props={};const jD=t=>{const{callback:n}=t;return e=>Array.isArray(e)?[...e].sort(n):e};jD.props={};function Uyt(t,n=[]){return n.reduce((e,r)=>(r in t&&(e[r]=t[r]),e),{})}const $D=t=>{const{fields:n}=t;return e=>e.map(r=>Uyt(r,n))};$D.props={};function Xyt(t){return Object.keys(t).length===0}const FD=t=>n=>{if(!t||Xyt(t))return n;const e=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return n.map(e)};FD.props={};function qyt(t,n){return t.map(e=>{if(Array.isArray(e)){const[r,i=n]=e;return[r,i]}return[e,n]})}const BD=t=>{const{fields:n=[]}=t,e=qyt(n,!0);return r=>{const i=(a,o)=>e.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)}};BD.props={};const zD=t=>{const{value:n}=t;return()=>n};zD.props={};const WD=t=>{const{callback:n=Us}=t;return e=>n(e)};WD.props={};const GD=t=>{const{callback:n=Us}=t;return e=>Array.isArray(e)?e.map(n):e};GD.props={};var Kyt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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,n||[])).next())})};function Zyt(t,n){return{set(e,r,i){if(n[e]===void 0)return this;const a=r?r.call(null,n[e]):n[e];return i?i.call(null,a):typeof t[e]=="function"?t[e](a):t[e]=a,this},setAsync(e,r,i){return Kyt(this,void 0,void 0,function*(){if(n[e]===void 0)return this;const a=r?yield r.call(null,n[e]):n[e];return i?i.call(null,a):typeof t[e]=="function"?t[e](a):t[e]=a,this})}}}const Cm=Math.PI/180,Cu=64,mp=2048;function Qyt(t){return t.text}function Jyt(){return"serif"}function cP(){return"normal"}function tmt(t){return t.value}function emt(){return~~(Math.random()*2)*90}function nmt(){return 1}function rmt(){}function imt(t,n,e,r){if(n.sprite)return;const i=t.context,a=t.ratio;i.clearRect(0,0,(Cu<<5)/a,mp/a);let o=0,s=0,c=0;const l=e.length;for(--r;++r<l;){n=e[r],i.save(),i.font=n.style+" "+n.weight+" "+~~((n.size+1)/a)+"px "+n.font;let d=i.measureText(n.text+"m").width*a,h=n.size<<1;if(n.rotate){const p=Math.sin(n.rotate*Cm),g=Math.cos(n.rotate*Cm),y=d*g,m=d*p,x=h*g,w=h*p;d=Math.max(Math.abs(y+w),Math.abs(y-w))+31>>5<<5,h=~~Math.max(Math.abs(m+x),Math.abs(m-x))}else d=d+31>>5<<5;if(h>c&&(c=h),o+d>=Cu<<5&&(o=0,s+=c,c=0),s+h>=mp)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),n.rotate&&i.rotate(n.rotate*Cm),i.fillText(n.text,0,0),n.padding&&(i.lineWidth=2*n.padding,i.strokeText(n.text,0,0)),i.restore(),n.width=d,n.height=h,n.xoff=o,n.yoff=s,n.x1=d>>1,n.y1=h>>1,n.x0=-n.x1,n.y0=-n.y1,n.hasText=!0,o+=d}const u=i.getImageData(0,0,(Cu<<5)/a,mp/a).data,f=[];for(;--r>=0;){if(n=e[r],!n.hasText)continue;const d=n.width,h=d>>5;let p=n.y1-n.y0;for(let m=0;m<p*h;m++)f[m]=0;if(o=n.xoff,o==null)return;s=n.yoff;let g=0,y=-1;for(let m=0;m<p;m++){for(let x=0;x<d;x++){const w=h*m+(x>>5),_=u[(s+m)*(Cu<<5)+(o+x)<<2]?1<<31-x%32:0;f[w]|=_,g|=_}g?y=m:(n.y0++,p--,m--,s++)}n.y1=n.y0+y,n.sprite=f.slice(0,(n.y1-n.y0)*h)}}function amt(t,n,e){e>>=5;const r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=a&127,s=32-o,c=t.y1-t.y0;let l=(t.y+t.y0)*e+(a>>5),u;for(let f=0;f<c;f++){u=0;for(let d=0;d<=i;d++)if((u<<s|(d<i?(u=r[f*i+d])>>>o:0))&n[l+d])return!0;l+=e}return!1}function omt(t,n){const e=t[0],r=t[1];n.x+n.x0<e.x&&(e.x=n.x+n.x0),n.y+n.y0<e.y&&(e.y=n.y+n.y0),n.x+n.x1>r.x&&(r.x=n.x+n.x1),n.y+n.y1>r.y&&(r.y=n.y+n.y1)}function smt(t,n){return t.x+t.x1>n[0].x&&t.x+t.x0<n[1].x&&t.y+t.y1>n[0].y&&t.y+t.y0<n[1].y}function YD(t){const n=t[0]/t[1];return function(e){return[n*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function cmt(t){const e=4*t[0]/t[1];let r=0,i=0;return function(a){const o=a<0?-1:1;switch(Math.sqrt(1+4*o*a)-o&3){case 0:r+=e;break;case 1:i+=4;break;case 2:r-=e;break;default:i-=4;break}return[r,i]}}function lP(t){const n=[];let e=-1;for(;++e<t;)n[e]=0;return n}function lmt(){return document.createElement("canvas")}function Ga(t){return typeof t=="function"?t:function(){return t}}const umt={archimedean:YD,rectangular:cmt};function fmt(){let t=[256,256],n=Qyt,e=Jyt,r=tmt,i=cP,a=emt,o=nmt,s=YD,c=Math.random,l=rmt,u=[],f=null,d=1/0,h=lmt;const p=cP,g={};g.start=function(){const[x,w]=t,_=y(h()),O=g.board?g.board:lP((t[0]>>5)*t[1]),S=u.length,E=[],A=u.map(function(L,C,R){return L.text=n.call(this,L,C,R),L.font=e.call(this,L,C,R),L.style=p.call(this,L,C,R),L.weight=i.call(this,L,C,R),L.rotate=a.call(this,L,C,R),L.size=~~r.call(this,L,C,R),L.padding=o.call(this,L,C,R),L}).sort(function(L,C){return C.size-L.size});let M=-1,T=g.board?[{x:0,y:0},{x,y:w}]:void 0;f&&clearInterval(f),f=setInterval(P,0),P();function P(){const L=Date.now();for(;Date.now()-L<d&&++M<S;){const C=A[M];C.x=x*(c()+.5)>>1,C.y=w*(c()+.5)>>1,imt(_,C,A,M),C.hasText&&m(O,C,T)&&(l.call(null,"word",{cloud:g,word:C}),E.push(C),T?g.hasImage||omt(T,C):T=[{x:C.x+C.x0,y:C.y+C.y0},{x:C.x+C.x1,y:C.y+C.y1}],C.x-=t[0]>>1,C.y-=t[1]>>1)}g._tags=E,g._bounds=T,M>=S&&(g.stop(),l.call(null,"end",{cloud:g,words:E,bounds:T}))}return g},g.stop=function(){return f&&(clearInterval(f),f=null),g};function y(x){x.width=x.height=1;const w=Math.sqrt(x.getContext("2d").getImageData(0,0,1,1).data.length>>2);x.width=(Cu<<5)/w,x.height=mp/w;const _=x.getContext("2d");return _.fillStyle=_.strokeStyle="red",_.textAlign="center",_.textBaseline="middle",{context:_,ratio:w}}function m(x,w,_){const O=w.x,S=w.y,E=Math.sqrt(t[0]*t[0]+t[1]*t[1]),A=s(t),M=c()<.5?1:-1;let T,P=-M,L,C;for(;(T=A(P+=M))&&(L=~~T[0],C=~~T[1],!(Math.min(Math.abs(L),Math.abs(C))>=E));)if(w.x=O+L,w.y=S+C,!(w.x+w.x0<0||w.y+w.y0<0||w.x+w.x1>t[0]||w.y+w.y1>t[1])&&(!_||!amt(w,x,t[0]))&&(!_||smt(w,_))){const R=w.sprite,D=w.width>>5,F=t[0]>>5,j=w.x-(D<<4),I=j&127,$=32-I,z=w.y1-w.y0;let Y,H=(w.y+w.y0)*F+(j>>5);for(let U=0;U<z;U++){Y=0;for(let Z=0;Z<=D;Z++)x[H+Z]|=Y<<$|(Z<D?(Y=R[U*D+Z])>>>I:0);H+=F}return delete w.sprite,!0}return!1}return g.createMask=x=>{const w=document.createElement("canvas"),[_,O]=t;if(!_||!O)return;const S=_>>5,E=lP((_>>5)*O);w.width=_,w.height=O;const A=w.getContext("2d");A.drawImage(x,0,0,x.width,x.height,0,0,_,O);const M=A.getImageData(0,0,_,O).data;for(let T=0;T<O;T++)for(let P=0;P<_;P++){const L=S*T+(P>>5),C=T*_+P<<2,D=M[C]>=250&&M[C+1]>=250&&M[C+2]>=250?1<<31-P%32:0;E[L]|=D}g.board=E,g.hasImage=!0},g.timeInterval=function(x){d=x??1/0},g.words=function(x){u=x},g.size=function(x=[]){t=[+x[0],+x[1]]},g.text=function(x){n=Ga(x)},g.font=function(x){e=Ga(x)},g.fontWeight=function(x){i=Ga(x)},g.rotate=function(x){a=Ga(x)},g.canvas=function(x){h=Ga(x)},g.spiral=function(x){s=umt[x]||x},g.fontSize=function(x){r=Ga(x)},g.padding=function(x){o=Ga(x)},g.random=function(x){c=Ga(x)},g.on=function(x){l=Ga(x)},g}var dmt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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,n||[])).next())})},hmt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const pmt={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return(~~(Math.random()*6)-3)*30}};function vmt(t){return new Promise((n,e)=>{if(t instanceof HTMLImageElement){n(t);return}if(typeof t=="string"){const r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>n(r),r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),e()};return}e()})}function gmt(t,n){if(typeof t=="function")return t;if(Array.isArray(t)){const[e,r]=t;if(!n)return()=>(r+e)/2;const[i,a]=n;return a===i?()=>(r+e)/2:({value:o})=>(r-e)/(a-i)*(o-i)+e}return()=>t}const HD=(t,n)=>e=>dmt(void 0,void 0,void 0,function*(){const r=Object.assign({},pmt,t,{canvas:n.createCanvas}),i=fmt();yield Zyt(i,r).set("fontSize",x=>{const w=e.map(_=>_.value);return gmt(x,[ri(w),Re(w)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").set("canvas").setAsync("imageMask",vmt,i.createMask),i.words([...e]);const a=i.start(),[o,s]=r.size,c=[{x:0,y:0},{x:o,y:s}],{_bounds:l=c,_tags:u,hasImage:f}=a,d=u.map(x=>{var{x:w,y:_,font:O}=x,S=hmt(x,["x","y","font"]);return Object.assign(Object.assign({},S),{x:w+o/2,y:_+s/2,fontFamily:O})}),[{x:h,y:p},{x:g,y}]=l,m={text:"",value:0,opacity:0,fontSize:0};return d.push(Object.assign(Object.assign({},m),{x:f?0:h,y:f?0:p}),Object.assign(Object.assign({},m),{x:f?o:g,y:f?s:y})),d});HD.props={};function uP(t){return typeof t=="string"?n=>n[t]:t}const VD=t=>{const{join:n,on:e,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=e,c=uP(s),l=uP(o),u=vx(n,([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,g,y)=>(p[i[y]]=h?h[g]:a,p),{}))})};VD.props={};const UD=t=>{const{start:n,end:e}=t;return r=>r.slice(n,e)};UD.props={};var Lm={exports:{}},Nm={exports:{}},fP;function ymt(){return fP||(fP=1,(function(t){var n=t.exports;t.exports.isNumber=function(e){return typeof e=="number"},t.exports.findMin=function(e){if(e.length===0)return 1/0;for(var r=e[0],i=1;i<e.length;i++)r=Math.min(r,e[i]);return r},t.exports.findMax=function(e){if(e.length===0)return-1/0;for(var r=e[0],i=1;i<e.length;i++)r=Math.max(r,e[i]);return r},t.exports.findMinMulti=function(e){for(var r=n.findMin(e[0]),i=1;i<e.length;i++)r=Math.min(r,n.findMin(e[i]));return r},t.exports.findMaxMulti=function(e){for(var r=n.findMax(e[0]),i=1;i<e.length;i++)r=Math.max(r,n.findMax(e[i]));return r},t.exports.inside=function(e,r,i){return e<=i&&i<=r}})(Nm)),Nm.exports}var dP;function mmt(){return dP||(dP=1,(function(t){var n=50,e=2,r=Math.log(2),i=t.exports,a=ymt();function o(c){return 1-Math.abs(c)}t.exports.getUnifiedMinMax=function(c,l){return i.getUnifiedMinMaxMulti([c],l)},t.exports.getUnifiedMinMaxMulti=function(c,l){l=l||{};var u=!1,f=!1,d=a.isNumber(l.width)?l.width:e,h=a.isNumber(l.size)?l.size:n,p=a.isNumber(l.min)?l.min:(u=!0,a.findMinMulti(c)),g=a.isNumber(l.max)?l.max:(f=!0,a.findMaxMulti(c)),y=g-p,m=y/(h-1);return u&&(p=p-2*d*m),f&&(g=g+2*d*m),{min:p,max:g}},t.exports.create=function(c,l){if(l=l||{},!c||c.length===0)return[];var u=a.isNumber(l.size)?l.size:n,f=a.isNumber(l.width)?l.width:e,d=i.getUnifiedMinMax(c,{size:u,width:f,min:l.min,max:l.max}),h=d.min,p=d.max,g=p-h,y=g/(u-1);if(g===0)return[{x:h,y:1}];for(var m=[],x=0;x<u;x++)m.push({x:h+x*y,y:0});var w=function(P){return Math.floor((P-h)/y)},_=s(o,f),O=_[f],S=_[f-1]-_[f-2],E=0;c.forEach(function(P){var L=w(P);if(!(L+f<0||L-f>=m.length)){var C=Math.max(L-f,0),R=L,D=Math.min(L+f,m.length-1),F=C-(L-f),j=L+f-D,I=_[-f-1+F]||0,$=_[-f-1+j]||0,z=O/(O-I-$);F>0&&(E+=z*(F-1)*S);var Y=Math.max(0,L-f+1);a.inside(0,m.length-1,Y)&&(m[Y].y+=z*1*S),a.inside(0,m.length-1,R+1)&&(m[R+1].y-=z*2*S),a.inside(0,m.length-1,D+1)&&(m[D+1].y+=z*1*S)}});var A=E,M=0,T=0;return m.forEach(function(P){M+=P.y,A+=M,P.y=A,T+=A}),T>0&&m.forEach(function(P){P.y/=T}),m};function s(c,l){for(var u={},f=0,d=-l;d<=l;d++)f+=c(d/l),u[d]=f;return u}t.exports.getExpectedValueFromPdf=function(c){if(!(!c||c.length===0)){var l=0;return c.forEach(function(u){l+=u.x*u.y}),l}},t.exports.getXWithLeftTailArea=function(c,l){if(!(!c||c.length===0)){for(var u=0,f=0,d=0;d<c.length&&(f=d,u+=c[d].y,!(u>=l));d++);return c[f].x}},t.exports.getPerplexity=function(c){if(!(!c||c.length===0)){var l=0;return c.forEach(function(u){var f=Math.log(u.y);isFinite(f)&&(l+=u.y*f)}),l=-l/r,Math.pow(2,l)}}})(Lm)),Lm.exports}var bmt=mmt();const xmt=Hv(bmt),XD=t=>{const{field:n,groupBy:e,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(Ve(u,d=>e.map(h=>d[h]).join("-")).values()).map(d=>{const h=xmt.create(d.map(y=>y[n]),{min:i,max:a,size:o,width:s}),p=h.map(y=>y.x),g=h.map(y=>y.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:g})})};XD.props={};function wmt(t,n,e,r){r=r||{};const i=r.maxIterations||100,a=r.tolerance||1e-10,o=t(n),s=t(e);let c=e-n;if(o*s>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(s===0)return e;for(let l=0;l<i;++l){c/=2;const u=n+c,f=t(u);if(f*o>=0&&(n=u),Math.abs(c)<a||f===0)return u}return n+c}function Db(t){const n=new Array(t);for(let e=0;e<t;++e)n[e]=0;return n}function hP(t,n){return Db(t).map(()=>Db(n))}function tl(t,n){let e=0;for(let r=0;r<t.length;++r)e+=t[r]*n[r];return e}function jb(t){return Math.sqrt(tl(t,t))}function $b(t,n,e){for(let r=0;r<n.length;++r)t[r]=n[r]*e}function qa(t,n,e,r,i){for(let a=0;a<t.length;++a)t[a]=n*e[a]+r*i[a]}function _mt(t,n,e){e=e||{};const r=e.maxIterations||n.length*200,i=e.nonZeroDelta||1.05,a=e.zeroDelta||.001,o=e.minErrorDelta||1e-6,s=e.minErrorDelta||1e-5,c=e.rho!==void 0?e.rho:1,l=e.chi!==void 0?e.chi:2,u=e.psi!==void 0?e.psi:-.5,f=e.sigma!==void 0?e.sigma:.5;let d;const h=n.length,p=new Array(h+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let O=0;O<h;++O){const S=n.slice();S[O]=S[O]?S[O]*i:a,p[O+1]=S,p[O+1].fx=t(S),p[O+1].id=O+1}function g(O){for(let S=0;S<O.length;S++)p[h][S]=O[S];p[h].fx=O.fx}const y=(O,S)=>O.fx-S.fx,m=n.slice(),x=n.slice(),w=n.slice(),_=n.slice();for(let O=0;O<r;++O){if(p.sort(y),e.history){const E=p.map(A=>{const M=A.slice();return M.fx=A.fx,M.id=A.id,M});E.sort((A,M)=>A.id-M.id),e.history.push({x:p[0].slice(),fx:p[0].fx,simplex:E})}d=0;for(let E=0;E<h;++E)d=Math.max(d,Math.abs(p[0][E]-p[1][E]));if(Math.abs(p[0].fx-p[h].fx)<o&&d<s)break;for(let E=0;E<h;++E){m[E]=0;for(let A=0;A<h;++A)m[E]+=p[A][E];m[E]/=h}const S=p[h];if(qa(x,1+c,m,-c,S),x.fx=t(x),x.fx<p[0].fx)qa(_,1+l,m,-l,S),_.fx=t(_),_.fx<x.fx?g(_):g(x);else if(x.fx>=p[h-1].fx){let E=!1;if(x.fx>S.fx?(qa(w,1+u,m,-u,S),w.fx=t(w),w.fx<S.fx?g(w):E=!0):(qa(w,1-u*c,m,u*c,S),w.fx=t(w),w.fx<x.fx?g(w):E=!0),E){if(f>=1)break;for(let A=1;A<p.length;++A)qa(p[A],1-f,p[0],f,p[A]),p[A].fx=t(p[A])}}else g(x)}return p.sort(y),{fx:p[0].fx,x:p[0]}}function Omt(t,n,e,r,i,a,o){const s=e.fx,c=tl(e.fxprime,n);let l=s,u=s,f=c,d=0;i=i||1,a=a||1e-6,o=o||.1;function h(p,g,y){for(let m=0;m<16;++m)if(i=(p+g)/2,qa(r.x,1,e.x,i,n),l=r.fx=t(r.x,r.fxprime),f=tl(r.fxprime,n),l>s+a*i*c||l>=y)g=i;else{if(Math.abs(f)<=-o*c)return i;f*(g-p)>=0&&(g=p),p=i,y=l}return 0}for(let p=0;p<10;++p){if(qa(r.x,1,e.x,i,n),l=r.fx=t(r.x,r.fxprime),f=tl(r.fxprime,n),l>s+a*i*c||p&&l>=u)return h(d,i,u);if(Math.abs(f)<=-o*c)return i;if(f>=0)return h(i,d,l);u=l,d=i,i*=2}return i}function Smt(t,n,e){let r={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const a=n.slice();let o,s=1;e=e||{};const c=e.maxIterations||n.length*20;r.fx=t(r.x,r.fxprime);const l=r.fxprime.slice();$b(l,r.fxprime,-1);for(let u=0;u<c;++u){if(s=Omt(t,l,r,i,s),e.history&&e.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),!s)$b(l,r.fxprime,-1);else{qa(a,1,i.fxprime,-1,r.fxprime);const f=tl(r.fxprime,r.fxprime),d=Math.max(0,tl(a,i.fxprime)/f);qa(l,d,l,-1,i.fxprime),o=r,r=i,i=o}if(jb(r.fxprime)<=1e-5)break}return e.history&&e.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),r}const qD=1e-10;function KD(t,n){const e=kmt(t),r=e.filter(function(c){return Emt(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=Amt(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]],g=Math.atan2(u.x-p.x,u.y-p.y),y=Math.atan2(l.x-p.x,l.y-p.y);let m=y-g;m<0&&(m+=2*Math.PI);const x=y-m/2;let w=Rf(f,{x:p.x+p.radius*Math.sin(x),y:p.y+p.radius*Math.cos(x)});w>p.radius*2&&(w=p.radius*2),(d===null||d.width>w)&&(d={circle:p,width:w,p1:u,p2:l})}d!==null&&(s.push(d),i+=Fb(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(Rf(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-qD,y:c.y+c.radius},width:c.radius*2}))}return a/=2,n&&(n.area=i+a,n.arcArea=i,n.polygonArea=a,n.arcs=s,n.innerPoints=r,n.intersectionPoints=e),i+a}function Emt(t,n){for(let e=0;e<n.length;++e)if(Rf(t,n[e])>n[e].radius+qD)return!1;return!0}function kmt(t){const n=[];for(let e=0;e<t.length;++e)for(let r=e+1;r<t.length;++r){const i=QD(t[e],t[r]);for(let a=0;a<i.length;++a){const o=i[a];o.parentIndex=[e,r],n.push(o)}}return n}function Fb(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function Rf(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function ZD(t,n,e){if(e>=t+n)return 0;if(e<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const r=t-(e*e-n*n+t*t)/(2*e),i=n-(e*e-t*t+n*n)/(2*e);return Fb(t,r)+Fb(n,i)}function QD(t,n){const e=Rf(t,n),r=t.radius,i=n.radius;if(e>=r+i||e<=Math.abs(r-i))return[];const a=(r*r-i*i+e*e)/(2*e),o=Math.sqrt(r*r-a*a),s=t.x+a*(n.x-t.x)/e,c=t.y+a*(n.y-t.y)/e,l=-(n.y-t.y)*(o/e),u=-(n.x-t.x)*(o/e);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function Amt(t){const n={x:0,y:0};for(let e=0;e<t.length;++e)n.x+=t[e].x,n.y+=t[e].y;return n.x/=t.length,n.y/=t.length,n}function Mmt(t,n){n=n||{},n.maxIterations=n.maxIterations||500;const e=n.initialLayout||Lmt,r=n.lossFunction||s_;t=Tmt(t);const i=e(t,n),a=[],o=[];let s;for(s in i)i.hasOwnProperty(s)&&(a.push(i[s].x),a.push(i[s].y),o.push(s));const l=_mt(function(u){const f={};for(let d=0;d<o.length;++d){const h=o[d];f[h]={x:u[2*d],y:u[2*d+1],radius:i[h].radius}}return r(f,t)},a,n).x;for(let u=0;u<o.length;++u)s=o[u],i[s].x=l[2*u],i[s].y=l[2*u+1];return i}const JD=1e-10;function Bb(t,n,e){return Math.min(t,n)*Math.min(t,n)*Math.PI<=e+JD?Math.abs(t-n):wmt(function(r){return ZD(t,n,r)-e},0,t+n)}function Tmt(t){t=t.slice();const n=[],e={};let r,i,a,o;for(r=0;r<t.length;++r){const s=t[r];s.sets.length==1?n.push(s.sets[0]):s.sets.length==2&&(a=s.sets[0],o=s.sets[1],e[[a,o]]=!0,e[[o,a]]=!0)}for(n.sort((s,c)=>s>c?1:-1),r=0;r<n.length;++r)for(a=n[r],i=r+1;i<n.length;++i)o=n[i],[a,o]in e||t.push({sets:[a,o],size:0});return t}function Pmt(t,n,e){const r=hP(n.length,n.length),i=hP(n.length,n.length);return t.filter(function(a){return a.sets.length==2}).map(function(a){const o=e[a.sets[0]],s=e[a.sets[1]],c=Math.sqrt(n[o].size/Math.PI),l=Math.sqrt(n[s].size/Math.PI),u=Bb(c,l,a.size);r[o][s]=r[s][o]=u;let f=0;a.size+1e-10>=Math.min(n[o].size,n[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}function Cmt(t,n,e,r){let i=0,a;for(a=0;a<n.length;++a)n[a]=0;for(a=0;a<e.length;++a){const o=t[2*a],s=t[2*a+1];for(let c=a+1;c<e.length;++c){const l=t[2*c],u=t[2*c+1],f=e[a][c],d=r[a][c],h=(l-o)*(l-o)+(u-s)*(u-s),p=Math.sqrt(h),g=h-f*f;d>0&&p<=f||d<0&&p>=f||(i+=2*g*g,n[2*a]+=4*g*(o-l),n[2*a+1]+=4*g*(s-u),n[2*c]+=4*g*(l-o),n[2*c+1]+=4*g*(u-s))}}return i}function Lmt(t,n){let e=Rmt(t,n);const r=n.lossFunction||s_;if(t.length>=8){const i=Nmt(t,n),a=r(i,t),o=r(e,t);a+1e-8<o&&(e=i)}return e}function Nmt(t,n){n=n||{};const e=n.restarts||10,r=[],i={};let a;for(a=0;a<t.length;++a){const g=t[a];g.sets.length==1&&(i[g.sets[0]]=r.length,r.push(g))}const o=Pmt(t,r,i);let s=o.distances;const c=o.constraints,l=jb(s.map(jb))/s.length;s=s.map(function(g){return g.map(function(y){return y/l})});const u=function(g,y){return Cmt(g,y,s,c)};let f,d;for(a=0;a<e;++a){const g=Db(s.length*2).map(Math.random);d=Smt(u,g,n),(!f||d.fx<f.fx)&&(f=d)}const h=f.x,p={};for(a=0;a<r.length;++a){const g=r[a];p[g.sets[0]]={x:h[2*a]*l,y:h[2*a+1]*l,radius:Math.sqrt(g.size/Math.PI)}}if(n.history)for(a=0;a<n.history.length;++a)$b(n.history[a].x,l);return p}function Rmt(t,n){const e=n&&n.lossFunction?n.lossFunction:s_,r={},i={};let a;for(let f=0;f<t.length;++f){const d=t[f];d.sets.length==1&&(a=d.sets[0],r[a]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:d.size,radius:Math.sqrt(d.size/Math.PI)},i[a]=[])}t=t.filter(function(f){return f.sets.length==2});for(let f=0;f<t.length;++f){const d=t[f];let h=d.hasOwnProperty("weight")?d.weight:1;const p=d.sets[0],g=d.sets[1];d.size+JD>=Math.min(r[p].size,r[g].size)&&(h=0),i[p].push({set:g,size:d.size,weight:h}),i[g].push({set:p,size:d.size,weight:h})}const o=[];for(a in i)if(i.hasOwnProperty(a)){let f=0;for(let d=0;d<i[a].length;++d)f+=i[a][d].size*i[a][d].weight;o.push({set:a,size:f})}function s(f,d){return d.size-f.size}o.sort(s);const c={};function l(f){return f.set in c}function u(f,d){r[d].x=f.x,r[d].y=f.y,c[d]=!0}u({x:0,y:0},o[0].set);for(let f=1;f<o.length;++f){const d=o[f].set,h=i[d].filter(l);if(a=r[d],h.sort(s),h.length===0)throw"ERROR: missing pairwise overlap information";const p=[];for(let m=0;m<h.length;++m){const x=r[h[m].set],w=Bb(a.radius,x.radius,h[m].size);p.push({x:x.x+w,y:x.y}),p.push({x:x.x-w,y:x.y}),p.push({y:x.y+w,x:x.x}),p.push({y:x.y-w,x:x.x});for(let _=m+1;_<h.length;++_){const O=r[h[_].set],S=Bb(a.radius,O.radius,h[_].size),E=QD({x:x.x,y:x.y,radius:w},{x:O.x,y:O.y,radius:S});for(let A=0;A<E.length;++A)p.push(E[A])}}let g=1e50,y=p[0];for(let m=0;m<p.length;++m){r[d].x=p[m].x,r[d].y=p[m].y;const x=e(r,t);x<g&&(g=x,y=p[m])}u(y,d)}return r}function s_(t,n){let e=0;function r(i){return i.map(function(a){return t[a]})}for(let i=0;i<n.length;++i){const a=n[i];let o;if(a.sets.length==1)continue;if(a.sets.length==2){const c=t[a.sets[0]],l=t[a.sets[1]];o=ZD(c.radius,l.radius,Rf(c,l))}else o=KD(r(a.sets));const s=a.hasOwnProperty("weight")?a.weight:1;e+=s*(o-a.size)*(o-a.size)}return e}function Imt(t){const n=function(e){const r=Math.max.apply(null,t.map(function(a){return a[e]+a.radius})),i=Math.min.apply(null,t.map(function(a){return a[e]-a.radius}));return{max:r,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dmt(t,n,e,r){const i=[],a=[];for(const g in t)t.hasOwnProperty(g)&&(a.push(g),i.push(t[g]));n-=2*r,e-=2*r;const o=Imt(i),s=o.xRange,c=o.yRange;if(s.max==s.min||c.max==c.min)return console.log("not scaling solution: zero size detected"),t;const l=n/(s.max-s.min),u=e/(c.max-c.min),f=Math.min(u,l),d=(n-(s.max-s.min)*f)/2,h=(e-(c.max-c.min)*f)/2,p={};for(let g=0;g<i.length;++g){const y=i[g];p[a[g]]={radius:f*y.radius,x:r+d+(y.x-s.min)*f,y:r+h+(y.y-c.min)*f}}return p}function jmt(t,n,e){const r=[],i=t-e,a=n;return r.push("M",i,a),r.push("A",e,e,0,1,0,i+2*e,a),r.push("A",e,e,0,1,0,i,a),r.join(" ")}function $mt(t){const n={};KD(t,n);const e=n.arcs;if(e.length===0)return"M 0 0";if(e.length==1){const r=e[0].circle;return jmt(r.x,r.y,r.radius)}else{const r=[`
237
237
  M`,e[0].p2.x,e[0].p2.y];for(let i=0;i<e.length;++i){const a=e[i],o=a.circle.radius,s=a.width>o;r.push(`
238
- A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const tj=t=>{const{sets:n="sets",size:e="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[n],size:f[e],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Mmt(c);let u;return c.map(f=>{const d=f[n],h=({width:p,height:g})=>{u=u||Dmt(l,p,g,i);const y=d.map(x=>u[x]);let m=$mt(y);return/[zZ]$/.test(m)||(m+=" Z"),m};return Object.assign(Object.assign({},f),{[o]:h})})}};tj.props={};const ej=()=>t=>(console.log("G2 data section:",t),t);ej.props={};function Fmt(t,n){if(n<0||n>1)throw new Error("alpha must be between 0 and 1.");if(t.length===0)return[];let e=t[0];const r=[];for(const i of t){if(i==null){r.push(i),console.warn("EMA\uFF1AThe value is null or undefined",t);continue}e==null&&(e=i);const a=e*n+(1-n)*i;r.push(a),e=a}return r}const nj=t=>{const{field:n="y",alpha:e=.6,as:r=n}=t;return i=>{const a=i.map(s=>s[n]),o=Fmt(a,e);return i.map((s,c)=>Object.assign(Object.assign({},s),{[r]:o[c]}))}};nj.props={};const rj=.01;function If(t){const{min:n,max:e}=t;return[[n[0],n[1]],[e[0],e[1]]]}function pP(t,n,e=rj){const[r,i]=t,[a,o]=n;return r>=a[0]-e&&r<=o[0]+e&&i>=a[1]-e&&i<=o[1]+e}function ij(t,n,e=rj){const[r,i]=t;return!(pP(r,n,e)&&pP(i,n,e))}function Bmt(t,n){const[e,r]=t,[i,a]=n;return e[0]<a[0]&&r[0]>i[0]&&e[1]<a[1]&&r[1]>i[1]}const zmt=t=>{const{priority:n}=t;return e=>{const r=[];return n&&e.sort(n),e.forEach(i=>{V0(i);const a=i.getLocalBounds();r.some(s=>Bmt(If(a),If(s.getLocalBounds())))?Gw(i):r.push(i)}),e}};function Wmt([t,n],[e,r]){return r>t&&n>e}function ep(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function Gmt(t){const n=t.cloneNode(!0),e=n.getElementById("connector");e&&n.removeChild(e);const{min:r,max:i}=n.getRenderBounds();return n.destroy(),{min:r,max:i}}const Ymt=t=>{const{maxIterations:n=10,maxError:e=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=ep(),[c,l]=ep(),[u,f]=ep(),[d,h]=ep();for(const p of i){const{min:g,max:y}=Gmt(p),[m,x]=g,[w,_]=y;s(p,x),l(p,x),f(p,_-x),h(p,[m,w])}for(let p=0;p<n;p++){i.sort((y,m)=>wn(c(y),c(m)));let g=0;for(let y=0;y<a-1;y++){const m=i[y];let x=y+1,w;for(;(w=i[x])&&!Wmt(d(m),d(w));)x+=1;if(w){const _=c(m),O=u(m),S=c(w),E=S-(_+O);if(E<r){const A=(r-E)/2;g=Math.max(g,A),l(m,_-A),l(w,S+A)}}}if(g<e)break}for(const p of i)p.style.y+=c(p)-o(p);return i}};function aj(t){return typeof t=="object"?t:zo(t)}function Rm(t){let n=t/255;return n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),n}function vP(t,n,e){return .2126*Rm(t)+.7152*Rm(n)+.0722*Rm(e)}function oj(t,n){if(!t||!n||t===n)return 1;const{r:e,g:r,b:i}=t,{r:a,g:o,b:s}=n,c=vP(e,r,i),l=vP(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function sj(t,n){const e=Ml(n,r=>oj(t,aj(r)));return n[e]}const Hmt=t=>{const{threshold:n=4.5,palette:e=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;oj(o,a)<n&&i.attr("fill",sj(a,e))}),r)},Vmt=()=>t=>(t.forEach(n=>{V0(n);const e=n.attr("bounds"),r=n.getLocalBounds();ij(If(r),e)&&Gw(n)}),t),Umt=(t,n)=>{const[[e,r],[i,a]]=n,[[o,s],[c,l]]=t;let u=0,f=0;return o<e?u=e-o:c>i&&(u=i-c),s<r?f=r-s:l>a&&(f=a-l),[u,f]},Xmt=(t,n)=>!t||!t.min||!t.max?!n||!n.min||!n.max?{min:[0,0],max:[0,0]}:n:!n||!n.min||!n.max?t:{min:[Math.min(t.min[0],n.min[0]),Math.min(t.min[1],n.min[1])],max:[Math.max(t.max[0],n.max[0]),Math.max(t.max[1],n.max[1])]},qmt=(t={})=>(n,{canvas:e,layout:r})=>{const{bounds:i="view",offsetX:a=0,offsetY:o=0}=t,c=(()=>{if(i==="main"){const{x:l=0,y:u=0,width:f=0,height:d=0,marginLeft:h=0,marginRight:p=0,marginTop:g=0,marginBottom:y=0,paddingLeft:m=0,paddingRight:x=0,paddingTop:w=0,paddingBottom:_=0}=r;return[[l+h+m+a,u+g+w+o],[l+f-p-x-a,u+d-y-_-o]]}else{const{x:l=0,y:u=0,width:f=0,height:d=0}=r;return[[l+a,u+o],[l+f-a,u+d-o]]}})();return n.forEach(l=>{V0(l);const{max:u,min:f}=Xmt(l.getRenderBounds(),l.getBounds());if(!u||!f||u[0]===0&&u[1]===0&&f[0]===0&&f[1]===0)return;const[d,h]=u,[p,g]=f,y=Umt([[p,g],[d,h]],c);l.style.connector&&l.style.connectorPoints&&(l.style.connectorPoints[0][0]-=y[0],l.style.connectorPoints[0][1]-=y[1]),l.style.x+=y[0],l.style.y+=y[1]}),n};function gP(t){var n;const e=t.getAnimations();if(!e||e.length===0)return Lf(t);const r=t.cloneNode(!0);r.style.visibility="hidden",e.forEach(a=>{const o=a.effect.getKeyframes();o&&o.length>0&&r.attr(o[o.length-1])}),(n=t.parentNode)===null||n===void 0||n.appendChild(r);const i=Lf(r);return r.destroy(),i}const Kmt=t=>{const{palette:n=["#000","#fff"],threshold:e=2}=t;return r=>(r.forEach(i=>{var a,o;const s=i.attr("dependentElement"),c=(o=(a=i.attributes.fill)!==null&&a!==void 0?a:i.parsedStyle.fill)!==null&&o!==void 0?o:"#fff",l=If(gP(i)),u=If(gP(s));if(ij(l,u,e)){const f=sj(aj(c),n);i.attr("stroke",f)}else i.removeAttribute("stroke")}),r)};function Zmt(){return{"data.fetch":RD,"data.inline":zD,"data.sortBy":BD,"data.sort":jD,"data.filter":DD,"data.pick":$D,"data.rename":FD,"data.fold":ID,"data.slice":UD,"data.custom":WD,"data.map":GD,"data.join":VD,"data.kde":XD,"data.log":ej,"data.wordCloud":HD,"data.ema":nj,"transform.stackY":B3,"transform.binX":g5,"transform.bin":Nx,"transform.dodgeX":K3,"transform.jitter":J3,"transform.jitterX":t5,"transform.jitterY":e5,"transform.symmetryY":n5,"transform.diffY":r5,"transform.stackEnter":Z3,"transform.normalizeY":Q3,"transform.select":s0,"transform.selectX":i5,"transform.selectY":a5,"transform.groupX":o5,"transform.groupY":s5,"transform.groupColor":c5,"transform.group":Xf,"transform.sortX":l5,"transform.sortY":f5,"transform.sortColor":u5,"transform.flexX":d5,"transform.pack":v5,"transform.sample":y5,"transform.filter":m5,"coordinate.cartesian":rC,"coordinate.polar":jf,"coordinate.transpose":ix,"coordinate.theta":oC,"coordinate.parallel":ox,"coordinate.fisheye":cC,"coordinate.radial":ax,"coordinate.radar":lC,"coordinate.helix":aC,"encode.constant":uC,"encode.field":dC,"encode.transform":fC,"encode.column":hC,"mark.interval":jR,"mark.rect":$R,"mark.line":FR,"mark.point":BR,"mark.text":zR,"mark.cell":WR,"mark.area":GR,"mark.link":U2,"mark.image":YR,"mark.polygon":HR,"mark.box":VR,"mark.vector":UR,"mark.lineX":qR,"mark.lineY":XR,"mark.connector":KR,"mark.range":ZR,"mark.rangeX":QR,"mark.rangeY":JR,"mark.path":i4,"mark.shape":w4,"mark.density":j4,"mark.heatmap":$4,"mark.wordCloud":tw,"mark.beeswarm":B4,"palette.category10":G4,"palette.category20":Y4,"scale.linear":V4,"scale.ordinal":U4,"scale.band":H4,"scale.identity":X4,"scale.point":q4,"scale.time":K4,"scale.log":Z4,"scale.pow":Q4,"scale.sqrt":nI,"scale.threshold":J4,"scale.quantile":tI,"scale.quantize":eI,"scale.sequential":rI,"scale.constant":iI,"theme.classic":aI,"theme.classicDark":sI,"theme.academy":cI,"theme.light":aw,"theme.dark":oI,"component.axisX":bI,"component.axisY":xI,"component.legendCategory":Xw,"component.legendContinuous":os,"component.legends":Z8,"component.title":V8,"component.sliderX":U8,"component.sliderY":X8,"component.scrollbarX":q8,"component.scrollbarY":K8,"animation.scaleInX":Kw,"animation.scaleOutX":K0t,"animation.scaleInY":Q8,"animation.scaleOutY":Z0t,"animation.waveIn":rD,"animation.fadeIn":J8,"animation.fadeOut":tD,"animation.zoomIn":cgt,"animation.zoomOut":lgt,"animation.pathIn":iD,"animation.morphing":nD,"animation.growInX":aD,"animation.growInY":oD,"interaction.elementHighlight":X0,"interaction.elementHighlightByX":sD,"interaction.elementHighlightByColor":cD,"interaction.elementHoverScale":lD,"interaction.elementSelect":q0,"interaction.elementSelectByX":uD,"interaction.elementSelectByColor":fD,"interaction.fisheye":wgt,"interaction.chartIndex":dD,"interaction.tooltip":wD,"interaction.legendFilter":E0t,"interaction.legendHighlight":Igt,"interaction.brushHighlight":K0,"interaction.brushXHighlight":zgt,"interaction.brushYHighlight":Wgt,"interaction.brushAxisHighlight":Zgt,"interaction.brushFilter":a_,"interaction.brushXFilter":eyt,"interaction.brushYFilter":nyt,"interaction.sliderFilter":PD,"interaction.sliderWheel":CD,"interaction.scrollbarFilter":myt,"interaction.poptip":LD,"interaction.treemapDrillDown":kyt,"interaction.drillDown":Cyt,"interaction.elementPointMove":jyt,"composition.spaceLayer":YI,"composition.spaceFlex":HI,"composition.facetRect":KI,"composition.repeatMatrix":Qut,"composition.facetCircle":ift,"composition.timingKeyframe":ZI,"labelTransform.overlapHide":zmt,"labelTransform.overlapDodgeY":Ymt,"labelTransform.overflowHide":Vmt,"labelTransform.contrastReverse":Hmt,"labelTransform.overflowStroke":Kmt,"labelTransform.exceedAdjust":qmt}}function Qmt(){return{"composition.geoView":k6,"composition.geoPath":QI}}function Jmt(){return{"data.arc":q2,"data.cluster":N4,"mark.forceGraph":C4,"mark.tree":I4,"mark.pack":y4,"mark.sankey":n4,"mark.chord":r4,"mark.treemap":g4,"mark.partition":W4}}function t1t(){return{"data.venn":tj,"mark.boxplot":x4,"mark.gauge":D4,"mark.wordCloud":tw,"mark.liquid":F4}}function cj(){return Object.assign(Object.assign(Object.assign(Object.assign({},Qmt()),Jmt()),t1t()),Zmt())}function e1t(t,n){class e extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:n}))}}return e}const lj={};function uj(t,n){t.startsWith("symbol.")?_tt(t.split(".").pop(),n):Object.assign(lj,{[t]:n})}const Rc=t=>t?parseInt(t):0;function n1t(t){const n=getComputedStyle(t),e=t.clientWidth||Rc(n.width),r=t.clientHeight||Rc(n.height),i=Rc(n.paddingLeft)+Rc(n.paddingRight),a=Rc(n.paddingTop)+Rc(n.paddingBottom);return{width:e-i,height:r-a}}function Im(t,n){const e=[t];for(;e.length;){const r=e.shift();n&&n(r);const i=r.children||[];for(const a of i)e.push(a)}}class c_{constructor(n={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=n}map(n=e=>e){const e=n(this.value);return this.value=e,this}attr(n,e){return arguments.length===1?this.value[n]:this.map(r=>(r[n]=e,r))}append(n){const e=new n({});return e.children=[],this.push(e),e}push(n){return n.parentNode=this,n.index=this.children.length,this.children.push(n),this}remove(){const n=this.parentNode;if(n){const{children:e}=n,r=e.findIndex(i=>i===this);e.splice(r,1)}return this}getNodeByKey(n){let e=null;return Im(this,i=>{n===i.attr("key")&&(e=i)}),e}getNodesByType(n){const e=[];return Im(this,i=>{n===i.type&&e.push(i)}),e}getNodeByType(n){let e=null;return Im(this,r=>{e||n===r.type&&(e=r)}),e}call(n,...e){return n(this.map(),...e),this}getRoot(){let n=this;for(;n&&n.parentNode;)n=n.parentNode;return n}}var fj=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const zb=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],dj="__remove__",hj="__callback__",yP=1,mP=1;function r1t(t){if(t===void 0){const n=document.createElement("div");return n[dj]=!0,n}return typeof t=="string"?document.getElementById(t):t}function i1t(t){const n=t.parentNode;n&&n.removeChild(t)}function a1t(t){if(t.type!==null)return t;const n=t.children[t.children.length-1];for(const e of zb)n.attr(e,t.attr(e));return n}function bP(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function Dm(t,n){const{width:e,height:r,autoFit:i,depth:a=0}=t;let o=640,s=480;if(i){const{width:c,height:l}=n1t(n);o=c||o,s=l||s}return o=e||o,s=r||s,{width:Math.max(Qe(o)?o:yP,yP),height:Math.max(Qe(s)?s:mP,mP),depth:a}}function o1t(t){const n=a1t(t),e=[n],r=new Map;for(r.set(n,bP(n));e.length;){const i=e.pop(),a=r.get(i),{children:o=[]}=i;for(const s of o)if(s.type===hj)a.children=s.value;else{const c=bP(s),{children:l=[]}=a;l.push(c),e.push(s),r.set(s,c),a.children=l}}return r.get(n)}function s1t(t,n){return typeof t=="function"?!0:new Set(Object.keys(n)).has(t)}function c1t(t,n){return typeof t!="function"&&new Set(Object.keys(n)).has(t)}function l1t(t,n,e,r,i){const{type:a}=t,{type:o=e||a}=n;if(c1t(o,i)){for(const s of zb)t.attr(s)!==void 0&&n[s]===void 0&&(n[s]=t.attr(s));return n}if(s1t(o,r)){const s={type:"view"},c=Object.assign({},n);for(const l of zb)c[l]!==void 0&&(s[l]=c[l],delete c[l]);return Object.assign(Object.assign({},s),{children:[c]})}return n}function u1t(t,n,e){if(typeof t=="function")return n.mark;const i=Object.assign(Object.assign({},n),e)[t];if(!i)throw new Error(`Unknown mark: ${t}.`);return i}function f1t(t,n,e){if(typeof t=="function"){const c=new c_;return c.value=t,c.type=hj,c}const{type:r,children:i}=t,a=fj(t,["type","children"]),o=u1t(r,n,e),s=new o;return s.value=a,s.type=r,s}function d1t(t,n){const{type:e,children:r}=n,i=fj(n,["type","children"]);t.type===e||e===void 0?N3(t.value,i):typeof e=="string"&&(t.type=e,t.value=i)}function h1t(t,n,e,r){if(!t)return;const i=[[t,n]];for(;i.length;){const[a,o]=i.shift(),s=f1t(o,e,r);Array.isArray(a.children)&&a.push(s);const{children:c}=o;if(Array.isArray(c))for(const l of c)i.push([s,l]);else typeof c=="function"&&i.push([s,c])}}function p1t(t,n,e,r,i){const a=l1t(t,n,e,r,i),o=[[null,t,a]];for(;o.length;){const[s,c,l]=o.shift();if(!c)h1t(s,l,r,i);else if(!l)c.remove();else{d1t(c,l);const{children:u}=l,{children:f}=c;if(Array.isArray(u)&&Array.isArray(f)){const d=Math.max(u.length,f.length);for(let h=0;h<d;h++){const p=u[h],g=f[h];o.push([c,g,p])}}else typeof u=="function"&&o.push([c,null,u])}}}function v1t(){let t,n;return[new Promise((r,i)=>{n=r,t=i}),n,t]}function g1t(t,n,{key:e=n}){t.prototype[n]=function(r){return arguments.length===0?this.attr(e):this.attr(e,r)}}function y1t(t,n,{key:e=n}){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,r);const i=[...this.attr(e)||[],r];return this.attr(e,i)}}function m1t(t,n,{key:e=n}){t.prototype[n]=function(r,i){if(arguments.length===0)return this.attr(e);if(arguments.length===1&&typeof r!="string")return this.attr(e,r);const a=this.attr(e)||{};return a[r]=arguments.length===1?!0:i,this.attr(e,a)}}function b1t(t,n,e){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,{items:r});if(ul(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(n,r);if(r===null||r===!1)return this.attr(n,r);const i=this.attr(n)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(n,i)}}function x1t(t,n,{ctor:e}){t.prototype[n]=function(r){const i=this.append(e);return n==="mark"&&(i.type=r),i}}function w1t(t,n,{ctor:e}){t.prototype[n]=function(){return this.type=null,this.append(e)}}function Nv(t){return n=>{for(const[e,r]of Object.entries(t)){const{type:i}=r;i==="value"?g1t(n,e,r):i==="array"?y1t(n,e,r):i==="object"?m1t(n,e,r):i==="node"?x1t(n,e,r):i==="container"?w1t(n,e,r):i==="mix"&&b1t(n,e)}return n}}function xP(t){return Object.fromEntries(Object.entries(t).map(([n,e])=>[n,{type:"node",ctor:e}]))}const pj={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},_1t=Object.assign(Object.assign({},pj),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),O1t=Object.assign(Object.assign({},pj),{labelTransform:{type:"array"}});var S1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Rv=class extends c_{changeData(n){var e;const r=this.getRoot();if(r)return this.attr("data",n),!((e=this.children)===null||e===void 0)&&e.length&&this.children.forEach(i=>{i.attr("data",n)}),r==null?void 0:r.render()}getView(){const n=this.getRoot(),{views:e}=n.getContext();if(e!=null&&e.length)return e.find(r=>r.key===this._key)}getScale(){var n;return(n=this.getView())===null||n===void 0?void 0:n.scale}getScaleByChannel(n){const e=this.getScale();if(e)return e[n]}getCoordinate(){var n;return(n=this.getView())===null||n===void 0?void 0:n.coordinate}getTheme(){var n;return(n=this.getView())===null||n===void 0?void 0:n.theme}getGroup(){const n=this._key;return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}show(){const n=this.getGroup();n&&!n.isVisible()&&V0(n)}hide(){const n=this.getGroup();n&&n.isVisible()&&Gw(n)}};Rv=S1t([Nv(O1t)],Rv);var E1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Wb=class extends c_{changeData(n){const e=this.getRoot();if(e)return this.attr("data",n),e==null?void 0:e.render()}getMark(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(!e)return;const{markState:r}=e,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(e)return e==null?void 0:e.scale}getScaleByChannel(n){var e,r;const i=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[n]}getGroup(){const n=this.attr("key");return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}};Wb=E1t([Nv(_1t)],Wb);var k1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a},A1t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const M1t="G2_CHART_KEY";class T1t extends Rv{constructor(n){const{container:e,canvas:r,renderer:i,plugins:a,lib:o,createCanvas:s}=n,c=A1t(n,["container","canvas","renderer","plugins","lib","createCanvas"]);super(c,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailingClear=null,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=_C(()=>{this.forceFit()},300),this._renderer=i||new PI,this._plugins=a||[],this._container=r1t(e),this._emitter=new lw,this._context={library:Object.assign(Object.assign({},o),lj),emitter:this._emitter,canvas:r,createCanvas:s},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;const n=new Promise((a,o)=>Qvt(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[e,r,i]=v1t();return n.then(r).then(()=>{if(this._trailingClear){const a=this.options();this._trailingClear(),this._trailing&&this.options(a)}}).catch(i).then(()=>{this._trailingClear=null,this._renderTrailing()}),e}options(n){if(arguments.length===0)return o1t(this);const{type:e}=n;return e&&(this._previousDefinedType=e),p1t(this,n,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(n,e,r){return this._emitter.on(n,e,r),this}once(n,e){return this._emitter.once(n,e),this}emit(n,...e){return this._emitter.emit(n,...e),this}off(n,e){return this._emitter.off(n,e),this}clear(n=!0){if(this._rendering){this._trailingClear=()=>{this.clear(n)},this._reset();return}const e=this.options();this.emit(Me.BEFORE_CLEAR),this._reset(),DT(e,this._context,!1,n),this.emit(Me.AFTER_CLEAR)}destroy(){const n=this.options();this.emit(Me.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),DT(n,this._context,!0),this._container[dj]&&i1t(this._container),this.emit(Me.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:n,height:e}=Dm(this.options(),this._container);if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}changeSize(n,e){if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE),this.attr("width",n),this.attr("height",e);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}getDataByXY(n,e={}){const{shared:r=!1,series:i,facet:a=!1,startX:o=0,startY:s=0}=e,{canvas:c,views:l}=this._context,{document:u}=c,{x:f,y:d}=n,{coordinate:h,scale:p,markState:g,data:y,key:m}=l[0],x=u.getElementsByClassName(la),w=r?P=>P.__data__.x:P=>P,_=Ve(x,w),O=u.getElementsByClassName(rv)[0],S=Ii(O),E=P=>Array.from(P.values()).some(L=>{var C,R;return((C=L.interaction)===null||C===void 0?void 0:C.seriesTooltip)||((R=L.channels)===null||R===void 0?void 0:R.some(D=>D.name==="series"&&D.values!==void 0))}),A=ca(i,E(g)),M=P=>Wt(P,"__data__.data",null),T=P=>P.map(M);try{if(A&&E(g)&&!a){const{selectedData:R}=xD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,startX:o,startY:s}),D=y.get(`${m}-0`);return R.map(({index:F})=>D[F])}const P=bD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,shared:r});if(e0(P))return Ex(P,y.get(m));const L=w(P),C=_.get(L);return C?T(C):[]}catch{const L=c.document.elementFromPointSync(f,d);return L?M(L):[]}}_create(){const{library:n}=this._context,e=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(n).filter(e)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends Wb{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(n).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends Rv{constructor(){super({},o)}};return s=k1t([Nv(xP(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))Nv(xP(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const n=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([e])=>e.startsWith("margin")||e.startsWith("padding")||e.startsWith("inset")||n.includes(e))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const n=this._trailingResolve.bind(this);this._trailingResolve=null,n(this)}).catch(n=>{const e=this._trailingReject.bind(this);this._trailingReject=null,e(n)}))}_createResolve(n){return()=>{this._rendering=!1,n(this)}}_createReject(n){return e=>{this._rendering=!1,n(e)}}_computedOptions(){const n=this.options(),{key:e=M1t}=n,{width:r,height:i,depth:a}=Dm(n,this._container);return this._width=r,this._height=i,this._key=e,Object.assign(Object.assign({key:this._key},n),{width:r,height:i,depth:a})}_createCanvas(){var n,e;const{width:r,height:i}=Dm(this.options(),this._container);this._plugins.push(new LI),this._plugins.forEach(o=>this._renderer.registerPlugin(o)),this._context.canvas=new kL({container:this._container,width:r,height:i,renderer:this._renderer});const a=(e=(n=this._context.canvas)===null||n===void 0?void 0:n.getContextService())===null||e===void 0?void 0:e.getDomElement();a&&(a.style.display="block")}_addToTrailing(){var n;return(n=this._trailingResolve)===null||n===void 0||n.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const n=this.options(),{autoFit:e}=n;if(this._hasBindAutoFit){e||this._unbindAutoFit();return}e&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}Object.assign({},cj());const P1t="modulepreload",C1t=function(t,n){return new URL(t,n).href},wP={},_P=function(n,e,r){let i=Promise.resolve();if(e&&e.length>0){let o=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=o(e.map(u=>{if(u=C1t(u,r),u in wP)return;wP[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const y=s[g];if(y.href===u&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":P1t,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return n().catch(a)})};var vj=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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,n||[])).next())})},gj=function(t,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){e.label=l[1];break}if(l[0]===6&&e.label<a[1]){e.label=a[1],a=l;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(l);break}a[2]&&e.ops.pop(),e.trys.pop();continue}l=n.call(t,e)}catch(u){l=[6,u],i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},jm="__rc_react_root__",l_,Gb,OP=!1;function L1t(){return vj(this,void 0,void 0,function(){var t,n,e,r,i;return gj(this,function(a){switch(a.label){case 0:if(OP)return[2];OP=!0,a.label=1;case 1:return a.trys.push([1,6,,7]),t=Gr.version||"",n=parseInt(t.split(".")[0],10),n>=18?[4,_P(()=>import("./client-ClqOT00H.js").then(o=>o.c),[],import.meta.url)]:[3,3];case 2:return e=a.sent(),l_=e.createRoot,[3,5];case 3:return[4,_P(()=>import("react-dom"),[],import.meta.url)];case 4:r=a.sent(),Gb=r.render,r.unmountComponentAtNode,a.label=5;case 5:return[3,7];case 6:return i=a.sent(),console.warn("[react-render] Failed to load ReactDOM API:",i),[3,7];case 7:return[2]}})})}function N1t(t,n){n[jm]||(n[jm]=l_(n)),n[jm].render(t)}function R1t(t,n){if(!Gb)throw new Error("ReactDOM.render not available");Gb(t,n)}function I1t(t,n){return vj(this,void 0,void 0,function(){return gj(this,function(e){switch(e.label){case 0:return[4,L1t()];case 1:return e.sent(),l_?N1t(t,n):R1t(t,n),[2]}})})}var bp=new Map;typeof document<"u"&&bp.set("tooltip",document.createElement("div"));var D1t=function(t,n){n===void 0&&(n=!1);var e=null;if(n)e=bp.get("tooltip");else if(e=document.createElement("div"),t!=null&&t.key){var r=bp.get(t.key);r?e=r:bp.set(t.key,e)}return I1t(t,e),e},Yb=function(){return Yb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Yb.apply(this,arguments)},j1t=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return"loading";var e="";n&&Object.keys(n).forEach(function(o){e+="".concat(o,": ").concat(n[o],`;
238
+ A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const tj=t=>{const{sets:n="sets",size:e="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[n],size:f[e],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Mmt(c);let u;return c.map(f=>{const d=f[n],h=({width:p,height:g})=>{u=u||Dmt(l,p,g,i);const y=d.map(x=>u[x]);let m=$mt(y);return/[zZ]$/.test(m)||(m+=" Z"),m};return Object.assign(Object.assign({},f),{[o]:h})})}};tj.props={};const ej=()=>t=>(console.log("G2 data section:",t),t);ej.props={};function Fmt(t,n){if(n<0||n>1)throw new Error("alpha must be between 0 and 1.");if(t.length===0)return[];let e=t[0];const r=[];for(const i of t){if(i==null){r.push(i),console.warn("EMA\uFF1AThe value is null or undefined",t);continue}e==null&&(e=i);const a=e*n+(1-n)*i;r.push(a),e=a}return r}const nj=t=>{const{field:n="y",alpha:e=.6,as:r=n}=t;return i=>{const a=i.map(s=>s[n]),o=Fmt(a,e);return i.map((s,c)=>Object.assign(Object.assign({},s),{[r]:o[c]}))}};nj.props={};const rj=.01;function If(t){const{min:n,max:e}=t;return[[n[0],n[1]],[e[0],e[1]]]}function pP(t,n,e=rj){const[r,i]=t,[a,o]=n;return r>=a[0]-e&&r<=o[0]+e&&i>=a[1]-e&&i<=o[1]+e}function ij(t,n,e=rj){const[r,i]=t;return!(pP(r,n,e)&&pP(i,n,e))}function Bmt(t,n){const[e,r]=t,[i,a]=n;return e[0]<a[0]&&r[0]>i[0]&&e[1]<a[1]&&r[1]>i[1]}const zmt=t=>{const{priority:n}=t;return e=>{const r=[];return n&&e.sort(n),e.forEach(i=>{V0(i);const a=i.getLocalBounds();r.some(s=>Bmt(If(a),If(s.getLocalBounds())))?Gw(i):r.push(i)}),e}};function Wmt([t,n],[e,r]){return r>t&&n>e}function ep(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function Gmt(t){const n=t.cloneNode(!0),e=n.getElementById("connector");e&&n.removeChild(e);const{min:r,max:i}=n.getRenderBounds();return n.destroy(),{min:r,max:i}}const Ymt=t=>{const{maxIterations:n=10,maxError:e=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=ep(),[c,l]=ep(),[u,f]=ep(),[d,h]=ep();for(const p of i){const{min:g,max:y}=Gmt(p),[m,x]=g,[w,_]=y;s(p,x),l(p,x),f(p,_-x),h(p,[m,w])}for(let p=0;p<n;p++){i.sort((y,m)=>wn(c(y),c(m)));let g=0;for(let y=0;y<a-1;y++){const m=i[y];let x=y+1,w;for(;(w=i[x])&&!Wmt(d(m),d(w));)x+=1;if(w){const _=c(m),O=u(m),S=c(w),E=S-(_+O);if(E<r){const A=(r-E)/2;g=Math.max(g,A),l(m,_-A),l(w,S+A)}}}if(g<e)break}for(const p of i)p.style.y+=c(p)-o(p);return i}};function aj(t){return typeof t=="object"?t:zo(t)}function Rm(t){let n=t/255;return n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),n}function vP(t,n,e){return .2126*Rm(t)+.7152*Rm(n)+.0722*Rm(e)}function oj(t,n){if(!t||!n||t===n)return 1;const{r:e,g:r,b:i}=t,{r:a,g:o,b:s}=n,c=vP(e,r,i),l=vP(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function sj(t,n){const e=Ml(n,r=>oj(t,aj(r)));return n[e]}const Hmt=t=>{const{threshold:n=4.5,palette:e=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;oj(o,a)<n&&i.attr("fill",sj(a,e))}),r)},Vmt=()=>t=>(t.forEach(n=>{V0(n);const e=n.attr("bounds"),r=n.getLocalBounds();ij(If(r),e)&&Gw(n)}),t),Umt=(t,n)=>{const[[e,r],[i,a]]=n,[[o,s],[c,l]]=t;let u=0,f=0;return o<e?u=e-o:c>i&&(u=i-c),s<r?f=r-s:l>a&&(f=a-l),[u,f]},Xmt=(t,n)=>!t||!t.min||!t.max?!n||!n.min||!n.max?{min:[0,0],max:[0,0]}:n:!n||!n.min||!n.max?t:{min:[Math.min(t.min[0],n.min[0]),Math.min(t.min[1],n.min[1])],max:[Math.max(t.max[0],n.max[0]),Math.max(t.max[1],n.max[1])]},qmt=(t={})=>(n,{canvas:e,layout:r})=>{const{bounds:i="view",offsetX:a=0,offsetY:o=0}=t,c=(()=>{if(i==="main"){const{x:l=0,y:u=0,width:f=0,height:d=0,marginLeft:h=0,marginRight:p=0,marginTop:g=0,marginBottom:y=0,paddingLeft:m=0,paddingRight:x=0,paddingTop:w=0,paddingBottom:_=0}=r;return[[l+h+m+a,u+g+w+o],[l+f-p-x-a,u+d-y-_-o]]}else{const{x:l=0,y:u=0,width:f=0,height:d=0}=r;return[[l+a,u+o],[l+f-a,u+d-o]]}})();return n.forEach(l=>{V0(l);const{max:u,min:f}=Xmt(l.getRenderBounds(),l.getBounds());if(!u||!f||u[0]===0&&u[1]===0&&f[0]===0&&f[1]===0)return;const[d,h]=u,[p,g]=f,y=Umt([[p,g],[d,h]],c);l.style.connector&&l.style.connectorPoints&&(l.style.connectorPoints[0][0]-=y[0],l.style.connectorPoints[0][1]-=y[1]),l.style.x+=y[0],l.style.y+=y[1]}),n};function gP(t){var n;const e=t.getAnimations();if(!e||e.length===0)return Lf(t);const r=t.cloneNode(!0);r.style.visibility="hidden",e.forEach(a=>{const o=a.effect.getKeyframes();o&&o.length>0&&r.attr(o[o.length-1])}),(n=t.parentNode)===null||n===void 0||n.appendChild(r);const i=Lf(r);return r.destroy(),i}const Kmt=t=>{const{palette:n=["#000","#fff"],threshold:e=2}=t;return r=>(r.forEach(i=>{var a,o;const s=i.attr("dependentElement"),c=(o=(a=i.attributes.fill)!==null&&a!==void 0?a:i.parsedStyle.fill)!==null&&o!==void 0?o:"#fff",l=If(gP(i)),u=If(gP(s));if(ij(l,u,e)){const f=sj(aj(c),n);i.attr("stroke",f)}else i.removeAttribute("stroke")}),r)};function Zmt(){return{"data.fetch":RD,"data.inline":zD,"data.sortBy":BD,"data.sort":jD,"data.filter":DD,"data.pick":$D,"data.rename":FD,"data.fold":ID,"data.slice":UD,"data.custom":WD,"data.map":GD,"data.join":VD,"data.kde":XD,"data.log":ej,"data.wordCloud":HD,"data.ema":nj,"transform.stackY":B3,"transform.binX":g5,"transform.bin":Nx,"transform.dodgeX":K3,"transform.jitter":J3,"transform.jitterX":t5,"transform.jitterY":e5,"transform.symmetryY":n5,"transform.diffY":r5,"transform.stackEnter":Z3,"transform.normalizeY":Q3,"transform.select":s0,"transform.selectX":i5,"transform.selectY":a5,"transform.groupX":o5,"transform.groupY":s5,"transform.groupColor":c5,"transform.group":Xf,"transform.sortX":l5,"transform.sortY":f5,"transform.sortColor":u5,"transform.flexX":d5,"transform.pack":v5,"transform.sample":y5,"transform.filter":m5,"coordinate.cartesian":rC,"coordinate.polar":jf,"coordinate.transpose":ix,"coordinate.theta":oC,"coordinate.parallel":ox,"coordinate.fisheye":cC,"coordinate.radial":ax,"coordinate.radar":lC,"coordinate.helix":aC,"encode.constant":uC,"encode.field":dC,"encode.transform":fC,"encode.column":hC,"mark.interval":jR,"mark.rect":$R,"mark.line":FR,"mark.point":BR,"mark.text":zR,"mark.cell":WR,"mark.area":GR,"mark.link":U2,"mark.image":YR,"mark.polygon":HR,"mark.box":VR,"mark.vector":UR,"mark.lineX":qR,"mark.lineY":XR,"mark.connector":KR,"mark.range":ZR,"mark.rangeX":QR,"mark.rangeY":JR,"mark.path":i4,"mark.shape":w4,"mark.density":j4,"mark.heatmap":$4,"mark.wordCloud":tw,"mark.beeswarm":B4,"palette.category10":G4,"palette.category20":Y4,"scale.linear":V4,"scale.ordinal":U4,"scale.band":H4,"scale.identity":X4,"scale.point":q4,"scale.time":K4,"scale.log":Z4,"scale.pow":Q4,"scale.sqrt":nI,"scale.threshold":J4,"scale.quantile":tI,"scale.quantize":eI,"scale.sequential":rI,"scale.constant":iI,"theme.classic":aI,"theme.classicDark":sI,"theme.academy":cI,"theme.light":aw,"theme.dark":oI,"component.axisX":bI,"component.axisY":xI,"component.legendCategory":Xw,"component.legendContinuous":os,"component.legends":Z8,"component.title":V8,"component.sliderX":U8,"component.sliderY":X8,"component.scrollbarX":q8,"component.scrollbarY":K8,"animation.scaleInX":Kw,"animation.scaleOutX":K0t,"animation.scaleInY":Q8,"animation.scaleOutY":Z0t,"animation.waveIn":rD,"animation.fadeIn":J8,"animation.fadeOut":tD,"animation.zoomIn":cgt,"animation.zoomOut":lgt,"animation.pathIn":iD,"animation.morphing":nD,"animation.growInX":aD,"animation.growInY":oD,"interaction.elementHighlight":X0,"interaction.elementHighlightByX":sD,"interaction.elementHighlightByColor":cD,"interaction.elementHoverScale":lD,"interaction.elementSelect":q0,"interaction.elementSelectByX":uD,"interaction.elementSelectByColor":fD,"interaction.fisheye":wgt,"interaction.chartIndex":dD,"interaction.tooltip":wD,"interaction.legendFilter":E0t,"interaction.legendHighlight":Igt,"interaction.brushHighlight":K0,"interaction.brushXHighlight":zgt,"interaction.brushYHighlight":Wgt,"interaction.brushAxisHighlight":Zgt,"interaction.brushFilter":a_,"interaction.brushXFilter":eyt,"interaction.brushYFilter":nyt,"interaction.sliderFilter":PD,"interaction.sliderWheel":CD,"interaction.scrollbarFilter":myt,"interaction.poptip":LD,"interaction.treemapDrillDown":kyt,"interaction.drillDown":Cyt,"interaction.elementPointMove":jyt,"composition.spaceLayer":YI,"composition.spaceFlex":HI,"composition.facetRect":KI,"composition.repeatMatrix":Qut,"composition.facetCircle":ift,"composition.timingKeyframe":ZI,"labelTransform.overlapHide":zmt,"labelTransform.overlapDodgeY":Ymt,"labelTransform.overflowHide":Vmt,"labelTransform.contrastReverse":Hmt,"labelTransform.overflowStroke":Kmt,"labelTransform.exceedAdjust":qmt}}function Qmt(){return{"composition.geoView":k6,"composition.geoPath":QI}}function Jmt(){return{"data.arc":q2,"data.cluster":N4,"mark.forceGraph":C4,"mark.tree":I4,"mark.pack":y4,"mark.sankey":n4,"mark.chord":r4,"mark.treemap":g4,"mark.partition":W4}}function t1t(){return{"data.venn":tj,"mark.boxplot":x4,"mark.gauge":D4,"mark.wordCloud":tw,"mark.liquid":F4}}function cj(){return Object.assign(Object.assign(Object.assign(Object.assign({},Qmt()),Jmt()),t1t()),Zmt())}function e1t(t,n){class e extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:n}))}}return e}const lj={};function uj(t,n){t.startsWith("symbol.")?_tt(t.split(".").pop(),n):Object.assign(lj,{[t]:n})}const Rc=t=>t?parseInt(t):0;function n1t(t){const n=getComputedStyle(t),e=t.clientWidth||Rc(n.width),r=t.clientHeight||Rc(n.height),i=Rc(n.paddingLeft)+Rc(n.paddingRight),a=Rc(n.paddingTop)+Rc(n.paddingBottom);return{width:e-i,height:r-a}}function Im(t,n){const e=[t];for(;e.length;){const r=e.shift();n&&n(r);const i=r.children||[];for(const a of i)e.push(a)}}class c_{constructor(n={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=n}map(n=e=>e){const e=n(this.value);return this.value=e,this}attr(n,e){return arguments.length===1?this.value[n]:this.map(r=>(r[n]=e,r))}append(n){const e=new n({});return e.children=[],this.push(e),e}push(n){return n.parentNode=this,n.index=this.children.length,this.children.push(n),this}remove(){const n=this.parentNode;if(n){const{children:e}=n,r=e.findIndex(i=>i===this);e.splice(r,1)}return this}getNodeByKey(n){let e=null;return Im(this,i=>{n===i.attr("key")&&(e=i)}),e}getNodesByType(n){const e=[];return Im(this,i=>{n===i.type&&e.push(i)}),e}getNodeByType(n){let e=null;return Im(this,r=>{e||n===r.type&&(e=r)}),e}call(n,...e){return n(this.map(),...e),this}getRoot(){let n=this;for(;n&&n.parentNode;)n=n.parentNode;return n}}var fj=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const zb=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],dj="__remove__",hj="__callback__",yP=1,mP=1;function r1t(t){if(t===void 0){const n=document.createElement("div");return n[dj]=!0,n}return typeof t=="string"?document.getElementById(t):t}function i1t(t){const n=t.parentNode;n&&n.removeChild(t)}function a1t(t){if(t.type!==null)return t;const n=t.children[t.children.length-1];for(const e of zb)n.attr(e,t.attr(e));return n}function bP(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function Dm(t,n){const{width:e,height:r,autoFit:i,depth:a=0}=t;let o=640,s=480;if(i){const{width:c,height:l}=n1t(n);o=c||o,s=l||s}return o=e||o,s=r||s,{width:Math.max(Qe(o)?o:yP,yP),height:Math.max(Qe(s)?s:mP,mP),depth:a}}function o1t(t){const n=a1t(t),e=[n],r=new Map;for(r.set(n,bP(n));e.length;){const i=e.pop(),a=r.get(i),{children:o=[]}=i;for(const s of o)if(s.type===hj)a.children=s.value;else{const c=bP(s),{children:l=[]}=a;l.push(c),e.push(s),r.set(s,c),a.children=l}}return r.get(n)}function s1t(t,n){return typeof t=="function"?!0:new Set(Object.keys(n)).has(t)}function c1t(t,n){return typeof t!="function"&&new Set(Object.keys(n)).has(t)}function l1t(t,n,e,r,i){const{type:a}=t,{type:o=e||a}=n;if(c1t(o,i)){for(const s of zb)t.attr(s)!==void 0&&n[s]===void 0&&(n[s]=t.attr(s));return n}if(s1t(o,r)){const s={type:"view"},c=Object.assign({},n);for(const l of zb)c[l]!==void 0&&(s[l]=c[l],delete c[l]);return Object.assign(Object.assign({},s),{children:[c]})}return n}function u1t(t,n,e){if(typeof t=="function")return n.mark;const i=Object.assign(Object.assign({},n),e)[t];if(!i)throw new Error(`Unknown mark: ${t}.`);return i}function f1t(t,n,e){if(typeof t=="function"){const c=new c_;return c.value=t,c.type=hj,c}const{type:r,children:i}=t,a=fj(t,["type","children"]),o=u1t(r,n,e),s=new o;return s.value=a,s.type=r,s}function d1t(t,n){const{type:e,children:r}=n,i=fj(n,["type","children"]);t.type===e||e===void 0?N3(t.value,i):typeof e=="string"&&(t.type=e,t.value=i)}function h1t(t,n,e,r){if(!t)return;const i=[[t,n]];for(;i.length;){const[a,o]=i.shift(),s=f1t(o,e,r);Array.isArray(a.children)&&a.push(s);const{children:c}=o;if(Array.isArray(c))for(const l of c)i.push([s,l]);else typeof c=="function"&&i.push([s,c])}}function p1t(t,n,e,r,i){const a=l1t(t,n,e,r,i),o=[[null,t,a]];for(;o.length;){const[s,c,l]=o.shift();if(!c)h1t(s,l,r,i);else if(!l)c.remove();else{d1t(c,l);const{children:u}=l,{children:f}=c;if(Array.isArray(u)&&Array.isArray(f)){const d=Math.max(u.length,f.length);for(let h=0;h<d;h++){const p=u[h],g=f[h];o.push([c,g,p])}}else typeof u=="function"&&o.push([c,null,u])}}}function v1t(){let t,n;return[new Promise((r,i)=>{n=r,t=i}),n,t]}function g1t(t,n,{key:e=n}){t.prototype[n]=function(r){return arguments.length===0?this.attr(e):this.attr(e,r)}}function y1t(t,n,{key:e=n}){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,r);const i=[...this.attr(e)||[],r];return this.attr(e,i)}}function m1t(t,n,{key:e=n}){t.prototype[n]=function(r,i){if(arguments.length===0)return this.attr(e);if(arguments.length===1&&typeof r!="string")return this.attr(e,r);const a=this.attr(e)||{};return a[r]=arguments.length===1?!0:i,this.attr(e,a)}}function b1t(t,n,e){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,{items:r});if(ul(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(n,r);if(r===null||r===!1)return this.attr(n,r);const i=this.attr(n)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(n,i)}}function x1t(t,n,{ctor:e}){t.prototype[n]=function(r){const i=this.append(e);return n==="mark"&&(i.type=r),i}}function w1t(t,n,{ctor:e}){t.prototype[n]=function(){return this.type=null,this.append(e)}}function Nv(t){return n=>{for(const[e,r]of Object.entries(t)){const{type:i}=r;i==="value"?g1t(n,e,r):i==="array"?y1t(n,e,r):i==="object"?m1t(n,e,r):i==="node"?x1t(n,e,r):i==="container"?w1t(n,e,r):i==="mix"&&b1t(n,e)}return n}}function xP(t){return Object.fromEntries(Object.entries(t).map(([n,e])=>[n,{type:"node",ctor:e}]))}const pj={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},_1t=Object.assign(Object.assign({},pj),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),O1t=Object.assign(Object.assign({},pj),{labelTransform:{type:"array"}});var S1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Rv=class extends c_{changeData(n){var e;const r=this.getRoot();if(r)return this.attr("data",n),!((e=this.children)===null||e===void 0)&&e.length&&this.children.forEach(i=>{i.attr("data",n)}),r==null?void 0:r.render()}getView(){const n=this.getRoot(),{views:e}=n.getContext();if(e!=null&&e.length)return e.find(r=>r.key===this._key)}getScale(){var n;return(n=this.getView())===null||n===void 0?void 0:n.scale}getScaleByChannel(n){const e=this.getScale();if(e)return e[n]}getCoordinate(){var n;return(n=this.getView())===null||n===void 0?void 0:n.coordinate}getTheme(){var n;return(n=this.getView())===null||n===void 0?void 0:n.theme}getGroup(){const n=this._key;return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}show(){const n=this.getGroup();n&&!n.isVisible()&&V0(n)}hide(){const n=this.getGroup();n&&n.isVisible()&&Gw(n)}};Rv=S1t([Nv(O1t)],Rv);var E1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Wb=class extends c_{changeData(n){const e=this.getRoot();if(e)return this.attr("data",n),e==null?void 0:e.render()}getMark(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(!e)return;const{markState:r}=e,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(e)return e==null?void 0:e.scale}getScaleByChannel(n){var e,r;const i=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[n]}getGroup(){const n=this.attr("key");return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}};Wb=E1t([Nv(_1t)],Wb);var k1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a},A1t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const M1t="G2_CHART_KEY";class T1t extends Rv{constructor(n){const{container:e,canvas:r,renderer:i,plugins:a,lib:o,createCanvas:s}=n,c=A1t(n,["container","canvas","renderer","plugins","lib","createCanvas"]);super(c,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailingClear=null,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=_C(()=>{this.forceFit()},300),this._renderer=i||new PI,this._plugins=a||[],this._container=r1t(e),this._emitter=new lw,this._context={library:Object.assign(Object.assign({},o),lj),emitter:this._emitter,canvas:r,createCanvas:s},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;const n=new Promise((a,o)=>Qvt(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[e,r,i]=v1t();return n.then(r).then(()=>{if(this._trailingClear){const a=this.options();this._trailingClear(),this._trailing&&this.options(a)}}).catch(i).then(()=>{this._trailingClear=null,this._renderTrailing()}),e}options(n){if(arguments.length===0)return o1t(this);const{type:e}=n;return e&&(this._previousDefinedType=e),p1t(this,n,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(n,e,r){return this._emitter.on(n,e,r),this}once(n,e){return this._emitter.once(n,e),this}emit(n,...e){return this._emitter.emit(n,...e),this}off(n,e){return this._emitter.off(n,e),this}clear(n=!0){if(this._rendering){this._trailingClear=()=>{this.clear(n)},this._reset();return}const e=this.options();this.emit(Me.BEFORE_CLEAR),this._reset(),DT(e,this._context,!1,n),this.emit(Me.AFTER_CLEAR)}destroy(){const n=this.options();this.emit(Me.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),DT(n,this._context,!0),this._container[dj]&&i1t(this._container),this.emit(Me.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:n,height:e}=Dm(this.options(),this._container);if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}changeSize(n,e){if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE),this.attr("width",n),this.attr("height",e);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}getDataByXY(n,e={}){const{shared:r=!1,series:i,facet:a=!1,startX:o=0,startY:s=0}=e,{canvas:c,views:l}=this._context,{document:u}=c,{x:f,y:d}=n,{coordinate:h,scale:p,markState:g,data:y,key:m}=l[0],x=u.getElementsByClassName(la),w=r?P=>P.__data__.x:P=>P,_=Ve(x,w),O=u.getElementsByClassName(rv)[0],S=Ii(O),E=P=>Array.from(P.values()).some(L=>{var C,R;return((C=L.interaction)===null||C===void 0?void 0:C.seriesTooltip)||((R=L.channels)===null||R===void 0?void 0:R.some(D=>D.name==="series"&&D.values!==void 0))}),A=ca(i,E(g)),M=P=>Wt(P,"__data__.data",null),T=P=>P.map(M);try{if(A&&E(g)&&!a){const{selectedData:R}=xD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,startX:o,startY:s}),D=y.get(`${m}-0`);return R.map(({index:F})=>D[F])}const P=bD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,shared:r});if(e0(P))return Ex(P,y.get(m));const L=w(P),C=_.get(L);return C?T(C):[]}catch{const L=c.document.elementFromPointSync(f,d);return L?M(L):[]}}_create(){const{library:n}=this._context,e=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(n).filter(e)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends Wb{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(n).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends Rv{constructor(){super({},o)}};return s=k1t([Nv(xP(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))Nv(xP(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const n=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([e])=>e.startsWith("margin")||e.startsWith("padding")||e.startsWith("inset")||n.includes(e))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const n=this._trailingResolve.bind(this);this._trailingResolve=null,n(this)}).catch(n=>{const e=this._trailingReject.bind(this);this._trailingReject=null,e(n)}))}_createResolve(n){return()=>{this._rendering=!1,n(this)}}_createReject(n){return e=>{this._rendering=!1,n(e)}}_computedOptions(){const n=this.options(),{key:e=M1t}=n,{width:r,height:i,depth:a}=Dm(n,this._container);return this._width=r,this._height=i,this._key=e,Object.assign(Object.assign({key:this._key},n),{width:r,height:i,depth:a})}_createCanvas(){var n,e;const{width:r,height:i}=Dm(this.options(),this._container);this._plugins.push(new LI),this._plugins.forEach(o=>this._renderer.registerPlugin(o)),this._context.canvas=new kL({container:this._container,width:r,height:i,renderer:this._renderer});const a=(e=(n=this._context.canvas)===null||n===void 0?void 0:n.getContextService())===null||e===void 0?void 0:e.getDomElement();a&&(a.style.display="block")}_addToTrailing(){var n;return(n=this._trailingResolve)===null||n===void 0||n.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const n=this.options(),{autoFit:e}=n;if(this._hasBindAutoFit){e||this._unbindAutoFit();return}e&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}Object.assign({},cj());const P1t="modulepreload",C1t=function(t,n){return new URL(t,n).href},wP={},_P=function(n,e,r){let i=Promise.resolve();if(e&&e.length>0){let o=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=o(e.map(u=>{if(u=C1t(u,r),u in wP)return;wP[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const y=s[g];if(y.href===u&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":P1t,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return n().catch(a)})};var vj=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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,n||[])).next())})},gj=function(t,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){e.label=l[1];break}if(l[0]===6&&e.label<a[1]){e.label=a[1],a=l;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(l);break}a[2]&&e.ops.pop(),e.trys.pop();continue}l=n.call(t,e)}catch(u){l=[6,u],i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},jm="__rc_react_root__",l_,Gb,OP=!1;function L1t(){return vj(this,void 0,void 0,function(){var t,n,e,r,i;return gj(this,function(a){switch(a.label){case 0:if(OP)return[2];OP=!0,a.label=1;case 1:return a.trys.push([1,6,,7]),t=Gr.version||"",n=parseInt(t.split(".")[0],10),n>=18?[4,_P(()=>import("./client-C6dWFj_m.js").then(o=>o.c),[],import.meta.url)]:[3,3];case 2:return e=a.sent(),l_=e.createRoot,[3,5];case 3:return[4,_P(()=>import("react-dom"),[],import.meta.url)];case 4:r=a.sent(),Gb=r.render,r.unmountComponentAtNode,a.label=5;case 5:return[3,7];case 6:return i=a.sent(),console.warn("[react-render] Failed to load ReactDOM API:",i),[3,7];case 7:return[2]}})})}function N1t(t,n){n[jm]||(n[jm]=l_(n)),n[jm].render(t)}function R1t(t,n){if(!Gb)throw new Error("ReactDOM.render not available");Gb(t,n)}function I1t(t,n){return vj(this,void 0,void 0,function(){return gj(this,function(e){switch(e.label){case 0:return[4,L1t()];case 1:return e.sent(),l_?N1t(t,n):R1t(t,n),[2]}})})}var bp=new Map;typeof document<"u"&&bp.set("tooltip",document.createElement("div"));var D1t=function(t,n){n===void 0&&(n=!1);var e=null;if(n)e=bp.get("tooltip");else if(e=document.createElement("div"),t!=null&&t.key){var r=bp.get(t.key);r?e=r:bp.set(t.key,e)}return I1t(t,e),e},Yb=function(){return Yb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Yb.apply(this,arguments)},j1t=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return"loading";var e="";n&&Object.keys(n).forEach(function(o){e+="".concat(o,": ").concat(n[o],`;
239
239
  `)});var r=t.attachShadow({mode:"open"}),i=document.createElement("div"),a=document.createElement("style");a.innerHTML=`.loading {
240
240
  display: inline-block;
241
241
  position: relative;
@@ -318,7 +318,7 @@ __p += '`),xe&&(gt+=`' +
318
318
  function print() { __p += __j.call(arguments, '') }
319
319
  `:`;
320
320
  `)+gt+`return __p
321
- }`;var ce=jS(function(){return Ce(G,Nt+"return "+gt).apply(e,X)});if(ce.source=gt,ty(ce))throw ce;return ce}function cW(v){return Fe(v).toLowerCase()}function lW(v){return Fe(v).toUpperCase()}function uW(v,b,k){if(v=Fe(v),v&&(k||b===e))return V_(v);if(!v||!(b=qr(b)))return v;var N=ji(v),B=ji(b),G=U_(N,B),X=X_(N,B)+1;return _o(N,G,X).join("")}function fW(v,b,k){if(v=Fe(v),v&&(k||b===e))return v.slice(0,K_(v)+1);if(!v||!(b=qr(b)))return v;var N=ji(v),B=X_(N,ji(b))+1;return _o(N,0,B).join("")}function dW(v,b,k){if(v=Fe(v),v&&(k||b===e))return v.replace(tg,"");if(!v||!(b=qr(b)))return v;var N=ji(v),B=U_(N,ji(b));return _o(N,B).join("")}function hW(v,b){var k=T,N=P;if(gn(b)){var B="separator"in b?b.separator:B;k="length"in b?oe(b.length):k,N="omission"in b?qr(b.omission):N}v=Fe(v);var G=v.length;if(pc(v)){var X=ji(v);G=X.length}if(k>=G)return v;var K=k-vc(N);if(K<1)return N;var nt=X?_o(X,0,K).join(""):v.slice(0,K);if(B===e)return nt+N;if(X&&(K+=nt.length-K),ey(B)){if(v.slice(K).search(B)){var lt,ft=nt;for(B.global||(B=yg(B.source,Fe(p_.exec(B))+"g")),B.lastIndex=0;lt=B.exec(ft);)var gt=lt.index;nt=nt.slice(0,gt===e?K:gt)}}else if(v.indexOf(qr(B),K)!=K){var Et=nt.lastIndexOf(B);Et>-1&&(nt=nt.slice(0,Et))}return nt+N}function pW(v){return v=Fe(v),v&&Ej.test(v)?v.replace(f_,G$):v}var vW=_c(function(v,b,k){return v+(k?" ":"")+b.toUpperCase()}),iy=$O("toUpperCase");function DS(v,b,k){return v=Fe(v),b=k?e:b,b===e?$$(v)?V$(v):T$(v):v.match(b)||[]}var jS=de(function(v,b){try{return Ur(v,e,b)}catch(k){return ty(k)?k:new qt(k)}}),gW=Da(function(v,b){return oi(b,function(k){k=ea(k),Ra(v,k,Qg(v[k],v))}),v});function yW(v){var b=v==null?0:v.length,k=Ft();return v=b?hn(v,function(N){if(typeof N[1]!="function")throw new si(o);return[k(N[0]),N[1]]}):[],de(function(N){for(var B=-1;++B<b;){var G=v[B];if(Ur(G[0],this,N))return Ur(G[1],this,N)}})}function mW(v){return G7(li(v,f))}function ay(v){return function(){return v}}function bW(v,b){return v==null||v!==v?b:v}var xW=BO(),wW=BO(!0);function jr(v){return v}function oy(v){return gO(typeof v=="function"?v:li(v,f))}function _W(v){return mO(li(v,f))}function OW(v,b){return bO(v,li(b,f))}var SW=de(function(v,b){return function(k){return Ul(k,v,b)}}),EW=de(function(v,b){return function(k){return Ul(v,k,b)}});function sy(v,b,k){var N=tr(b),B=Ld(b,N);k==null&&!(gn(b)&&(B.length||!N.length))&&(k=b,b=v,v=this,B=Ld(b,tr(b)));var G=!(gn(k)&&"chain"in k)||!!k.chain,X=$a(v);return oi(B,function(K){var nt=b[K];v[K]=nt,X&&(v.prototype[K]=function(){var lt=this.__chain__;if(G||lt){var ft=v(this.__wrapped__),gt=ft.__actions__=Rr(this.__actions__);return gt.push({func:nt,args:arguments,thisArg:v}),ft.__chain__=lt,ft}return nt.apply(v,go([this.value()],arguments))})}),v}function kW(){return or._===this&&(or._=Q$),this}function cy(){}function AW(v){return v=oe(v),de(function(b){return xO(b,v)})}var MW=Fg(hn),TW=Fg(z_),PW=Fg(ug);function $S(v){return Vg(v)?fg(ea(v)):oF(v)}function CW(v){return function(b){return v==null?e:ds(v,b)}}var LW=WO(),NW=WO(!0);function ly(){return[]}function uy(){return!1}function RW(){return{}}function IW(){return""}function DW(){return!0}function jW(v,b){if(v=oe(v),v<1||v>I)return[];var k=Y,N=hr(v,Y);b=Ft(b),v-=Y;for(var B=pg(N,b);++k<v;)b(k);return B}function $W(v){return Qt(v)?hn(v,ea):Kr(v)?[v]:Rr(iS(Fe(v)))}function FW(v){var b=++K$;return Fe(v)+b}var BW=$d(function(v,b){return v+b},0),zW=Bg("ceil"),WW=$d(function(v,b){return v/b},1),GW=Bg("floor");function YW(v){return v&&v.length?Cd(v,jr,Eg):e}function HW(v,b){return v&&v.length?Cd(v,Ft(b,2),Eg):e}function VW(v){return Y_(v,jr)}function UW(v,b){return Y_(v,Ft(b,2))}function XW(v){return v&&v.length?Cd(v,jr,Tg):e}function qW(v,b){return v&&v.length?Cd(v,Ft(b,2),Tg):e}var KW=$d(function(v,b){return v*b},1),ZW=Bg("round"),QW=$d(function(v,b){return v-b},0);function JW(v){return v&&v.length?hg(v,jr):0}function tG(v,b){return v&&v.length?hg(v,Ft(b,2)):0}return W.after=_B,W.ary=vS,W.assign=lz,W.assignIn=TS,W.assignInWith=Zd,W.assignWith=uz,W.at=fz,W.before=gS,W.bind=Qg,W.bindAll=gW,W.bindKey=yS,W.castArray=RB,W.chain=dS,W.chunk=GF,W.compact=YF,W.concat=HF,W.cond=yW,W.conforms=mW,W.constant=ay,W.countBy=J9,W.create=dz,W.curry=mS,W.curryRight=bS,W.debounce=xS,W.defaults=hz,W.defaultsDeep=pz,W.defer=OB,W.delay=SB,W.difference=VF,W.differenceBy=UF,W.differenceWith=XF,W.drop=qF,W.dropRight=KF,W.dropRightWhile=ZF,W.dropWhile=QF,W.fill=JF,W.filter=eB,W.flatMap=iB,W.flatMapDeep=aB,W.flatMapDepth=oB,W.flatten=cS,W.flattenDeep=t9,W.flattenDepth=e9,W.flip=EB,W.flow=xW,W.flowRight=wW,W.fromPairs=n9,W.functions=wz,W.functionsIn=_z,W.groupBy=sB,W.initial=i9,W.intersection=a9,W.intersectionBy=o9,W.intersectionWith=s9,W.invert=Sz,W.invertBy=Ez,W.invokeMap=lB,W.iteratee=oy,W.keyBy=uB,W.keys=tr,W.keysIn=Dr,W.map=Hd,W.mapKeys=Az,W.mapValues=Mz,W.matches=_W,W.matchesProperty=OW,W.memoize=Ud,W.merge=Tz,W.mergeWith=PS,W.method=SW,W.methodOf=EW,W.mixin=sy,W.negate=Xd,W.nthArg=AW,W.omit=Pz,W.omitBy=Cz,W.once=kB,W.orderBy=fB,W.over=MW,W.overArgs=AB,W.overEvery=TW,W.overSome=PW,W.partial=Jg,W.partialRight=wS,W.partition=dB,W.pick=Lz,W.pickBy=CS,W.property=$S,W.propertyOf=CW,W.pull=f9,W.pullAll=uS,W.pullAllBy=d9,W.pullAllWith=h9,W.pullAt=p9,W.range=LW,W.rangeRight=NW,W.rearg=MB,W.reject=vB,W.remove=v9,W.rest=TB,W.reverse=Kg,W.sampleSize=yB,W.set=Rz,W.setWith=Iz,W.shuffle=mB,W.slice=g9,W.sortBy=wB,W.sortedUniq=O9,W.sortedUniqBy=S9,W.split=iW,W.spread=PB,W.tail=E9,W.take=k9,W.takeRight=A9,W.takeRightWhile=M9,W.takeWhile=T9,W.tap=Y9,W.throttle=CB,W.thru=Yd,W.toArray=kS,W.toPairs=LS,W.toPairsIn=NS,W.toPath=$W,W.toPlainObject=MS,W.transform=Dz,W.unary=LB,W.union=P9,W.unionBy=C9,W.unionWith=L9,W.uniq=N9,W.uniqBy=R9,W.uniqWith=I9,W.unset=jz,W.unzip=Zg,W.unzipWith=fS,W.update=$z,W.updateWith=Fz,W.values=Ec,W.valuesIn=Bz,W.without=D9,W.words=DS,W.wrap=NB,W.xor=j9,W.xorBy=$9,W.xorWith=F9,W.zip=B9,W.zipObject=z9,W.zipObjectDeep=W9,W.zipWith=G9,W.entries=LS,W.entriesIn=NS,W.extend=TS,W.extendWith=Zd,sy(W,W),W.add=BW,W.attempt=jS,W.camelCase=Yz,W.capitalize=RS,W.ceil=zW,W.clamp=zz,W.clone=IB,W.cloneDeep=jB,W.cloneDeepWith=$B,W.cloneWith=DB,W.conformsTo=FB,W.deburr=IS,W.defaultTo=bW,W.divide=WW,W.endsWith=Hz,W.eq=Fi,W.escape=Vz,W.escapeRegExp=Uz,W.every=tB,W.find=nB,W.findIndex=oS,W.findKey=vz,W.findLast=rB,W.findLastIndex=sS,W.findLastKey=gz,W.floor=GW,W.forEach=hS,W.forEachRight=pS,W.forIn=yz,W.forInRight=mz,W.forOwn=bz,W.forOwnRight=xz,W.get=ny,W.gt=BB,W.gte=zB,W.has=Oz,W.hasIn=ry,W.head=lS,W.identity=jr,W.includes=cB,W.indexOf=r9,W.inRange=Wz,W.invoke=kz,W.isArguments=vs,W.isArray=Qt,W.isArrayBuffer=WB,W.isArrayLike=Ir,W.isArrayLikeObject=Rn,W.isBoolean=GB,W.isBuffer=Oo,W.isDate=YB,W.isElement=HB,W.isEmpty=VB,W.isEqual=UB,W.isEqualWith=XB,W.isError=ty,W.isFinite=qB,W.isFunction=$a,W.isInteger=_S,W.isLength=qd,W.isMap=OS,W.isMatch=KB,W.isMatchWith=ZB,W.isNaN=QB,W.isNative=JB,W.isNil=ez,W.isNull=tz,W.isNumber=SS,W.isObject=gn,W.isObjectLike=Tn,W.isPlainObject=Jl,W.isRegExp=ey,W.isSafeInteger=nz,W.isSet=ES,W.isString=Kd,W.isSymbol=Kr,W.isTypedArray=Sc,W.isUndefined=rz,W.isWeakMap=iz,W.isWeakSet=az,W.join=c9,W.kebabCase=Xz,W.last=fi,W.lastIndexOf=l9,W.lowerCase=qz,W.lowerFirst=Kz,W.lt=oz,W.lte=sz,W.max=YW,W.maxBy=HW,W.mean=VW,W.meanBy=UW,W.min=XW,W.minBy=qW,W.stubArray=ly,W.stubFalse=uy,W.stubObject=RW,W.stubString=IW,W.stubTrue=DW,W.multiply=KW,W.nth=u9,W.noConflict=kW,W.noop=cy,W.now=Vd,W.pad=Zz,W.padEnd=Qz,W.padStart=Jz,W.parseInt=tW,W.random=Gz,W.reduce=hB,W.reduceRight=pB,W.repeat=eW,W.replace=nW,W.result=Nz,W.round=ZW,W.runInContext=et,W.sample=gB,W.size=bB,W.snakeCase=rW,W.some=xB,W.sortedIndex=y9,W.sortedIndexBy=m9,W.sortedIndexOf=b9,W.sortedLastIndex=x9,W.sortedLastIndexBy=w9,W.sortedLastIndexOf=_9,W.startCase=aW,W.startsWith=oW,W.subtract=QW,W.sum=JW,W.sumBy=tG,W.template=sW,W.times=jW,W.toFinite=Fa,W.toInteger=oe,W.toLength=AS,W.toLower=cW,W.toNumber=di,W.toSafeInteger=cz,W.toString=Fe,W.toUpper=lW,W.trim=uW,W.trimEnd=fW,W.trimStart=dW,W.truncate=hW,W.unescape=pW,W.uniqueId=FW,W.upperCase=vW,W.upperFirst=iy,W.each=hS,W.eachRight=pS,W.first=lS,sy(W,(function(){var v={};return Ji(W,function(b,k){$e.call(W.prototype,k)||(v[k]=b)}),v})(),{chain:!1}),W.VERSION=r,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(v){W[v].placeholder=W}),oi(["drop","take"],function(v,b){me.prototype[v]=function(k){k=k===e?1:Kn(oe(k),0);var N=this.__filtered__&&!b?new me(this):this.clone();return N.__filtered__?N.__takeCount__=hr(k,N.__takeCount__):N.__views__.push({size:hr(k,Y),type:v+(N.__dir__<0?"Right":"")}),N},me.prototype[v+"Right"]=function(k){return this.reverse()[v](k).reverse()}}),oi(["filter","map","takeWhile"],function(v,b){var k=b+1,N=k==R||k==F;me.prototype[v]=function(B){var G=this.clone();return G.__iteratees__.push({iteratee:Ft(B,3),type:k}),G.__filtered__=G.__filtered__||N,G}}),oi(["head","last"],function(v,b){var k="take"+(b?"Right":"");me.prototype[v]=function(){return this[k](1).value()[0]}}),oi(["initial","tail"],function(v,b){var k="drop"+(b?"":"Right");me.prototype[v]=function(){return this.__filtered__?new me(this):this[k](1)}}),me.prototype.compact=function(){return this.filter(jr)},me.prototype.find=function(v){return this.filter(v).head()},me.prototype.findLast=function(v){return this.reverse().find(v)},me.prototype.invokeMap=de(function(v,b){return typeof v=="function"?new me(this):this.map(function(k){return Ul(k,v,b)})}),me.prototype.reject=function(v){return this.filter(Xd(Ft(v)))},me.prototype.slice=function(v,b){v=oe(v);var k=this;return k.__filtered__&&(v>0||b<0)?new me(k):(v<0?k=k.takeRight(-v):v&&(k=k.drop(v)),b!==e&&(b=oe(b),k=b<0?k.dropRight(-b):k.take(b-v)),k)},me.prototype.takeRightWhile=function(v){return this.reverse().takeWhile(v).reverse()},me.prototype.toArray=function(){return this.take(Y)},Ji(me.prototype,function(v,b){var k=/^(?:filter|find|map|reject)|While$/.test(b),N=/^(?:head|last)$/.test(b),B=W[N?"take"+(b=="last"?"Right":""):b],G=N||/^find/.test(b);B&&(W.prototype[b]=function(){var X=this.__wrapped__,K=N?[1]:arguments,nt=X instanceof me,lt=K[0],ft=nt||Qt(X),gt=function(ye){var xe=B.apply(W,go([ye],K));return N&&Et?xe[0]:xe};ft&&k&&typeof lt=="function"&&lt.length!=1&&(nt=ft=!1);var Et=this.__chain__,Nt=!!this.__actions__.length,Bt=G&&!Et,ce=nt&&!Nt;if(!G&&ft){X=ce?X:new me(this);var zt=v.apply(X,K);return zt.__actions__.push({func:Yd,args:[gt],thisArg:e}),new ci(zt,Et)}return Bt&&ce?v.apply(this,K):(zt=this.thru(gt),Bt?N?zt.value()[0]:zt.value():zt)})}),oi(["pop","push","shift","sort","splice","unshift"],function(v){var b=gd[v],k=/^(?:push|sort|unshift)$/.test(v)?"tap":"thru",N=/^(?:pop|shift)$/.test(v);W.prototype[v]=function(){var B=arguments;if(N&&!this.__chain__){var G=this.value();return b.apply(Qt(G)?G:[],B)}return this[k](function(X){return b.apply(Qt(X)?X:[],B)})}}),Ji(me.prototype,function(v,b){var k=W[b];if(k){var N=k.name+"";$e.call(bc,N)||(bc[N]=[]),bc[N].push({name:b,func:k})}}),bc[jd(e,m).name]=[{name:"wrapper",func:e}],me.prototype.clone=p7,me.prototype.reverse=v7,me.prototype.value=g7,W.prototype.at=H9,W.prototype.chain=V9,W.prototype.commit=U9,W.prototype.next=X9,W.prototype.plant=K9,W.prototype.reverse=Z9,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Q9,W.prototype.first=W.prototype.head,Bl&&(W.prototype[Bl]=q9),W}),gc=U$();ss?((ss.exports=gc)._=gc,og._=gc):or._=gc}).call(z1t)})(Lu,Lu.exports)),Lu.exports}var tt=W1t(),$m,G1t=function(){return $m||($m=document.createElement("canvas").getContext("2d")),$m},Y1t=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))};tt.memoize(function(t,n){n===void 0&&(n={});var e=n.fontSize,r=n.fontFamily,i=r===void 0?"sans-serif":r,a=n.fontWeight,o=n.fontStyle,s=n.fontVariant,c=G1t();return c.font=[o,a,s,"".concat(e,"px"),i].join(" "),c.measureText(tt.isString(t)?t:"")},function(t,n){return n===void 0&&(n={}),Y1t([t],tt.values(n),!0).join("")});var H1t=function(t){var n=[/\breact\b/i,/\.jsx/,/children:\s*\[/,/\*\s*[#@]__PURE__\s*\*/],e=/(\w+)?\.createElement\(\s*(['"`])([^'"`]+)\2/g,r=new Set(["g","circle","ellipse","image","rect","line","polyline","polygon","text","path","html","mesh"]);if(n.some(function(a){return a.test(t)}))return!0;var i=t.match(e);return i?i.some(function(a){var o=a.match(/\.createElement\(\s*(['"`])([^'"`]+)\1/);return o&&!r.has(o[2].toLowerCase())}):!1},Hb=function(){return Hb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Hb.apply(this,arguments)};function V1t(t,n){var e=Nu(null),r=Nu(null),i=Nu(null),a=n.onReady,o=n.onEvent,s=function(u,f){var d;u===void 0&&(u="image/png");var h=(d=i.current)===null||d===void 0?void 0:d.getElementsByTagName("canvas")[0];return h==null?void 0:h.toDataURL(u,f)},c=function(u,f,d){u===void 0&&(u="download"),f===void 0&&(f="image/png");var h=u;u.indexOf(".")===-1&&(h="".concat(u,".").concat(f.split("/")[1]));var p=s(f,d),g=document.createElement("a");return g.href=p,g.download=h,document.body.appendChild(g),g.click(),document.body.removeChild(g),g=null,h},l=function(u,f){if(f===void 0&&(f=!1),!!tt.isObject(u)){var d=Object.keys(u),h=f;d.forEach(function(p){var g=u[p];p==="tooltip"&&(h=!0),tt.isFunction(g)&&H1t("".concat(g))?u[p]=function(){for(var y=[],m=0;m<arguments.length;m++)y[m]=arguments[m];return D1t(g.apply(void 0,y),h)}:tt.isArray(g)?g.forEach(function(y){l(y,h)}):tt.isObject(g)?l(g,h):h=f})}};return Qu(function(){e.current&&!tt.isEqual(r.current,n)&&(r.current=tt.cloneDeep(n),l(n),e.current.update(n),e.current.render())},[n]),Qu(function(){if(!i.current)return function(){return null};r.current||(r.current=tt.cloneDeep(n)),l(n);var u=new t(i.current,Hb({},n));u.toDataURL=s,u.downloadImage=c,u.render(),e.current=u,a&&a(u);var f=function(d){o&&o(u,d)};return u.on("*",f),function(){e.current&&(e.current.destroy(),e.current.off("*",f),e.current=void 0)}},[]),{chart:e,container:i}}const U1t={field:"value",size:[1,1],round:!1,padding:0,sort:(t,n)=>n.value-t.value,as:["x","y"],ignoreParentValue:!0},X1t="nodeIndex",Df="childNodeCount",q1t="nodeAncestor",Fm="Invalid field: it must be a string!";function K1t(t,n){const{field:e,fields:r}=t;if(tn(e))return e;if(Cn(e))return console.warn(Fm),e[0];if(console.warn(`${Fm} will try to get fields instead.`),tn(r))return r;if(Cn(r)&&r.length)return r[0];throw new TypeError(Fm)}function Z1t(t){const n=[];if(t&&t.each){let e,r;t.each(i=>{var a,o;i.parent!==e?(e=i.parent,r=0):r+=1;const s=pC((((a=i.ancestors)===null||a===void 0?void 0:a.call(i))||[]).map(c=>n.find(l=>l.name===c.name)||c),({depth:c})=>c>0&&c<i.depth);i[q1t]=s,i[Df]=((o=i.children)===null||o===void 0?void 0:o.length)||0,i[X1t]=r,n.push(i)})}else t&&t.eachNode&&t.eachNode(e=>{n.push(e)});return n}function Q1t(t,n){n=wC({},U1t,n);const e=n.as;if(!Cn(e)||e.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=K1t(n)}catch(c){console.warn(c)}const a=(c=>pot().size(n.size).round(n.round).padding(n.padding)(Rl(c).sum(l=>ef(l.children)?n.ignoreParentValue?0:l[r]-gC(l.children,(u,f)=>u+f[r],0):l[r]).sort(n.sort)))(t),o=e[0],s=e[1];return a.each(c=>{var l,u;c[o]=[c.x0,c.x1,c.x1,c.x0],c[s]=[c.y1,c.y1,c.y0,c.y0],c.name=c.name||((l=c.data)===null||l===void 0?void 0:l.name)||((u=c.data)===null||u===void 0?void 0:u.label),c.data.name=c.name,["x0","x1","y0","y1"].forEach(f=>{e.indexOf(f)===-1&&delete c[f]})}),Z1t(a)}var J1t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const el="sunburst",u_="markType",yj="path",Iv="ancestor-node";function tbt(t){const{data:n,encode:e}=t,{color:r,value:i}=e,o=Q1t(n,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return o.forEach(c=>{var l,u,f,d;if(c.depth===0)return null;let h=c.data.name;const p=[h];let g=Object.assign({},c);for(;g.depth>1;)h=`${(l=g.parent.data)===null||l===void 0?void 0:l.name} / ${h}`,p.unshift((u=g.parent.data)===null||u===void 0?void 0:u.name),g=g.parent;const y=Object.assign(Object.assign(Object.assign({},Ff(c.data,[i])),{[yj]:h,[Iv]:g.data.name}),c);r&&r!==Iv&&(y[r]=c.data[r]||((d=(f=c.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(y)}),s.map(c=>{const l=c.x.slice(0,2),u=[c.y[2],c.y[0]];return l[0]===l[1]&&(u[0]=u[1]=(c.y[2]+c.y[0])/2),Object.assign(Object.assign({},c),{x:l,y:u,fillOpacity:Math.pow(.85,c.depth)})})}const EP={id:el,encode:{x:"x",y:"y",key:yj,color:Iv,value:"value"},axis:{x:!1,y:!1},style:{[u_]:el,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[Df]:Df,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},mj=t=>{const{encode:n,data:e=[]}=t,r=J1t(t,["encode","data"]),i=Object.assign(Object.assign({},r.coordinate),{innerRadius:Math.max(Wt(r,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},EP.encode),n),{value:o}=a,s=tbt({encode:a,data:e});return[at({},EP,Object.assign(Object.assign({type:"rect",data:s,encode:a,tooltip:{title:"path",items:[c=>({name:o,value:c[o]})]}},r),{coordinate:i}))]};mj.props={};var ebt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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,n||[])).next())})};const nbt=t=>t.querySelectorAll(".element").filter(n=>Wt(n,["style",u_])===el);function rbt(t){return Rt(t).select(`.${Vo}`).node()}const ibt={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function abt(t={}){const{breadCrumb:n={},isFixedColor:e=!1}=t,r=at({},ibt,n);return i=>{const{update:a,setState:o,container:s,view:c,options:l}=i,u=s.ownerDocument,f=rbt(s),d=l.marks.find(({id:w})=>w===el),{state:h}=d,p=u.createElement("g");f.appendChild(p);const g=(w,_)=>ebt(this,void 0,void 0,function*(){if(p.removeChildren(),w){const O=u.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});p.appendChild(O);let S="";const E=w==null?void 0:w.split(" / ");let A=r.style.y,M=p.getBBox().width;const T=f.getBBox().width,P=E.map((L,C)=>{const R=u.createElement("text",{style:Object.assign(Object.assign({x:M,text:" / "},r.style),{y:A})});p.appendChild(R),M+=R.getBBox().width,S=`${S}${L} / `;const D=u.createElement("text",{name:S.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:L,x:M,depth:C+1},r.style),{y:A})});return p.appendChild(D),M+=D.getBBox().width,M>T&&(A=p.getBBox().height,M=0,R.attr({x:M,y:A}),M+=R.getBBox().width,D.attr({x:M,y:A}),M+=D.getBBox().width),D});[O,...P].forEach((L,C)=>{if(C===P.length)return;const R=Object.assign({},L.attributes);L.attr("cursor","pointer"),L.addEventListener("mouseenter",()=>{L.attr(r.active)}),L.addEventListener("mouseleave",()=>{L.attr(R)}),L.addEventListener("click",()=>{g(L.name,Wt(L,["style","depth"]))})})}o("drillDown",O=>{const{marks:S}=O,E=S.map(A=>{if(A.id!==el&&A.type!=="rect")return A;const{data:M}=A,T=Object.fromEntries(["color"].map(L=>[L,{domain:c.scale[L].getOptions().domain}])),P=M.filter(L=>{const C=L.path;return e||(L[Iv]=C.split(" / ")[_]),w?new RegExp(`^${w}.+`).test(C):!0});return at({},A,e?{data:P,scale:T}:{data:P})});return Object.assign(Object.assign({},O),{marks:E})}),yield a()}),y=w=>{const _=w.target;if(Wt(_,["style",u_])!==el||Wt(_,["markType"])!=="rect"||!Wt(_,["style",Df]))return;const O=Wt(_,["__data__","key"]),S=Wt(_,["style","depth"]);_.style.cursor="pointer",g(O,S)};f.addEventListener("click",y);const m=Xv(Object.assign(Object.assign({},h.active),h.inactive)),x=()=>{nbt(f).forEach(_=>{const O=Wt(_,["style",Df]);if(Wt(_,["style","cursor"])!=="pointer"&&O){_.style.cursor="pointer";const E=Ff(_.attributes,m);_.addEventListener("mouseenter",()=>{_.attr(h.active)}),_.addEventListener("mouseleave",()=>{_.attr(at(E,h.inactive))})}})};return f.addEventListener("mousemove",x),()=>{p.remove(),f.removeEventListener("click",y),f.removeEventListener("mousemove",x)}}}function obt(){return{"interaction.drillDown":abt,"mark.sunburst":mj}}var Dv=function(){return Dv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Dv.apply(this,arguments)},sbt=e1t(T1t,Dv(Dv({},cj()),obt())),Uu=function(){return Uu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Uu.apply(this,arguments)},De=function(t){var n=lbt(t),e=n.children,r=e===void 0?[]:e,i=tt.omit(n,[].concat(bj,$v.map(function(l){return l.key}))),a=function(l){var u;return(u=pbt.find(function(f){return f.key===l}))===null||u===void 0?void 0:u.callback},o=function(l,u,f){var d=a(u);d?d(l,u,f):l[u]=Do({},l[u],f)},s=function(l){Object.keys(l).forEach(function(u){if(l[u]){var f=$v.find(function(x){return x.key===u});if(f){var d=f.type,h=f.extendedProperties,p=f.defaultShapeConfig,g=p===void 0?{}:p;if(d){var y=l[u].tooltip;r.push(c(Do({},tt.pick(l,h),g,{type:d},l[u],{tooltip:y||!1})))}else if(tt.isArray(l[u])){var m=l[u].some(function(x){return x.type==="text"});l[u].forEach(function(x){r.push(c(Uu(Uu(Uu({},m?{data:[]}:{}),{tooltip:!1}),x)))})}}}})},c=function(l){return s(l),Object.keys(Vb).forEach(function(u){var f=Vb[u];if(!tt.isUndefined(l[u]))if(tt.isObject(f)){var d=f.value,h=f.target,p=d(l[u]);o(l,h,p)}else tt.set(l,f,l[u])}),l};return r.forEach(function(l){var u=Do({},i,l);c(Do(l,u))}),s(n),cbt(n),t},kP=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))},cbt=function(t){var n=t.children,e=n===void 0?[]:n,r=Object.keys(Vb).concat($v.map(function(i){return i.key}));return r.forEach(function(i){delete t[i]}),e.forEach(function(i){Object.keys(i).forEach(function(a){r.includes(a)&&delete i[a]})}),Object.keys(t).forEach(function(i){kP(kP([],bj,!0),Ub.map(function(a){return a.key}),!0).includes(i)||delete t[i]}),t},lbt=function(t){var n=t.options,e=n.children,r=e===void 0?[]:e;return r.forEach(function(i){Object.keys(i).forEach(function(a){tt.isArray(i[a])&&a!=="data"&&(i[a]=i[a].filter(function(o){return!o[xp]}))})}),n},AP=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))},ubt=function(t,n){if(tt.isArray(n))return n},Do=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return tt.mergeWith.apply(void 0,AP(AP([],t,!1),[ubt],!1))};function jv(t){switch(typeof t){case"function":return t;case"string":return function(n){return tt.get(n,[t])};default:return function(){return t}}}var Z0=function(t){var n=t.options,e=n.data;return tt.get(e,"value")||tt.get(e,"type")!=="fetch"&&tt.isPlainObject(e)&&tt.set(n,"data.value",e),t},nl=function(){return nl=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},nl.apply(this,arguments)},fbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},dbt=["renderer","plugins"],bj=["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","plugins"],xp="__transform__",hbt="__skipDelCustomKeys__",So=function(t,n){return tt.isBoolean(n)?{type:t,available:n}:nl({type:t},n)},Vb={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",y1Field:"encode.y1",sizeField:"encode.size",setsField:"encode.sets",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",coordinateType:"coordinate.type",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 So("stackY",t)}},normalize:{target:"transform",value:function(t){return So("normalizeY",t)}},percent:{target:"transform",value:function(t){return So("normalizeY",t)}},group:{target:"transform",value:function(t){return So("dodgeX",t)}},sort:{target:"transform",value:function(t){return So("sortX",t)}},symmetry:{target:"transform",value:function(t){return So("symmetryY",t)}},diff:{target:"transform",value:function(t){return So("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 tt.isBoolean(t)?{connect:t}:t}},transpose:{target:"transpose",value:function(t){return So("transpose",t)}}},Bm=["xField","yField","seriesField","colorField","shapeField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],$v=[{key:"annotations",extendedProperties:[]},{key:"line",type:"line",extendedProperties:Bm},{key:"connector",type:"connector",extendedProperties:[]},{key:"point",type:"point",extendedProperties:Bm,defaultShapeConfig:{shapeField:"circle"}},{key:"area",type:"area",extendedProperties:Bm}],pbt=[{key:"transform",callback:function(t,n,e){var r;t[n]=t[n]||[];var i=e.available,a=i===void 0?!0:i,o=fbt(e,["available"]);if(a)t[n].push(nl((r={},r[xp]=!0,r),o));else{var s=t[n].indexOf(function(c){return c.type===e.type});s!==-1&&t[n].splice(s,1)}}},{key:"labels",callback:function(t,n,e){var r;if(!e||tt.isArray(e)){t[n]=e||[];return}e.text||(e.text=t.yField),t[n]=t[n]||[],t[n].push(nl((r={},r[xp]=!0,r),e))}},{key:"transpose",callback:function(t,n,e){var r;e.available?t.coordinate={transform:[nl((r={},r[xp]=!0,r),e)]}:t.coordinate={}}}],Ub=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],vbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Fv=function(){return Fv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Fv.apply(this,arguments)},gbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},xj=(function(t){vbt(n,t);function n(e){e===void 0&&(e={});var r=e.style,i=gbt(e,["style"]);return t.call(this,Fv({style:Fv({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return n})(Ti),ybt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Bv=function(){return Bv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Bv.apply(this,arguments)},mbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},bbt=(function(t){ybt(n,t);function n(e){e===void 0&&(e={});var r=e.style,i=mbt(e,["style"]);return t.call(this,Bv({style:Bv({fill:"#eee"},r)},i))||this}return n})(cc),xbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),wj=(function(t){xbt(n,t);function n(e,r,i){var a=t.call(this,{style:Do(i,r)})||this;return a.chart=e,a}return n.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},n.prototype.disconnectedCallback=function(){},n.prototype.attributeChangedCallback=function(e){},n.prototype.update=function(e,r){var i;return this.attr(Do({},this.attributes,e||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},n.prototype.clear=function(){this.removeChildren()},n.prototype.getElementsLayout=function(){var e=this.chart.getContext().canvas,r=e.document.getElementsByClassName("element"),i=[];return r.forEach(function(a){var o=a.getBBox(),s=o.x,c=o.y,l=o.width,u=o.height,f=a.__data__;i.push({bbox:o,x:s,y:c,width:l,height:u,key:f.key,data:f})}),i},n.prototype.bindEvents=function(e,r){},n})(Qf),wbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),zv=function(){return zv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},zv.apply(this,arguments)},_bt=(function(t){wbt(n,t);function n(e,r){return t.call(this,e,r,{type:n.tag})||this}return n.prototype.getConversionTagLayout=function(){var e=this.direction==="vertical",r=Array.from(this.getElementsLayout()).sort(function(O,S){return e?O.y-S.y:O.x-S.x}),i=r[0],a=i.x,o=i.y,s=i.height,c=i.width,l=i.data,u=["items",0,"value"],f=tt.get(l,u),d=e?r[1].y-o-s:r[1].x-a-c,h=[],p=this.attributes,g=p.size,y=g===void 0?40:g,m=p.arrowSize,x=m===void 0?20:m,w=p.spacing,_=w===void 0?4:w;return r.forEach(function(O,S){if(S>0){var E=O.x,A=O.y,M=O.height,T=O.width,P=O.data,L=O.key,C=tt.get(P,u),R=y/2;if(e){var D=E+T/2,F=A;h.push({points:[[D+R,F-d+_],[D+R,F-x-_],[D,F-_],[D-R,F-x-_],[D-R,F-d+_]],center:[D,F-d/2],width:d,value:[f,C],key:L})}else{var D=E,F=A+M/2;h.push({points:[[E-d+_,F-R],[E-x-_,F-R],[D-_,F],[E-x-_,F+R],[E-d+_,F+R]],center:[D-d/2,F],width:d,value:[f,C],key:L})}f=C}}),h},n.prototype.render=function(){this.setDirection(),this.drawConversionTag()},n.prototype.setDirection=function(){var e=this.chart.getCoordinate(),r=tt.get(e,"options.transformations"),i="horizontal";r.forEach(function(a){a.includes("transpose")&&(i="vertical")}),this.direction=i},n.prototype.drawConversionTag=function(){var e=this,r=this.getConversionTagLayout(),i=this.attributes,a=i.style,o=i.text,s=o.style,c=o.formatter;r.forEach(function(l){var u=l.points,f=l.center,d=l.value,h=l.key,p=d[0],g=d[1],y=f[0],m=f[1],x=new bbt({style:zv({points:u,fill:"#eee"},a),id:"polygon-".concat(h)}),w=new xj({style:zv({x:y,y:m,text:tt.isFunction(c)?c(p,g):(g/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});e.appendChild(x),e.appendChild(w)})},n.prototype.update=function(){this.clear(),this.drawConversionTag()},n.prototype.destroy=function(){this.clear()},n.tag="ConversionTag",n})(wj),Xb=32,MP=16,TP=48,Obt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Xu=function(){return Xu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Xu.apply(this,arguments)},Sbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},Ebt=(function(t){Obt(n,t);function n(e,r){return t.call(this,e,r,{type:n.tag})||this}return n.prototype.render=function(){this.drawText()},n.prototype.getBidirectionalBarAxisTextLayout=function(){var e=this.attributes.layout,r=e==="vertical",i=this.getElementsLayout(),a=r?tt.uniqBy(i,"x"):tt.uniqBy(i,"y"),o=["title"],s=[],c=this.chart.getContext().views,l=tt.get(c,[0,"layout"]),u=l.width,f=l.height;return a.forEach(function(d){var h=d.x,p=d.y,g=d.height,y=d.width,m=d.data,x=d.key,w=tt.get(m,o);r?s.push({x:h+y/2,y:f,text:w,key:x}):s.push({x:u,y:p+g/2,text:w,key:x})}),tt.uniqBy(s,"text").length!==s.length&&(s=Object.values(tt.groupBy(s,"text")).map(function(d){var h,p=d.reduce(function(g,y){return g+(r?y.x:y.y)},0);return Xu(Xu({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},n.prototype.transformLabelStyle=function(e){var r={},i=/^label[A-Z]/;return Object.keys(e).forEach(function(a){i.test(a)&&(r[a.replace("label","").replace(/^[A-Z]/,function(o){return o.toLowerCase()})]=e[a])}),r},n.prototype.drawText=function(){var e=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,a=i.layout,o=i.labelFormatter,s=Sbt(i,["layout","labelFormatter"]);r.forEach(function(c){var l=c.x,u=c.y,f=c.text,d=c.key,h=new xj({style:Xu({x:l,y:u,text:tt.isFunction(o)?o(f):f,wordWrap:!0,wordWrapWidth:a==="horizontal"?Xb*2:120,maxLines:2,textOverflow:"ellipsis"},e.transformLabelStyle(s)),id:"text-".concat(d)});e.appendChild(h)})},n.prototype.destroy=function(){this.clear()},n.prototype.update=function(){this.destroy(),this.drawText()},n.tag="BidirectionalBarAxisText",n})(wj),kbt={ConversionTag:_bt,BidirectionalBarAxisText:Ebt},Abt=(function(){function t(n,e){this.container=new Map,this.chart=n,this.config=e,this.init()}return t.prototype.init=function(){var n=this;Ub.forEach(function(e){var r,i=e.key,a=e.shape,o=n.config[i];if(o){var s=new kbt[a](n.chart,o),c=n.chart.getContext().canvas;c.appendChild(s),n.container.set(i,s)}else(r=n.container.get(i))===null||r===void 0||r.clear()})},t.prototype.update=function(){var n=this;this.container.size&&Ub.forEach(function(e){var r=e.key,i=n.container.get(r);i==null||i.update()})},t.prototype.destroy=function(){this.container.forEach(function(n){n.destroy()}),this.container.clear()},t})(),Mbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),zc=function(){return zc=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},zc.apply(this,arguments)},PP="data-chart-source-type",Ae=(function(t){Mbt(n,t);function n(e,r){var i=t.call(this)||this;return i.eventListeners=[],i.bindedEvents=!1,i.container=typeof e=="string"?document.getElementById(e):e,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return n.prototype.getChartOptions=function(){return zc(zc({},tt.pick(this.options,dbt)),{container:this.container})},n.prototype.getSpecOptions=function(){return this.type==="base"||this[hbt]?zc(zc({},this.options),this.getChartOptions()):this.options},n.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new sbt(this.getChartOptions()),this.container.setAttribute(PP,"Ant Design Charts")},n.prototype.bindEvents=function(){var e=this;if(this.chart){var r=function(i){i!=null&&i.type&&e.emit(i.type,i)};this.chart.on("*",r),this.eventListeners.push(function(){var i;(i=e.chart)===null||i===void 0||i.off("*",r)})}},n.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},n.prototype.getDefaultOptions=function(){},n.prototype.render=function(){var e=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){e.annotation?e.annotation.update():e.annotation=new Abt(e.chart,e.options),e.bindSizeSensor()})},n.prototype.update=function(e){this.options=this.mergeOption(e)},n.prototype.mergeOption=function(e){return Do({},this.getBaseOptions(),this.getDefaultOptions(),e)},n.prototype.changeData=function(e){this.chart.changeData(e)},n.prototype.changeSize=function(e,r){this.chart.changeSize(e,r)},n.prototype.destroy=function(){this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[],this.annotation&&typeof this.annotation.destroy=="function"&&this.annotation.destroy(),this.annotation=null,this.chart.destroy(),this.off(),this.bindedEvents=!1,this.container.removeAttribute(PP)},n.prototype.execAdaptor=function(){var e=this.getSchemaAdaptor();e({chart:this.chart,options:this.options})},n.prototype.triggerResize=function(){this.chart.forceFit()},n.prototype.bindSizeSensor=function(){var e=this;if(!this.bindedEvents){var r=this.options.autoFit,i=r===void 0?!0:r;if(i){var a=function(){e.annotation&&e.annotation.update()};this.chart.on(Me.AFTER_CHANGE_SIZE,a),this.eventListeners.push(function(){var o;(o=e.chart)===null||o===void 0||o.off(Me.AFTER_CHANGE_SIZE,a)}),this.bindedEvents=!0}}},n})(lw),Tbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Pbt=(function(t){Tbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="base",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return function(e){return e}},n})(Ae),qb=function(){return qb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qb.apply(this,arguments)};function Cbt(t){var n=t.options,e=n.stack,r=n.tooltip,i=n.xField;if(!e)return t;var a=$v.map(function(s){return s.type}).filter(function(s){return!!s}),o=!1;return a.forEach(function(s){n[s]&&(o=!0,tt.set(n,[s,"stack"],qb({y1:"y"},typeof e=="object"?e:{})))}),o&&!tt.isBoolean(r)&&!r&&tt.set(n,"tooltip",{title:i,items:[{channel:"y"}]}),t}function Mn(t){return tt.flow(Cbt)(t)}function Lbt(t){var n=t.options.layout,e=n===void 0?"horizontal":n;return t.options.coordinate.transform=e!=="horizontal"?void 0:[{type:"transpose"}],t}function Nbt(t){Lbt(t);var n=t.options.layout,e=n===void 0?"horizontal":n;return t.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=e!=="horizontal"?void 0:[{type:"transpose"}])}),t}function Rbt(t){return tt.flow(Mn,De)(t)}var Ibt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Dbt=(function(t){Ibt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="area",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Rbt},n})(Ae),Wc=function(){return Wc=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wc.apply(this,arguments)};function _j(t){var n=function(e){var r=e.options;tt.get(r,"children.length")>1&&tt.set(r,"children",[{type:"interval"}]);var i=r.scale,a=r.markBackground,o=r.data,s=r.children,c=r.yField,l=tt.get(i,"y.domain",[]);if(a&&l.length&&tt.isArray(o)){var u="domainMax",f=o.map(function(d){var h;return Wc(Wc({originData:Wc({},d)},tt.omit(d,c)),(h={},h[u]=l[l.length-1],h))});s.unshift(Wc({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},a))}return e};return tt.flow(n,Mn,De)(t)}var jbt=function(){var t=function(n,e){return function(r){var i=n.fill,a=i===void 0?"#2888FF":i,o=n.stroke,s=n.fillOpacity,c=s===void 0?1:s,l=n.strokeOpacity,u=l===void 0?.2:l,f=n.pitch,d=f===void 0?8:f,h=r[0],p=r[1],g=r[2],y=r[3],m=(p[1]-h[1])/2,x=e.document,w=x.createElement("g",{}),_=x.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],[g[0]-d,h[1]+m],y],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u,inset:30}}),O=x.createElement("polygon",{style:{points:[[h[0]-d,h[1]+m],p,g,[g[0]-d,h[1]+m]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u}}),S=x.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],p,[h[0]+d,h[1]+m]],fill:a,fillOpacity:c-.2}});return w.appendChild(_),w.appendChild(O),w.appendChild(S),w}};uj("shape.interval.bar25D",t)},$bt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})();jbt();var Fbt=(function(t){$bt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Bar",e}return n.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return _j},n})(Ae),Bbt=function(){var t=function(n,e){return function(r){var i=n.fill,a=i===void 0?"#2888FF":i,o=n.stroke,s=n.fillOpacity,c=s===void 0?1:s,l=n.strokeOpacity,u=l===void 0?.2:l,f=n.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],g=e.document,y=g.createElement("g",{}),m=g.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u,inset:30}}),x=g.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u}}),w=g.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:a,fillOpacity:c-.2}});return y.appendChild(x),y.appendChild(m),y.appendChild(w),y}};uj("shape.interval.column25D",t)},zbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})();Bbt();var Wbt=(function(t){zbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="column",e}return n.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return _j},n})(Ae);function Gbt(t){var n=function(r){var i=r.options,a=i.children,o=a===void 0?[]:a,s=i.legend;return s&&o.forEach(function(c){if(!tt.get(c,"colorField")){var l=tt.get(c,"yField");tt.set(c,"colorField",function(){return l})}}),r},e=function(r){var i=r.options,a=i.annotations,o=a===void 0?[]:a,s=i.children,c=s===void 0?[]:s,l=i.scale,u=!1;return tt.get(l,"y.key")||c.forEach(function(f,d){if(!tt.get(f,"scale.y.key")){var h="child".concat(d,"Scale");tt.set(f,"scale.y.key",h);var p=f.annotations,g=p===void 0?[]:p;g.length>0&&(tt.set(f,"scale.y.independent",!1),g.forEach(function(y){tt.set(y,"scale.y.key",h)})),!u&&o.length>0&&tt.get(f,"scale.y.independent")===void 0&&(u=!0,tt.set(f,"scale.y.independent",!1),o.forEach(function(y){tt.set(y,"scale.y.key",h)}))}}),r};return tt.flow(n,e,Mn,De)(t)}var Ybt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),CP=(function(t){Ybt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="DualAxes",e}return n.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Gbt},n})(Ae);function Hbt(t){var n=function(a){var o=a.options,s=o.xField,c=o.colorField;return c||tt.set(o,"colorField",s),a},e=function(a){var o=a.options,s=o.compareField,c=o.transform,l=o.isTransposed,u=l===void 0?!0:l,f=o.coordinate;return c||(s?tt.set(o,"transform",[]):tt.set(o,"transform",[{type:"symmetryY"}])),!f&&u&&tt.set(o,"coordinate",{transform:[{type:"transpose"}]}),a},r=function(a){var o=a.options,s=o.compareField,c=o.seriesField,l=o.data,u=o.children,f=o.yField,d=o.isTransposed,h=d===void 0?!0:d;if(s||c){var p=Object.values(tt.groupBy(l,function(g){return g[s||c]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(g){return-g[f]}}),delete o.compareField,delete o.data}return c&&(tt.set(o,"type","spaceFlex"),tt.set(o,"ratio",[1,1]),tt.set(o,"direction",h?"row":"col"),delete o.seriesField),a},i=function(a){var o=a.options,s=o.tooltip,c=o.xField,l=o.yField;return s||tt.set(o,"tooltip",{title:!1,items:[function(u){return{name:u[c],value:u[l]}}]}),a};return tt.flow(n,e,r,i,Mn,De)(t)}var Vbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Ubt=(function(t){Vbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="column",e}return n.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Hbt},n})(Ae);function Xbt(t){return tt.flow(Mn,De)(t)}var qbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Kbt=(function(t){qbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="line",e}return n.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Xbt},n})(Ae),yi=function(){return yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},yi.apply(this,arguments)};function Zbt(t){var n=function(e){var r=e.options,i=r.angleField,a=r.data,o=r.label,s=r.tooltip,c=r.colorField,l=jv(c);if(tt.isArray(a)&&a.length>0){var u=a.reduce(function(h,p){return h+p[i]},0);if(u===0){var f=a.map(function(h){var p;return yi(yi({},h),(p={},p[i]=1,p))});if(tt.set(r,"data",f),o){var d=c===tt.get(o,"text");tt.set(r,"label",yi(yi({},o),d?{}:{formatter:function(){return 0}}))}s!==!1&&(tt.isFunction(s)?tt.set(r,"tooltip",function(h,p,g){var y;return s(yi(yi({},h),(y={},y[i]=0,y)),p,g.map(function(m){var x;return yi(yi({},m),(x={},x[i]=0,x))}))}):tt.set(r,"tooltip",yi(yi({},s),{items:[function(h,p,g){return{name:l(h,p,g),value:0}}]})))}else tt.set(r,"tooltip",s),tt.set(r,"label",o)}return e};return tt.flow(n,De)(t)}var Qbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Jbt=(function(t){Qbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="pie",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Zbt},n})(Ae);function txt(t){return tt.flow(Mn,De)(t)}var ext=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),nxt=(function(t){ext(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="scatter",e}return n.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return txt},n})(Ae);function rxt(t){var n=function(e){return tt.set(e,"options.coordinate",{type:tt.get(e,"options.coordinateType","polar")}),e};return tt.flow(n,De)(t)}var ixt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),axt=(function(t){ixt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="radar",e}return n.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return rxt},n})(Ae);function oxt(t){var n=function(e){var r=e.options,i=r.yField,a=r.children,o=r.style,s=o===void 0?{}:o,c=r.lineStyle,l=c===void 0?{}:c,u=i[0],f=i[1],d=i[2],h=i[3];return tt.set(a,[0,"yField"],[d,h]),tt.set(a,[0,"style"],l),tt.set(a,[1,"yField"],[u,f]),tt.set(a,[1,"style"],s),delete r.yField,delete r.lineStyle,delete r.style,e};return tt.flow(n,De)(t)}var sxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),cxt=["#26a69a","#999999","#ef5350"],lxt=(function(t){sxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="stock",e}return n.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:cxt},y:{nice:!0}},children:[{type:"link"},{type:"interval"}],axis:{x:{title:!1,grid:!1},y:{title:!1,grid:!0,gridLineDash:null}},animate:{enter:{type:"scaleInY"}},interaction:{tooltip:{shared:!0,marker:!1,groupName:!1,crosshairs:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return oxt},n})(Ae);function uxt(t){return tt.flow(Mn,De)(t)}var fxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),dxt=(function(t){fxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyLine",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],padding:0,margin:0,tooltip:!1}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return uxt},n})(Ae);function hxt(t){return tt.flow(Mn,De)(t)}var pxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),vxt=(function(t){pxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyArea",e}return n.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],padding:0,margin:0,tooltip:!1}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return hxt},n})(Ae);function gxt(t){return tt.flow(Mn,De)(t)}var yxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),mxt=(function(t){yxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyColumn",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],padding:0,margin:0,tooltip:!1}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return gxt},n})(Ae),Kb=function(){return Kb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Kb.apply(this,arguments)};function bxt(t){var n=function(e){var r=e.options,i=r.percent,a=r.color,o=a===void 0?[]:a;if(!i)return e;var s={scale:{color:{range:o.length?o:[]}},data:[1,i]};return Object.assign(r,Kb({},s)),e};return tt.flow(n,Mn,De)(t)}var xxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),wxt=(function(t){xxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyProgress",e}return n.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(e){return e},color:function(e,r){return r}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return bxt},n})(Ae),Zb=function(){return Zb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zb.apply(this,arguments)};function _xt(t){var n=function(r){var i=r.options,a=i.radius,o=a===void 0?.8:a;return tt.set(r,"options.coordinate.innerRadius",o),r},e=function(r){var i=r.options,a=i.percent,o=i.color,s=o===void 0?[]:o;if(!a)return r;var c={scale:{color:{range:s.length?s:[]}},data:[1,a]};return Object.assign(i,Zb({},c)),r};return tt.flow(n,e,Mn,De)(t)}var Oxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Sxt=(function(t){Oxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyRing",e}return n.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,coordinate:{type:"theta"},animate:{enter:{type:"waveIn"}},interaction:{tooltip:!1},tooltip:!1,children:[{type:"interval",axis:!1,legend:!1,encode:{y:function(e){return e},color:function(e,r){return r}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return _xt},n})(Ae);function Ext(t){return tt.flow(De)(t)}var kxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Axt=(function(t){kxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="rose",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Ext},n})(Ae),zm="__start__",Eo="__end__",Qb="__waterfall_value__",Wv=function(){return Wv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wv.apply(this,arguments)},Mxt=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))};function Txt(t){var n=function(i){var a=i.options,o=a.data,s=o===void 0?[]:o,c=a.yField;return s.length&&(s.reduce(function(l,u,f){var d,h=jv(c),p=h(u,f,s);if(f===0||u.isTotal)u[zm]=0,u[Eo]=p,u[Qb]=p;else{var g=(d=l[Eo])!==null&&d!==void 0?d:h(l,f,s);u[zm]=g,u[Eo]=g+p,u[Qb]=l[Eo]}return u},[]),Object.assign(a,{yField:[zm,Eo]})),i},e=function(i){var a=i.options,o=a.data,s=o===void 0?[]:o,c=a.xField,l=a.children,u=a.linkStyle,f=Mxt([],s,!0);return f.reduce(function(d,h,p){return p>0&&(h.x1=d[c],h.x2=h[c],h.y1=d[Eo]),h},[]),f.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:f,style:Wv({stroke:"#697474"},u),label:!1,tooltip:!1}),i},r=function(i){var a=i.options,o=a.data,s=o===void 0?[]:o,c=a.connector;return c&&tt.set(a,"connector",Wv({xField:c.reverse?["x2","x1"]:["x1","x2"],yField:c.reverse?["y2","y1"]:["y1","y2"],data:[{x1:s[0].x,y1:s[0][Eo],x2:s[s.length-1].x,y2:s[s.length-1][Eo]}]},tt.isObject(c)?c:{})),i};return tt.flow(n,e,Mn,r,De)(t)}var Pxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Cxt=(function(t){Pxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="waterfall",e}return n.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:Qb,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Txt},n})(Ae);function Lxt(t){var n=function(e){var r=e.options,i=r.data,a=r.binNumber,o=r.binWidth,s=r.children,c=r.channel,l=c===void 0?"count":c,u=tt.get(s,"[0].transform[0]",{});return tt.isNumber(o)?(tt.assign(u,{thresholds:tt.ceil(tt.divide(i.length,o)),y:l}),e):(tt.isNumber(a)&&tt.assign(u,{thresholds:a,y:l}),e)};return tt.flow(n,Mn,De)(t)}var Nxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Rxt=(function(t){Nxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Histogram",e}return n.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Lxt},n})(Ae);function Ixt(t){var n=function(r){var i=r.options,a=i.tooltip,o=a===void 0?{}:a,s=i.colorField,c=i.sizeField;return o&&!o.field&&(o.field=s||c),r},e=function(r){var i=r.options,a=i.mark,o=i.children;return a&&(o[0].type=a),r};return tt.flow(n,e,Mn,De)(t)}var Dxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),jxt=(function(t){Dxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="heatmap",e}return n.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Ixt},n})(Ae);function $xt(t){var n=function(e){var r=e.options.boxType,i=r===void 0?"box":r;return e.options.children[0].type=i,e};return tt.flow(n,Mn,De)(t)}var Fxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Bxt=(function(t){Fxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="box",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return $xt},n})(Ae),zxt=function(t){var n=t.options,e=n.data,r=[{type:"custom",callback:function(a){return{links:a}}}];if(tt.isArray(e))e.length>0?tt.set(n,"data",{value:e,transform:r}):delete n.children;else if(tt.get(e,"type")==="fetch"&&tt.get(e,"value")){var i=tt.get(e,"transform");tt.isArray(i)||tt.set(e,"transform",r)}return t};function Wxt(t){return tt.flow(Z0,zxt,Mn,De)(t)}var Gxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Yxt=(function(t){Gxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="sankey",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Wxt},n})(Ae),Is=function(){return Is=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Is.apply(this,arguments)},wp=["#f0efff","#5B8FF9","#3D76DD"];function Wm(t,n,e,r){r===void 0&&(r=!0);var i=0,a=!1,o=tt.map(t,function(s){var c,l,u=tt.get(s,[n]);if(tt.isNil(u))return[];if(tt.isString(u)){var f=Number(u);return isNaN(f)?[]:(c={},c[e]=s[e],c[n]=f,c)}return tt.isArray(u)?(a=!0,i=Math.max(i,u.length),tt.map(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[e]=s[e],p[n]=d,p.index=h,p})):(i=Math.max(1,i),l={},l[e]=s[e],l[n]=u,l)}).flat();return a?[o.map(function(s){return Is({index:0},s)}),i]:[o,i]}function Gm(t,n){return new Array(t).fill("").map(function(e,r){return tt.isArray(n)?n[r%n.length]:n})}function Hxt(t){var n=function(i){var a=i.options,o=a.color,s=a.rangeField,c=s===void 0?"ranges":s,l=a.measureField,u=l===void 0?"measures":l,f=a.targetField,d=f===void 0?"targets":f,h=a.xField,p=h===void 0?"title":h,g=a.mapField,y=a.data,m=Wm(y,c,p),x=m[0],w=m[1],_=Wm(y,u,p,!1),O=_[0],S=_[1],E=Wm(y,d,p,!1),A=E[0],M=E[1],T=tt.get(o,[c],wp[0]),P=tt.get(o,[u],wp[1]),L=tt.get(o,[d],wp[2]),C=[Gm(w,T),Gm(S,P),Gm(M,L)].flat();return a.children=tt.map(a.children,function(R,D){var F=[x,O,A][D],j=[c,u,d][D];return Is(Is({},R),{data:F,encode:Is(Is({},R.encode||{}),{x:p,y:j,color:function(I){var $=I.index,z=tt.isNumber($)?"".concat(j,"_").concat($):j;return g?tt.get(g,[j,$],z):z}})})}),tt.set(a,"scale.color.range",C),tt.get(a,"legend.color")&&tt.isNil(tt.get(a,"legend.color.itemMarker"))&&(a.legend.color.itemMarker=function(R){return g&&tt.includes(g==null?void 0:g[d],R)||(R==null?void 0:R.replace(/\_\d$/,""))===d?"line":"square"}),i},e=function(i){var a=i.options.transpose,o=a===void 0?!0:a;return o||tt.set(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var a=i.options,o=a.range,s=o===void 0?{}:o,c=a.measure,l=c===void 0?{}:c,u=a.target,f=u===void 0?{}:u,d=a.children;return a.children=[s,l,f].map(function(h,p){return Do(d[p],h)}),i};return tt.flow(n,e,r,Nbt,De)(t)}var Vxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Uxt=(function(t){Vxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="bullet",e}return n.getDefaultOptions=function(){return{type:"view",scale:{color:{range:wp}},legend:{color:{itemMarker:function(e){return e==="targets"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30,zIndex:-2},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20,zIndex:-1},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Hxt},n})(Ae);function Xxt(t){var n=function(e){var r=e.options.data;return e.options.data={value:r},e};return tt.flow(n,Mn,De)(t)}var qxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Kxt=(function(t){qxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Gauge",e}return n.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Xxt},n})(Ae);function Zxt(t){var n=function(e){var r=e.options.percent;return tt.isNumber(r)&&(tt.set(e,"options.data",r),delete e.options.percent),e};return tt.flow(n,Mn,De)(t)}var Qxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Jxt=(function(t){Qxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Liquid",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Zxt},n})(Ae);function t2t(t){return tt.flow(Mn,De)(t)}var e2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),n2t=(function(t){e2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="WordCloud",e}return n.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return t2t},n})(Ae);function r2t(t){return tt.flow(Z0,Mn,De)(t)}var i2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),a2t=(function(t){i2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="treemap",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return r2t},n})(Ae),Mo=function(){return Mo=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Mo.apply(this,arguments)},o2t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};function s2t(t){var n=function(i){var a=i.options,o=a.startAngle,s=a.maxAngle,c=a.coordinate,l=tt.isNumber(o)?o/(2*Math.PI)*360:-90,u=tt.isNumber(s)?(Number(s)+l)/180*Math.PI:Math.PI;return tt.set(i,["options","coordinate"],Mo(Mo({},c),{endAngle:u,startAngle:o??-Math.PI/2})),i},e=function(i){var a=i.options,o=a.tooltip,s=a.xField,c=a.yField,l=jv(s),u=jv(c);return o||tt.set(a,"tooltip",{title:!1,items:[function(f,d,h){return{name:l(f,d,h),value:u(f,d,h)}}]}),i},r=function(i){var a=i.options,o=a.markBackground,s=a.children,c=a.scale,l=a.coordinate,u=a.xField,f=tt.get(c,"y.domain",[]);if(o){var d=o.style,h=o2t(o,["style"]);s.unshift(Mo({type:"interval",xField:u,yField:f[f.length-1],style:Mo({fillOpacity:.4,fill:"#e0e4ee"},d),coordinate:Mo(Mo({},l),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},h))}return i};return tt.flow(n,e,r,Mn,De)(t)}var c2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),l2t=(function(t){c2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="radial",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"radial",innerRadius:.1,outerRadius:1,endAngle:Math.PI},animate:{enter:{type:"waveIn",duration:800}},axis:{y:{nice:!0,labelAutoHide:!0,labelAutoRotate:!1},x:{title:!1,nice:!0,labelAutoRotate:!1,labelAutoHide:{type:"equidistance",cfg:{minGap:6}}}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return s2t},n})(Ae);function u2t(t){return tt.flow(Z0,De)(t)}var f2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),d2t=(function(t){f2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="CirclePacking",e}return n.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack",encode:{color:"depth"}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return u2t},n})(Ae),Gv=function(){return Gv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gv.apply(this,arguments)};function Ym(t,n){return t||n}function h2t(t){var n=function(e){var r=e.options,i=r.xField,a=r.yField,o=r.colorField,s=r.seriesField,c=r.children,l=c==null?void 0:c.map(function(u){return Gv(Gv({},u),{xField:i,yField:a,seriesField:Ym(s,o),colorField:Ym(o,s),data:u.type==="density"?{transform:[{type:"kde",field:a,groupBy:[i,Ym(s,o)]}]}:u.data})}).filter(function(u){return r.box||u.type==="density"});return tt.set(r,"children",l),delete r.box,e};return tt.flow(n,Mn,De)(t)}var p2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),v2t=(function(t){p2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="violin",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"density",sizeField:"size",tooltip:!1},{type:"boxplot",shapeField:"violin",style:{opacity:.5,point:!1}}],animate:{enter:{type:"fadeIn"}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return h2t},n})(Ae),qu=function(){return qu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qu.apply(this,arguments)},g2t=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))};function y2t(t){var n=function(a){var o=a.options,s=o.yField,c=o.children;return c.forEach(function(l,u){tt.set(l,"yField",s[u])}),a},e=function(a){var o=a.options,s=o.yField,c=o.children,l=o.data;if(tt.isPlainObject(l))return a;var u=tt.isArray(tt.get(l,[0]))?l:[l,l];return c.forEach(function(f,d){tt.set(f,"data",g2t([],u[d].map(function(h){return qu({groupKey:s[d]},h)}),!0))}),a},r=function(a){var o=a.options,s=o.yField,c=s[0],l=s[1],u=o.tooltip;return u||tt.set(o,"tooltip",{items:[{field:c,value:c},{field:l,value:l}]}),a},i=function(a){var o=a.options,s=o.children,c=o.layout,l=o.coordinate.transform,u=o.paddingBottom,f=u===void 0?TP:u,d=o.paddingLeft,h=d===void 0?TP:d,p=o.axis;tt.set(o,"axisText",qu(qu({},(p==null?void 0:p.x)||{}),{layout:c}));var g=s[0],y=s[1];if(c==="vertical")tt.set(o,"direction","col"),tt.set(o,"paddingLeft",h),tt.set(o,"coordinate.transform",l.filter(function(O){return O.type!=="transpose"})),tt.set(g,"paddingBottom",MP),tt.set(y,"paddingTop",MP),tt.set(y,"axis.x.position","top"),tt.set(y,"scale.y.range",[0,1]);else{tt.set(o,"paddingBottom",f),tt.set(g,"scale.y.range",[0,1]);var m=g.paddingRight,x=m===void 0?Xb:m,w=y.paddingLeft,_=w===void 0?Xb:w;tt.set(g,"paddingRight",x),tt.set(g,"axis.x.position","right"),tt.set(y,"paddingLeft",_)}return a};return tt.flow(n,e,r,i,Mn,De)(t)}var m2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),b2t=(function(t){m2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="BidirectionalBar",e}return n.getDefaultOptions=function(){return{type:"spaceFlex",coordinate:{transform:[{type:"transpose"}]},scale:{y:{nice:!0}},direction:"row",layout:"horizontal",legend:!1,axis:{y:{title:!1},x:{title:!1,label:!1}},children:[{type:"interval"},{type:"interval"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return y2t},n})(Ae),jo;(function(t){t.color="key",t.d="path"})(jo||(jo={}));function x2t(t){var n=function(e){var r=e.options,i=r.data,a=r.setsField,o=r.sizeField;return tt.isArray(i)&&(tt.set(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:a,size:o,as:[jo.color,jo.d]}]}),tt.set(r,"colorField",jo.color),tt.set(r,["children","0","encode","d"],jo.d)),e};return tt.flow(n,De)(t)}var w2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),_2t=(function(t){w2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="venn",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:jo.color,d:jo.d}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return x2t},n})(Ae);function O2t(t){return tt.flow(Z0,De)(t)}var S2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),E2t=(function(t){S2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Sunburst",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return O2t},n})(Ae),k2t={Base:Pbt,Line:Kbt,Column:Wbt,Pie:Jbt,Area:Dbt,Bar:Fbt,DualAxes:CP,Funnel:Ubt,Scatter:nxt,Radar:axt,Rose:Axt,Stock:lxt,TinyLine:dxt,TinyArea:vxt,TinyColumn:mxt,TinyProgress:wxt,TinyRing:Sxt,Waterfall:Cxt,Histogram:Rxt,Heatmap:jxt,Box:Bxt,Sankey:Yxt,Bullet:Uxt,Gauge:Kxt,Liquid:Jxt,WordCloud:n2t,Treemap:a2t,RadialBar:l2t,CirclePacking:d2t,Violin:v2t,BidirectionalBar:b2t,Venn:_2t,Mix:CP,Sunburst:E2t},Ku=function(){return Ku=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ku.apply(this,arguments)},LP=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},A2t=IP(function(t,n){var e=t.chartType,r=e===void 0?"Base":e,i=LP(t,["chartType"]),a=i.containerStyle,o=a===void 0?{height:"inherit",flex:1}:a,s=i.containerAttributes,c=s===void 0?{}:s,l=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=i.onReady,p=LP(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate","onReady"]),g=V1t(k2t[r],Ku(Ku({},p),{onReady:function(m){n&&(typeof n=="function"?n(m):n.current=m),h==null||h(m)}})),y=g.container;return Bn.createElement(B1t,{errorTemplate:d},u&&Bn.createElement($1t,{loadingTemplate:f,theme:i.theme,loading:u}),Bn.createElement("div",Ku({className:l,style:o,ref:y},c)))}),M2t=NP({});function T2t(){return RP(M2t)}var Jb=function(){return Jb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Jb.apply(this,arguments)};function P2t(t){var n=t.yField,e=t.data,r=tt.isArray(e)&&e.length>0&&tt.isString(n)&&!tt.get(t,"scale.y.domainMax"),i=Object.isFrozen(t)?Jb({},t):t;return r&&e.reduce(function(a,o){return a+o[n]},0)===0?tt.set(i,"scale.y.domainMax",1):r&&e.reduce(function(a,o){return a+o[n]},0)!==0&&tt.set(i,"scale.y.domainMax",void 0),i}var Zu=function(){return Zu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zu.apply(this,arguments)};function C2t(t){return t.charAt(0).toLowerCase()+t.slice(1),IP(function(n,e){var r,i,a=T2t(),o=_p(function(){return t.charAt(0).toLowerCase()+t.slice(1)},[t]),s=tt.flow([P2t])(n),c=Zu(Zu({},(r=a==null?void 0:a.common)!==null&&r!==void 0?r:{}),(i=a==null?void 0:a[o])!==null&&i!==void 0?i:{});return Bn.createElement(A2t,Zu({},c,s,{chartType:t,ref:e}))})}var L2t=C2t("Line");const N2t=({statistics:t,viewMode:n})=>{const e=Nu(null),[r,i]=oa({width:500,height:0}),a=_p(()=>{const c=(t==null?void 0:t.operateGroupDetail)??[],l=new Set;for(const u of c)(u==null?void 0:u.date)!=null&&l.add(String(u.date));return l.size},[t==null?void 0:t.operateGroupDetail]),o=a>8,s=_p(()=>!o||!a?1:Math.min(1,8/a),[o,a]);return Qu(()=>{const c=()=>{if(e.current){const u=window.innerHeight,f=e.current.getBoundingClientRect().top;i({height:u-f-180-80,width:e.current.getBoundingClientRect().width-56})}};c(),window.addEventListener("resize",c);const l=setTimeout(c,100);return()=>{window.removeEventListener("resize",c),clearTimeout(l)}},[n]),Zn("div",{className:"space-y-6",ref:e,children:[Zn(oG,{gutter:16,children:[It(fy,{span:8,children:It(Qd,{children:It(dy,{title:"\u603B\u64CD\u4F5C\u6B21\u6570",value:t==null?void 0:t.totalCount,suffix:"\u6B21"})})}),It(fy,{span:8,children:It(Qd,{children:It(dy,{title:"\u6210\u529F\u7387",value:t!=null&&t.totalCount?((t==null?void 0:t.totalCount)-(t==null?void 0:t.totalFailCount))/(t==null?void 0:t.totalCount)*100:0,precision:2,suffix:"%",valueStyle:{color:"#3f8600"}})})}),It(fy,{span:8,children:It(Qd,{children:It(dy,{title:"\u5931\u8D25\u7387",value:t!=null&&t.totalCount?(t==null?void 0:t.totalFailCount)/(t==null?void 0:t.totalCount)*100:0,precision:2,suffix:"%",valueStyle:{color:"#cf1322"}})})})]}),It(Qd,{title:Zn("div",{className:"flex items-center gap-2",children:[It("div",{...nC("GROUP"),className:"w-8 h-8",children:It(jP,{...rp(),className:"text-white"})}),It("span",{children:"\u64CD\u4F5C\u8D8B\u52BF"}),Zn("span",{className:"text-gray-500 text-xs",children:["\u539F\u59CB\u8BB0\u5F55\u6570\u636E(",t==null?void 0:t.totalCount,"\u6761)"]})]}),styles:{body:{minHeight:`${r==null?void 0:r.height}px`}},children:It(L2t,{data:t==null?void 0:t.operateGroupDetail,xField:"date",yField:"count",seriesField:"name",height:(r==null?void 0:r.height)-60,width:(r==null?void 0:r.width)||700,point:{size:4,shape:"circle",style:{fillOpacity:1}},xAxis:{type:"cat",tickCount:o?8:Math.max(2,a||0),label:{autoRotate:!0,autoHide:!1,autoEllipsis:!0,style:{fontSize:12}}},yAxis:{label:{formatter:c=>`${c}\u6B21`,style:{fontSize:12}}},legend:{position:"top",itemName:{style:{fontSize:12}}},smooth:!0,animation:{appear:{animation:"wave-in",duration:1e3}},slider:o?{start:0,end:s}:void 0,scrollbar:o?{x:{}}:void 0})})]})},{RangePicker:R2t}=sG,I2t=Yv.div.attrs({className:"oprecords-wrapper"})`
321
+ }`;var ce=jS(function(){return Ce(G,Nt+"return "+gt).apply(e,X)});if(ce.source=gt,ty(ce))throw ce;return ce}function cW(v){return Fe(v).toLowerCase()}function lW(v){return Fe(v).toUpperCase()}function uW(v,b,k){if(v=Fe(v),v&&(k||b===e))return V_(v);if(!v||!(b=qr(b)))return v;var N=ji(v),B=ji(b),G=U_(N,B),X=X_(N,B)+1;return _o(N,G,X).join("")}function fW(v,b,k){if(v=Fe(v),v&&(k||b===e))return v.slice(0,K_(v)+1);if(!v||!(b=qr(b)))return v;var N=ji(v),B=X_(N,ji(b))+1;return _o(N,0,B).join("")}function dW(v,b,k){if(v=Fe(v),v&&(k||b===e))return v.replace(tg,"");if(!v||!(b=qr(b)))return v;var N=ji(v),B=U_(N,ji(b));return _o(N,B).join("")}function hW(v,b){var k=T,N=P;if(gn(b)){var B="separator"in b?b.separator:B;k="length"in b?oe(b.length):k,N="omission"in b?qr(b.omission):N}v=Fe(v);var G=v.length;if(pc(v)){var X=ji(v);G=X.length}if(k>=G)return v;var K=k-vc(N);if(K<1)return N;var nt=X?_o(X,0,K).join(""):v.slice(0,K);if(B===e)return nt+N;if(X&&(K+=nt.length-K),ey(B)){if(v.slice(K).search(B)){var lt,ft=nt;for(B.global||(B=yg(B.source,Fe(p_.exec(B))+"g")),B.lastIndex=0;lt=B.exec(ft);)var gt=lt.index;nt=nt.slice(0,gt===e?K:gt)}}else if(v.indexOf(qr(B),K)!=K){var Et=nt.lastIndexOf(B);Et>-1&&(nt=nt.slice(0,Et))}return nt+N}function pW(v){return v=Fe(v),v&&Ej.test(v)?v.replace(f_,G$):v}var vW=_c(function(v,b,k){return v+(k?" ":"")+b.toUpperCase()}),iy=$O("toUpperCase");function DS(v,b,k){return v=Fe(v),b=k?e:b,b===e?$$(v)?V$(v):T$(v):v.match(b)||[]}var jS=de(function(v,b){try{return Ur(v,e,b)}catch(k){return ty(k)?k:new qt(k)}}),gW=Da(function(v,b){return oi(b,function(k){k=ea(k),Ra(v,k,Qg(v[k],v))}),v});function yW(v){var b=v==null?0:v.length,k=Ft();return v=b?hn(v,function(N){if(typeof N[1]!="function")throw new si(o);return[k(N[0]),N[1]]}):[],de(function(N){for(var B=-1;++B<b;){var G=v[B];if(Ur(G[0],this,N))return Ur(G[1],this,N)}})}function mW(v){return G7(li(v,f))}function ay(v){return function(){return v}}function bW(v,b){return v==null||v!==v?b:v}var xW=BO(),wW=BO(!0);function jr(v){return v}function oy(v){return gO(typeof v=="function"?v:li(v,f))}function _W(v){return mO(li(v,f))}function OW(v,b){return bO(v,li(b,f))}var SW=de(function(v,b){return function(k){return Ul(k,v,b)}}),EW=de(function(v,b){return function(k){return Ul(v,k,b)}});function sy(v,b,k){var N=tr(b),B=Ld(b,N);k==null&&!(gn(b)&&(B.length||!N.length))&&(k=b,b=v,v=this,B=Ld(b,tr(b)));var G=!(gn(k)&&"chain"in k)||!!k.chain,X=$a(v);return oi(B,function(K){var nt=b[K];v[K]=nt,X&&(v.prototype[K]=function(){var lt=this.__chain__;if(G||lt){var ft=v(this.__wrapped__),gt=ft.__actions__=Rr(this.__actions__);return gt.push({func:nt,args:arguments,thisArg:v}),ft.__chain__=lt,ft}return nt.apply(v,go([this.value()],arguments))})}),v}function kW(){return or._===this&&(or._=Q$),this}function cy(){}function AW(v){return v=oe(v),de(function(b){return xO(b,v)})}var MW=Fg(hn),TW=Fg(z_),PW=Fg(ug);function $S(v){return Vg(v)?fg(ea(v)):oF(v)}function CW(v){return function(b){return v==null?e:ds(v,b)}}var LW=WO(),NW=WO(!0);function ly(){return[]}function uy(){return!1}function RW(){return{}}function IW(){return""}function DW(){return!0}function jW(v,b){if(v=oe(v),v<1||v>I)return[];var k=Y,N=hr(v,Y);b=Ft(b),v-=Y;for(var B=pg(N,b);++k<v;)b(k);return B}function $W(v){return Qt(v)?hn(v,ea):Kr(v)?[v]:Rr(iS(Fe(v)))}function FW(v){var b=++K$;return Fe(v)+b}var BW=$d(function(v,b){return v+b},0),zW=Bg("ceil"),WW=$d(function(v,b){return v/b},1),GW=Bg("floor");function YW(v){return v&&v.length?Cd(v,jr,Eg):e}function HW(v,b){return v&&v.length?Cd(v,Ft(b,2),Eg):e}function VW(v){return Y_(v,jr)}function UW(v,b){return Y_(v,Ft(b,2))}function XW(v){return v&&v.length?Cd(v,jr,Tg):e}function qW(v,b){return v&&v.length?Cd(v,Ft(b,2),Tg):e}var KW=$d(function(v,b){return v*b},1),ZW=Bg("round"),QW=$d(function(v,b){return v-b},0);function JW(v){return v&&v.length?hg(v,jr):0}function tG(v,b){return v&&v.length?hg(v,Ft(b,2)):0}return W.after=_B,W.ary=vS,W.assign=lz,W.assignIn=TS,W.assignInWith=Zd,W.assignWith=uz,W.at=fz,W.before=gS,W.bind=Qg,W.bindAll=gW,W.bindKey=yS,W.castArray=RB,W.chain=dS,W.chunk=GF,W.compact=YF,W.concat=HF,W.cond=yW,W.conforms=mW,W.constant=ay,W.countBy=J9,W.create=dz,W.curry=mS,W.curryRight=bS,W.debounce=xS,W.defaults=hz,W.defaultsDeep=pz,W.defer=OB,W.delay=SB,W.difference=VF,W.differenceBy=UF,W.differenceWith=XF,W.drop=qF,W.dropRight=KF,W.dropRightWhile=ZF,W.dropWhile=QF,W.fill=JF,W.filter=eB,W.flatMap=iB,W.flatMapDeep=aB,W.flatMapDepth=oB,W.flatten=cS,W.flattenDeep=t9,W.flattenDepth=e9,W.flip=EB,W.flow=xW,W.flowRight=wW,W.fromPairs=n9,W.functions=wz,W.functionsIn=_z,W.groupBy=sB,W.initial=i9,W.intersection=a9,W.intersectionBy=o9,W.intersectionWith=s9,W.invert=Sz,W.invertBy=Ez,W.invokeMap=lB,W.iteratee=oy,W.keyBy=uB,W.keys=tr,W.keysIn=Dr,W.map=Hd,W.mapKeys=Az,W.mapValues=Mz,W.matches=_W,W.matchesProperty=OW,W.memoize=Ud,W.merge=Tz,W.mergeWith=PS,W.method=SW,W.methodOf=EW,W.mixin=sy,W.negate=Xd,W.nthArg=AW,W.omit=Pz,W.omitBy=Cz,W.once=kB,W.orderBy=fB,W.over=MW,W.overArgs=AB,W.overEvery=TW,W.overSome=PW,W.partial=Jg,W.partialRight=wS,W.partition=dB,W.pick=Lz,W.pickBy=CS,W.property=$S,W.propertyOf=CW,W.pull=f9,W.pullAll=uS,W.pullAllBy=d9,W.pullAllWith=h9,W.pullAt=p9,W.range=LW,W.rangeRight=NW,W.rearg=MB,W.reject=vB,W.remove=v9,W.rest=TB,W.reverse=Kg,W.sampleSize=yB,W.set=Rz,W.setWith=Iz,W.shuffle=mB,W.slice=g9,W.sortBy=wB,W.sortedUniq=O9,W.sortedUniqBy=S9,W.split=iW,W.spread=PB,W.tail=E9,W.take=k9,W.takeRight=A9,W.takeRightWhile=M9,W.takeWhile=T9,W.tap=Y9,W.throttle=CB,W.thru=Yd,W.toArray=kS,W.toPairs=LS,W.toPairsIn=NS,W.toPath=$W,W.toPlainObject=MS,W.transform=Dz,W.unary=LB,W.union=P9,W.unionBy=C9,W.unionWith=L9,W.uniq=N9,W.uniqBy=R9,W.uniqWith=I9,W.unset=jz,W.unzip=Zg,W.unzipWith=fS,W.update=$z,W.updateWith=Fz,W.values=Ec,W.valuesIn=Bz,W.without=D9,W.words=DS,W.wrap=NB,W.xor=j9,W.xorBy=$9,W.xorWith=F9,W.zip=B9,W.zipObject=z9,W.zipObjectDeep=W9,W.zipWith=G9,W.entries=LS,W.entriesIn=NS,W.extend=TS,W.extendWith=Zd,sy(W,W),W.add=BW,W.attempt=jS,W.camelCase=Yz,W.capitalize=RS,W.ceil=zW,W.clamp=zz,W.clone=IB,W.cloneDeep=jB,W.cloneDeepWith=$B,W.cloneWith=DB,W.conformsTo=FB,W.deburr=IS,W.defaultTo=bW,W.divide=WW,W.endsWith=Hz,W.eq=Fi,W.escape=Vz,W.escapeRegExp=Uz,W.every=tB,W.find=nB,W.findIndex=oS,W.findKey=vz,W.findLast=rB,W.findLastIndex=sS,W.findLastKey=gz,W.floor=GW,W.forEach=hS,W.forEachRight=pS,W.forIn=yz,W.forInRight=mz,W.forOwn=bz,W.forOwnRight=xz,W.get=ny,W.gt=BB,W.gte=zB,W.has=Oz,W.hasIn=ry,W.head=lS,W.identity=jr,W.includes=cB,W.indexOf=r9,W.inRange=Wz,W.invoke=kz,W.isArguments=vs,W.isArray=Qt,W.isArrayBuffer=WB,W.isArrayLike=Ir,W.isArrayLikeObject=Rn,W.isBoolean=GB,W.isBuffer=Oo,W.isDate=YB,W.isElement=HB,W.isEmpty=VB,W.isEqual=UB,W.isEqualWith=XB,W.isError=ty,W.isFinite=qB,W.isFunction=$a,W.isInteger=_S,W.isLength=qd,W.isMap=OS,W.isMatch=KB,W.isMatchWith=ZB,W.isNaN=QB,W.isNative=JB,W.isNil=ez,W.isNull=tz,W.isNumber=SS,W.isObject=gn,W.isObjectLike=Tn,W.isPlainObject=Jl,W.isRegExp=ey,W.isSafeInteger=nz,W.isSet=ES,W.isString=Kd,W.isSymbol=Kr,W.isTypedArray=Sc,W.isUndefined=rz,W.isWeakMap=iz,W.isWeakSet=az,W.join=c9,W.kebabCase=Xz,W.last=fi,W.lastIndexOf=l9,W.lowerCase=qz,W.lowerFirst=Kz,W.lt=oz,W.lte=sz,W.max=YW,W.maxBy=HW,W.mean=VW,W.meanBy=UW,W.min=XW,W.minBy=qW,W.stubArray=ly,W.stubFalse=uy,W.stubObject=RW,W.stubString=IW,W.stubTrue=DW,W.multiply=KW,W.nth=u9,W.noConflict=kW,W.noop=cy,W.now=Vd,W.pad=Zz,W.padEnd=Qz,W.padStart=Jz,W.parseInt=tW,W.random=Gz,W.reduce=hB,W.reduceRight=pB,W.repeat=eW,W.replace=nW,W.result=Nz,W.round=ZW,W.runInContext=et,W.sample=gB,W.size=bB,W.snakeCase=rW,W.some=xB,W.sortedIndex=y9,W.sortedIndexBy=m9,W.sortedIndexOf=b9,W.sortedLastIndex=x9,W.sortedLastIndexBy=w9,W.sortedLastIndexOf=_9,W.startCase=aW,W.startsWith=oW,W.subtract=QW,W.sum=JW,W.sumBy=tG,W.template=sW,W.times=jW,W.toFinite=Fa,W.toInteger=oe,W.toLength=AS,W.toLower=cW,W.toNumber=di,W.toSafeInteger=cz,W.toString=Fe,W.toUpper=lW,W.trim=uW,W.trimEnd=fW,W.trimStart=dW,W.truncate=hW,W.unescape=pW,W.uniqueId=FW,W.upperCase=vW,W.upperFirst=iy,W.each=hS,W.eachRight=pS,W.first=lS,sy(W,(function(){var v={};return Ji(W,function(b,k){$e.call(W.prototype,k)||(v[k]=b)}),v})(),{chain:!1}),W.VERSION=r,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(v){W[v].placeholder=W}),oi(["drop","take"],function(v,b){me.prototype[v]=function(k){k=k===e?1:Kn(oe(k),0);var N=this.__filtered__&&!b?new me(this):this.clone();return N.__filtered__?N.__takeCount__=hr(k,N.__takeCount__):N.__views__.push({size:hr(k,Y),type:v+(N.__dir__<0?"Right":"")}),N},me.prototype[v+"Right"]=function(k){return this.reverse()[v](k).reverse()}}),oi(["filter","map","takeWhile"],function(v,b){var k=b+1,N=k==R||k==F;me.prototype[v]=function(B){var G=this.clone();return G.__iteratees__.push({iteratee:Ft(B,3),type:k}),G.__filtered__=G.__filtered__||N,G}}),oi(["head","last"],function(v,b){var k="take"+(b?"Right":"");me.prototype[v]=function(){return this[k](1).value()[0]}}),oi(["initial","tail"],function(v,b){var k="drop"+(b?"":"Right");me.prototype[v]=function(){return this.__filtered__?new me(this):this[k](1)}}),me.prototype.compact=function(){return this.filter(jr)},me.prototype.find=function(v){return this.filter(v).head()},me.prototype.findLast=function(v){return this.reverse().find(v)},me.prototype.invokeMap=de(function(v,b){return typeof v=="function"?new me(this):this.map(function(k){return Ul(k,v,b)})}),me.prototype.reject=function(v){return this.filter(Xd(Ft(v)))},me.prototype.slice=function(v,b){v=oe(v);var k=this;return k.__filtered__&&(v>0||b<0)?new me(k):(v<0?k=k.takeRight(-v):v&&(k=k.drop(v)),b!==e&&(b=oe(b),k=b<0?k.dropRight(-b):k.take(b-v)),k)},me.prototype.takeRightWhile=function(v){return this.reverse().takeWhile(v).reverse()},me.prototype.toArray=function(){return this.take(Y)},Ji(me.prototype,function(v,b){var k=/^(?:filter|find|map|reject)|While$/.test(b),N=/^(?:head|last)$/.test(b),B=W[N?"take"+(b=="last"?"Right":""):b],G=N||/^find/.test(b);B&&(W.prototype[b]=function(){var X=this.__wrapped__,K=N?[1]:arguments,nt=X instanceof me,lt=K[0],ft=nt||Qt(X),gt=function(ye){var xe=B.apply(W,go([ye],K));return N&&Et?xe[0]:xe};ft&&k&&typeof lt=="function"&&lt.length!=1&&(nt=ft=!1);var Et=this.__chain__,Nt=!!this.__actions__.length,Bt=G&&!Et,ce=nt&&!Nt;if(!G&&ft){X=ce?X:new me(this);var zt=v.apply(X,K);return zt.__actions__.push({func:Yd,args:[gt],thisArg:e}),new ci(zt,Et)}return Bt&&ce?v.apply(this,K):(zt=this.thru(gt),Bt?N?zt.value()[0]:zt.value():zt)})}),oi(["pop","push","shift","sort","splice","unshift"],function(v){var b=gd[v],k=/^(?:push|sort|unshift)$/.test(v)?"tap":"thru",N=/^(?:pop|shift)$/.test(v);W.prototype[v]=function(){var B=arguments;if(N&&!this.__chain__){var G=this.value();return b.apply(Qt(G)?G:[],B)}return this[k](function(X){return b.apply(Qt(X)?X:[],B)})}}),Ji(me.prototype,function(v,b){var k=W[b];if(k){var N=k.name+"";$e.call(bc,N)||(bc[N]=[]),bc[N].push({name:b,func:k})}}),bc[jd(e,m).name]=[{name:"wrapper",func:e}],me.prototype.clone=p7,me.prototype.reverse=v7,me.prototype.value=g7,W.prototype.at=H9,W.prototype.chain=V9,W.prototype.commit=U9,W.prototype.next=X9,W.prototype.plant=K9,W.prototype.reverse=Z9,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Q9,W.prototype.first=W.prototype.head,Bl&&(W.prototype[Bl]=q9),W}),gc=U$();ss?((ss.exports=gc)._=gc,og._=gc):or._=gc}).call(z1t)})(Lu,Lu.exports)),Lu.exports}var tt=W1t(),$m,G1t=function(){return $m||($m=document.createElement("canvas").getContext("2d")),$m},Y1t=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))};tt.memoize(function(t,n){n===void 0&&(n={});var e=n.fontSize,r=n.fontFamily,i=r===void 0?"sans-serif":r,a=n.fontWeight,o=n.fontStyle,s=n.fontVariant,c=G1t();return c.font=[o,a,s,"".concat(e,"px"),i].join(" "),c.measureText(tt.isString(t)?t:"")},function(t,n){return n===void 0&&(n={}),Y1t([t],tt.values(n),!0).join("")});var H1t=function(t){var n=[/\breact\b/i,/\.jsx/,/children:\s*\[/,/\*\s*[#@]__PURE__\s*\*/],e=/(\w+)?\.createElement\(\s*(['"`])([^'"`]+)\2/g,r=new Set(["g","circle","ellipse","image","rect","line","polyline","polygon","text","path","html","mesh"]);if(n.some(function(a){return a.test(t)}))return!0;var i=t.match(e);return i?i.some(function(a){var o=a.match(/\.createElement\(\s*(['"`])([^'"`]+)\1/);return o&&!r.has(o[2].toLowerCase())}):!1},Hb=function(){return Hb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Hb.apply(this,arguments)};function V1t(t,n){var e=Nu(null),r=Nu(null),i=Nu(null),a=n.onReady,o=n.onEvent,s=function(u,f){var d;u===void 0&&(u="image/png");var h=(d=i.current)===null||d===void 0?void 0:d.getElementsByTagName("canvas")[0];return h==null?void 0:h.toDataURL(u,f)},c=function(u,f,d){u===void 0&&(u="download"),f===void 0&&(f="image/png");var h=u;u.indexOf(".")===-1&&(h="".concat(u,".").concat(f.split("/")[1]));var p=s(f,d),g=document.createElement("a");return g.href=p,g.download=h,document.body.appendChild(g),g.click(),document.body.removeChild(g),g=null,h},l=function(u,f){if(f===void 0&&(f=!1),!!tt.isObject(u)){var d=Object.keys(u),h=f;d.forEach(function(p){var g=u[p];p==="tooltip"&&(h=!0),tt.isFunction(g)&&H1t("".concat(g))?u[p]=function(){for(var y=[],m=0;m<arguments.length;m++)y[m]=arguments[m];return D1t(g.apply(void 0,y),h)}:tt.isArray(g)?g.forEach(function(y){l(y,h)}):tt.isObject(g)?l(g,h):h=f})}};return Qu(function(){e.current&&!tt.isEqual(r.current,n)&&(r.current=tt.cloneDeep(n),l(n),e.current.update(n),e.current.render())},[n]),Qu(function(){if(!i.current)return function(){return null};r.current||(r.current=tt.cloneDeep(n)),l(n);var u=new t(i.current,Hb({},n));u.toDataURL=s,u.downloadImage=c,u.render(),e.current=u,a&&a(u);var f=function(d){o&&o(u,d)};return u.on("*",f),function(){e.current&&(e.current.destroy(),e.current.off("*",f),e.current=void 0)}},[]),{chart:e,container:i}}const U1t={field:"value",size:[1,1],round:!1,padding:0,sort:(t,n)=>n.value-t.value,as:["x","y"],ignoreParentValue:!0},X1t="nodeIndex",Df="childNodeCount",q1t="nodeAncestor",Fm="Invalid field: it must be a string!";function K1t(t,n){const{field:e,fields:r}=t;if(tn(e))return e;if(Cn(e))return console.warn(Fm),e[0];if(console.warn(`${Fm} will try to get fields instead.`),tn(r))return r;if(Cn(r)&&r.length)return r[0];throw new TypeError(Fm)}function Z1t(t){const n=[];if(t&&t.each){let e,r;t.each(i=>{var a,o;i.parent!==e?(e=i.parent,r=0):r+=1;const s=pC((((a=i.ancestors)===null||a===void 0?void 0:a.call(i))||[]).map(c=>n.find(l=>l.name===c.name)||c),({depth:c})=>c>0&&c<i.depth);i[q1t]=s,i[Df]=((o=i.children)===null||o===void 0?void 0:o.length)||0,i[X1t]=r,n.push(i)})}else t&&t.eachNode&&t.eachNode(e=>{n.push(e)});return n}function Q1t(t,n){n=wC({},U1t,n);const e=n.as;if(!Cn(e)||e.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=K1t(n)}catch(c){console.warn(c)}const a=(c=>pot().size(n.size).round(n.round).padding(n.padding)(Rl(c).sum(l=>ef(l.children)?n.ignoreParentValue?0:l[r]-gC(l.children,(u,f)=>u+f[r],0):l[r]).sort(n.sort)))(t),o=e[0],s=e[1];return a.each(c=>{var l,u;c[o]=[c.x0,c.x1,c.x1,c.x0],c[s]=[c.y1,c.y1,c.y0,c.y0],c.name=c.name||((l=c.data)===null||l===void 0?void 0:l.name)||((u=c.data)===null||u===void 0?void 0:u.label),c.data.name=c.name,["x0","x1","y0","y1"].forEach(f=>{e.indexOf(f)===-1&&delete c[f]})}),Z1t(a)}var J1t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const el="sunburst",u_="markType",yj="path",Iv="ancestor-node";function tbt(t){const{data:n,encode:e}=t,{color:r,value:i}=e,o=Q1t(n,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return o.forEach(c=>{var l,u,f,d;if(c.depth===0)return null;let h=c.data.name;const p=[h];let g=Object.assign({},c);for(;g.depth>1;)h=`${(l=g.parent.data)===null||l===void 0?void 0:l.name} / ${h}`,p.unshift((u=g.parent.data)===null||u===void 0?void 0:u.name),g=g.parent;const y=Object.assign(Object.assign(Object.assign({},Ff(c.data,[i])),{[yj]:h,[Iv]:g.data.name}),c);r&&r!==Iv&&(y[r]=c.data[r]||((d=(f=c.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(y)}),s.map(c=>{const l=c.x.slice(0,2),u=[c.y[2],c.y[0]];return l[0]===l[1]&&(u[0]=u[1]=(c.y[2]+c.y[0])/2),Object.assign(Object.assign({},c),{x:l,y:u,fillOpacity:Math.pow(.85,c.depth)})})}const EP={id:el,encode:{x:"x",y:"y",key:yj,color:Iv,value:"value"},axis:{x:!1,y:!1},style:{[u_]:el,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[Df]:Df,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},mj=t=>{const{encode:n,data:e=[]}=t,r=J1t(t,["encode","data"]),i=Object.assign(Object.assign({},r.coordinate),{innerRadius:Math.max(Wt(r,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},EP.encode),n),{value:o}=a,s=tbt({encode:a,data:e});return[at({},EP,Object.assign(Object.assign({type:"rect",data:s,encode:a,tooltip:{title:"path",items:[c=>({name:o,value:c[o]})]}},r),{coordinate:i}))]};mj.props={};var ebt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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,n||[])).next())})};const nbt=t=>t.querySelectorAll(".element").filter(n=>Wt(n,["style",u_])===el);function rbt(t){return Rt(t).select(`.${Vo}`).node()}const ibt={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function abt(t={}){const{breadCrumb:n={},isFixedColor:e=!1}=t,r=at({},ibt,n);return i=>{const{update:a,setState:o,container:s,view:c,options:l}=i,u=s.ownerDocument,f=rbt(s),d=l.marks.find(({id:w})=>w===el),{state:h}=d,p=u.createElement("g");f.appendChild(p);const g=(w,_)=>ebt(this,void 0,void 0,function*(){if(p.removeChildren(),w){const O=u.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});p.appendChild(O);let S="";const E=w==null?void 0:w.split(" / ");let A=r.style.y,M=p.getBBox().width;const T=f.getBBox().width,P=E.map((L,C)=>{const R=u.createElement("text",{style:Object.assign(Object.assign({x:M,text:" / "},r.style),{y:A})});p.appendChild(R),M+=R.getBBox().width,S=`${S}${L} / `;const D=u.createElement("text",{name:S.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:L,x:M,depth:C+1},r.style),{y:A})});return p.appendChild(D),M+=D.getBBox().width,M>T&&(A=p.getBBox().height,M=0,R.attr({x:M,y:A}),M+=R.getBBox().width,D.attr({x:M,y:A}),M+=D.getBBox().width),D});[O,...P].forEach((L,C)=>{if(C===P.length)return;const R=Object.assign({},L.attributes);L.attr("cursor","pointer"),L.addEventListener("mouseenter",()=>{L.attr(r.active)}),L.addEventListener("mouseleave",()=>{L.attr(R)}),L.addEventListener("click",()=>{g(L.name,Wt(L,["style","depth"]))})})}o("drillDown",O=>{const{marks:S}=O,E=S.map(A=>{if(A.id!==el&&A.type!=="rect")return A;const{data:M}=A,T=Object.fromEntries(["color"].map(L=>[L,{domain:c.scale[L].getOptions().domain}])),P=M.filter(L=>{const C=L.path;return e||(L[Iv]=C.split(" / ")[_]),w?new RegExp(`^${w}.+`).test(C):!0});return at({},A,e?{data:P,scale:T}:{data:P})});return Object.assign(Object.assign({},O),{marks:E})}),yield a()}),y=w=>{const _=w.target;if(Wt(_,["style",u_])!==el||Wt(_,["markType"])!=="rect"||!Wt(_,["style",Df]))return;const O=Wt(_,["__data__","key"]),S=Wt(_,["style","depth"]);_.style.cursor="pointer",g(O,S)};f.addEventListener("click",y);const m=Xv(Object.assign(Object.assign({},h.active),h.inactive)),x=()=>{nbt(f).forEach(_=>{const O=Wt(_,["style",Df]);if(Wt(_,["style","cursor"])!=="pointer"&&O){_.style.cursor="pointer";const E=Ff(_.attributes,m);_.addEventListener("mouseenter",()=>{_.attr(h.active)}),_.addEventListener("mouseleave",()=>{_.attr(at(E,h.inactive))})}})};return f.addEventListener("mousemove",x),()=>{p.remove(),f.removeEventListener("click",y),f.removeEventListener("mousemove",x)}}}function obt(){return{"interaction.drillDown":abt,"mark.sunburst":mj}}var Dv=function(){return Dv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Dv.apply(this,arguments)},sbt=e1t(T1t,Dv(Dv({},cj()),obt())),Uu=function(){return Uu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Uu.apply(this,arguments)},De=function(t){var n=lbt(t),e=n.children,r=e===void 0?[]:e,i=tt.omit(n,[].concat(bj,$v.map(function(l){return l.key}))),a=function(l){var u;return(u=pbt.find(function(f){return f.key===l}))===null||u===void 0?void 0:u.callback},o=function(l,u,f){var d=a(u);d?d(l,u,f):l[u]=Do({},l[u],f)},s=function(l){Object.keys(l).forEach(function(u){if(l[u]){var f=$v.find(function(x){return x.key===u});if(f){var d=f.type,h=f.extendedProperties,p=f.defaultShapeConfig,g=p===void 0?{}:p;if(d){var y=l[u].tooltip;r.push(c(Do({},tt.pick(l,h),g,{type:d},l[u],{tooltip:y||!1})))}else if(tt.isArray(l[u])){var m=l[u].some(function(x){return x.type==="text"});l[u].forEach(function(x){r.push(c(Uu(Uu(Uu({},m?{data:[]}:{}),{tooltip:!1}),x)))})}}}})},c=function(l){return s(l),Object.keys(Vb).forEach(function(u){var f=Vb[u];if(!tt.isUndefined(l[u]))if(tt.isObject(f)){var d=f.value,h=f.target,p=d(l[u]);o(l,h,p)}else tt.set(l,f,l[u])}),l};return r.forEach(function(l){var u=Do({},i,l);c(Do(l,u))}),s(n),cbt(n),t},kP=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))},cbt=function(t){var n=t.children,e=n===void 0?[]:n,r=Object.keys(Vb).concat($v.map(function(i){return i.key}));return r.forEach(function(i){delete t[i]}),e.forEach(function(i){Object.keys(i).forEach(function(a){r.includes(a)&&delete i[a]})}),Object.keys(t).forEach(function(i){kP(kP([],bj,!0),Ub.map(function(a){return a.key}),!0).includes(i)||delete t[i]}),t},lbt=function(t){var n=t.options,e=n.children,r=e===void 0?[]:e;return r.forEach(function(i){Object.keys(i).forEach(function(a){tt.isArray(i[a])&&a!=="data"&&(i[a]=i[a].filter(function(o){return!o[xp]}))})}),n},AP=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))},ubt=function(t,n){if(tt.isArray(n))return n},Do=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return tt.mergeWith.apply(void 0,AP(AP([],t,!1),[ubt],!1))};function jv(t){switch(typeof t){case"function":return t;case"string":return function(n){return tt.get(n,[t])};default:return function(){return t}}}var Z0=function(t){var n=t.options,e=n.data;return tt.get(e,"value")||tt.get(e,"type")!=="fetch"&&tt.isPlainObject(e)&&tt.set(n,"data.value",e),t},nl=function(){return nl=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},nl.apply(this,arguments)},fbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},dbt=["renderer","plugins"],bj=["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","plugins"],xp="__transform__",hbt="__skipDelCustomKeys__",So=function(t,n){return tt.isBoolean(n)?{type:t,available:n}:nl({type:t},n)},Vb={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",y1Field:"encode.y1",sizeField:"encode.size",setsField:"encode.sets",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",coordinateType:"coordinate.type",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 So("stackY",t)}},normalize:{target:"transform",value:function(t){return So("normalizeY",t)}},percent:{target:"transform",value:function(t){return So("normalizeY",t)}},group:{target:"transform",value:function(t){return So("dodgeX",t)}},sort:{target:"transform",value:function(t){return So("sortX",t)}},symmetry:{target:"transform",value:function(t){return So("symmetryY",t)}},diff:{target:"transform",value:function(t){return So("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 tt.isBoolean(t)?{connect:t}:t}},transpose:{target:"transpose",value:function(t){return So("transpose",t)}}},Bm=["xField","yField","seriesField","colorField","shapeField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],$v=[{key:"annotations",extendedProperties:[]},{key:"line",type:"line",extendedProperties:Bm},{key:"connector",type:"connector",extendedProperties:[]},{key:"point",type:"point",extendedProperties:Bm,defaultShapeConfig:{shapeField:"circle"}},{key:"area",type:"area",extendedProperties:Bm}],pbt=[{key:"transform",callback:function(t,n,e){var r;t[n]=t[n]||[];var i=e.available,a=i===void 0?!0:i,o=fbt(e,["available"]);if(a)t[n].push(nl((r={},r[xp]=!0,r),o));else{var s=t[n].indexOf(function(c){return c.type===e.type});s!==-1&&t[n].splice(s,1)}}},{key:"labels",callback:function(t,n,e){var r;if(!e||tt.isArray(e)){t[n]=e||[];return}e.text||(e.text=t.yField),t[n]=t[n]||[],t[n].push(nl((r={},r[xp]=!0,r),e))}},{key:"transpose",callback:function(t,n,e){var r;e.available?t.coordinate={transform:[nl((r={},r[xp]=!0,r),e)]}:t.coordinate={}}}],Ub=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],vbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Fv=function(){return Fv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Fv.apply(this,arguments)},gbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},xj=(function(t){vbt(n,t);function n(e){e===void 0&&(e={});var r=e.style,i=gbt(e,["style"]);return t.call(this,Fv({style:Fv({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return n})(Ti),ybt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Bv=function(){return Bv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Bv.apply(this,arguments)},mbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},bbt=(function(t){ybt(n,t);function n(e){e===void 0&&(e={});var r=e.style,i=mbt(e,["style"]);return t.call(this,Bv({style:Bv({fill:"#eee"},r)},i))||this}return n})(cc),xbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),wj=(function(t){xbt(n,t);function n(e,r,i){var a=t.call(this,{style:Do(i,r)})||this;return a.chart=e,a}return n.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},n.prototype.disconnectedCallback=function(){},n.prototype.attributeChangedCallback=function(e){},n.prototype.update=function(e,r){var i;return this.attr(Do({},this.attributes,e||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},n.prototype.clear=function(){this.removeChildren()},n.prototype.getElementsLayout=function(){var e=this.chart.getContext().canvas,r=e.document.getElementsByClassName("element"),i=[];return r.forEach(function(a){var o=a.getBBox(),s=o.x,c=o.y,l=o.width,u=o.height,f=a.__data__;i.push({bbox:o,x:s,y:c,width:l,height:u,key:f.key,data:f})}),i},n.prototype.bindEvents=function(e,r){},n})(Qf),wbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),zv=function(){return zv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},zv.apply(this,arguments)},_bt=(function(t){wbt(n,t);function n(e,r){return t.call(this,e,r,{type:n.tag})||this}return n.prototype.getConversionTagLayout=function(){var e=this.direction==="vertical",r=Array.from(this.getElementsLayout()).sort(function(O,S){return e?O.y-S.y:O.x-S.x}),i=r[0],a=i.x,o=i.y,s=i.height,c=i.width,l=i.data,u=["items",0,"value"],f=tt.get(l,u),d=e?r[1].y-o-s:r[1].x-a-c,h=[],p=this.attributes,g=p.size,y=g===void 0?40:g,m=p.arrowSize,x=m===void 0?20:m,w=p.spacing,_=w===void 0?4:w;return r.forEach(function(O,S){if(S>0){var E=O.x,A=O.y,M=O.height,T=O.width,P=O.data,L=O.key,C=tt.get(P,u),R=y/2;if(e){var D=E+T/2,F=A;h.push({points:[[D+R,F-d+_],[D+R,F-x-_],[D,F-_],[D-R,F-x-_],[D-R,F-d+_]],center:[D,F-d/2],width:d,value:[f,C],key:L})}else{var D=E,F=A+M/2;h.push({points:[[E-d+_,F-R],[E-x-_,F-R],[D-_,F],[E-x-_,F+R],[E-d+_,F+R]],center:[D-d/2,F],width:d,value:[f,C],key:L})}f=C}}),h},n.prototype.render=function(){this.setDirection(),this.drawConversionTag()},n.prototype.setDirection=function(){var e=this.chart.getCoordinate(),r=tt.get(e,"options.transformations"),i="horizontal";r.forEach(function(a){a.includes("transpose")&&(i="vertical")}),this.direction=i},n.prototype.drawConversionTag=function(){var e=this,r=this.getConversionTagLayout(),i=this.attributes,a=i.style,o=i.text,s=o.style,c=o.formatter;r.forEach(function(l){var u=l.points,f=l.center,d=l.value,h=l.key,p=d[0],g=d[1],y=f[0],m=f[1],x=new bbt({style:zv({points:u,fill:"#eee"},a),id:"polygon-".concat(h)}),w=new xj({style:zv({x:y,y:m,text:tt.isFunction(c)?c(p,g):(g/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});e.appendChild(x),e.appendChild(w)})},n.prototype.update=function(){this.clear(),this.drawConversionTag()},n.prototype.destroy=function(){this.clear()},n.tag="ConversionTag",n})(wj),Xb=32,MP=16,TP=48,Obt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Xu=function(){return Xu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Xu.apply(this,arguments)},Sbt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},Ebt=(function(t){Obt(n,t);function n(e,r){return t.call(this,e,r,{type:n.tag})||this}return n.prototype.render=function(){this.drawText()},n.prototype.getBidirectionalBarAxisTextLayout=function(){var e=this.attributes.layout,r=e==="vertical",i=this.getElementsLayout(),a=r?tt.uniqBy(i,"x"):tt.uniqBy(i,"y"),o=["title"],s=[],c=this.chart.getContext().views,l=tt.get(c,[0,"layout"]),u=l.width,f=l.height;return a.forEach(function(d){var h=d.x,p=d.y,g=d.height,y=d.width,m=d.data,x=d.key,w=tt.get(m,o);r?s.push({x:h+y/2,y:f,text:w,key:x}):s.push({x:u,y:p+g/2,text:w,key:x})}),tt.uniqBy(s,"text").length!==s.length&&(s=Object.values(tt.groupBy(s,"text")).map(function(d){var h,p=d.reduce(function(g,y){return g+(r?y.x:y.y)},0);return Xu(Xu({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},n.prototype.transformLabelStyle=function(e){var r={},i=/^label[A-Z]/;return Object.keys(e).forEach(function(a){i.test(a)&&(r[a.replace("label","").replace(/^[A-Z]/,function(o){return o.toLowerCase()})]=e[a])}),r},n.prototype.drawText=function(){var e=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,a=i.layout,o=i.labelFormatter,s=Sbt(i,["layout","labelFormatter"]);r.forEach(function(c){var l=c.x,u=c.y,f=c.text,d=c.key,h=new xj({style:Xu({x:l,y:u,text:tt.isFunction(o)?o(f):f,wordWrap:!0,wordWrapWidth:a==="horizontal"?Xb*2:120,maxLines:2,textOverflow:"ellipsis"},e.transformLabelStyle(s)),id:"text-".concat(d)});e.appendChild(h)})},n.prototype.destroy=function(){this.clear()},n.prototype.update=function(){this.destroy(),this.drawText()},n.tag="BidirectionalBarAxisText",n})(wj),kbt={ConversionTag:_bt,BidirectionalBarAxisText:Ebt},Abt=(function(){function t(n,e){this.container=new Map,this.chart=n,this.config=e,this.init()}return t.prototype.init=function(){var n=this;Ub.forEach(function(e){var r,i=e.key,a=e.shape,o=n.config[i];if(o){var s=new kbt[a](n.chart,o),c=n.chart.getContext().canvas;c.appendChild(s),n.container.set(i,s)}else(r=n.container.get(i))===null||r===void 0||r.clear()})},t.prototype.update=function(){var n=this;this.container.size&&Ub.forEach(function(e){var r=e.key,i=n.container.get(r);i==null||i.update()})},t.prototype.destroy=function(){this.container.forEach(function(n){n.destroy()}),this.container.clear()},t})(),Mbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),zc=function(){return zc=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},zc.apply(this,arguments)},PP="data-chart-source-type",Ae=(function(t){Mbt(n,t);function n(e,r){var i=t.call(this)||this;return i.eventListeners=[],i.bindedEvents=!1,i.container=typeof e=="string"?document.getElementById(e):e,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return n.prototype.getChartOptions=function(){return zc(zc({},tt.pick(this.options,dbt)),{container:this.container})},n.prototype.getSpecOptions=function(){return this.type==="base"||this[hbt]?zc(zc({},this.options),this.getChartOptions()):this.options},n.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new sbt(this.getChartOptions()),this.container.setAttribute(PP,"Ant Design Charts")},n.prototype.bindEvents=function(){var e=this;if(this.chart){var r=function(i){i!=null&&i.type&&e.emit(i.type,i)};this.chart.on("*",r),this.eventListeners.push(function(){var i;(i=e.chart)===null||i===void 0||i.off("*",r)})}},n.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},n.prototype.getDefaultOptions=function(){},n.prototype.render=function(){var e=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){e.annotation?e.annotation.update():e.annotation=new Abt(e.chart,e.options),e.bindSizeSensor()})},n.prototype.update=function(e){this.options=this.mergeOption(e)},n.prototype.mergeOption=function(e){return Do({},this.getBaseOptions(),this.getDefaultOptions(),e)},n.prototype.changeData=function(e){this.chart.changeData(e)},n.prototype.changeSize=function(e,r){this.chart.changeSize(e,r)},n.prototype.destroy=function(){this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[],this.annotation&&typeof this.annotation.destroy=="function"&&this.annotation.destroy(),this.annotation=null,this.chart.destroy(),this.off(),this.bindedEvents=!1,this.container.removeAttribute(PP)},n.prototype.execAdaptor=function(){var e=this.getSchemaAdaptor();e({chart:this.chart,options:this.options})},n.prototype.triggerResize=function(){this.chart.forceFit()},n.prototype.bindSizeSensor=function(){var e=this;if(!this.bindedEvents){var r=this.options.autoFit,i=r===void 0?!0:r;if(i){var a=function(){e.annotation&&e.annotation.update()};this.chart.on(Me.AFTER_CHANGE_SIZE,a),this.eventListeners.push(function(){var o;(o=e.chart)===null||o===void 0||o.off(Me.AFTER_CHANGE_SIZE,a)}),this.bindedEvents=!0}}},n})(lw),Tbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Pbt=(function(t){Tbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="base",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return function(e){return e}},n})(Ae),qb=function(){return qb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qb.apply(this,arguments)};function Cbt(t){var n=t.options,e=n.stack,r=n.tooltip,i=n.xField;if(!e)return t;var a=$v.map(function(s){return s.type}).filter(function(s){return!!s}),o=!1;return a.forEach(function(s){n[s]&&(o=!0,tt.set(n,[s,"stack"],qb({y1:"y"},typeof e=="object"?e:{})))}),o&&!tt.isBoolean(r)&&!r&&tt.set(n,"tooltip",{title:i,items:[{channel:"y"}]}),t}function Mn(t){return tt.flow(Cbt)(t)}function Lbt(t){var n=t.options.layout,e=n===void 0?"horizontal":n;return t.options.coordinate.transform=e!=="horizontal"?void 0:[{type:"transpose"}],t}function Nbt(t){Lbt(t);var n=t.options.layout,e=n===void 0?"horizontal":n;return t.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=e!=="horizontal"?void 0:[{type:"transpose"}])}),t}function Rbt(t){return tt.flow(Mn,De)(t)}var Ibt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Dbt=(function(t){Ibt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="area",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Rbt},n})(Ae),Wc=function(){return Wc=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wc.apply(this,arguments)};function _j(t){var n=function(e){var r=e.options;tt.get(r,"children.length")>1&&tt.set(r,"children",[{type:"interval"}]);var i=r.scale,a=r.markBackground,o=r.data,s=r.children,c=r.yField,l=tt.get(i,"y.domain",[]);if(a&&l.length&&tt.isArray(o)){var u="domainMax",f=o.map(function(d){var h;return Wc(Wc({originData:Wc({},d)},tt.omit(d,c)),(h={},h[u]=l[l.length-1],h))});s.unshift(Wc({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},a))}return e};return tt.flow(n,Mn,De)(t)}var jbt=function(){var t=function(n,e){return function(r){var i=n.fill,a=i===void 0?"#2888FF":i,o=n.stroke,s=n.fillOpacity,c=s===void 0?1:s,l=n.strokeOpacity,u=l===void 0?.2:l,f=n.pitch,d=f===void 0?8:f,h=r[0],p=r[1],g=r[2],y=r[3],m=(p[1]-h[1])/2,x=e.document,w=x.createElement("g",{}),_=x.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],[g[0]-d,h[1]+m],y],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u,inset:30}}),O=x.createElement("polygon",{style:{points:[[h[0]-d,h[1]+m],p,g,[g[0]-d,h[1]+m]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u}}),S=x.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],p,[h[0]+d,h[1]+m]],fill:a,fillOpacity:c-.2}});return w.appendChild(_),w.appendChild(O),w.appendChild(S),w}};uj("shape.interval.bar25D",t)},$bt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})();jbt();var Fbt=(function(t){$bt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Bar",e}return n.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return _j},n})(Ae),Bbt=function(){var t=function(n,e){return function(r){var i=n.fill,a=i===void 0?"#2888FF":i,o=n.stroke,s=n.fillOpacity,c=s===void 0?1:s,l=n.strokeOpacity,u=l===void 0?.2:l,f=n.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],g=e.document,y=g.createElement("g",{}),m=g.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u,inset:30}}),x=g.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u}}),w=g.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:a,fillOpacity:c-.2}});return y.appendChild(x),y.appendChild(m),y.appendChild(w),y}};uj("shape.interval.column25D",t)},zbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})();Bbt();var Wbt=(function(t){zbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="column",e}return n.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return _j},n})(Ae);function Gbt(t){var n=function(r){var i=r.options,a=i.children,o=a===void 0?[]:a,s=i.legend;return s&&o.forEach(function(c){if(!tt.get(c,"colorField")){var l=tt.get(c,"yField");tt.set(c,"colorField",function(){return l})}}),r},e=function(r){var i=r.options,a=i.annotations,o=a===void 0?[]:a,s=i.children,c=s===void 0?[]:s,l=i.scale,u=!1;return tt.get(l,"y.key")||c.forEach(function(f,d){if(!tt.get(f,"scale.y.key")){var h="child".concat(d,"Scale");tt.set(f,"scale.y.key",h);var p=f.annotations,g=p===void 0?[]:p;g.length>0&&(tt.set(f,"scale.y.independent",!1),g.forEach(function(y){tt.set(y,"scale.y.key",h)})),!u&&o.length>0&&tt.get(f,"scale.y.independent")===void 0&&(u=!0,tt.set(f,"scale.y.independent",!1),o.forEach(function(y){tt.set(y,"scale.y.key",h)}))}}),r};return tt.flow(n,e,Mn,De)(t)}var Ybt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),CP=(function(t){Ybt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="DualAxes",e}return n.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Gbt},n})(Ae);function Hbt(t){var n=function(a){var o=a.options,s=o.xField,c=o.colorField;return c||tt.set(o,"colorField",s),a},e=function(a){var o=a.options,s=o.compareField,c=o.transform,l=o.isTransposed,u=l===void 0?!0:l,f=o.coordinate;return c||(s?tt.set(o,"transform",[]):tt.set(o,"transform",[{type:"symmetryY"}])),!f&&u&&tt.set(o,"coordinate",{transform:[{type:"transpose"}]}),a},r=function(a){var o=a.options,s=o.compareField,c=o.seriesField,l=o.data,u=o.children,f=o.yField,d=o.isTransposed,h=d===void 0?!0:d;if(s||c){var p=Object.values(tt.groupBy(l,function(g){return g[s||c]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(g){return-g[f]}}),delete o.compareField,delete o.data}return c&&(tt.set(o,"type","spaceFlex"),tt.set(o,"ratio",[1,1]),tt.set(o,"direction",h?"row":"col"),delete o.seriesField),a},i=function(a){var o=a.options,s=o.tooltip,c=o.xField,l=o.yField;return s||tt.set(o,"tooltip",{title:!1,items:[function(u){return{name:u[c],value:u[l]}}]}),a};return tt.flow(n,e,r,i,Mn,De)(t)}var Vbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Ubt=(function(t){Vbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="column",e}return n.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Hbt},n})(Ae);function Xbt(t){return tt.flow(Mn,De)(t)}var qbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Kbt=(function(t){qbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="line",e}return n.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Xbt},n})(Ae),yi=function(){return yi=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},yi.apply(this,arguments)};function Zbt(t){var n=function(e){var r=e.options,i=r.angleField,a=r.data,o=r.label,s=r.tooltip,c=r.colorField,l=jv(c);if(tt.isArray(a)&&a.length>0){var u=a.reduce(function(h,p){return h+p[i]},0);if(u===0){var f=a.map(function(h){var p;return yi(yi({},h),(p={},p[i]=1,p))});if(tt.set(r,"data",f),o){var d=c===tt.get(o,"text");tt.set(r,"label",yi(yi({},o),d?{}:{formatter:function(){return 0}}))}s!==!1&&(tt.isFunction(s)?tt.set(r,"tooltip",function(h,p,g){var y;return s(yi(yi({},h),(y={},y[i]=0,y)),p,g.map(function(m){var x;return yi(yi({},m),(x={},x[i]=0,x))}))}):tt.set(r,"tooltip",yi(yi({},s),{items:[function(h,p,g){return{name:l(h,p,g),value:0}}]})))}else tt.set(r,"tooltip",s),tt.set(r,"label",o)}return e};return tt.flow(n,De)(t)}var Qbt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Jbt=(function(t){Qbt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="pie",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Zbt},n})(Ae);function txt(t){return tt.flow(Mn,De)(t)}var ext=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),nxt=(function(t){ext(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="scatter",e}return n.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return txt},n})(Ae);function rxt(t){var n=function(e){return tt.set(e,"options.coordinate",{type:tt.get(e,"options.coordinateType","polar")}),e};return tt.flow(n,De)(t)}var ixt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),axt=(function(t){ixt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="radar",e}return n.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return rxt},n})(Ae);function oxt(t){var n=function(e){var r=e.options,i=r.yField,a=r.children,o=r.style,s=o===void 0?{}:o,c=r.lineStyle,l=c===void 0?{}:c,u=i[0],f=i[1],d=i[2],h=i[3];return tt.set(a,[0,"yField"],[d,h]),tt.set(a,[0,"style"],l),tt.set(a,[1,"yField"],[u,f]),tt.set(a,[1,"style"],s),delete r.yField,delete r.lineStyle,delete r.style,e};return tt.flow(n,De)(t)}var sxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),cxt=["#26a69a","#999999","#ef5350"],lxt=(function(t){sxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="stock",e}return n.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:cxt},y:{nice:!0}},children:[{type:"link"},{type:"interval"}],axis:{x:{title:!1,grid:!1},y:{title:!1,grid:!0,gridLineDash:null}},animate:{enter:{type:"scaleInY"}},interaction:{tooltip:{shared:!0,marker:!1,groupName:!1,crosshairs:!0}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return oxt},n})(Ae);function uxt(t){return tt.flow(Mn,De)(t)}var fxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),dxt=(function(t){fxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyLine",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],padding:0,margin:0,tooltip:!1}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return uxt},n})(Ae);function hxt(t){return tt.flow(Mn,De)(t)}var pxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),vxt=(function(t){pxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyArea",e}return n.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],padding:0,margin:0,tooltip:!1}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return hxt},n})(Ae);function gxt(t){return tt.flow(Mn,De)(t)}var yxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),mxt=(function(t){yxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyColumn",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],padding:0,margin:0,tooltip:!1}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return gxt},n})(Ae),Kb=function(){return Kb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Kb.apply(this,arguments)};function bxt(t){var n=function(e){var r=e.options,i=r.percent,a=r.color,o=a===void 0?[]:a;if(!i)return e;var s={scale:{color:{range:o.length?o:[]}},data:[1,i]};return Object.assign(r,Kb({},s)),e};return tt.flow(n,Mn,De)(t)}var xxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),wxt=(function(t){xxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyProgress",e}return n.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(e){return e},color:function(e,r){return r}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return bxt},n})(Ae),Zb=function(){return Zb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zb.apply(this,arguments)};function _xt(t){var n=function(r){var i=r.options,a=i.radius,o=a===void 0?.8:a;return tt.set(r,"options.coordinate.innerRadius",o),r},e=function(r){var i=r.options,a=i.percent,o=i.color,s=o===void 0?[]:o;if(!a)return r;var c={scale:{color:{range:s.length?s:[]}},data:[1,a]};return Object.assign(i,Zb({},c)),r};return tt.flow(n,e,Mn,De)(t)}var Oxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Sxt=(function(t){Oxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="TinyRing",e}return n.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,coordinate:{type:"theta"},animate:{enter:{type:"waveIn"}},interaction:{tooltip:!1},tooltip:!1,children:[{type:"interval",axis:!1,legend:!1,encode:{y:function(e){return e},color:function(e,r){return r}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return _xt},n})(Ae);function Ext(t){return tt.flow(De)(t)}var kxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Axt=(function(t){kxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="rose",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Ext},n})(Ae),zm="__start__",Eo="__end__",Qb="__waterfall_value__",Wv=function(){return Wv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wv.apply(this,arguments)},Mxt=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))};function Txt(t){var n=function(i){var a=i.options,o=a.data,s=o===void 0?[]:o,c=a.yField;return s.length&&(s.reduce(function(l,u,f){var d,h=jv(c),p=h(u,f,s);if(f===0||u.isTotal)u[zm]=0,u[Eo]=p,u[Qb]=p;else{var g=(d=l[Eo])!==null&&d!==void 0?d:h(l,f,s);u[zm]=g,u[Eo]=g+p,u[Qb]=l[Eo]}return u},[]),Object.assign(a,{yField:[zm,Eo]})),i},e=function(i){var a=i.options,o=a.data,s=o===void 0?[]:o,c=a.xField,l=a.children,u=a.linkStyle,f=Mxt([],s,!0);return f.reduce(function(d,h,p){return p>0&&(h.x1=d[c],h.x2=h[c],h.y1=d[Eo]),h},[]),f.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:f,style:Wv({stroke:"#697474"},u),label:!1,tooltip:!1}),i},r=function(i){var a=i.options,o=a.data,s=o===void 0?[]:o,c=a.connector;return c&&tt.set(a,"connector",Wv({xField:c.reverse?["x2","x1"]:["x1","x2"],yField:c.reverse?["y2","y1"]:["y1","y2"],data:[{x1:s[0].x,y1:s[0][Eo],x2:s[s.length-1].x,y2:s[s.length-1][Eo]}]},tt.isObject(c)?c:{})),i};return tt.flow(n,e,Mn,r,De)(t)}var Pxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Cxt=(function(t){Pxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="waterfall",e}return n.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:Qb,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Txt},n})(Ae);function Lxt(t){var n=function(e){var r=e.options,i=r.data,a=r.binNumber,o=r.binWidth,s=r.children,c=r.channel,l=c===void 0?"count":c,u=tt.get(s,"[0].transform[0]",{});return tt.isNumber(o)?(tt.assign(u,{thresholds:tt.ceil(tt.divide(i.length,o)),y:l}),e):(tt.isNumber(a)&&tt.assign(u,{thresholds:a,y:l}),e)};return tt.flow(n,Mn,De)(t)}var Nxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Rxt=(function(t){Nxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Histogram",e}return n.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Lxt},n})(Ae);function Ixt(t){var n=function(r){var i=r.options,a=i.tooltip,o=a===void 0?{}:a,s=i.colorField,c=i.sizeField;return o&&!o.field&&(o.field=s||c),r},e=function(r){var i=r.options,a=i.mark,o=i.children;return a&&(o[0].type=a),r};return tt.flow(n,e,Mn,De)(t)}var Dxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),jxt=(function(t){Dxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="heatmap",e}return n.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Ixt},n})(Ae);function $xt(t){var n=function(e){var r=e.options.boxType,i=r===void 0?"box":r;return e.options.children[0].type=i,e};return tt.flow(n,Mn,De)(t)}var Fxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Bxt=(function(t){Fxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="box",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return $xt},n})(Ae),zxt=function(t){var n=t.options,e=n.data,r=[{type:"custom",callback:function(a){return{links:a}}}];if(tt.isArray(e))e.length>0?tt.set(n,"data",{value:e,transform:r}):delete n.children;else if(tt.get(e,"type")==="fetch"&&tt.get(e,"value")){var i=tt.get(e,"transform");tt.isArray(i)||tt.set(e,"transform",r)}return t};function Wxt(t){return tt.flow(Z0,zxt,Mn,De)(t)}var Gxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Yxt=(function(t){Gxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="sankey",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Wxt},n})(Ae),Is=function(){return Is=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Is.apply(this,arguments)},wp=["#f0efff","#5B8FF9","#3D76DD"];function Wm(t,n,e,r){r===void 0&&(r=!0);var i=0,a=!1,o=tt.map(t,function(s){var c,l,u=tt.get(s,[n]);if(tt.isNil(u))return[];if(tt.isString(u)){var f=Number(u);return isNaN(f)?[]:(c={},c[e]=s[e],c[n]=f,c)}return tt.isArray(u)?(a=!0,i=Math.max(i,u.length),tt.map(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[e]=s[e],p[n]=d,p.index=h,p})):(i=Math.max(1,i),l={},l[e]=s[e],l[n]=u,l)}).flat();return a?[o.map(function(s){return Is({index:0},s)}),i]:[o,i]}function Gm(t,n){return new Array(t).fill("").map(function(e,r){return tt.isArray(n)?n[r%n.length]:n})}function Hxt(t){var n=function(i){var a=i.options,o=a.color,s=a.rangeField,c=s===void 0?"ranges":s,l=a.measureField,u=l===void 0?"measures":l,f=a.targetField,d=f===void 0?"targets":f,h=a.xField,p=h===void 0?"title":h,g=a.mapField,y=a.data,m=Wm(y,c,p),x=m[0],w=m[1],_=Wm(y,u,p,!1),O=_[0],S=_[1],E=Wm(y,d,p,!1),A=E[0],M=E[1],T=tt.get(o,[c],wp[0]),P=tt.get(o,[u],wp[1]),L=tt.get(o,[d],wp[2]),C=[Gm(w,T),Gm(S,P),Gm(M,L)].flat();return a.children=tt.map(a.children,function(R,D){var F=[x,O,A][D],j=[c,u,d][D];return Is(Is({},R),{data:F,encode:Is(Is({},R.encode||{}),{x:p,y:j,color:function(I){var $=I.index,z=tt.isNumber($)?"".concat(j,"_").concat($):j;return g?tt.get(g,[j,$],z):z}})})}),tt.set(a,"scale.color.range",C),tt.get(a,"legend.color")&&tt.isNil(tt.get(a,"legend.color.itemMarker"))&&(a.legend.color.itemMarker=function(R){return g&&tt.includes(g==null?void 0:g[d],R)||(R==null?void 0:R.replace(/\_\d$/,""))===d?"line":"square"}),i},e=function(i){var a=i.options.transpose,o=a===void 0?!0:a;return o||tt.set(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var a=i.options,o=a.range,s=o===void 0?{}:o,c=a.measure,l=c===void 0?{}:c,u=a.target,f=u===void 0?{}:u,d=a.children;return a.children=[s,l,f].map(function(h,p){return Do(d[p],h)}),i};return tt.flow(n,e,r,Nbt,De)(t)}var Vxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Uxt=(function(t){Vxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="bullet",e}return n.getDefaultOptions=function(){return{type:"view",scale:{color:{range:wp}},legend:{color:{itemMarker:function(e){return e==="targets"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30,zIndex:-2},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20,zIndex:-1},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Hxt},n})(Ae);function Xxt(t){var n=function(e){var r=e.options.data;return e.options.data={value:r},e};return tt.flow(n,Mn,De)(t)}var qxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Kxt=(function(t){qxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Gauge",e}return n.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Xxt},n})(Ae);function Zxt(t){var n=function(e){var r=e.options.percent;return tt.isNumber(r)&&(tt.set(e,"options.data",r),delete e.options.percent),e};return tt.flow(n,Mn,De)(t)}var Qxt=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),Jxt=(function(t){Qxt(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Liquid",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return Zxt},n})(Ae);function t2t(t){return tt.flow(Mn,De)(t)}var e2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),n2t=(function(t){e2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="WordCloud",e}return n.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return t2t},n})(Ae);function r2t(t){return tt.flow(Z0,Mn,De)(t)}var i2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),a2t=(function(t){i2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="treemap",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return r2t},n})(Ae),Mo=function(){return Mo=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Mo.apply(this,arguments)},o2t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};function s2t(t){var n=function(i){var a=i.options,o=a.startAngle,s=a.maxAngle,c=a.coordinate,l=tt.isNumber(o)?o/(2*Math.PI)*360:-90,u=tt.isNumber(s)?(Number(s)+l)/180*Math.PI:Math.PI;return tt.set(i,["options","coordinate"],Mo(Mo({},c),{endAngle:u,startAngle:o??-Math.PI/2})),i},e=function(i){var a=i.options,o=a.tooltip,s=a.xField,c=a.yField,l=jv(s),u=jv(c);return o||tt.set(a,"tooltip",{title:!1,items:[function(f,d,h){return{name:l(f,d,h),value:u(f,d,h)}}]}),i},r=function(i){var a=i.options,o=a.markBackground,s=a.children,c=a.scale,l=a.coordinate,u=a.xField,f=tt.get(c,"y.domain",[]);if(o){var d=o.style,h=o2t(o,["style"]);s.unshift(Mo({type:"interval",xField:u,yField:f[f.length-1],style:Mo({fillOpacity:.4,fill:"#e0e4ee"},d),coordinate:Mo(Mo({},l),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},h))}return i};return tt.flow(n,e,r,Mn,De)(t)}var c2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),l2t=(function(t){c2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="radial",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"radial",innerRadius:.1,outerRadius:1,endAngle:Math.PI},animate:{enter:{type:"waveIn",duration:800}},axis:{y:{nice:!0,labelAutoHide:!0,labelAutoRotate:!1},x:{title:!1,nice:!0,labelAutoRotate:!1,labelAutoHide:{type:"equidistance",cfg:{minGap:6}}}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return s2t},n})(Ae);function u2t(t){return tt.flow(Z0,De)(t)}var f2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),d2t=(function(t){f2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="CirclePacking",e}return n.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack",encode:{color:"depth"}}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return u2t},n})(Ae),Gv=function(){return Gv=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gv.apply(this,arguments)};function Ym(t,n){return t||n}function h2t(t){var n=function(e){var r=e.options,i=r.xField,a=r.yField,o=r.colorField,s=r.seriesField,c=r.children,l=c==null?void 0:c.map(function(u){return Gv(Gv({},u),{xField:i,yField:a,seriesField:Ym(s,o),colorField:Ym(o,s),data:u.type==="density"?{transform:[{type:"kde",field:a,groupBy:[i,Ym(s,o)]}]}:u.data})}).filter(function(u){return r.box||u.type==="density"});return tt.set(r,"children",l),delete r.box,e};return tt.flow(n,Mn,De)(t)}var p2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),v2t=(function(t){p2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="violin",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"density",sizeField:"size",tooltip:!1},{type:"boxplot",shapeField:"violin",style:{opacity:.5,point:!1}}],animate:{enter:{type:"fadeIn"}}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return h2t},n})(Ae),qu=function(){return qu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qu.apply(this,arguments)},g2t=function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return t.concat(a||Array.prototype.slice.call(n))};function y2t(t){var n=function(a){var o=a.options,s=o.yField,c=o.children;return c.forEach(function(l,u){tt.set(l,"yField",s[u])}),a},e=function(a){var o=a.options,s=o.yField,c=o.children,l=o.data;if(tt.isPlainObject(l))return a;var u=tt.isArray(tt.get(l,[0]))?l:[l,l];return c.forEach(function(f,d){tt.set(f,"data",g2t([],u[d].map(function(h){return qu({groupKey:s[d]},h)}),!0))}),a},r=function(a){var o=a.options,s=o.yField,c=s[0],l=s[1],u=o.tooltip;return u||tt.set(o,"tooltip",{items:[{field:c,value:c},{field:l,value:l}]}),a},i=function(a){var o=a.options,s=o.children,c=o.layout,l=o.coordinate.transform,u=o.paddingBottom,f=u===void 0?TP:u,d=o.paddingLeft,h=d===void 0?TP:d,p=o.axis;tt.set(o,"axisText",qu(qu({},(p==null?void 0:p.x)||{}),{layout:c}));var g=s[0],y=s[1];if(c==="vertical")tt.set(o,"direction","col"),tt.set(o,"paddingLeft",h),tt.set(o,"coordinate.transform",l.filter(function(O){return O.type!=="transpose"})),tt.set(g,"paddingBottom",MP),tt.set(y,"paddingTop",MP),tt.set(y,"axis.x.position","top"),tt.set(y,"scale.y.range",[0,1]);else{tt.set(o,"paddingBottom",f),tt.set(g,"scale.y.range",[0,1]);var m=g.paddingRight,x=m===void 0?Xb:m,w=y.paddingLeft,_=w===void 0?Xb:w;tt.set(g,"paddingRight",x),tt.set(g,"axis.x.position","right"),tt.set(y,"paddingLeft",_)}return a};return tt.flow(n,e,r,i,Mn,De)(t)}var m2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),b2t=(function(t){m2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="BidirectionalBar",e}return n.getDefaultOptions=function(){return{type:"spaceFlex",coordinate:{transform:[{type:"transpose"}]},scale:{y:{nice:!0}},direction:"row",layout:"horizontal",legend:!1,axis:{y:{title:!1},x:{title:!1,label:!1}},children:[{type:"interval"},{type:"interval"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return y2t},n})(Ae),jo;(function(t){t.color="key",t.d="path"})(jo||(jo={}));function x2t(t){var n=function(e){var r=e.options,i=r.data,a=r.setsField,o=r.sizeField;return tt.isArray(i)&&(tt.set(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:a,size:o,as:[jo.color,jo.d]}]}),tt.set(r,"colorField",jo.color),tt.set(r,["children","0","encode","d"],jo.d)),e};return tt.flow(n,De)(t)}var w2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),_2t=(function(t){w2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="venn",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:jo.color,d:jo.d}}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return x2t},n})(Ae);function O2t(t){return tt.flow(Z0,De)(t)}var S2t=(function(){var t=function(n,e){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(n,e)};return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),E2t=(function(t){S2t(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e.type="Sunburst",e}return n.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},n.prototype.getDefaultOptions=function(){return n.getDefaultOptions()},n.prototype.getSchemaAdaptor=function(){return O2t},n})(Ae),k2t={Base:Pbt,Line:Kbt,Column:Wbt,Pie:Jbt,Area:Dbt,Bar:Fbt,DualAxes:CP,Funnel:Ubt,Scatter:nxt,Radar:axt,Rose:Axt,Stock:lxt,TinyLine:dxt,TinyArea:vxt,TinyColumn:mxt,TinyProgress:wxt,TinyRing:Sxt,Waterfall:Cxt,Histogram:Rxt,Heatmap:jxt,Box:Bxt,Sankey:Yxt,Bullet:Uxt,Gauge:Kxt,Liquid:Jxt,WordCloud:n2t,Treemap:a2t,RadialBar:l2t,CirclePacking:d2t,Violin:v2t,BidirectionalBar:b2t,Venn:_2t,Mix:CP,Sunburst:E2t},Ku=function(){return Ku=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ku.apply(this,arguments)},LP=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e},A2t=IP(function(t,n){var e=t.chartType,r=e===void 0?"Base":e,i=LP(t,["chartType"]),a=i.containerStyle,o=a===void 0?{height:"inherit",flex:1}:a,s=i.containerAttributes,c=s===void 0?{}:s,l=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=i.onReady,p=LP(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate","onReady"]),g=V1t(k2t[r],Ku(Ku({},p),{onReady:function(m){n&&(typeof n=="function"?n(m):n.current=m),h==null||h(m)}})),y=g.container;return Bn.createElement(B1t,{errorTemplate:d},u&&Bn.createElement($1t,{loadingTemplate:f,theme:i.theme,loading:u}),Bn.createElement("div",Ku({className:l,style:o,ref:y},c)))}),M2t=NP({});function T2t(){return RP(M2t)}var Jb=function(){return Jb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Jb.apply(this,arguments)};function P2t(t){var n=t.yField,e=t.data,r=tt.isArray(e)&&e.length>0&&tt.isString(n)&&!tt.get(t,"scale.y.domainMax"),i=Object.isFrozen(t)?Jb({},t):t;return r&&e.reduce(function(a,o){return a+o[n]},0)===0?tt.set(i,"scale.y.domainMax",1):r&&e.reduce(function(a,o){return a+o[n]},0)!==0&&tt.set(i,"scale.y.domainMax",void 0),i}var Zu=function(){return Zu=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Zu.apply(this,arguments)};function C2t(t){return t.charAt(0).toLowerCase()+t.slice(1),IP(function(n,e){var r,i,a=T2t(),o=_p(function(){return t.charAt(0).toLowerCase()+t.slice(1)},[t]),s=tt.flow([P2t])(n),c=Zu(Zu({},(r=a==null?void 0:a.common)!==null&&r!==void 0?r:{}),(i=a==null?void 0:a[o])!==null&&i!==void 0?i:{});return Bn.createElement(A2t,Zu({},c,s,{chartType:t,ref:e}))})}var L2t=C2t("Line");const N2t=({statistics:t,viewMode:n})=>{const e=Nu(null),[r,i]=oa({width:500,height:0}),a=_p(()=>{const c=(t==null?void 0:t.operateGroupDetail)??[],l=new Set;for(const u of c)(u==null?void 0:u.date)!=null&&l.add(String(u.date));return l.size},[t==null?void 0:t.operateGroupDetail]),o=a>8,s=_p(()=>!o||!a?1:Math.min(1,8/a),[o,a]);return Qu(()=>{const c=()=>{if(e.current){const u=window.innerHeight,f=e.current.getBoundingClientRect().top;i({height:u-f-180-80,width:e.current.getBoundingClientRect().width-56})}};c(),window.addEventListener("resize",c);const l=setTimeout(c,100);return()=>{window.removeEventListener("resize",c),clearTimeout(l)}},[n]),Zn("div",{className:"space-y-6",ref:e,children:[Zn(oG,{gutter:16,children:[It(fy,{span:8,children:It(Qd,{children:It(dy,{title:"\u603B\u64CD\u4F5C\u6B21\u6570",value:t==null?void 0:t.totalCount,suffix:"\u6B21"})})}),It(fy,{span:8,children:It(Qd,{children:It(dy,{title:"\u6210\u529F\u7387",value:t!=null&&t.totalCount?((t==null?void 0:t.totalCount)-(t==null?void 0:t.totalFailCount))/(t==null?void 0:t.totalCount)*100:0,precision:2,suffix:"%",valueStyle:{color:"#3f8600"}})})}),It(fy,{span:8,children:It(Qd,{children:It(dy,{title:"\u5931\u8D25\u7387",value:t!=null&&t.totalCount?(t==null?void 0:t.totalFailCount)/(t==null?void 0:t.totalCount)*100:0,precision:2,suffix:"%",valueStyle:{color:"#cf1322"}})})})]}),It(Qd,{title:Zn("div",{className:"flex items-center gap-2",children:[It("div",{...nC("GROUP"),className:"w-8 h-8",children:It(jP,{...rp(),className:"text-white"})}),It("span",{children:"\u64CD\u4F5C\u8D8B\u52BF"}),Zn("span",{className:"text-gray-500 text-xs",children:["\u539F\u59CB\u8BB0\u5F55\u6570\u636E(",t==null?void 0:t.totalCount,"\u6761)"]})]}),styles:{body:{minHeight:`${r==null?void 0:r.height}px`}},children:It(L2t,{data:(t==null?void 0:t.operateGroupDetail)||[],xField:"date",yField:"count",seriesField:"name",height:(r==null?void 0:r.height)-60,width:(r==null?void 0:r.width)||700,point:{size:4,shape:"circle",style:{fillOpacity:1}},xAxis:{type:"cat",tickCount:o?8:Math.max(2,a||0),label:{autoRotate:!0,autoHide:!1,autoEllipsis:!0,style:{fontSize:12}}},yAxis:{label:{formatter:c=>`${c}\u6B21`,style:{fontSize:12}}},legend:{position:"top",itemName:{style:{fontSize:12}}},smooth:!0,animation:{appear:{animation:"wave-in",duration:1e3}},slider:o?{start:0,end:s}:void 0,scrollbar:o?{x:{}}:void 0})})]})},{RangePicker:R2t}=sG,I2t=Yv.div.attrs({className:"oprecords-wrapper"})`
322
322
  width: 100%;
323
323
  height: 100%;
324
324
  min-height: 0;
@@ -341,4 +341,4 @@ function print() { __p += __j.call(arguments, '') }
341
341
  align-items: center;
342
342
  gap: 12px;
343
343
  flex-wrap: wrap;
344
- `;function F2t(t){const{url:n="http://127.0.0.1:2230",token:e,role:r,eventsEmit:i}=t,{getMessage:a}=oY(),o=300,[s,c]=oa(!1),[l,u]=oa(null),[f,d]=oa("timeline"),[h,p]=oa({username:"",dateRange:[np().subtract(3,"month"),np()]}),[g,y]=oa(""),{getTimelineOperateRecords:m,getStatisticsOperateRecords:x}=_p(()=>cY({url:n,token:e,role:r,eventsEmit:i,getMessage:a}),[]),w=Nu({timeline:null,statistics:null});Qu(()=>{var H,U,Z,q;console.log(" paramsCache.current",w.current);const F=h.username||void 0,j=(U=(H=h.dateRange)==null?void 0:H[0])==null?void 0:U.format("YYYY-MM-DD"),I=(q=(Z=h.dateRange)==null?void 0:Z[1])==null?void 0:q.format("YYYY-MM-DD"),$=w.current[f],z=JSON.stringify({fuzzy:F,start:j,end:I});($==null?void 0:$.key)!==z&&(f=="timeline"?(M(1),L(1,!1)):R())},[h,f]);const[_,O]=oa(!0),[S,E]=oa([]),[A,M]=oa(1),[T,P]=oa(),L=async(F=1,j=!1)=>{var I,$,z,Y;try{c(!0);const H={pageNo:F,pageSize:o,fuzzy:h.username||void 0,start:($=(I=h.dateRange)==null?void 0:I[0])==null?void 0:$.format("YYYY-MM-DD"),end:(Y=(z=h.dateRange)==null?void 0:z[1])==null?void 0:Y.format("YYYY-MM-DD")},U=await m(H);if(w.current.timeline={key:JSON.stringify({fuzzy:H.fuzzy,start:H.start,end:H.end,pageSize:o})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",U),U!=null&&U.records){const Z=U.records.map(J=>({id:J.id,endTime:J.endTime,gmtCreated:J.gmtCreated,gmtModified:J.gmtModified,ip:J.ip,name:J.name||"",params:J.params,startTime:J.startTime,success:J.success||0,url:J.url||"",userId:J.userId,userName:J.userName}));E(J=>j?[...J,...Z]:Z);const q=U.total||0;O(F*o<q),M(F)}}catch(H){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",H)}finally{c(!1)}},C=()=>{!s&&_&&L(A+1,!0)},R=async()=>{var F,j,I,$;try{c(!0);const z={fuzzy:h.username||void 0,start:(j=(F=h.dateRange)==null?void 0:F[0])==null?void 0:j.format("YYYY-MM-DD"),end:($=(I=h.dateRange)==null?void 0:I[1])==null?void 0:$.format("YYYY-MM-DD")},Y=await x({...z});w.current.statistics={key:JSON.stringify({fuzzy:z.fuzzy,start:z.start,end:z.end})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",Y),P(Y)}catch(z){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",z)}finally{c(!1)}},D=(F,{from:j})=>{if(!F)return!1;const I=np().endOf("day");if(F.isAfter(I,"day"))return!0;if(!j)return!1;const $=j.subtract(3,"month").startOf("day"),z=j.add(3,"month").startOf("day");return F.isBefore($,"day")||F.isAfter(z,"day")};return It(lG,{title:a("dashboard.title"),description:a("dashboard.description"),children:Zn(I2t,{children:[Zn(D2t,{children:[Zn(j2t,{children:[It(cG,{value:g,onChange:F=>{y(F.target.value)},onPressEnter:()=>{p(F=>({...F,username:g}))},placeholder:a("toolbar.keywordPlaceholder"),style:{width:240},suffix:It(fG,{size:14,onClick:()=>{p(F=>({...F,username:g}))}})}),It(R2t,{value:h==null?void 0:h.dateRange,allowClear:!1,onChange:F=>{F&&F[0]&&F[1]&&p(j=>({...j,dateRange:[F[0],F[1]]}))},disabledDate:D})]}),It($2t,{children:Zn(hy.Group,{value:f,onChange:F=>{d(F.target.value)},children:[Zn(hy.Button,{value:"timeline",children:[It(hG,{size:14,className:"inline"})," \u65F6\u95F4\u8F74"]}),Zn(hy.Button,{value:"statistics",children:[It(dG,{size:14,className:"inline"})," \u7EDF\u8BA1\u56FE"]})]})})]}),s?It("div",{style:{padding:24,display:"flex",justifyContent:"center"},children:It(DP,{})}):l?It("div",{style:{padding:16,color:"#cf1322"},children:l}):It(eG,{children:f==="statistics"?It(N2t,{statistics:T,viewMode:f}):It(EY,{records:S,loadMore:C,hasMore:_})})]})})}function uwt({locale:t="zh",messages:n,...e}){return It(sY,{locale:t,messages:n,children:It(F2t,{...e})})}export{lo as A,WG as B,Go as C,rr as D,nc as E,jc as F,q2t as G,Jd as H,YP as I,uwt as O,Hm as _,Ws as a,pG as b,no as c,pt as d,ht as e,wt as f,Hv as g,GP as h,rl as i,RG as j,Vt as k,PG as l,OG as m,Dt as n,le as o,bG as p,yG as q,K2t as r,ex as s,wG as t,MG as u,FG as v,Uv as w,Z2t as x,Q2t as y,te as z};
344
+ `;function F2t(t){const{url:n="http://127.0.0.1:2230",token:e,role:r,eventsEmit:i}=t,{getMessage:a}=oY(),o=300,[s,c]=oa(!1),[l,u]=oa(null),[f,d]=oa("timeline"),[h,p]=oa({username:"",dateRange:[np().subtract(3,"month"),np()]}),[g,y]=oa(""),{getTimelineOperateRecords:m,getStatisticsOperateRecords:x}=_p(()=>cY({url:n,token:e,role:r,eventsEmit:i,getMessage:a}),[]),w=Nu({timeline:null,statistics:null});Qu(()=>{var H,U,Z,q;const F=h.username||void 0,j=(U=(H=h.dateRange)==null?void 0:H[0])==null?void 0:U.format("YYYY-MM-DD"),I=(q=(Z=h.dateRange)==null?void 0:Z[1])==null?void 0:q.format("YYYY-MM-DD"),$=w.current[f],z=JSON.stringify({fuzzy:F,start:j,end:I});($==null?void 0:$.key)!==z&&(f=="timeline"?(M(1),L(1,!1)):R())},[h,f]);const[_,O]=oa(!0),[S,E]=oa([]),[A,M]=oa(1),[T,P]=oa([]),L=async(F=1,j=!1)=>{var I,$,z,Y;try{c(!0);const H={pageNo:F,pageSize:o,fuzzy:h.username||void 0,start:($=(I=h.dateRange)==null?void 0:I[0])==null?void 0:$.format("YYYY-MM-DD"),end:(Y=(z=h.dateRange)==null?void 0:z[1])==null?void 0:Y.format("YYYY-MM-DD")},U=await m(H);if(w.current.timeline={key:JSON.stringify({fuzzy:H.fuzzy,start:H.start,end:H.end})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",U),U!=null&&U.records){const Z=U.records.map(J=>({id:J.id,endTime:J.endTime,gmtCreated:J.gmtCreated,gmtModified:J.gmtModified,ip:J.ip,name:J.name||"",params:J.params,startTime:J.startTime,success:J.success||0,url:J.url||"",userId:J.userId,userName:J.userName}));E(J=>j?[...J,...Z]:Z);const q=U.total||0;O(F*o<q),M(F)}}catch(H){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",H)}finally{c(!1)}},C=()=>{!s&&_&&L(A+1,!0)},R=async()=>{var F,j,I,$;try{c(!0);const z={fuzzy:h.username||void 0,start:(j=(F=h.dateRange)==null?void 0:F[0])==null?void 0:j.format("YYYY-MM-DD"),end:($=(I=h.dateRange)==null?void 0:I[1])==null?void 0:$.format("YYYY-MM-DD")},Y=await x({...z});w.current.statistics={key:JSON.stringify({fuzzy:z.fuzzy,start:z.start,end:z.end})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",Y),P(Y)}catch(z){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",z)}finally{c(!1)}},D=(F,{from:j})=>{if(!F)return!1;const I=np().endOf("day");if(F.isAfter(I,"day"))return!0;if(!j)return!1;const $=j.subtract(3,"month").startOf("day"),z=j.add(3,"month").startOf("day");return F.isBefore($,"day")||F.isAfter(z,"day")};return It(lG,{title:a("dashboard.title"),description:a("dashboard.description"),children:Zn(I2t,{children:[Zn(D2t,{children:[Zn(j2t,{children:[It(cG,{value:g,onChange:F=>{y(F.target.value)},onPressEnter:()=>{p(F=>({...F,username:g}))},placeholder:a("toolbar.keywordPlaceholder"),style:{width:240},suffix:It(fG,{size:14,onClick:()=>{p(F=>({...F,username:g}))}})}),It(R2t,{value:h==null?void 0:h.dateRange,allowClear:!1,onChange:F=>{F&&F[0]&&F[1]&&p(j=>({...j,dateRange:[F[0],F[1]]}))},disabledDate:D})]}),It($2t,{children:Zn(hy.Group,{value:f,onChange:F=>{d(F.target.value)},children:[Zn(hy.Button,{value:"timeline",children:[It(hG,{size:14,className:"inline"})," \u65F6\u95F4\u8F74"]}),Zn(hy.Button,{value:"statistics",children:[It(dG,{size:14,className:"inline"})," \u7EDF\u8BA1\u56FE"]})]})})]}),s?It("div",{style:{padding:24,display:"flex",justifyContent:"center"},children:It(DP,{})}):l?It("div",{style:{padding:16,color:"#cf1322"},children:l}):It(eG,{children:f==="statistics"?It(N2t,{statistics:T,viewMode:f}):It(EY,{records:S,loadMore:C,hasMore:_})})]})})}function uwt({locale:t="zh",messages:n,...e}){return It(sY,{locale:t,messages:n,children:It(F2t,{...e})})}export{lo as A,WG as B,Go as C,rr as D,nc as E,jc as F,q2t as G,Jd as H,YP as I,uwt as O,Hm as _,Ws as a,pG as b,no as c,pt as d,ht as e,wt as f,Hv as g,GP as h,rl as i,RG as j,Vt as k,PG as l,OG as m,Dt as n,le as o,bG as p,yG as q,K2t as r,ex as s,wG as t,MG as u,FG as v,Uv as w,Z2t as x,Q2t as y,te as z};
@@ -1,4 +1,4 @@
1
- import{jsx as O,jsxs as ne,Fragment as Nn}from"react/jsx-runtime";import*as L from"react";import ve,{createElement as hi,PureComponent as Gu,useState as fe,useMemo as Ke,createContext as ti,Children as Ku,cloneElement as Xu,Component as Yu,useRef as je,useEffect as Ie,useContext as vr,version as Qu,isValidElement as Zu,useLayoutEffect as Ju,useCallback as jn}from"react";import Tt from"axios";import{AiChat as el,validateFileUpload as tl,showValidationErrors as rl}from"@mxmweb/aichat";import{mergeLiveChunkToNodes as nl,ChatMessageAdapter as Go}from"@mxmweb/rtext";import{Dropdown as al,Input as Y0,Popover as il,message as Et,Skeleton as Un,Button as dn,ConfigProvider as ri,Modal as Q0,Form as Ko,Table as ol,Pagination as sl,Empty as cl,Tooltip as Dn,Drawer as Z0}from"antd";import{u as hr}from"./index-CpW6Dhpp.js";import{Icon as ul,defaultTheme as wo,useTheme as ll,deepMergeTheme as Xo}from"@mxmweb/zui";import{_ as Bo,a as kt,b as we,w as Cr,c as _e,d as Pt,e as It,f as q,h as J0,i as Li,j as fl,k as le,l as dl,m as Tr,n as Y,o as de,u as cn,r as ec,p as pl,q as hl,s as xl,t as vl,F as Dt,v as Ka,x as xi,y as vi,z as gn,A as Rr,B as xr,I as gl,C as Vr,D as Ot,E as mn,g as tc,G as ml,H as gi}from"./index-CmltVl0j.js";import Yo from"dayjs";import{c as yn}from"./createLucideIcon-Bj5DlX2s.js";import{P as yl}from"./plus-B679mjyt.js";import{S as $i}from"./search-CEuIa9-_.js";import{X as rc}from"./x-CdZQbi--.js";import*as Cl from"react-dom";import Qo,{createPortal as bl}from"react-dom";import{f as Fl,r as El,a as Al,c as wl,B as Bl,z as Sl,d as nc,g as ac,b as ic,e as zi,h as So,i as qi,D as _l,j as Dl,T as Hi,k as mi,l as kl,m as Pl,N as Il,n as Rl,G as Tl,o as Ol,W as Nl,p as oc,q as Ml,s as Ll,u as $l,F as zl,t as Zo,v as yi,w as ql,x as Hl,y as Vl,A as jl,E as Ul}from"./index-BrQsYGxa.js";import{a as Wl,C as Gl,G as sc}from"./GientechStreamReader-_ih9ja1B.js";/* empty css *//* empty css */import"@mxmweb/fviewer";import"../database.js";import"../databaseId.js";import"../databaseTable.js";import"../modelManage.js";import"../sensitive.js";import"./index-CVBBj_Pf.js";/**
1
+ import{jsx as O,jsxs as ne,Fragment as Nn}from"react/jsx-runtime";import*as L from"react";import ve,{createElement as hi,PureComponent as Gu,useState as fe,useMemo as Ke,createContext as ti,Children as Ku,cloneElement as Xu,Component as Yu,useRef as je,useEffect as Ie,useContext as vr,version as Qu,isValidElement as Zu,useLayoutEffect as Ju,useCallback as jn}from"react";import Tt from"axios";import{AiChat as el,validateFileUpload as tl,showValidationErrors as rl}from"@mxmweb/aichat";import{mergeLiveChunkToNodes as nl,ChatMessageAdapter as Go}from"@mxmweb/rtext";import{Dropdown as al,Input as Y0,Popover as il,message as Et,Skeleton as Un,Button as dn,ConfigProvider as ri,Modal as Q0,Form as Ko,Table as ol,Pagination as sl,Empty as cl,Tooltip as Dn,Drawer as Z0}from"antd";import{u as hr}from"./index-CpW6Dhpp.js";import{Icon as ul,defaultTheme as wo,useTheme as ll,deepMergeTheme as Xo}from"@mxmweb/zui";import{_ as Bo,a as kt,b as we,w as Cr,c as _e,d as Pt,e as It,f as q,h as J0,i as Li,j as fl,k as le,l as dl,m as Tr,n as Y,o as de,u as cn,r as ec,p as pl,q as hl,s as xl,t as vl,F as Dt,v as Ka,x as xi,y as vi,z as gn,A as Rr,B as xr,I as gl,C as Vr,D as Ot,E as mn,g as tc,G as ml,H as gi}from"./index-DBmGcDq0.js";import Yo from"dayjs";import{c as yn}from"./createLucideIcon-Bj5DlX2s.js";import{P as yl}from"./plus-B679mjyt.js";import{S as $i}from"./search-CEuIa9-_.js";import{X as rc}from"./x-CdZQbi--.js";import*as Cl from"react-dom";import Qo,{createPortal as bl}from"react-dom";import{f as Fl,r as El,a as Al,c as wl,B as Bl,z as Sl,d as nc,g as ac,b as ic,e as zi,h as So,i as qi,D as _l,j as Dl,T as Hi,k as mi,l as kl,m as Pl,N as Il,n as Rl,G as Tl,o as Ol,W as Nl,p as oc,q as Ml,s as Ll,u as $l,F as zl,t as Zo,v as yi,w as ql,x as Hl,y as Vl,A as jl,E as Ul}from"./index-BrQsYGxa.js";import{a as Wl,C as Gl,G as sc}from"./GientechStreamReader-_ih9ja1B.js";/* empty css *//* empty css */import"@mxmweb/fviewer";import"../database.js";import"../databaseId.js";import"../databaseTable.js";import"../modelManage.js";import"../sensitive.js";import"./index-CVBBj_Pf.js";/**
2
2
  * @license lucide-react v0.456.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
package/chat.js CHANGED
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"axios";import"@mxmweb/aichat";import"@mxmweb/rtext";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import{D as B,w as C}from"./assets/style-CtNhFE2h.js";import"./assets/index-BrQsYGxa.js";/* empty css *//* empty css */import{registerPDFWorker as G}from"@mxmweb/fviewer";import"./assets/index-CmltVl0j.js";import"styled-components";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/search-CEuIa9-_.js";import"./assets/plus-B679mjyt.js";import"./assets/x-CdZQbi--.js";import"react-dom";import"./assets/GientechStreamReader-_ih9ja1B.js";import"./database.js";import"@mxmweb/xviewer";import"./databaseId.js";import"./assets/triangle-alert-LqO4u4ts.js";import"./assets/loader-circle-C1Oa97Sz.js";import"./databaseTable.js";import"./modelManage.js";import"./sensitive.js";import"./assets/circle-plus-RlDPoPkb.js";import"./assets/index-CVBBj_Pf.js";export{B as DrawerType,C as default,G as registerPDFWorker};
1
+ import"react/jsx-runtime";import"react";import"axios";import"@mxmweb/aichat";import"@mxmweb/rtext";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import{D as B,w as C}from"./assets/style-DcIaNpvg.js";import"./assets/index-BrQsYGxa.js";/* empty css *//* empty css */import{registerPDFWorker as G}from"@mxmweb/fviewer";import"./assets/index-DBmGcDq0.js";import"styled-components";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/search-CEuIa9-_.js";import"./assets/plus-B679mjyt.js";import"./assets/x-CdZQbi--.js";import"react-dom";import"./assets/GientechStreamReader-_ih9ja1B.js";import"./database.js";import"@mxmweb/xviewer";import"./databaseId.js";import"./assets/triangle-alert-LqO4u4ts.js";import"./assets/loader-circle-C1Oa97Sz.js";import"./databaseTable.js";import"./modelManage.js";import"./sensitive.js";import"./assets/circle-plus-RlDPoPkb.js";import"./assets/index-CVBBj_Pf.js";export{B as DrawerType,C as default,G as registerPDFWorker};
package/index.js CHANGED
@@ -1 +1 @@
1
- import{D as h,a as G,L as T,g as c,u as k}from"./assets/style-CtNhFE2h.js";import{C as y}from"./assets/index-BrQsYGxa.js";import"./database.js";import{DatabaseIdI18nContext as R,DatabaseIdI18nProvider as W,getDatabaseIdMessages as j,useDatabaseIdI18n as q}from"./databaseId.js";import"./databaseTable.js";import"react/jsx-runtime";import"antd";import"react";import"axios";import{ModelManageI18nContext as B,ModelManageI18nProvider as E,getModelManageMessages as H,interpolateModelManage as J,useModelManageI18n as K}from"./modelManage.js";import{SensitiveI18nContext as O,SensitiveI18nProvider as Q,getSensitiveMessages as U,interpolate as V,useSensitiveI18n as X}from"./sensitive.js";import"./assets/index-CmltVl0j.js";import{G as Z}from"./assets/GientechStreamReader-_ih9ja1B.js";import{a as $,A as ee,p as te,g as oe,u as re}from"./assets/index-CVBBj_Pf.js";import{registerPDFWorker as ie}from"@mxmweb/fviewer";import"@mxmweb/aichat";import"@mxmweb/rtext";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"./assets/x-CdZQbi--.js";import"react-dom";/* empty css *//* empty css */import"./assets/loader-circle-C1Oa97Sz.js";import"./assets/circle-plus-RlDPoPkb.js";import"styled-components";import"@mxmweb/xviewer";import"./assets/triangle-alert-LqO4u4ts.js";export{$ as AssistantConfigI18nContext,ee as AssistantConfigI18nProvider,y as ChatCompareComponent,R as DatabaseIdI18nContext,W as DatabaseIdI18nProvider,h as DrawerType,Z as GientechStreamReader,G as LoginI18nContext,T as LoginI18nProvider,B as ModelManageI18nContext,E as ModelManageI18nProvider,O as SensitiveI18nContext,Q as SensitiveI18nProvider,te as defaultTheme,oe as getAssistantConfigMessages,j as getDatabaseIdMessages,c as getLoginMessages,H as getModelManageMessages,U as getSensitiveMessages,V as interpolate,J as interpolateModelManage,ie as registerPDFWorker,re as useAssistantConfigI18n,q as useDatabaseIdI18n,k as useLoginI18n,K as useModelManageI18n,X as useSensitiveI18n};
1
+ import{D as h,a as G,L as T,g as c,u as k}from"./assets/style-DcIaNpvg.js";import{C as y}from"./assets/index-BrQsYGxa.js";import"./database.js";import{DatabaseIdI18nContext as R,DatabaseIdI18nProvider as W,getDatabaseIdMessages as j,useDatabaseIdI18n as q}from"./databaseId.js";import"./databaseTable.js";import"react/jsx-runtime";import"antd";import"react";import"axios";import{ModelManageI18nContext as B,ModelManageI18nProvider as E,getModelManageMessages as H,interpolateModelManage as J,useModelManageI18n as K}from"./modelManage.js";import{SensitiveI18nContext as O,SensitiveI18nProvider as Q,getSensitiveMessages as U,interpolate as V,useSensitiveI18n as X}from"./sensitive.js";import"./assets/index-DBmGcDq0.js";import{G as Z}from"./assets/GientechStreamReader-_ih9ja1B.js";import{a as $,A as ee,p as te,g as oe,u as re}from"./assets/index-CVBBj_Pf.js";import{registerPDFWorker as ie}from"@mxmweb/fviewer";import"@mxmweb/aichat";import"@mxmweb/rtext";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"./assets/x-CdZQbi--.js";import"react-dom";/* empty css *//* empty css */import"./assets/loader-circle-C1Oa97Sz.js";import"./assets/circle-plus-RlDPoPkb.js";import"styled-components";import"@mxmweb/xviewer";import"./assets/triangle-alert-LqO4u4ts.js";export{$ as AssistantConfigI18nContext,ee as AssistantConfigI18nProvider,y as ChatCompareComponent,R as DatabaseIdI18nContext,W as DatabaseIdI18nProvider,h as DrawerType,Z as GientechStreamReader,G as LoginI18nContext,T as LoginI18nProvider,B as ModelManageI18nContext,E as ModelManageI18nProvider,O as SensitiveI18nContext,Q as SensitiveI18nProvider,te as defaultTheme,oe as getAssistantConfigMessages,j as getDatabaseIdMessages,c as getLoginMessages,H as getModelManageMessages,U as getSensitiveMessages,V as interpolate,J as interpolateModelManage,ie as registerPDFWorker,re as useAssistantConfigI18n,q as useDatabaseIdI18n,k as useLoginI18n,K as useModelManageI18n,X as useSensitiveI18n};
package/oprecords.js CHANGED
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"styled-components";import"antd";import"dayjs";import"@mxmweb/zui";import{O as s}from"./assets/index-CmltVl0j.js";import"./assets/search-CEuIa9-_.js";import"axios";import"./assets/createLucideIcon-Bj5DlX2s.js";export{s as default};
1
+ import"react/jsx-runtime";import"react";import"styled-components";import"antd";import"dayjs";import"@mxmweb/zui";import{O as s}from"./assets/index-DBmGcDq0.js";import"./assets/search-CEuIa9-_.js";import"axios";import"./assets/createLucideIcon-Bj5DlX2s.js";export{s as default};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "MIT",
4
4
  "style": "assets/style.css",
5
5
  "private": false,
6
- "version": "2.2.34",
6
+ "version": "2.2.35",
7
7
  "author": "hanfeng_Zhang",
8
8
  "type": "module",
9
9
  "main": "index.js",