@nocobase/plugin-data-visualization 0.20.0-alpha.13 → 0.20.0-alpha.14
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,6 +1,7 @@
|
|
|
1
1
|
import { G2PlotChart } from './g2plot';
|
|
2
|
-
import { ChartType } from '../chart';
|
|
2
|
+
import { ChartType, RenderProps } from '../chart';
|
|
3
3
|
export declare class Pie extends G2PlotChart {
|
|
4
4
|
constructor();
|
|
5
5
|
init: ChartType['init'];
|
|
6
|
+
getProps({ data, general, advanced, fieldProps }: RenderProps): any;
|
|
6
7
|
}
|
package/dist/client/index.js
CHANGED
|
@@ -151,4 +151,4 @@ Error generating stack: `+o.message+`
|
|
|
151
151
|
transform: translate(24px, 0);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
`,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},emt=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=K.useRef(null);K.useEffect(function(){!e&&i.current&&tmt(i.current)},[]);var o=function(){return e||K.createElement("div",{ref:i})};return K.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},o())},nmt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rmt=function(t){nmt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||K.createElement("h5",null,"组件出错了,请核查后重试: ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):K.createElement(K.Fragment,null,this.props.children)},e}(K.Component),imt=typeof global=="object"&&global&&global.Object===Object&&global;const oR=imt;var omt=typeof self=="object"&&self&&self.Object===Object&&self,amt=oR||omt||Function("return this")();const xi=amt;var smt=xi.Symbol;const ti=smt;var aR=Object.prototype,lmt=aR.hasOwnProperty,cmt=aR.toString,Gd=ti?ti.toStringTag:void 0;function umt(t){var e=lmt.call(t,Gd),n=t[Gd];try{t[Gd]=void 0;var r=!0}catch(o){}var i=cmt.call(t);return r&&(e?t[Gd]=n:delete t[Gd]),i}var fmt=Object.prototype,dmt=fmt.toString;function hmt(t){return dmt.call(t)}var pmt="[object Null]",vmt="[object Undefined]",sR=ti?ti.toStringTag:void 0;function Qi(t){return t==null?t===void 0?vmt:pmt:sR&&sR in Object(t)?umt(t):hmt(t)}function sr(t){return t!=null&&typeof t=="object"}var gmt="[object Symbol]";function Hd(t){return typeof t=="symbol"||sr(t)&&Qi(t)==gmt}var ymt=NaN;function lR(t){return typeof t=="number"?t:Hd(t)?ymt:+t}function Xg(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var mmt=Array.isArray;const Ut=mmt;var bmt=1/0,cR=ti?ti.prototype:void 0,uR=cR?cR.toString:void 0;function qg(t){if(typeof t=="string")return t;if(Ut(t))return Xg(t,qg)+"";if(Hd(t))return uR?uR.call(t):"";var e=t+"";return e=="0"&&1/t==-bmt?"-0":e}function xmt(t,e){return function(n,r){var i;if(n===void 0&&r===void 0)return e;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=qg(n),r=qg(r)):(n=lR(n),r=lR(r)),i=t(n,r)}return i}}var wmt=/\s/;function Omt(t){for(var e=t.length;e--&&wmt.test(t.charAt(e)););return e}var _mt=/^\s+/;function Smt(t){return t&&t.slice(0,Omt(t)+1).replace(_mt,"")}function Gn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var fR=NaN,Emt=/^[-+]0x[0-9a-f]+$/i,Mmt=/^0b[01]+$/i,Pmt=/^0o[0-7]+$/i,Amt=parseInt;function dR(t){if(typeof t=="number")return t;if(Hd(t))return fR;if(Gn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Gn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Smt(t);var n=Mmt.test(t);return n||Pmt.test(t)?Amt(t.slice(2),n?2:8):Emt.test(t)?fR:+t}var hR=1/0,kmt=17976931348623157e292;function Cmt(t){if(!t)return t===0?t:0;if(t=dR(t),t===hR||t===-hR){var e=t<0?-1:1;return e*kmt}return t===t?t:0}function pR(t){var e=Cmt(t),n=e%1;return e===e?n?e-n:e:0}function x_(t){return t}var Tmt="[object AsyncFunction]",Lmt="[object Function]",Nmt="[object GeneratorFunction]",Imt="[object Proxy]";function Vc(t){if(!Gn(t))return!1;var e=Qi(t);return e==Lmt||e==Nmt||e==Tmt||e==Imt}var jmt=xi["__core-js_shared__"];const w_=jmt;var vR=function(){var t=/[^.]+$/.exec(w_&&w_.keys&&w_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function $mt(t){return!!vR&&vR in t}var Dmt=Function.prototype,Fmt=Dmt.toString;function Hs(t){if(t!=null){try{return Fmt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Rmt=/[\\^$.*+?()[\]{}|]/g,Bmt=/^\[object .+?Constructor\]$/,zmt=Function.prototype,Ymt=Object.prototype,Wmt=zmt.toString,Gmt=Ymt.hasOwnProperty,Hmt=RegExp("^"+Wmt.call(Gmt).replace(Rmt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vmt(t){if(!Gn(t)||$mt(t))return!1;var e=Vc(t)?Hmt:Bmt;return e.test(Hs(t))}function Umt(t,e){return t==null?void 0:t[e]}function Vs(t,e){var n=Umt(t,e);return Vmt(n)?n:void 0}var Xmt=Vs(xi,"WeakMap");const Vd=Xmt;var qmt=Vd&&new Vd;const gR=qmt;var yR=Object.create,Kmt=function(){function t(){}return function(e){if(!Gn(e))return{};if(yR)return yR(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const O_=Kmt;function Zmt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function __(){}var Qmt=4294967295;function Uc(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Qmt,this.__views__=[]}Uc.prototype=O_(__.prototype),Uc.prototype.constructor=Uc;function mR(){}var Jmt=gR?function(t){return gR.get(t)}:mR;const bR=Jmt;var t1t={};const xR=t1t;var e1t=Object.prototype,n1t=e1t.hasOwnProperty;function Kg(t){for(var e=t.name+"",n=xR[e],r=n1t.call(xR,e)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==t)return i.name}return e}function Da(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Da.prototype=O_(__.prototype),Da.prototype.constructor=Da;function S_(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function r1t(t){if(t instanceof Uc)return t.clone();var e=new Da(t.__wrapped__,t.__chain__);return e.__actions__=S_(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var i1t=Object.prototype,o1t=i1t.hasOwnProperty;function Zg(t){if(sr(t)&&!Ut(t)&&!(t instanceof Uc)){if(t instanceof Da)return t;if(o1t.call(t,"__wrapped__"))return r1t(t)}return new Da(t)}Zg.prototype=__.prototype,Zg.prototype.constructor=Zg;function wR(t){var e=Kg(t),n=Zg[e];if(typeof n!="function"||!(e in Uc.prototype))return!1;if(t===n)return!0;var r=bR(n);return!!r&&t===r[0]}var a1t=800,s1t=16,l1t=Date.now;function c1t(t){var e=0,n=0;return function(){var r=l1t(),i=s1t-(r-n);if(n=r,i>0){if(++e>=a1t)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function u1t(t){return function(){return t}}var f1t=function(){try{var t=Vs(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();const Qg=f1t;var d1t=Qg?function(t,e){return Qg(t,"toString",{configurable:!0,enumerable:!1,value:u1t(e),writable:!0})}:x_,h1t=c1t(d1t);const OR=h1t;function p1t(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function v1t(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function g1t(t){return t!==t}function y1t(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function _R(t,e,n){return e===e?y1t(t,e,n):v1t(t,g1t,n)}function m1t(t,e){var n=t==null?0:t.length;return!!n&&_R(t,e,0)>-1}var b1t=9007199254740991,x1t=/^(?:0|[1-9]\d*)$/;function Jg(t,e){var n=typeof t;return e=e==null?b1t:e,!!e&&(n=="number"||n!="symbol"&&x1t.test(t))&&t>-1&&t%1==0&&t<e}function ty(t,e,n){e=="__proto__"&&Qg?Qg(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ud(t,e){return t===e||t!==t&&e!==e}var w1t=Object.prototype,O1t=w1t.hasOwnProperty;function ey(t,e,n){var r=t[e];(!(O1t.call(t,e)&&Ud(r,n))||n===void 0&&!(e in t))&&ty(t,e,n)}function Us(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),i?ty(n,s,l):ey(n,s,l)}return n}var SR=Math.max;function ER(t,e,n){return e=SR(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=SR(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Zmt(t,this,s)}}function _1t(t,e){return OR(ER(t,e,x_),t+"")}var S1t=9007199254740991;function E_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=S1t}function Fa(t){return t!=null&&E_(t.length)&&!Vc(t)}function E1t(t,e,n){if(!Gn(n))return!1;var r=typeof e;return(r=="number"?Fa(n)&&Jg(e,n.length):r=="string"&&e in n)?Ud(n[e],t):!1}function MR(t){return _1t(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&E1t(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var M1t=Object.prototype;function ny(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||M1t;return t===n}function P1t(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var A1t="[object Arguments]";function PR(t){return sr(t)&&Qi(t)==A1t}var AR=Object.prototype,k1t=AR.hasOwnProperty,C1t=AR.propertyIsEnumerable,T1t=PR(function(){return arguments}())?PR:function(t){return sr(t)&&k1t.call(t,"callee")&&!C1t.call(t,"callee")};const Xd=T1t;function L1t(){return!1}var kR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,CR=kR&&typeof module=="object"&&module&&!module.nodeType&&module,N1t=CR&&CR.exports===kR,TR=N1t?xi.Buffer:void 0,I1t=TR?TR.isBuffer:void 0,j1t=I1t||L1t;const qd=j1t;var $1t="[object Arguments]",D1t="[object Array]",F1t="[object Boolean]",R1t="[object Date]",B1t="[object Error]",z1t="[object Function]",Y1t="[object Map]",W1t="[object Number]",G1t="[object Object]",H1t="[object RegExp]",V1t="[object Set]",U1t="[object String]",X1t="[object WeakMap]",q1t="[object ArrayBuffer]",K1t="[object DataView]",Z1t="[object Float32Array]",Q1t="[object Float64Array]",J1t="[object Int8Array]",tbt="[object Int16Array]",ebt="[object Int32Array]",nbt="[object Uint8Array]",rbt="[object Uint8ClampedArray]",ibt="[object Uint16Array]",obt="[object Uint32Array]",Se={};Se[Z1t]=Se[Q1t]=Se[J1t]=Se[tbt]=Se[ebt]=Se[nbt]=Se[rbt]=Se[ibt]=Se[obt]=!0,Se[$1t]=Se[D1t]=Se[q1t]=Se[F1t]=Se[K1t]=Se[R1t]=Se[B1t]=Se[z1t]=Se[Y1t]=Se[W1t]=Se[G1t]=Se[H1t]=Se[V1t]=Se[U1t]=Se[X1t]=!1;function abt(t){return sr(t)&&E_(t.length)&&!!Se[Qi(t)]}function M_(t){return function(e){return t(e)}}var LR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,Kd=LR&&typeof module=="object"&&module&&!module.nodeType&&module,sbt=Kd&&Kd.exports===LR,P_=sbt&&oR.process,lbt=function(){try{var t=Kd&&Kd.require&&Kd.require("util").types;return t||P_&&P_.binding&&P_.binding("util")}catch(e){}}();const Xc=lbt;var NR=Xc&&Xc.isTypedArray,cbt=NR?M_(NR):abt;const A_=cbt;var ubt=Object.prototype,fbt=ubt.hasOwnProperty;function IR(t,e){var n=Ut(t),r=!n&&Xd(t),i=!n&&!r&&qd(t),o=!n&&!r&&!i&&A_(t),a=n||r||i||o,s=a?P1t(t.length,String):[],l=s.length;for(var c in t)(e||fbt.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Jg(c,l)))&&s.push(c);return s}function jR(t,e){return function(n){return t(e(n))}}var dbt=jR(Object.keys,Object);const hbt=dbt;var pbt=Object.prototype,vbt=pbt.hasOwnProperty;function gbt(t){if(!ny(t))return hbt(t);var e=[];for(var n in Object(t))vbt.call(t,n)&&n!="constructor"&&e.push(n);return e}function Xs(t){return Fa(t)?IR(t):gbt(t)}var ybt=Object.prototype,mbt=ybt.hasOwnProperty,bbt=MR(function(t,e){if(ny(e)||Fa(e)){Us(e,Xs(e),t);return}for(var n in e)mbt.call(e,n)&&ey(t,n,e[n])});const $R=bbt;function xbt(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var wbt=Object.prototype,Obt=wbt.hasOwnProperty;function _bt(t){if(!Gn(t))return xbt(t);var e=ny(t),n=[];for(var r in t)r=="constructor"&&(e||!Obt.call(t,r))||n.push(r);return n}function Zd(t){return Fa(t)?IR(t,!0):_bt(t)}var Sbt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ebt=/^\w*$/;function k_(t,e){if(Ut(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Hd(t)?!0:Ebt.test(t)||!Sbt.test(t)||e!=null&&t in Object(e)}var Mbt=Vs(Object,"create");const Qd=Mbt;function Pbt(){this.__data__=Qd?Qd(null):{},this.size=0}function Abt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var kbt="__lodash_hash_undefined__",Cbt=Object.prototype,Tbt=Cbt.hasOwnProperty;function Lbt(t){var e=this.__data__;if(Qd){var n=e[t];return n===kbt?void 0:n}return Tbt.call(e,t)?e[t]:void 0}var Nbt=Object.prototype,Ibt=Nbt.hasOwnProperty;function jbt(t){var e=this.__data__;return Qd?e[t]!==void 0:Ibt.call(e,t)}var $bt="__lodash_hash_undefined__";function Dbt(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Qd&&e===void 0?$bt:e,this}function qs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}qs.prototype.clear=Pbt,qs.prototype.delete=Abt,qs.prototype.get=Lbt,qs.prototype.has=jbt,qs.prototype.set=Dbt;function Fbt(){this.__data__=[],this.size=0}function ry(t,e){for(var n=t.length;n--;)if(Ud(t[n][0],e))return n;return-1}var Rbt=Array.prototype,Bbt=Rbt.splice;function zbt(t){var e=this.__data__,n=ry(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Bbt.call(e,n,1),--this.size,!0}function Ybt(t){var e=this.__data__,n=ry(e,t);return n<0?void 0:e[n][1]}function Wbt(t){return ry(this.__data__,t)>-1}function Gbt(t,e){var n=this.__data__,r=ry(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Io(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Io.prototype.clear=Fbt,Io.prototype.delete=zbt,Io.prototype.get=Ybt,Io.prototype.has=Wbt,Io.prototype.set=Gbt;var Hbt=Vs(xi,"Map");const Jd=Hbt;function Vbt(){this.size=0,this.__data__={hash:new qs,map:new(Jd||Io),string:new qs}}function Ubt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function iy(t,e){var n=t.__data__;return Ubt(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Xbt(t){var e=iy(this,t).delete(t);return this.size-=e?1:0,e}function qbt(t){return iy(this,t).get(t)}function Kbt(t){return iy(this,t).has(t)}function Zbt(t,e){var n=iy(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function jo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jo.prototype.clear=Vbt,jo.prototype.delete=Xbt,jo.prototype.get=qbt,jo.prototype.has=Kbt,jo.prototype.set=Zbt;var Qbt="Expected a function";function C_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Qbt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(C_.Cache||jo),n}C_.Cache=jo;var Jbt=500;function txt(t){var e=C_(t,function(r){return n.size===Jbt&&n.clear(),r}),n=e.cache;return e}var ext=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nxt=/\\(\\)?/g,rxt=txt(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ext,function(n,r,i,o){e.push(i?o.replace(nxt,"$1"):r||n)}),e});const ixt=rxt;function T_(t){return t==null?"":qg(t)}function qc(t,e){return Ut(t)?t:k_(t,e)?[t]:ixt(T_(t))}var oxt=1/0;function Kc(t){if(typeof t=="string"||Hd(t))return t;var e=t+"";return e=="0"&&1/t==-oxt?"-0":e}function oy(t,e){e=qc(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Kc(e[n++])];return n&&n==r?t:void 0}function pe(t,e,n){var r=t==null?void 0:oy(t,e);return r===void 0?n:r}function L_(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var DR=ti?ti.isConcatSpreadable:void 0;function axt(t){return Ut(t)||Xd(t)||!!(DR&&t&&t[DR])}function FR(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=axt),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?FR(s,e-1,n,r,i):L_(i,s):r||(i[i.length]=s)}return i}function sxt(t){var e=t==null?0:t.length;return e?FR(t,1):[]}function N_(t){return OR(ER(t,void 0,sxt),t+"")}var lxt=jR(Object.getPrototypeOf,Object);const I_=lxt;var cxt="[object Object]",uxt=Function.prototype,fxt=Object.prototype,RR=uxt.toString,dxt=fxt.hasOwnProperty,hxt=RR.call(Object);function j_(t){if(!sr(t)||Qi(t)!=cxt)return!1;var e=I_(t);if(e===null)return!0;var n=dxt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&RR.call(n)==hxt}function pxt(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}var vxt=xi.isFinite,gxt=Math.min;function yxt(t){var e=Math[t];return function(n,r){if(n=dR(n),r=r==null?0:gxt(pR(r),292),r&&vxt(n)){var i=(T_(n)+"e").split("e"),o=e(i[0]+"e"+(+i[1]+r));return i=(T_(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(n)}}var mxt=yxt("ceil");const bxt=mxt;function xxt(){this.__data__=new Io,this.size=0}function wxt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Oxt(t){return this.__data__.get(t)}function _xt(t){return this.__data__.has(t)}var Sxt=200;function Ext(t,e){var n=this.__data__;if(n instanceof Io){var r=n.__data__;if(!Jd||r.length<Sxt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new jo(r)}return n.set(t,e),this.size=n.size,this}function wi(t){var e=this.__data__=new Io(t);this.size=e.size}wi.prototype.clear=xxt,wi.prototype.delete=wxt,wi.prototype.get=Oxt,wi.prototype.has=_xt,wi.prototype.set=Ext;function Mxt(t,e){return t&&Us(e,Xs(e),t)}function Pxt(t,e){return t&&Us(e,Zd(e),t)}var BR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,zR=BR&&typeof module=="object"&&module&&!module.nodeType&&module,Axt=zR&&zR.exports===BR,YR=Axt?xi.Buffer:void 0,WR=YR?YR.allocUnsafe:void 0;function GR(t,e){if(e)return t.slice();var n=t.length,r=WR?WR(n):new t.constructor(n);return t.copy(r),r}function kxt(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function HR(){return[]}var Cxt=Object.prototype,Txt=Cxt.propertyIsEnumerable,VR=Object.getOwnPropertySymbols,Lxt=VR?function(t){return t==null?[]:(t=Object(t),kxt(VR(t),function(e){return Txt.call(t,e)}))}:HR;const $_=Lxt;function Nxt(t,e){return Us(t,$_(t),e)}var Ixt=Object.getOwnPropertySymbols,jxt=Ixt?function(t){for(var e=[];t;)L_(e,$_(t)),t=I_(t);return e}:HR;const UR=jxt;function $xt(t,e){return Us(t,UR(t),e)}function XR(t,e,n){var r=e(t);return Ut(t)?r:L_(r,n(t))}function D_(t){return XR(t,Xs,$_)}function qR(t){return XR(t,Zd,UR)}var Dxt=Vs(xi,"DataView");const F_=Dxt;var Fxt=Vs(xi,"Promise");const R_=Fxt;var Rxt=Vs(xi,"Set");const Zc=Rxt;var KR="[object Map]",Bxt="[object Object]",ZR="[object Promise]",QR="[object Set]",JR="[object WeakMap]",t9="[object DataView]",zxt=Hs(F_),Yxt=Hs(Jd),Wxt=Hs(R_),Gxt=Hs(Zc),Hxt=Hs(Vd),Ks=Qi;(F_&&Ks(new F_(new ArrayBuffer(1)))!=t9||Jd&&Ks(new Jd)!=KR||R_&&Ks(R_.resolve())!=ZR||Zc&&Ks(new Zc)!=QR||Vd&&Ks(new Vd)!=JR)&&(Ks=function(t){var e=Qi(t),n=e==Bxt?t.constructor:void 0,r=n?Hs(n):"";if(r)switch(r){case zxt:return t9;case Yxt:return KR;case Wxt:return ZR;case Gxt:return QR;case Hxt:return JR}return e});const th=Ks;var Vxt=Object.prototype,Uxt=Vxt.hasOwnProperty;function Xxt(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Uxt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var qxt=xi.Uint8Array;const ay=qxt;function B_(t){var e=new t.constructor(t.byteLength);return new ay(e).set(new ay(t)),e}function Kxt(t,e){var n=e?B_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Zxt=/\w*$/;function Qxt(t){var e=new t.constructor(t.source,Zxt.exec(t));return e.lastIndex=t.lastIndex,e}var e9=ti?ti.prototype:void 0,n9=e9?e9.valueOf:void 0;function Jxt(t){return n9?Object(n9.call(t)):{}}function r9(t,e){var n=e?B_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var t2t="[object Boolean]",e2t="[object Date]",n2t="[object Map]",r2t="[object Number]",i2t="[object RegExp]",o2t="[object Set]",a2t="[object String]",s2t="[object Symbol]",l2t="[object ArrayBuffer]",c2t="[object DataView]",u2t="[object Float32Array]",f2t="[object Float64Array]",d2t="[object Int8Array]",h2t="[object Int16Array]",p2t="[object Int32Array]",v2t="[object Uint8Array]",g2t="[object Uint8ClampedArray]",y2t="[object Uint16Array]",m2t="[object Uint32Array]";function b2t(t,e,n){var r=t.constructor;switch(e){case l2t:return B_(t);case t2t:case e2t:return new r(+t);case c2t:return Kxt(t,n);case u2t:case f2t:case d2t:case h2t:case p2t:case v2t:case g2t:case y2t:case m2t:return r9(t,n);case n2t:return new r;case r2t:case a2t:return new r(t);case i2t:return Qxt(t);case o2t:return new r;case s2t:return Jxt(t)}}function i9(t){return typeof t.constructor=="function"&&!ny(t)?O_(I_(t)):{}}var x2t="[object Map]";function w2t(t){return sr(t)&&th(t)==x2t}var o9=Xc&&Xc.isMap,O2t=o9?M_(o9):w2t;const _2t=O2t;var S2t="[object Set]";function E2t(t){return sr(t)&&th(t)==S2t}var a9=Xc&&Xc.isSet,M2t=a9?M_(a9):E2t;const P2t=M2t;var A2t=1,k2t=2,C2t=4,s9="[object Arguments]",T2t="[object Array]",L2t="[object Boolean]",N2t="[object Date]",I2t="[object Error]",l9="[object Function]",j2t="[object GeneratorFunction]",$2t="[object Map]",D2t="[object Number]",c9="[object Object]",F2t="[object RegExp]",R2t="[object Set]",B2t="[object String]",z2t="[object Symbol]",Y2t="[object WeakMap]",W2t="[object ArrayBuffer]",G2t="[object DataView]",H2t="[object Float32Array]",V2t="[object Float64Array]",U2t="[object Int8Array]",X2t="[object Int16Array]",q2t="[object Int32Array]",K2t="[object Uint8Array]",Z2t="[object Uint8ClampedArray]",Q2t="[object Uint16Array]",J2t="[object Uint32Array]",ve={};ve[s9]=ve[T2t]=ve[W2t]=ve[G2t]=ve[L2t]=ve[N2t]=ve[H2t]=ve[V2t]=ve[U2t]=ve[X2t]=ve[q2t]=ve[$2t]=ve[D2t]=ve[c9]=ve[F2t]=ve[R2t]=ve[B2t]=ve[z2t]=ve[K2t]=ve[Z2t]=ve[Q2t]=ve[J2t]=!0,ve[I2t]=ve[l9]=ve[Y2t]=!1;function eh(t,e,n,r,i,o){var a,s=e&A2t,l=e&k2t,c=e&C2t;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Gn(t))return t;var u=Ut(t);if(u){if(a=Xxt(t),!s)return S_(t,a)}else{var f=th(t),d=f==l9||f==j2t;if(qd(t))return GR(t,s);if(f==c9||f==s9||d&&!i){if(a=l||d?{}:i9(t),!s)return l?$xt(t,Pxt(a,t)):Nxt(t,Mxt(a,t))}else{if(!ve[f])return i?t:{};a=b2t(t,f,s)}}o||(o=new wi);var h=o.get(t);if(h)return h;o.set(t,a),P2t(t)?t.forEach(function(y){a.add(eh(y,e,n,y,t,o))}):_2t(t)&&t.forEach(function(y,g){a.set(g,eh(y,e,n,g,t,o))});var p=c?l?qR:D_:l?Zd:Xs,v=u?void 0:p(t);return p1t(v||t,function(y,g){v&&(g=y,y=t[g]),ey(a,g,eh(y,e,n,g,t,o))}),a}var twt=1,ewt=4;function u9(t){return eh(t,twt|ewt)}var nwt="__lodash_hash_undefined__";function rwt(t){return this.__data__.set(t,nwt),this}function iwt(t){return this.__data__.has(t)}function nh(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new jo;++e<n;)this.add(t[e])}nh.prototype.add=nh.prototype.push=rwt,nh.prototype.has=iwt;function owt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function f9(t,e){return t.has(e)}var awt=1,swt=2;function d9(t,e,n,r,i,o){var a=n&awt,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var f=-1,d=!0,h=n&swt?new nh:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var y=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!owt(e,function(g,m){if(!f9(h,m)&&(p===g||i(p,g,n,r,o)))return h.push(m)})){d=!1;break}}else if(!(p===v||i(p,v,n,r,o))){d=!1;break}}return o.delete(t),o.delete(e),d}function lwt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function z_(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var cwt=1,uwt=2,fwt="[object Boolean]",dwt="[object Date]",hwt="[object Error]",pwt="[object Map]",vwt="[object Number]",gwt="[object RegExp]",ywt="[object Set]",mwt="[object String]",bwt="[object Symbol]",xwt="[object ArrayBuffer]",wwt="[object DataView]",h9=ti?ti.prototype:void 0,Y_=h9?h9.valueOf:void 0;function Owt(t,e,n,r,i,o,a){switch(n){case wwt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case xwt:return!(t.byteLength!=e.byteLength||!o(new ay(t),new ay(e)));case fwt:case dwt:case vwt:return Ud(+t,+e);case hwt:return t.name==e.name&&t.message==e.message;case gwt:case mwt:return t==e+"";case pwt:var s=lwt;case ywt:var l=r&cwt;if(s||(s=z_),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=uwt,a.set(t,e);var u=d9(s(t),s(e),r,i,o,a);return a.delete(t),u;case bwt:if(Y_)return Y_.call(t)==Y_.call(e)}return!1}var _wt=1,Swt=Object.prototype,Ewt=Swt.hasOwnProperty;function Mwt(t,e,n,r,i,o){var a=n&_wt,s=D_(t),l=s.length,c=D_(e),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:Ewt.call(e,d)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var v=!0;o.set(t,e),o.set(e,t);for(var y=a;++f<l;){d=s[f];var g=t[d],m=e[d];if(r)var b=a?r(m,g,d,e,t,o):r(g,m,d,t,e,o);if(!(b===void 0?g===m||i(g,m,n,r,o):b)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(t),o.delete(e),v}var Pwt=1,p9="[object Arguments]",v9="[object Array]",sy="[object Object]",Awt=Object.prototype,g9=Awt.hasOwnProperty;function kwt(t,e,n,r,i,o){var a=Ut(t),s=Ut(e),l=a?v9:th(t),c=s?v9:th(e);l=l==p9?sy:l,c=c==p9?sy:c;var u=l==sy,f=c==sy,d=l==c;if(d&&qd(t)){if(!qd(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new wi),a||A_(t)?d9(t,e,n,r,i,o):Owt(t,e,l,n,r,i,o);if(!(n&Pwt)){var h=u&&g9.call(t,"__wrapped__"),p=f&&g9.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,y=p?e.value():e;return o||(o=new wi),i(v,y,n,r,o)}}return d?(o||(o=new wi),Mwt(t,e,n,r,i,o)):!1}function ly(t,e,n,r,i){return t===e?!0:t==null||e==null||!sr(t)&&!sr(e)?t!==t&&e!==e:kwt(t,e,n,r,ly,i)}var Cwt=1,Twt=2;function Lwt(t,e,n,r){var i=n.length,o=i,a=!r;if(t==null)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){s=n[i];var l=s[0],c=t[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in t))return!1}else{var f=new wi;if(r)var d=r(c,u,l,t,e,f);if(!(d===void 0?ly(u,c,Cwt|Twt,r,f):d))return!1}}return!0}function y9(t){return t===t&&!Gn(t)}function Nwt(t){for(var e=Xs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,y9(i)]}return e}function m9(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function Iwt(t){var e=Nwt(t);return e.length==1&&e[0][2]?m9(e[0][0],e[0][1]):function(n){return n===t||Lwt(n,t,e)}}function jwt(t,e){return t!=null&&e in Object(t)}function $wt(t,e,n){e=qc(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Kc(e[r]);if(!(o=t!=null&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&E_(i)&&Jg(a,i)&&(Ut(t)||Xd(t)))}function b9(t,e){return t!=null&&$wt(t,e,jwt)}var Dwt=1,Fwt=2;function Rwt(t,e){return k_(t)&&y9(e)?m9(Kc(t),e):function(n){var r=pe(n,t);return r===void 0&&r===e?b9(n,t):ly(e,r,Dwt|Fwt)}}function Bwt(t){return function(e){return e==null?void 0:e[t]}}function zwt(t){return function(e){return oy(e,t)}}function Ywt(t){return k_(t)?Bwt(Kc(t)):zwt(t)}function W_(t){return typeof t=="function"?t:t==null?x_:typeof t=="object"?Ut(t)?Rwt(t[0],t[1]):Iwt(t):Ywt(t)}function Wwt(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Gwt(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(n(o[l],l,o)===!1)break}return e}}var Hwt=Gwt();const x9=Hwt;function Vwt(t,e){return t&&x9(t,e,Xs)}function Uwt(t,e){return function(n,r){if(n==null)return n;if(!Fa(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Xwt=Uwt(Vwt);const w9=Xwt;function qwt(t,e,n,r){return w9(t,function(i,o,a){e(r,i,n(i),a)}),r}function Kwt(t,e){return function(n,r){var i=Ut(n)?Wwt:qwt,o=e?e():{};return i(n,t,W_(r),o)}}function G_(t,e,n){(n!==void 0&&!Ud(t[e],n)||n===void 0&&!(e in t))&&ty(t,e,n)}function Zwt(t){return sr(t)&&Fa(t)}function H_(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Qwt(t){return Us(t,Zd(t))}function Jwt(t,e,n,r,i,o,a){var s=H_(t,n),l=H_(e,n),c=a.get(l);if(c){G_(t,n,c);return}var u=o?o(s,l,n+"",t,e,a):void 0,f=u===void 0;if(f){var d=Ut(l),h=!d&&qd(l),p=!d&&!h&&A_(l);u=l,d||h||p?Ut(s)?u=s:Zwt(s)?u=S_(s):h?(f=!1,u=GR(l,!0)):p?(f=!1,u=r9(l,!0)):u=[]:j_(l)||Xd(l)?(u=s,Xd(s)?u=Qwt(s):(!Gn(s)||Vc(s))&&(u=i9(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),G_(t,n,u)}function O9(t,e,n,r,i){t!==e&&x9(e,function(o,a){if(i||(i=new wi),Gn(o))Jwt(t,e,a,n,O9,r,i);else{var s=r?r(H_(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),G_(t,a,s)}},Zd)}var tOt=MR(function(t,e,n,r){O9(t,e,n,r)});const eOt=tOt;function nOt(t,e,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function rOt(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var iOt=xmt(function(t,e){return t/e},1);const oOt=iOt;function aOt(t,e){var n=-1,r=Fa(t)?Array(t.length):[];return w9(t,function(i,o,a){r[++n]=e(i,o,a)}),r}function Qc(t,e){var n=Ut(t)?Xg:aOt;return n(t,W_(e))}var sOt="Expected a function",lOt=8,cOt=32,uOt=128,fOt=256;function dOt(t){return N_(function(e){var n=e.length,r=n,i=Da.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new TypeError(sOt);if(i&&!a&&Kg(o)=="wrapper")var a=new Da([],!0)}for(r=a?r:n;++r<n;){o=e[r];var s=Kg(o),l=s=="wrapper"?bR(o):void 0;l&&wR(l[0])&&l[1]==(uOt|lOt|cOt|fOt)&&!l[4].length&&l[9]==1?a=a[Kg(l[0])].apply(a,l[3]):a=o.length==1&&wR(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&Ut(u))return a.plant(u).value();for(var f=0,d=n?e[f].apply(this,c):u;++f<n;)d=e[f].call(this,d);return d}})}var hOt=dOt();const zt=hOt;var pOt=Object.prototype,vOt=pOt.hasOwnProperty,gOt=Kwt(function(t,e,n){vOt.call(t,n)?t[n].push(e):ty(t,n,[e])});const _9=gOt;var yOt="[object String]";function S9(t){return typeof t=="string"||!Ut(t)&&sr(t)&&Qi(t)==yOt}function mOt(t,e){return Xg(e,function(n){return t[n]})}function bOt(t){return t==null?[]:mOt(t,Xs(t))}var xOt=Math.max;function wOt(t,e,n,r){t=Fa(t)?t:bOt(t),n=n&&!r?pR(n):0;var i=t.length;return n<0&&(n=xOt(i+n,0)),S9(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&_R(t,e,n)>-1}function OOt(t,e){return e.length<2?t:oy(t,pxt(e,0,-1))}var _Ot="[object Boolean]";function V_(t){return t===!0||t===!1||sr(t)&&Qi(t)==_Ot}function E9(t,e){return ly(t,e)}var SOt="[object Number]";function Jc(t){return typeof t=="number"||sr(t)&&Qi(t)==SOt}function EOt(t){return t==null}function MOt(t){return t===void 0}function POt(t,e){return e=qc(e,t),t=OOt(t,e),t==null||delete t[Kc(rOt(e))]}function AOt(t){return j_(t)?void 0:t}var kOt=1,COt=2,TOt=4,LOt=N_(function(t,e){var n={};if(t==null)return n;var r=!1;e=Xg(e,function(o){return o=qc(o,t),r||(r=o.length>1),o}),Us(t,qR(t),n),r&&(n=eh(n,kOt|COt|TOt,AOt));for(var i=e.length;i--;)POt(n,e[i]);return n});const U_=LOt;function M9(t,e,n,r){if(!Gn(t))return t;e=qc(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=Kc(e[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Gn(u)?u:Jg(e[i+1])?[]:{})}ey(s,l,c),s=s[l]}return t}function NOt(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=oy(t,a);n(s,a)&&M9(o,qc(a,t),s)}return o}function IOt(t,e){return NOt(t,e,function(n,r){return b9(t,r)})}var jOt=N_(function(t,e){return t==null?{}:IOt(t,e)});const P9=jOt;function dt(t,e,n){return t==null?t:M9(t,e,n)}var $Ot=1/0,DOt=Zc&&1/z_(new Zc([,-0]))[1]==$Ot?function(t){return new Zc(t)}:mR;const FOt=DOt;var ROt=200;function BOt(t,e,n){var r=-1,i=m1t,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=nOt;else if(o>=ROt){var c=e?null:FOt(t);if(c)return z_(c);a=!1,i=f9,l=new nh}else l=e?[]:s;t:for(;++r<o;){var u=t[r],f=e?e(u):u;if(u=n||u!==0?u:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue t;e&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function X_(t,e){return t&&t.length?BOt(t,W_(e)):[]}var zOt=function(t){var e=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return e.test(t)},q_=function(){return q_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},q_.apply(this,arguments)},A9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function YOt(t,e){var n=K.useRef(),r=K.useRef(),i=K.useRef(null),o=e.onReady,a=e.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)},l=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),v=document.createElement("a");return v.href=p,v.download=h,document.body.appendChild(v),v.click(),document.body.removeChild(v),v=null,h},c=function(u,f){f===void 0&&(f=!1);var d=Object.keys(u),h=f;d.forEach(function(p){var v=u[p];p==="tooltip"&&(h=!0),Vc(v)&&zOt("".concat(v))?u[p]=function(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];return Jyt(v.apply(void 0,y),h)}:Ut(v)?v.forEach(function(y){c(y,h)}):Gn(v)?c(v,h):h=f})};return K.useEffect(function(){if(n.current&&!E9(r.current,e)){var u=!1;if(r.current){var f=r.current;f.data;var d=A9(f,["data"]);e.data;var h=A9(e,["data"]);u=E9(d,h)}r.current=u9(e),u?n.current.changeData(pe(e,"data")):(c(e),n.current.update(e),n.current.render())}},[e]),K.useEffect(function(){if(!i.current)return function(){return null};r.current||(r.current=u9(e)),c(e);var u=new t(i.current,q_({},e));u.toDataURL=s,u.downloadImage=l,u.render(),n.current=u,o&&o(u);var f=function(d){a&&a(u,d)};return u.on("*",f),function(){n.current&&(n.current.destroy(),n.current.off("*",f),n.current=void 0)}},[]),{chart:n,container:i}}var WOt=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const k9=WOt;var GOt=function(t,e){if(!k9(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n};const HOt=GOt,VOt=function(t){return typeof t=="function"};var UOt=function(t){return t==null};const XOt=UOt;var qOt={}.toString,KOt=function(t,e){return qOt.call(t)==="[object "+e+"]"};const K_=KOt,tu=function(t){return Array.isArray?Array.isArray(t):K_(t,"Array")},ZOt=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function Z_(t,e){if(t){var n;if(tu(t))for(var r=0,i=t.length;r<i&&(n=e(t[r],r),n!==!1);r++);else if(ZOt(t)){for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),n===!1))break}}}var QOt=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Z_(t,function(n,r){VOt(t)&&r==="prototype"||e.push(r)}),e};const JOt=QOt;var t_t=function(t){return typeof t=="object"&&t!==null};const e_t=t_t;var n_t=function(t){if(!e_t(t)||!K_(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};const cy=n_t;var r_t=function(t,e,n){if(!tu(t)&&!cy(t))return t;var r=n;return Z_(t,function(i,o){r=e(r,i,o)}),r};const i_t=r_t,Q_=function(t){return K_(t,"String")};function J_(t,e){for(var n in e)e.hasOwnProperty(n)&&n!=="constructor"&&e[n]!==void 0&&(t[n]=e[n])}function o_t(t,e,n,r){return e&&J_(t,e),n&&J_(t,n),r&&J_(t,r),t}var a_t=5;function s_t(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function C9(t,e,n,r){n=n||0,r=r||a_t;for(var i in e)if(s_t(e,i)){var o=e[i];o!==null&&cy(o)?(cy(t[i])||(t[i]={}),n<r?C9(t[i],o,n+1,r):t[i]=e[i]):tu(o)?(t[i]=[],t[i]=t[i].concat(o)):o!==void 0&&(t[i]=o)}}var l_t=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)C9(t,e[r]);return t};const uy=l_t,Ji=function(t,e,n){for(var r=0,i=Q_(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return t===void 0||r<i.length?n:t};var c_t=Object.prototype.hasOwnProperty;const T9=function(t,e){if(t===null||!cy(t))return{};var n={};return Z_(e,function(r){c_t.call(t,r)&&(n[r]=t[r])}),n};function u_t(t){return XOt(t)?0:k9(t)?t.length:Object.keys(t).length}const f_t={field:"value",size:[1,1],round:!1,padding:0,sort:(t,e)=>e.value-t.value,as:["x","y"],ignoreParentValue:!0},d_t="nodeIndex",rh="childNodeCount",h_t="nodeAncestor",tS="Invalid field: it must be a string!";function p_t(t,e){const{field:n,fields:r}=t;if(Q_(n))return n;if(tu(n))return console.warn(tS),n[0];if(console.warn(`${tS} will try to get fields instead.`),Q_(r))return r;if(tu(r)&&r.length)return r[0];if(e)return e;throw new TypeError(tS)}function v_t(t){const e=[];if(t&&t.each){let n,r;t.each(i=>{var o,a;i.parent!==n?(n=i.parent,r=0):r+=1;const s=HOt((((o=i.ancestors)===null||o===void 0?void 0:o.call(i))||[]).map(l=>e.find(c=>c.name===l.name)||l),({depth:l})=>l>0&&l<i.depth);i[h_t]=s,i[rh]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[d_t]=r,e.push(i)})}else t&&t.eachNode&&t.eachNode(n=>{e.push(n)});return e}function g_t(t,e){e=o_t({},f_t,e);const n=e.as;if(!tu(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=p_t(e)}catch(l){console.warn(l)}const o=(l=>trt().size(e.size).round(e.round).padding(e.padding)(Yl(l).sum(c=>u_t(c.children)?e.ignoreParentValue?0:c[r]-i_t(c.children,(u,f)=>u+f[r],0):c[r]).sort(e.sort)))(t),a=n[0],s=n[1];return o.each(l=>{var c,u;l[a]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((c=l.data)===null||c===void 0?void 0:c.name)||((u=l.data)===null||u===void 0?void 0:u.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete l[f]})}),v_t(o)}var y_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const eu="sunburst",eS="markType",L9="path",fy="ancestor-node";function m_t(t){const{data:e,encode:n}=t,{color:r,value:i}=n,a=g_t(e,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return a.forEach(l=>{var c,u,f,d;if(l.depth===0)return null;let h=l.data.name;const p=[h];let v=Object.assign({},l);for(;v.depth>1;)h=`${(c=v.parent.data)===null||c===void 0?void 0:c.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const y=Object.assign(Object.assign(Object.assign({},T9(l.data,[i])),{[L9]:h,[fy]:v.data.name}),l);r&&r!==fy&&(y[r]=l.data[r]||((d=(f=l.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(y)}),s.map(l=>Object.assign(Object.assign({},l),{x:l.x.slice(0,2),y:[l.y[2],l.y[0]],fillOpacity:Math.pow(.85,l.depth)}))}const N9={id:eu,encode:{x:"x",y:"y",key:L9,color:fy,value:"value"},axis:{x:!1,y:!1},style:{[eS]:eu,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[rh]:rh,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},I9=t=>{const{encode:e,data:n=[],legend:r}=t,i=y_t(t,["encode","data","legend"]),o=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(Ji(i,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},N9.encode),e),{value:s}=a,l=m_t({encode:a,data:n});return[uy({},N9,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};I9.props={};var b_t=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(t,e||[])).next())})};const x_t=t=>t.querySelectorAll(".element").filter(e=>Ji(e,["style",eS])===eu);function w_t(t){return pt(t).select(`.${Cf}`).node()}const O_t={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function __t(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=uy({},O_t,e);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=w_t(s),f=c.marks.find(({id:m})=>m===eu),{state:d}=f,h=new on;u.appendChild(h);const p=(m,b)=>b_t(this,void 0,void 0,function*(){if(h.removeChildren(),m){const x=new jr({style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});h.appendChild(x);let w="";const O=m==null?void 0:m.split(" / ");let _=r.style.y,S=h.getBBox().width;const E=u.getBBox().width,M=O.map((P,C)=>{const A=new jr({style:Object.assign(Object.assign({x:S,text:" / "},r.style),{y:_})});h.appendChild(A),S+=A.getBBox().width,w=`${w}${P} / `;const k=new jr({name:w.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:P,x:S,depth:C+1},r.style),{y:_})});return h.appendChild(k),S+=k.getBBox().width,S>E&&(_=h.getBBox().height,S=0,A.attr({x:S,y:_}),S+=A.getBBox().width,k.attr({x:S,y:_}),S+=k.getBBox().width),k});[x,...M].forEach((P,C)=>{if(C===M.length)return;const A=Object.assign({},P.attributes);P.attr("cursor","pointer"),P.addEventListener("mouseenter",()=>{P.attr(r.active)}),P.addEventListener("mouseleave",()=>{P.attr(A)}),P.addEventListener("click",()=>{p(P.name,Ji(P,["style","depth"]))})})}a("drillDown",x=>{const{marks:w}=x,O=w.map(_=>{if(_.id!==eu&&_.type!=="rect")return _;const{data:S}=_,E=Object.fromEntries(["color"].map(P=>[P,{domain:l.scale[P].getOptions().domain}])),M=S.filter(P=>{const C=P.path;return n&&(P[fy]=C.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(C):!0});return uy({},_,n?{data:M}:{data:M,scale:E})});return Object.assign(Object.assign({},x),{marks:O})}),yield o()}),v=m=>{const b=m.target;if(Ji(b,["style",eS])!==eu||Ji(b,["markType"])!=="rect"||!Ji(b,["style",rh]))return;const x=Ji(b,["__data__","key"]),w=Ji(b,["style","depth"]);b.style.cursor="pointer",p(x,w)};u.addEventListener("click",v);const y=JOt(Object.assign(Object.assign({},d.active),d.inactive)),g=()=>{x_t(u).forEach(b=>{const x=Ji(b,["style",rh]);if(Ji(b,["style","cursor"])!=="pointer"&&x){b.style.cursor="pointer";const O=T9(b.attributes,y);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(uy(O,d.inactive))})}})};return u.addEventListener("mousemove",g),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",g)}}}V.enableCSSParsing=!1;function S_t(){return{"interaction.drillDown":__t,"mark.sunburst":I9}}var dy=function(){return dy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},dy.apply(this,arguments)},E_t=pvt(Yvt,dy(dy({},DD()),S_t())),Xt=function(t){var e=P_t(t),n=e.children,r=n===void 0?[]:n,i=U_(e,[].concat(D9,hy.map(function(c){return c.key}))),o=function(c){var u;return(u=L_t.find(function(f){return f.key===c}))===null||u===void 0?void 0:u.callback},a=function(c,u,f){var d=o(u);d?d(c,u,f):c[u]=Ra({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){var f=hy.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Ra({},P9(c,h),{type:d},c[u]))):Ut(c[u])&&c[u].forEach(function(p){r.push(l(p))})}})},l=function(c){return s(c),Object.keys(rS).forEach(function(u){var f=rS[u];if(!MOt(c[u]))if(Gn(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else dt(c,f,c[u])}),c};return r.forEach(function(c){var u=Ra({},i,c);l(Ra(c,u))}),s(e),M_t(e),t},j9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},M_t=function(t){var e=t.children,n=e===void 0?[]:e,r=Object.keys(rS).concat(hy.map(function(i){return i.key}));return r.forEach(function(i){delete t[i]}),n.forEach(function(i){Object.keys(i).forEach(function(o){r.includes(o)&&delete i[o]})}),Object.keys(t).forEach(function(i){j9(j9([],D9,!0),oS.map(function(o){return o.key}),!0).includes(i)||delete t[i]}),t},P_t=function(t){var e=t.options,n=e.children,r=n===void 0?[]:n;return r.forEach(function(i){Object.keys(i).forEach(function(o){Ut(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[nS]}))})}),e},$9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},A_t=function(t,e){if(Ut(e))return e},Ra=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return eOt.apply(void 0,$9($9([],t,!1),[A_t],!1))},ih=function(){return ih=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ih.apply(this,arguments)},k_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},C_t=["renderer"],D9=["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"],nS="__transform__",T_t="__skipDelCustomKeys__",Zs=function(t,e){return V_(e)?{type:t,available:e}:ih({type:t},e)},rS={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",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 Zs("stackY",t)}},normalize:{target:"transform",value:function(t){return Zs("normalizeY",t)}},percent:{target:"transform",value:function(t){return Zs("normalizeY",t)}},group:{target:"transform",value:function(t){return Zs("dodgeX",t)}},sort:{target:"transform",value:function(t){return Zs("sortX",t)}},symmetry:{target:"transform",value:function(t){return Zs("symmetryY",t)}},diff:{target:"transform",value:function(t){return Zs("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 V_(t)?{connect:t}:t}}},iS=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],hy=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:iS},{key:"point",type:"point",extend_keys:iS},{key:"area",type:"area",extend_keys:iS}],L_t=[{key:"transform",callback:function(t,e,n){var r;t[e]=t[e]||[];var i=n.available,o=i===void 0?!0:i,a=k_t(n,["available"]);o?t[e].push(ih((r={},r[nS]=!0,r),a)):t[e].splice(t[e].indexOf(function(s){return s.type===n.type}),1)}},{key:"labels",callback:function(t,e,n){var r;if(!n||Ut(n)){t[e]=n||[];return}n.text||(n.text=t.yField),t[e]=t[e]||[],t[e].push(ih((r={},r[nS]=!0,r),n))}}],oS=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],N_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),py=function(){return py=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},py.apply(this,arguments)},I_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},F9=function(t){N_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=I_t(n,["style"]);return t.call(this,py({style:py({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return e}(jr),j_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vy=function(){return vy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},vy.apply(this,arguments)},$_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},D_t=function(t){j_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$_t(n,["style"]);return t.call(this,vy({style:vy({fill:"#eee"},r)},i))||this}return e}(ef),F_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),R9=function(t){F_t(e,t);function e(n,r,i){var o=t.call(this,{style:Ra(i,r)})||this;return o.chart=n,o}return e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},e.prototype.disconnectedCallback=function(){},e.prototype.attributeChangedCallback=function(n){},e.prototype.update=function(n,r){var i;return this.attr(Ra({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},e.prototype.clear=function(){this.removeChildren()},e.prototype.getElementsLayout=function(){var n=this.chart.getContext().canvas,r=n.document.getElementsByClassName("element"),i=[];return r.forEach(function(o){var a=o.getBBox(),s=a.x,l=a.y,c=a.width,u=a.height,f=o.__data__;i.push({bbox:a,x:s,y:l,width:c,height:u,key:f.key,data:f})}),i},e.prototype.bindEvents=function(n,r){},e}(mp),R_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gy=function(){return gy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gy.apply(this,arguments)},B_t=function(t){R_t(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.getConversionTagLayout=function(){var n=this.direction==="vertical",r=this.getElementsLayout(),i=r[0],o=i.x,a=i.y,s=i.height,l=i.width,c=i.data,u=["items",0,"value"],f=pe(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,y=v===void 0?40:v,g=p.arrowSize,m=g===void 0?20:g,b=p.spacing,x=b===void 0?4:b;return r.forEach(function(w,O){if(O>0){var _=w.x,S=w.y,E=w.height,M=w.width,P=w.data,C=w.key,A=pe(P,u),k=y/2;if(n){var T=_+M/2,N=S;h.push({points:[[T+k,N-d+x],[T+k,N-m-x],[T,N-x],[T-k,N-m-x],[T-k,N-d+x]],center:[T,N-d/2-x],width:d,value:[f,A],key:C})}else{var T=_,N=S+E/2;h.push({points:[[_-d+x,N-k],[_-m-x,N-k],[T-x,N],[_-m-x,N+k],[_-d+x,N+k]],center:[T-d/2-x,N],width:d,value:[f,A],key:C})}f=A}}),h},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=pe(n,"options.transformations"),i="horizontal";r.forEach(function(o){o.includes("transpose")&&(i="vertical")}),this.direction=i},e.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,o=i.style,a=i.text,s=a.style,l=a.formatter;r.forEach(function(c){var u=c.points,f=c.center,d=c.value,h=c.key,p=d[0],v=d[1],y=f[0],g=f[1],m=new D_t({style:gy({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),b=new F9({style:gy({x:y,y:g,text:Vc(l)?l(p,v):(v/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(m),n.appendChild(b)})},e.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var o=i.points,a=i.center,s=i.key,l=a[0],c=a[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",o),f.setAttribute("x",l),f.setAttribute("y",c)})},e.tag="ConversionTag",e}(R9),aS=32,B9=16,z9=48,z_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),oh=function(){return oh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},oh.apply(this,arguments)},Y_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},W_t=function(t){z_t(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.render=function(){this.drawText()},e.prototype.getBidirectionalBarAxisTextLayout=function(){var n=this.attributes.layout,r=n==="vertical",i=this.getElementsLayout(),o=r?X_(i,"x"):X_(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=pe(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,y=d.width,g=d.data,m=d.key,b=pe(g,a);r?s.push({x:h+y/2,y:f,text:b,key:m}):s.push({x:u,y:p+v/2,text:b,key:m})}),X_(s,"text").length!==s.length&&(s=Object.values(_9(s,"text")).map(function(d){var h,p=d.reduce(function(v,y){return v+(r?y.x:y.y)},0);return oh(oh({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},e.prototype.transformLabelStyle=function(n){var r={},i=/^label[A-Z]/;return Object.keys(n).forEach(function(o){i.test(o)&&(r[o.replace("label","").replace(/^[A-Z]/,function(a){return a.toLowerCase()})]=n[o])}),r},e.prototype.drawText=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,o=i.layout,a=i.labelFormatter,s=Y_t(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new F9({style:oh({x:c,y:u,text:Vc(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?aS*2:120,maxLines:2,textOverflow:"ellipsis"},n.transformLabelStyle(s)),id:"text-".concat(d)});n.appendChild(h)})},e.prototype.update=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout();r.forEach(function(i){var o=i.x,a=i.y,s=i.key,l=n.getElementById("text-".concat(s));l.setAttribute("x",o),l.setAttribute("y",a)})},e.tag="BidirectionalBarAxisText",e}(R9),G_t={ConversionTag:B_t,BidirectionalBarAxisText:W_t},H_t=function(){function t(e,n){this.container=new Map,this.chart=e,this.config=n,this.init()}return t.prototype.init=function(){var e=this;oS.forEach(function(n){var r,i=n.key,o=n.shape,a=e.config[i];if(a){var s=new G_t[o](e.chart,a),l=e.chart.getContext().canvas;l.appendChild(s),e.container.set(i,s)}else(r=e.container.get(i))===null||r===void 0||r.clear()})},t.prototype.update=function(){var e=this;this.container.size&&oS.forEach(function(n){var r=n.key,i=e.container.get(r);i==null||i.update()})},t}(),V_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nu=function(){return nu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},nu.apply(this,arguments)},Y9="data-chart-source-type",Rt=function(t){V_t(e,t);function e(n,r){var i=t.call(this)||this;return i.container=typeof n=="string"?document.getElementById(n):n,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return e.prototype.getChartOptions=function(){return nu(nu({},P9(this.options,C_t)),{container:this.container})},e.prototype.getSpecOptions=function(){return this.type==="base"||this[T_t]?nu(nu({},this.options),this.getChartOptions()):this.options},e.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new E_t(this.getChartOptions()),this.container.setAttribute(Y9,"Ant Design Charts")},e.prototype.bindEvents=function(){var n=this;this.chart&&this.chart.on("*",function(r){r!=null&&r.type&&n.emit(r.type,r)})},e.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},e.prototype.getDefaultOptions=function(){},e.prototype.render=function(){var n=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){n.annotation=new H_t(n.chart,n.options)}),this.bindSizeSensor()},e.prototype.update=function(n){this.options=this.mergeOption(n)},e.prototype.mergeOption=function(n){return Ra({},this.getBaseOptions(),this.getDefaultOptions(),n)},e.prototype.changeData=function(n){this.chart.changeData(n)},e.prototype.changeSize=function(n,r){this.chart.changeSize(n,r)},e.prototype.destroy=function(){this.chart.destroy(),this.off(),this.container.removeAttribute(Y9)},e.prototype.execAdaptor=function(){var n=this.getSchemaAdaptor();n({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var n=this,r=this.options.autoFit,i=r===void 0?!0:r;i&&this.chart.on(Vt.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},e}(Ex),U_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),X_t=function(t){U_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="base",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return function(n){return n}},e}(Rt),sS=function(){return sS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},sS.apply(this,arguments)};function q_t(t){var e=t.options,n=e.stack,r=e.tooltip,i=e.xField;if(!n)return t;var o=hy.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){e[s]&&(a=!0,dt(e,[s,"stack"],sS({y1:"y"},typeof n=="object"?n:{})))}),a&&!V_(r)&&!r&&dt(e,"tooltip",{title:i,items:[{channel:"y"}]}),t}function Fe(t){return zt(q_t)(t)}function K_t(t){var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],t}function Z_t(t){K_t(t);var e=t.options.layout,n=e===void 0?"horizontal":e;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=n!=="horizontal"?void 0:[{type:"transpose"}])}),t}function Q_t(t){return zt(Fe,Xt)(t)}var J_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tSt=function(t){J_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="area",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Q_t},e}(Rt),ru=function(){return ru=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ru.apply(this,arguments)};function W9(t){var e=function(n){var r=n.options;pe(r,"children.length")>1&&dt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=pe(i,"y.domain",[]);if(o&&c.length&&Ut(a)){var u="domainMax",f=a.map(function(d){var h;return ru(ru({originData:ru({},d)},U_(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(ru({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return zt(e,Fe,Xt)(t)}var eSt=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[0],p=r[1],v=r[2],y=r[3],g=(p[1]-h[1])/2,m=n.document,b=m.createElement("g",{}),x=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+g],[v[0]-d,h[1]+g],y],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=m.createElement("polygon",{style:{points:[[h[0]-d,h[1]+g],p,v,[v[0]-d,h[1]+g]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),O=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+g],p,[h[0]+d,h[1]+g]],fill:o,fillOpacity:l-.2}});return b.appendChild(x),b.appendChild(w),b.appendChild(O),b}};RD("shape.interval.bar25D",t)},nSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();eSt();var rSt=function(t){nSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Bar",n}return e.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},elementHighlightByColor:{background:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W9},e}(Rt),iSt=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],v=n.document,y=v.createElement("g",{}),g=v.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:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),m=v.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:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),b=v.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:o,fillOpacity:l-.2}});return y.appendChild(m),y.appendChild(g),y.appendChild(b),y}};RD("shape.interval.column25D",t)},oSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();iSt();var aSt=function(t){oSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W9},e}(Rt);function sSt(t){var e=function(r){var i=r.options,o=i.children,a=o===void 0?[]:o,s=i.legend;return s&&a.forEach(function(l){if(!pe(l,"colorField")){var c=pe(l,"yField");dt(l,"colorField",function(){return c})}}),r},n=function(r){var i=r.options,o=i.annotations,a=o===void 0?[]:o,s=i.children,l=s===void 0?[]:s,c=i.scale,u=!1;return pe(c,"y.key")||l.forEach(function(f,d){if(!pe(f,"scale.y.key")){var h="child".concat(d,"Scale");dt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(dt(f,"scale.y.independent",!1),v.forEach(function(y){dt(y,"scale.y.key",h)})),!u&&a.length>0&&pe(f,"scale.y.independent")===void 0&&(u=!0,dt(f,"scale.y.independent",!1),a.forEach(function(y){dt(y,"scale.y.key",h)}))}}),r};return zt(e,n,Fe,Xt)(t)}var lSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),G9=function(t){lSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="DualAxes",n}return e.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return sSt},e}(Rt);function cSt(t){var e=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||dt(a,"colorField",s),o},n=function(o){var a=o.options,s=a.compareField,l=a.transform,c=a.isTransposed,u=c===void 0?!0:c,f=a.coordinate;return l||(s?dt(a,"transform",[]):dt(a,"transform",[{type:"symmetryY"}])),!f&&u&&dt(a,"coordinate",{transform:[{type:"transpose"}]}),o},r=function(o){var a=o.options,s=a.compareField,l=a.seriesField,c=a.data,u=a.children,f=a.yField,d=a.isTransposed,h=d===void 0?!0:d;if(s||l){var p=Object.values(_9(c,function(v){return v[s||l]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete a.compareField,delete a.data}return l&&(dt(a,"type","spaceFlex"),dt(a,"ratio",[1,1]),dt(a,"direction",h?"row":"col"),delete a.seriesField),o},i=function(o){var a=o.options,s=a.tooltip,l=a.xField,c=a.yField;return s||dt(a,"tooltip",{title:!1,items:[function(u){return{name:u[l],value:u[c]}}]}),o};return zt(e,n,r,i,Fe,Xt)(t)}var uSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fSt=function(t){uSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.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"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return cSt},e}(Rt);function dSt(t){return zt(Fe,Xt)(t)}var hSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pSt=function(t){hSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return dSt},e}(Rt),Ba=function(){return Ba=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ba.apply(this,arguments)};function vSt(t){var e=function(n){var r=n.options,i=r.angleField,o=r.data,a=r.label,s=r.tooltip,l=r.colorField;if(Ut(o)){var c=o.reduce(function(f,d){return f+d[i]},0);if(c===0){var u=o.map(function(f){var d;return Ba(Ba({},f),(d={},d[i]=1,d))});dt(r,"data",u),a&&dt(r,"label",Ba(Ba({},a),{formatter:function(){return 0}})),s!==!1&&dt(r,"tooltip",Ba(Ba({},s),{items:[function(f){return{name:f[l],value:0}}]}))}}return n};return zt(e,Xt)(t)}var gSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ySt=function(t){gSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vSt},e}(Rt);function mSt(t){return zt(Fe,Xt)(t)}var bSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xSt=function(t){bSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="scatter",n}return e.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mSt},e}(Rt);function wSt(t){var e=function(n){return dt(n,"options.coordinate",{type:pe(n,"options.coordinateType","polar")}),n};return zt(e,Xt)(t)}var OSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_St=function(t){OSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return e.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"}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return wSt},e}(Rt),$o=function(){return $o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},$o.apply(this,arguments)},SSt="__stock-range__",ESt="trend",MSt="up",PSt="down";function ASt(t){var e=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=Qc(o,function(s){var l=s&&$o({},s);if(Array.isArray(a)&&l){var c=a[0],u=a[1],f=a[2],d=a[3];l[ESt]=l[c]<=l[u]?MSt:PSt,l[SSt]=[l[c],l[u],l[f],l[d]]}return l}),r},n=function(r){var i=r.options,o=i.xField,a=i.yField,s=i.fallingFill,l=i.risingFill,c=a[0],u=a[1],f=a[2],d=a[3];return r.options.children=Qc(r.options.children,function(h,p){var v=p===0;return $o($o({},h),{tooltip:{title:function(y){return y[o]instanceof Date?y[o].toLocaleString():y[o]},items:[{field:f},{field:d},{field:c},{field:u}]},encode:$o($o({},h.encode||{}),{y:v?[f,d]:[c,u],color:function(y){return Math.sign(y[u]-y[c])}}),style:$o($o({},h.style||{}),{lineWidth:v?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&dt(r,"options.scale.color.range[0]",s),l&&dt(r,"options.scale.color.range[2]",l),r};return zt(e,n,Xt)(t)}var kSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),CSt=["#26a69a","#999999","#ef5350"],TSt=function(t){kSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="stock",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:CSt},y:{nice:!0}},children:[{type:"link"},{type:"link"}],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}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ASt},e}(Rt);function LSt(t){return zt(Fe,Xt)(t)}var NSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ISt=function(t){NSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyLine",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],autoFit:!1,animate:{enter:{type:"growInX",duration:500}},padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return LSt},e}(Rt);function jSt(t){return zt(Fe,Xt)(t)}var $St=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DSt=function(t){$St(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyArea",n}return e.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return jSt},e}(Rt);function FSt(t){return zt(Fe,Xt)(t)}var RSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BSt=function(t){RSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyColumn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return FSt},e}(Rt),lS=function(){return lS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},lS.apply(this,arguments)};function zSt(t){var e=function(n){var r=n.options,i=r.percent,o=r.color,a=o===void 0?[]:o;if(!i)return n;var s={scale:{color:{range:a.length?a:[]}},data:[1,i]};return Object.assign(r,lS({},s)),n};return zt(e,Fe,Xt)(t)}var YSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),WSt=function(t){YSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyProgress",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return zSt},e}(Rt),cS=function(){return cS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},cS.apply(this,arguments)};function GSt(t){var e=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return dt(r,"options.coordinate.innerRadius",a),r},n=function(r){var i=r.options,o=i.percent,a=i.color,s=a===void 0?[]:a;if(!o)return r;var l={scale:{color:{range:s.length?s:[]}},data:[1,o]};return Object.assign(i,cS({},l)),r};return zt(e,n,Fe,Xt)(t)}var HSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),VSt=function(t){HSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyRing",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,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(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return GSt},e}(Rt);function USt(t){return zt(Xt)(t)}var XSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qSt=function(t){XSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="rose",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return USt},e}(Rt),uS="__start__",iu="__end__",fS="__waterfall_value__",dS=function(){return dS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},dS.apply(this,arguments)},KSt=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function ZSt(t){var e=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.yField;return a.length&&(a.reduce(function(l,c,u){var f;if(u===0||c.isTotal)c[uS]=0,c[iu]=c[s],c[fS]=c[s];else{var d=(f=l[iu])!==null&&f!==void 0?f:l[s];c[uS]=d,c[iu]=d+c[s],c[fS]=l[iu]}return c},[]),Object.assign(i,{yField:[uS,iu]})),r},n=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.xField,l=i.children,c=i.linkStyle,u=KSt([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[iu]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:dS({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return zt(e,n,Fe,Xt)(t)}var QSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),JSt=function(t){QSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:fS,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ZSt},e}(Rt);function tEt(t){var e=function(n){var r=n.options,i=r.data,o=r.binNumber,a=r.binWidth,s=r.children,l=r.channel,c=l===void 0?"count":l,u=pe(s,"[0].transform[0]",{});return Jc(a)?($R(u,{thresholds:bxt(oOt(i.length,a)),y:c}),n):(Jc(o)&&$R(u,{thresholds:o,y:c}),n)};return zt(e,Fe,Xt)(t)}var eEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nEt=function(t){eEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Histogram",n}return e.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return tEt},e}(Rt);function rEt(t){var e=function(r){var i=r.options,o=i.tooltip,a=i.colorField,s=i.sizeField;return o&&!o.field&&(o.field=a||s),r},n=function(r){var i=r.options,o=i.mark,a=i.children;return o&&(a[0].type=o),r};return zt(e,n,Fe,Xt)(t)}var iEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),oEt=function(t){iEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="heatmap",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rEt},e}(Rt);function aEt(t){var e=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return zt(e,Fe,Xt)(t)}var sEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lEt=function(t){sEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="box",n}return e.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"}]}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return aEt},e}(Rt);function cEt(t){var e=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(Ut(i))i.length>0?dt(r,"data",{value:i,transform:o}):delete r.children;else if(pe(i,"type")==="fetch"&&pe(i,"value")){var a=pe(i,"transform");Ut(a)?dt(i,"transform",a.concat(o)):dt(i,"transform",o)}return n};return zt(e,Fe,Xt)(t)}var uEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fEt=function(t){uEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="sankey",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return cEt},e}(Rt),Oi=function(){return Oi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Oi.apply(this,arguments)},yy=["#f0efff","#5B8FF9","#3D76DD"];function hS(t,e,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=Qc(t,function(s){var l,c,u=pe(s,[e]);if(EOt(u))return[];if(S9(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[e]=f,l)}return Ut(u)?(o=!0,i=Math.max(i,u.length),Qc(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[n]=s[n],p[e]=d,p.index=h,p})):(i=Math.max(1,i),c={},c[n]=s[n],c[e]=u,c)}).flat();return o?[a.map(function(s){return Oi({index:0},s)}),i]:[a,i]}function pS(t,e){return new Array(t).fill("").map(function(n,r){return Ut(e)?e[r%e.length]:e})}function dEt(t){var e=function(i){var o=i.options,a=o.color,s=o.rangeField,l=s===void 0?"ranges":s,c=o.measureField,u=c===void 0?"measures":c,f=o.targetField,d=f===void 0?"targets":f,h=o.xField,p=h===void 0?"title":h,v=o.mapField,y=o.data,g=hS(y,l,p),m=g[0],b=g[1],x=hS(y,u,p,!1),w=x[0],O=x[1],_=hS(y,d,p,!1),S=_[0],E=_[1],M=pe(a,[l],yy[0]),P=pe(a,[u],yy[1]),C=pe(a,[d],yy[2]),A=[pS(b,M),pS(O,P),pS(E,C)].flat();return i.options.children=Qc(i.options.children,function(k,T){var N=[m,w,S][T],$=[l,u,d][T];return Oi(Oi({},k),{data:N,encode:Oi(Oi({},k.encode||{}),{x:p,y:$,color:function(L){var I=L.index,D=Jc(I)?"".concat($,"_").concat(I):$;return v?pe(v,[$,I],D):D}}),style:Oi(Oi({},k.style||{}),{zIndex:function(L){return-L[$]}}),labels:T!==0?Qc(k.labels,function(L){return Oi(Oi({},L),{text:$})}):void 0})}),i.options.scale.color.range=A,i.options.legend.color.itemMarker=function(k){return v&&wOt(v==null?void 0:v[d],k)||(k==null?void 0:k.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&dt(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var o=i.options,a=o.range,s=a===void 0?{}:a,l=o.measure,c=l===void 0?{}:l,u=o.target,f=u===void 0?{}:u,d=o.children;return i.options.children=[s,c,f].map(function(h,p){return Ra(d[p],h)}),i};return zt(e,n,r,Z_t,Xt)(t)}var hEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pEt=function(t){hEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="bullet",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{range:yy}},legend:{color:{itemMarker:function(n){return n==="target"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return dEt},e}(Rt);function vEt(t){var e=function(n){var r=n.options.data;return n.options.data={value:r},n};return zt(e,Fe,Xt)(t)}var gEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yEt=function(t){gEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Gauge",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vEt},e}(Rt);function mEt(t){var e=function(n){var r=n.options.percent;return Jc(r)&&dt(n,"options.data",r),n};return zt(e,Fe,Xt)(t)}var bEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xEt=function(t){bEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Liquid",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mEt},e}(Rt);function wEt(t){return zt(Fe,Xt)(t)}var OEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_Et=function(t){OEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="WordCloud",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return wEt},e}(Rt);function SEt(t){var e=function(n){var r=n.options,i=r.data;return i&&dt(r,"data",{value:i}),n};return zt(e,Fe,Xt)(t)}var EEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),MEt=function(t){EEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="treemap",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return SEt},e}(Rt),Qs=function(){return Qs=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Qs.apply(this,arguments)};function PEt(t){var e=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=Jc(a)?a/(2*Math.PI)*360:-90,u=Jc(s)?(Number(s)+c)/180*Math.PI:Math.PI;return dt(i,["options","coordinate"],Qs(Qs({},l),{endAngle:u,startAngle:a!=null?a:-Math.PI/2})),i},n=function(i){var o=i.options,a=o.tooltip,s=o.xField,l=o.yField;return a||dt(o,"tooltip",{title:!1,items:[function(c){return{name:c[s],value:c[l]}}]}),i},r=function(i){var o=i.options,a=o.markBackground,s=o.children,l=o.scale,c=o.coordinate,u=o.xField,f=pe(l,"y.domain",[]);return a&&s.unshift(Qs({type:"interval",xField:u,yField:f[f.length-1],colorField:a.color,scale:{color:{type:"identity"}},style:{fillOpacity:a.opacity,fill:a.color?void 0:"#e0e4ee"},coordinate:Qs(Qs({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return zt(e,n,r,Fe,Xt)(t)}var AEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),kEt=function(t){AEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radial",n}return e.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}}}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return PEt},e}(Rt);function CEt(t){return zt(Xt)(t)}var TEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),LEt=function(t){TEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="CirclePacking",n}return e.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CEt},e}(Rt),my=function(){return my=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},my.apply(this,arguments)};function NEt(t){var e=function(n){var r=n.options,i=r.xField,o=r.yField,a=r.seriesField,s=r.children,l=s==null?void 0:s.map(function(c){return my(my({},c),{xField:i,yField:o,seriesField:a,colorField:a,data:c.type==="density"?{transform:[{type:"kde",field:o,groupBy:[i,a]}]}:c.data})}).filter(function(c){return r.violinType!=="density"||c.type==="density"});return dt(r,"children",l),r.violinType==="polar"&&dt(r,"coordinate",{type:"polar"}),dt(r,"violinType",void 0),n};return zt(e,Fe,Xt)(t)}var IEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jEt=function(t){IEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="violin",n}return e.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"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return NEt},e}(Rt),ah=function(){return ah=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ah.apply(this,arguments)},$Et=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function DEt(t){var e=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){dt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(j_(c))return o;var u=Ut(pe(c,[0]))?c:[c,c];return l.forEach(function(f,d){dt(f,"data",$Et([],u[d].map(function(h){return ah({groupKey:s[d]},h)}),!0))}),o},r=function(o){var a=o.options,s=a.yField,l=s[0],c=s[1],u=a.tooltip;return u||dt(a,"tooltip",{items:[{field:l,value:l},{field:c,value:c}]}),o},i=function(o){var a=o.options,s=a.children,l=a.layout,c=a.coordinate.transform,u=a.paddingBottom,f=u===void 0?z9:u,d=a.paddingLeft,h=d===void 0?z9:d,p=a.axis;dt(a,"axisText",ah(ah({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],y=s[1];if(l==="vertical")dt(a,"direction","col"),dt(a,"paddingLeft",h),dt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),dt(v,"paddingBottom",B9),dt(y,"paddingTop",B9),dt(y,"axis",{x:{position:"top"}}),dt(y,"scale",{y:{range:[0,1]}});else{dt(a,"paddingBottom",f),dt(v,"scale",{y:{range:[0,1]}});var g=v.paddingRight,m=g===void 0?aS:g,b=y.paddingLeft,x=b===void 0?aS:b;dt(v,"paddingRight",m),dt(v,"axis",{x:{position:"right"}}),dt(y,"paddingLeft",x)}return o};return zt(e,n,r,i,Fe,Xt)(t)}var FEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),REt=function(t){FEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="BidirectionalBar",n}return e.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"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DEt},e}(Rt),Js;(function(t){t.color="key",t.d="path"})(Js||(Js={}));function BEt(t){var e=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return Ut(i)&&(dt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[Js.color,Js.d]}]}),dt(r,"colorField",o),dt(r,["children","0","encode","d"],Js.d)),dt(n,"options",U_(r,["sizeField","setsField"])),n};return zt(e,Xt)(t)}var zEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YEt=function(t){zEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="venn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:Js.color,d:Js.d}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return BEt},e}(Rt);function WEt(t){var e=function(n){return n};return zt(e,Xt)(t)}var GEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HEt=function(t){GEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Sunburst",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return WEt},e}(Rt),VEt={Base:X_t,Line:pSt,Column:aSt,Pie:ySt,Area:tSt,Bar:rSt,DualAxes:G9,Funnel:fSt,Scatter:xSt,Radar:_St,Rose:qSt,Stock:TSt,TinyLine:ISt,TinyArea:DSt,TinyColumn:BSt,TinyProgress:WSt,TinyRing:VSt,Waterfall:JSt,Histogram:nEt,Heatmap:oEt,Box:lEt,Sankey:fEt,Bullet:pEt,Gauge:yEt,Liquid:xEt,WordCloud:_Et,Treemap:MEt,RadialBar:kEt,CirclePacking:LEt,Violin:jEt,BidirectionalBar:REt,Venn:YEt,Mix:G9,Sunburst:HEt},vS=function(){return vS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},vS.apply(this,arguments)},H9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},tl=K.forwardRef(function(t,e){var n=t.chartType,r=n===void 0?"Base":n,i=H9(t,["chartType"]),o=i.containerStyle,a=o===void 0?{height:"inherit"}:o,s=i.containerAttributes,l=s===void 0?{}:s,c=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=H9(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=YOt(VEt[r],h),v=p.chart,y=p.container;return K.useImperativeHandle(e,function(){return v.current}),K.createElement(rmt,{errorTemplate:d},u&&K.createElement(emt,{loadingTemplate:f}),K.createElement("div",vS({className:c,style:a,ref:y},l)))}),gS=function(){return gS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gS.apply(this,arguments)},UEt=function(t){return K.createElement(tl,gS({},t,{chartType:"Area"}))};const XEt=UEt;var yS=function(){return yS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yS.apply(this,arguments)},qEt=function(t){return K.createElement(tl,yS({},t,{chartType:"Bar"}))};const KEt=qEt;var mS=function(){return mS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},mS.apply(this,arguments)},ZEt=function(t){return K.createElement(tl,mS({},t,{chartType:"Column"}))};const QEt=ZEt;var bS=function(){return bS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},bS.apply(this,arguments)},JEt=function(t){return K.createElement(tl,bS({},t,{chartType:"DualAxes"}))};const tMt=JEt;var xS=function(){return xS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xS.apply(this,arguments)},eMt=function(t){return K.createElement(tl,xS({},t,{chartType:"Line"}))};const nMt=eMt;var wS=function(){return wS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},wS.apply(this,arguments)},rMt=function(t){return K.createElement(tl,wS({},t,{chartType:"Pie"}))};const iMt=rMt;var OS=function(){return OS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},OS.apply(this,arguments)},oMt=function(t){return K.createElement(tl,OS({},t,{chartType:"Scatter"}))};const aMt=oMt,{booleanField:by}=KS,sMt={isStack:t=>by(at({name:"isStack",title:"isStack"},t)),smooth:t=>by(at({name:"smooth",title:"smooth"},t)),isPercent:t=>by(at({name:"isPercent",title:"isPercent"},t)),isGroup:t=>by(at({name:"isGroup",title:"isGroup"},t))};class el extends Ly{constructor({name:n,title:r,component:i,config:o}){super({name:n,title:r,component:i,config:["xField","yField","seriesField",...o||[]]});ni(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a,seriesField:s}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:a==null?void 0:a.value,seriesField:s==null?void 0:s.value}}});this.addConfigs(sMt)}getProps({data:n,general:r,advanced:i,fieldProps:o}){return at(Ot(at(at({legend:{color:{itemLabelText:s=>{const l=o[r.seriesField],c=l==null?void 0:l.transformer;return c?c(s.label):s.label}}},tooltip:(s,l,c,u)=>{const f=u.y.field,d=o[f],h=(d==null?void 0:d.label)||f,p=d==null?void 0:d.transformer,v=u.y.value[l];return{name:h,value:p?p(v):v}},axis:{x:{labelFormatter:s=>{const l=o[r.xField],c=l==null?void 0:l.transformer;return c?c(s):s}},y:{labelFormatter:s=>{const l=o[r.yField],c=l==null?void 0:l.transformer;return c?c(s):s}}},data:n,theme:"classic",animate:{enter:{type:!1},update:{type:!1},exit:{type:!1}},colorField:r.seriesField,stack:r.isStack,percent:r.isPercent?!0:void 0},r.smooth?{shapeField:"smooth"}:{}),r),{seriesField:r.isGroup?r.seriesField:void 0}),i)}getReference(){return{title:this.title,link:`https://g2plot.antv.antgroup.com/api/plots/${this.name}`}}}class lMt extends el{constructor(){super({name:"pie",title:"Pie Chart",component:iMt});ni(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a}=this.infer(n,{measures:r,dimensions:i});return{general:{colorField:o==null?void 0:o.value,angleField:a==null?void 0:a.value}}});this.config=[{property:"field",name:"angleField",title:"angleField",required:!0},{property:"field",name:"colorField",title:"colorField",required:!0}]}}class cMt extends el{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",component:tMt});ni(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yFields:a}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:(a==null?void 0:a.map(s=>s.value))||[]}}});this.config=["xField",{yField:{title:'{{t("yField")}}',type:"array","x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space",properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Select","x-reactions":"{{ useChartFields }}","x-component-props":{style:{minWidth:"200px"}},required:!0},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add")}}',"x-component":"ArrayItems.Addition"}}}}]}getProps({data:n,general:r,advanced:i,fieldProps:o}){var s;const a=super.getProps({data:n,general:r,advanced:i,fieldProps:o});return Ot(at({},Nn.omit(a,["legend","tooltip"])),{children:((s=a.yField)==null?void 0:s.map((l,c)=>{var u;return{type:"line",yField:l,colorField:()=>{const f=o[l];return(f==null?void 0:f.label)||l},axis:{y:{title:((u=o[l])==null?void 0:u.label)||l,position:c===0?"left":"right",labelFormatter:f=>{const d=o[l],h=d==null?void 0:d.transformer;return h?h(f):f}}}}}))||[]})}}const uMt=[new el({name:"line",title:"Line Chart",component:nMt,config:["smooth","isStack"]}),new el({name:"area",title:"Area Chart",component:XEt,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new el({name:"column",title:"Column Chart",component:QEt,config:["isGroup","isStack","isPercent"]}),new el({name:"bar",title:"Bar Chart",component:KEt,config:["isGroup","isStack","isPercent"]}),new lMt,new cMt,new el({name:"scatter",title:"Scatter Chart",component:aMt})];class xy extends z.Plugin{constructor(){super(...arguments);ni(this,"charts",new SB)}load(){return kr(this,null,function*(){this.charts.setGroup("Built-in",[...uMt,...z7]),this.app.addComponents({ChartV2BlockInitializer:F7,ChartV2BlockDesigner:$7,ChartV2Block:j7}),this.app.schemaInitializerManager.add(qS),this.app.schemaInitializerManager.add(D7),this.app.schemaInitializerManager.add(YS),this.app.schemaInitializerManager.add(m7),this.app.schemaInitializerManager.add(VS),this.app.schemaInitializerManager.add(S7);const n=this.app.schemaInitializerManager.get("page:addBlock");n==null||n.add("dataBlocks.chartV2",{title:Nt("Charts"),Component:"ChartV2BlockInitializer"})})}}ct.Chart=Ly,ct.ChartConfigContext=Mi,ct.default=xy,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
154
|
+
`,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},emt=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=K.useRef(null);K.useEffect(function(){!e&&i.current&&tmt(i.current)},[]);var o=function(){return e||K.createElement("div",{ref:i})};return K.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},o())},nmt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rmt=function(t){nmt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||K.createElement("h5",null,"组件出错了,请核查后重试: ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):K.createElement(K.Fragment,null,this.props.children)},e}(K.Component),imt=typeof global=="object"&&global&&global.Object===Object&&global;const oR=imt;var omt=typeof self=="object"&&self&&self.Object===Object&&self,amt=oR||omt||Function("return this")();const xi=amt;var smt=xi.Symbol;const ti=smt;var aR=Object.prototype,lmt=aR.hasOwnProperty,cmt=aR.toString,Gd=ti?ti.toStringTag:void 0;function umt(t){var e=lmt.call(t,Gd),n=t[Gd];try{t[Gd]=void 0;var r=!0}catch(o){}var i=cmt.call(t);return r&&(e?t[Gd]=n:delete t[Gd]),i}var fmt=Object.prototype,dmt=fmt.toString;function hmt(t){return dmt.call(t)}var pmt="[object Null]",vmt="[object Undefined]",sR=ti?ti.toStringTag:void 0;function Qi(t){return t==null?t===void 0?vmt:pmt:sR&&sR in Object(t)?umt(t):hmt(t)}function sr(t){return t!=null&&typeof t=="object"}var gmt="[object Symbol]";function Hd(t){return typeof t=="symbol"||sr(t)&&Qi(t)==gmt}var ymt=NaN;function lR(t){return typeof t=="number"?t:Hd(t)?ymt:+t}function Xg(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var mmt=Array.isArray;const Ut=mmt;var bmt=1/0,cR=ti?ti.prototype:void 0,uR=cR?cR.toString:void 0;function qg(t){if(typeof t=="string")return t;if(Ut(t))return Xg(t,qg)+"";if(Hd(t))return uR?uR.call(t):"";var e=t+"";return e=="0"&&1/t==-bmt?"-0":e}function xmt(t,e){return function(n,r){var i;if(n===void 0&&r===void 0)return e;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=qg(n),r=qg(r)):(n=lR(n),r=lR(r)),i=t(n,r)}return i}}var wmt=/\s/;function Omt(t){for(var e=t.length;e--&&wmt.test(t.charAt(e)););return e}var _mt=/^\s+/;function Smt(t){return t&&t.slice(0,Omt(t)+1).replace(_mt,"")}function Gn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var fR=NaN,Emt=/^[-+]0x[0-9a-f]+$/i,Mmt=/^0b[01]+$/i,Pmt=/^0o[0-7]+$/i,Amt=parseInt;function dR(t){if(typeof t=="number")return t;if(Hd(t))return fR;if(Gn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Gn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Smt(t);var n=Mmt.test(t);return n||Pmt.test(t)?Amt(t.slice(2),n?2:8):Emt.test(t)?fR:+t}var hR=1/0,kmt=17976931348623157e292;function Cmt(t){if(!t)return t===0?t:0;if(t=dR(t),t===hR||t===-hR){var e=t<0?-1:1;return e*kmt}return t===t?t:0}function pR(t){var e=Cmt(t),n=e%1;return e===e?n?e-n:e:0}function x_(t){return t}var Tmt="[object AsyncFunction]",Lmt="[object Function]",Nmt="[object GeneratorFunction]",Imt="[object Proxy]";function Vc(t){if(!Gn(t))return!1;var e=Qi(t);return e==Lmt||e==Nmt||e==Tmt||e==Imt}var jmt=xi["__core-js_shared__"];const w_=jmt;var vR=function(){var t=/[^.]+$/.exec(w_&&w_.keys&&w_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function $mt(t){return!!vR&&vR in t}var Dmt=Function.prototype,Fmt=Dmt.toString;function Hs(t){if(t!=null){try{return Fmt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Rmt=/[\\^$.*+?()[\]{}|]/g,Bmt=/^\[object .+?Constructor\]$/,zmt=Function.prototype,Ymt=Object.prototype,Wmt=zmt.toString,Gmt=Ymt.hasOwnProperty,Hmt=RegExp("^"+Wmt.call(Gmt).replace(Rmt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vmt(t){if(!Gn(t)||$mt(t))return!1;var e=Vc(t)?Hmt:Bmt;return e.test(Hs(t))}function Umt(t,e){return t==null?void 0:t[e]}function Vs(t,e){var n=Umt(t,e);return Vmt(n)?n:void 0}var Xmt=Vs(xi,"WeakMap");const Vd=Xmt;var qmt=Vd&&new Vd;const gR=qmt;var yR=Object.create,Kmt=function(){function t(){}return function(e){if(!Gn(e))return{};if(yR)return yR(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const O_=Kmt;function Zmt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function __(){}var Qmt=4294967295;function Uc(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Qmt,this.__views__=[]}Uc.prototype=O_(__.prototype),Uc.prototype.constructor=Uc;function mR(){}var Jmt=gR?function(t){return gR.get(t)}:mR;const bR=Jmt;var t1t={};const xR=t1t;var e1t=Object.prototype,n1t=e1t.hasOwnProperty;function Kg(t){for(var e=t.name+"",n=xR[e],r=n1t.call(xR,e)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==t)return i.name}return e}function Da(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Da.prototype=O_(__.prototype),Da.prototype.constructor=Da;function S_(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function r1t(t){if(t instanceof Uc)return t.clone();var e=new Da(t.__wrapped__,t.__chain__);return e.__actions__=S_(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var i1t=Object.prototype,o1t=i1t.hasOwnProperty;function Zg(t){if(sr(t)&&!Ut(t)&&!(t instanceof Uc)){if(t instanceof Da)return t;if(o1t.call(t,"__wrapped__"))return r1t(t)}return new Da(t)}Zg.prototype=__.prototype,Zg.prototype.constructor=Zg;function wR(t){var e=Kg(t),n=Zg[e];if(typeof n!="function"||!(e in Uc.prototype))return!1;if(t===n)return!0;var r=bR(n);return!!r&&t===r[0]}var a1t=800,s1t=16,l1t=Date.now;function c1t(t){var e=0,n=0;return function(){var r=l1t(),i=s1t-(r-n);if(n=r,i>0){if(++e>=a1t)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function u1t(t){return function(){return t}}var f1t=function(){try{var t=Vs(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();const Qg=f1t;var d1t=Qg?function(t,e){return Qg(t,"toString",{configurable:!0,enumerable:!1,value:u1t(e),writable:!0})}:x_,h1t=c1t(d1t);const OR=h1t;function p1t(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function v1t(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function g1t(t){return t!==t}function y1t(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function _R(t,e,n){return e===e?y1t(t,e,n):v1t(t,g1t,n)}function m1t(t,e){var n=t==null?0:t.length;return!!n&&_R(t,e,0)>-1}var b1t=9007199254740991,x1t=/^(?:0|[1-9]\d*)$/;function Jg(t,e){var n=typeof t;return e=e==null?b1t:e,!!e&&(n=="number"||n!="symbol"&&x1t.test(t))&&t>-1&&t%1==0&&t<e}function ty(t,e,n){e=="__proto__"&&Qg?Qg(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ud(t,e){return t===e||t!==t&&e!==e}var w1t=Object.prototype,O1t=w1t.hasOwnProperty;function ey(t,e,n){var r=t[e];(!(O1t.call(t,e)&&Ud(r,n))||n===void 0&&!(e in t))&&ty(t,e,n)}function Us(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),i?ty(n,s,l):ey(n,s,l)}return n}var SR=Math.max;function ER(t,e,n){return e=SR(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=SR(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Zmt(t,this,s)}}function _1t(t,e){return OR(ER(t,e,x_),t+"")}var S1t=9007199254740991;function E_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=S1t}function Fa(t){return t!=null&&E_(t.length)&&!Vc(t)}function E1t(t,e,n){if(!Gn(n))return!1;var r=typeof e;return(r=="number"?Fa(n)&&Jg(e,n.length):r=="string"&&e in n)?Ud(n[e],t):!1}function MR(t){return _1t(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&E1t(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var M1t=Object.prototype;function ny(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||M1t;return t===n}function P1t(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var A1t="[object Arguments]";function PR(t){return sr(t)&&Qi(t)==A1t}var AR=Object.prototype,k1t=AR.hasOwnProperty,C1t=AR.propertyIsEnumerable,T1t=PR(function(){return arguments}())?PR:function(t){return sr(t)&&k1t.call(t,"callee")&&!C1t.call(t,"callee")};const Xd=T1t;function L1t(){return!1}var kR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,CR=kR&&typeof module=="object"&&module&&!module.nodeType&&module,N1t=CR&&CR.exports===kR,TR=N1t?xi.Buffer:void 0,I1t=TR?TR.isBuffer:void 0,j1t=I1t||L1t;const qd=j1t;var $1t="[object Arguments]",D1t="[object Array]",F1t="[object Boolean]",R1t="[object Date]",B1t="[object Error]",z1t="[object Function]",Y1t="[object Map]",W1t="[object Number]",G1t="[object Object]",H1t="[object RegExp]",V1t="[object Set]",U1t="[object String]",X1t="[object WeakMap]",q1t="[object ArrayBuffer]",K1t="[object DataView]",Z1t="[object Float32Array]",Q1t="[object Float64Array]",J1t="[object Int8Array]",tbt="[object Int16Array]",ebt="[object Int32Array]",nbt="[object Uint8Array]",rbt="[object Uint8ClampedArray]",ibt="[object Uint16Array]",obt="[object Uint32Array]",Se={};Se[Z1t]=Se[Q1t]=Se[J1t]=Se[tbt]=Se[ebt]=Se[nbt]=Se[rbt]=Se[ibt]=Se[obt]=!0,Se[$1t]=Se[D1t]=Se[q1t]=Se[F1t]=Se[K1t]=Se[R1t]=Se[B1t]=Se[z1t]=Se[Y1t]=Se[W1t]=Se[G1t]=Se[H1t]=Se[V1t]=Se[U1t]=Se[X1t]=!1;function abt(t){return sr(t)&&E_(t.length)&&!!Se[Qi(t)]}function M_(t){return function(e){return t(e)}}var LR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,Kd=LR&&typeof module=="object"&&module&&!module.nodeType&&module,sbt=Kd&&Kd.exports===LR,P_=sbt&&oR.process,lbt=function(){try{var t=Kd&&Kd.require&&Kd.require("util").types;return t||P_&&P_.binding&&P_.binding("util")}catch(e){}}();const Xc=lbt;var NR=Xc&&Xc.isTypedArray,cbt=NR?M_(NR):abt;const A_=cbt;var ubt=Object.prototype,fbt=ubt.hasOwnProperty;function IR(t,e){var n=Ut(t),r=!n&&Xd(t),i=!n&&!r&&qd(t),o=!n&&!r&&!i&&A_(t),a=n||r||i||o,s=a?P1t(t.length,String):[],l=s.length;for(var c in t)(e||fbt.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Jg(c,l)))&&s.push(c);return s}function jR(t,e){return function(n){return t(e(n))}}var dbt=jR(Object.keys,Object);const hbt=dbt;var pbt=Object.prototype,vbt=pbt.hasOwnProperty;function gbt(t){if(!ny(t))return hbt(t);var e=[];for(var n in Object(t))vbt.call(t,n)&&n!="constructor"&&e.push(n);return e}function Xs(t){return Fa(t)?IR(t):gbt(t)}var ybt=Object.prototype,mbt=ybt.hasOwnProperty,bbt=MR(function(t,e){if(ny(e)||Fa(e)){Us(e,Xs(e),t);return}for(var n in e)mbt.call(e,n)&&ey(t,n,e[n])});const $R=bbt;function xbt(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var wbt=Object.prototype,Obt=wbt.hasOwnProperty;function _bt(t){if(!Gn(t))return xbt(t);var e=ny(t),n=[];for(var r in t)r=="constructor"&&(e||!Obt.call(t,r))||n.push(r);return n}function Zd(t){return Fa(t)?IR(t,!0):_bt(t)}var Sbt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ebt=/^\w*$/;function k_(t,e){if(Ut(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Hd(t)?!0:Ebt.test(t)||!Sbt.test(t)||e!=null&&t in Object(e)}var Mbt=Vs(Object,"create");const Qd=Mbt;function Pbt(){this.__data__=Qd?Qd(null):{},this.size=0}function Abt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var kbt="__lodash_hash_undefined__",Cbt=Object.prototype,Tbt=Cbt.hasOwnProperty;function Lbt(t){var e=this.__data__;if(Qd){var n=e[t];return n===kbt?void 0:n}return Tbt.call(e,t)?e[t]:void 0}var Nbt=Object.prototype,Ibt=Nbt.hasOwnProperty;function jbt(t){var e=this.__data__;return Qd?e[t]!==void 0:Ibt.call(e,t)}var $bt="__lodash_hash_undefined__";function Dbt(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Qd&&e===void 0?$bt:e,this}function qs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}qs.prototype.clear=Pbt,qs.prototype.delete=Abt,qs.prototype.get=Lbt,qs.prototype.has=jbt,qs.prototype.set=Dbt;function Fbt(){this.__data__=[],this.size=0}function ry(t,e){for(var n=t.length;n--;)if(Ud(t[n][0],e))return n;return-1}var Rbt=Array.prototype,Bbt=Rbt.splice;function zbt(t){var e=this.__data__,n=ry(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Bbt.call(e,n,1),--this.size,!0}function Ybt(t){var e=this.__data__,n=ry(e,t);return n<0?void 0:e[n][1]}function Wbt(t){return ry(this.__data__,t)>-1}function Gbt(t,e){var n=this.__data__,r=ry(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Io(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Io.prototype.clear=Fbt,Io.prototype.delete=zbt,Io.prototype.get=Ybt,Io.prototype.has=Wbt,Io.prototype.set=Gbt;var Hbt=Vs(xi,"Map");const Jd=Hbt;function Vbt(){this.size=0,this.__data__={hash:new qs,map:new(Jd||Io),string:new qs}}function Ubt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function iy(t,e){var n=t.__data__;return Ubt(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Xbt(t){var e=iy(this,t).delete(t);return this.size-=e?1:0,e}function qbt(t){return iy(this,t).get(t)}function Kbt(t){return iy(this,t).has(t)}function Zbt(t,e){var n=iy(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function jo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jo.prototype.clear=Vbt,jo.prototype.delete=Xbt,jo.prototype.get=qbt,jo.prototype.has=Kbt,jo.prototype.set=Zbt;var Qbt="Expected a function";function C_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Qbt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(C_.Cache||jo),n}C_.Cache=jo;var Jbt=500;function txt(t){var e=C_(t,function(r){return n.size===Jbt&&n.clear(),r}),n=e.cache;return e}var ext=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nxt=/\\(\\)?/g,rxt=txt(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ext,function(n,r,i,o){e.push(i?o.replace(nxt,"$1"):r||n)}),e});const ixt=rxt;function T_(t){return t==null?"":qg(t)}function qc(t,e){return Ut(t)?t:k_(t,e)?[t]:ixt(T_(t))}var oxt=1/0;function Kc(t){if(typeof t=="string"||Hd(t))return t;var e=t+"";return e=="0"&&1/t==-oxt?"-0":e}function oy(t,e){e=qc(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Kc(e[n++])];return n&&n==r?t:void 0}function pe(t,e,n){var r=t==null?void 0:oy(t,e);return r===void 0?n:r}function L_(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var DR=ti?ti.isConcatSpreadable:void 0;function axt(t){return Ut(t)||Xd(t)||!!(DR&&t&&t[DR])}function FR(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=axt),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?FR(s,e-1,n,r,i):L_(i,s):r||(i[i.length]=s)}return i}function sxt(t){var e=t==null?0:t.length;return e?FR(t,1):[]}function N_(t){return OR(ER(t,void 0,sxt),t+"")}var lxt=jR(Object.getPrototypeOf,Object);const I_=lxt;var cxt="[object Object]",uxt=Function.prototype,fxt=Object.prototype,RR=uxt.toString,dxt=fxt.hasOwnProperty,hxt=RR.call(Object);function j_(t){if(!sr(t)||Qi(t)!=cxt)return!1;var e=I_(t);if(e===null)return!0;var n=dxt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&RR.call(n)==hxt}function pxt(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}var vxt=xi.isFinite,gxt=Math.min;function yxt(t){var e=Math[t];return function(n,r){if(n=dR(n),r=r==null?0:gxt(pR(r),292),r&&vxt(n)){var i=(T_(n)+"e").split("e"),o=e(i[0]+"e"+(+i[1]+r));return i=(T_(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(n)}}var mxt=yxt("ceil");const bxt=mxt;function xxt(){this.__data__=new Io,this.size=0}function wxt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Oxt(t){return this.__data__.get(t)}function _xt(t){return this.__data__.has(t)}var Sxt=200;function Ext(t,e){var n=this.__data__;if(n instanceof Io){var r=n.__data__;if(!Jd||r.length<Sxt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new jo(r)}return n.set(t,e),this.size=n.size,this}function wi(t){var e=this.__data__=new Io(t);this.size=e.size}wi.prototype.clear=xxt,wi.prototype.delete=wxt,wi.prototype.get=Oxt,wi.prototype.has=_xt,wi.prototype.set=Ext;function Mxt(t,e){return t&&Us(e,Xs(e),t)}function Pxt(t,e){return t&&Us(e,Zd(e),t)}var BR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,zR=BR&&typeof module=="object"&&module&&!module.nodeType&&module,Axt=zR&&zR.exports===BR,YR=Axt?xi.Buffer:void 0,WR=YR?YR.allocUnsafe:void 0;function GR(t,e){if(e)return t.slice();var n=t.length,r=WR?WR(n):new t.constructor(n);return t.copy(r),r}function kxt(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function HR(){return[]}var Cxt=Object.prototype,Txt=Cxt.propertyIsEnumerable,VR=Object.getOwnPropertySymbols,Lxt=VR?function(t){return t==null?[]:(t=Object(t),kxt(VR(t),function(e){return Txt.call(t,e)}))}:HR;const $_=Lxt;function Nxt(t,e){return Us(t,$_(t),e)}var Ixt=Object.getOwnPropertySymbols,jxt=Ixt?function(t){for(var e=[];t;)L_(e,$_(t)),t=I_(t);return e}:HR;const UR=jxt;function $xt(t,e){return Us(t,UR(t),e)}function XR(t,e,n){var r=e(t);return Ut(t)?r:L_(r,n(t))}function D_(t){return XR(t,Xs,$_)}function qR(t){return XR(t,Zd,UR)}var Dxt=Vs(xi,"DataView");const F_=Dxt;var Fxt=Vs(xi,"Promise");const R_=Fxt;var Rxt=Vs(xi,"Set");const Zc=Rxt;var KR="[object Map]",Bxt="[object Object]",ZR="[object Promise]",QR="[object Set]",JR="[object WeakMap]",t9="[object DataView]",zxt=Hs(F_),Yxt=Hs(Jd),Wxt=Hs(R_),Gxt=Hs(Zc),Hxt=Hs(Vd),Ks=Qi;(F_&&Ks(new F_(new ArrayBuffer(1)))!=t9||Jd&&Ks(new Jd)!=KR||R_&&Ks(R_.resolve())!=ZR||Zc&&Ks(new Zc)!=QR||Vd&&Ks(new Vd)!=JR)&&(Ks=function(t){var e=Qi(t),n=e==Bxt?t.constructor:void 0,r=n?Hs(n):"";if(r)switch(r){case zxt:return t9;case Yxt:return KR;case Wxt:return ZR;case Gxt:return QR;case Hxt:return JR}return e});const th=Ks;var Vxt=Object.prototype,Uxt=Vxt.hasOwnProperty;function Xxt(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Uxt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var qxt=xi.Uint8Array;const ay=qxt;function B_(t){var e=new t.constructor(t.byteLength);return new ay(e).set(new ay(t)),e}function Kxt(t,e){var n=e?B_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Zxt=/\w*$/;function Qxt(t){var e=new t.constructor(t.source,Zxt.exec(t));return e.lastIndex=t.lastIndex,e}var e9=ti?ti.prototype:void 0,n9=e9?e9.valueOf:void 0;function Jxt(t){return n9?Object(n9.call(t)):{}}function r9(t,e){var n=e?B_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var t2t="[object Boolean]",e2t="[object Date]",n2t="[object Map]",r2t="[object Number]",i2t="[object RegExp]",o2t="[object Set]",a2t="[object String]",s2t="[object Symbol]",l2t="[object ArrayBuffer]",c2t="[object DataView]",u2t="[object Float32Array]",f2t="[object Float64Array]",d2t="[object Int8Array]",h2t="[object Int16Array]",p2t="[object Int32Array]",v2t="[object Uint8Array]",g2t="[object Uint8ClampedArray]",y2t="[object Uint16Array]",m2t="[object Uint32Array]";function b2t(t,e,n){var r=t.constructor;switch(e){case l2t:return B_(t);case t2t:case e2t:return new r(+t);case c2t:return Kxt(t,n);case u2t:case f2t:case d2t:case h2t:case p2t:case v2t:case g2t:case y2t:case m2t:return r9(t,n);case n2t:return new r;case r2t:case a2t:return new r(t);case i2t:return Qxt(t);case o2t:return new r;case s2t:return Jxt(t)}}function i9(t){return typeof t.constructor=="function"&&!ny(t)?O_(I_(t)):{}}var x2t="[object Map]";function w2t(t){return sr(t)&&th(t)==x2t}var o9=Xc&&Xc.isMap,O2t=o9?M_(o9):w2t;const _2t=O2t;var S2t="[object Set]";function E2t(t){return sr(t)&&th(t)==S2t}var a9=Xc&&Xc.isSet,M2t=a9?M_(a9):E2t;const P2t=M2t;var A2t=1,k2t=2,C2t=4,s9="[object Arguments]",T2t="[object Array]",L2t="[object Boolean]",N2t="[object Date]",I2t="[object Error]",l9="[object Function]",j2t="[object GeneratorFunction]",$2t="[object Map]",D2t="[object Number]",c9="[object Object]",F2t="[object RegExp]",R2t="[object Set]",B2t="[object String]",z2t="[object Symbol]",Y2t="[object WeakMap]",W2t="[object ArrayBuffer]",G2t="[object DataView]",H2t="[object Float32Array]",V2t="[object Float64Array]",U2t="[object Int8Array]",X2t="[object Int16Array]",q2t="[object Int32Array]",K2t="[object Uint8Array]",Z2t="[object Uint8ClampedArray]",Q2t="[object Uint16Array]",J2t="[object Uint32Array]",ve={};ve[s9]=ve[T2t]=ve[W2t]=ve[G2t]=ve[L2t]=ve[N2t]=ve[H2t]=ve[V2t]=ve[U2t]=ve[X2t]=ve[q2t]=ve[$2t]=ve[D2t]=ve[c9]=ve[F2t]=ve[R2t]=ve[B2t]=ve[z2t]=ve[K2t]=ve[Z2t]=ve[Q2t]=ve[J2t]=!0,ve[I2t]=ve[l9]=ve[Y2t]=!1;function eh(t,e,n,r,i,o){var a,s=e&A2t,l=e&k2t,c=e&C2t;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Gn(t))return t;var u=Ut(t);if(u){if(a=Xxt(t),!s)return S_(t,a)}else{var f=th(t),d=f==l9||f==j2t;if(qd(t))return GR(t,s);if(f==c9||f==s9||d&&!i){if(a=l||d?{}:i9(t),!s)return l?$xt(t,Pxt(a,t)):Nxt(t,Mxt(a,t))}else{if(!ve[f])return i?t:{};a=b2t(t,f,s)}}o||(o=new wi);var h=o.get(t);if(h)return h;o.set(t,a),P2t(t)?t.forEach(function(y){a.add(eh(y,e,n,y,t,o))}):_2t(t)&&t.forEach(function(y,g){a.set(g,eh(y,e,n,g,t,o))});var p=c?l?qR:D_:l?Zd:Xs,v=u?void 0:p(t);return p1t(v||t,function(y,g){v&&(g=y,y=t[g]),ey(a,g,eh(y,e,n,g,t,o))}),a}var twt=1,ewt=4;function u9(t){return eh(t,twt|ewt)}var nwt="__lodash_hash_undefined__";function rwt(t){return this.__data__.set(t,nwt),this}function iwt(t){return this.__data__.has(t)}function nh(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new jo;++e<n;)this.add(t[e])}nh.prototype.add=nh.prototype.push=rwt,nh.prototype.has=iwt;function owt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function f9(t,e){return t.has(e)}var awt=1,swt=2;function d9(t,e,n,r,i,o){var a=n&awt,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var f=-1,d=!0,h=n&swt?new nh:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var y=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!owt(e,function(g,m){if(!f9(h,m)&&(p===g||i(p,g,n,r,o)))return h.push(m)})){d=!1;break}}else if(!(p===v||i(p,v,n,r,o))){d=!1;break}}return o.delete(t),o.delete(e),d}function lwt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function z_(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var cwt=1,uwt=2,fwt="[object Boolean]",dwt="[object Date]",hwt="[object Error]",pwt="[object Map]",vwt="[object Number]",gwt="[object RegExp]",ywt="[object Set]",mwt="[object String]",bwt="[object Symbol]",xwt="[object ArrayBuffer]",wwt="[object DataView]",h9=ti?ti.prototype:void 0,Y_=h9?h9.valueOf:void 0;function Owt(t,e,n,r,i,o,a){switch(n){case wwt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case xwt:return!(t.byteLength!=e.byteLength||!o(new ay(t),new ay(e)));case fwt:case dwt:case vwt:return Ud(+t,+e);case hwt:return t.name==e.name&&t.message==e.message;case gwt:case mwt:return t==e+"";case pwt:var s=lwt;case ywt:var l=r&cwt;if(s||(s=z_),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=uwt,a.set(t,e);var u=d9(s(t),s(e),r,i,o,a);return a.delete(t),u;case bwt:if(Y_)return Y_.call(t)==Y_.call(e)}return!1}var _wt=1,Swt=Object.prototype,Ewt=Swt.hasOwnProperty;function Mwt(t,e,n,r,i,o){var a=n&_wt,s=D_(t),l=s.length,c=D_(e),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:Ewt.call(e,d)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var v=!0;o.set(t,e),o.set(e,t);for(var y=a;++f<l;){d=s[f];var g=t[d],m=e[d];if(r)var b=a?r(m,g,d,e,t,o):r(g,m,d,t,e,o);if(!(b===void 0?g===m||i(g,m,n,r,o):b)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(t),o.delete(e),v}var Pwt=1,p9="[object Arguments]",v9="[object Array]",sy="[object Object]",Awt=Object.prototype,g9=Awt.hasOwnProperty;function kwt(t,e,n,r,i,o){var a=Ut(t),s=Ut(e),l=a?v9:th(t),c=s?v9:th(e);l=l==p9?sy:l,c=c==p9?sy:c;var u=l==sy,f=c==sy,d=l==c;if(d&&qd(t)){if(!qd(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new wi),a||A_(t)?d9(t,e,n,r,i,o):Owt(t,e,l,n,r,i,o);if(!(n&Pwt)){var h=u&&g9.call(t,"__wrapped__"),p=f&&g9.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,y=p?e.value():e;return o||(o=new wi),i(v,y,n,r,o)}}return d?(o||(o=new wi),Mwt(t,e,n,r,i,o)):!1}function ly(t,e,n,r,i){return t===e?!0:t==null||e==null||!sr(t)&&!sr(e)?t!==t&&e!==e:kwt(t,e,n,r,ly,i)}var Cwt=1,Twt=2;function Lwt(t,e,n,r){var i=n.length,o=i,a=!r;if(t==null)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){s=n[i];var l=s[0],c=t[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in t))return!1}else{var f=new wi;if(r)var d=r(c,u,l,t,e,f);if(!(d===void 0?ly(u,c,Cwt|Twt,r,f):d))return!1}}return!0}function y9(t){return t===t&&!Gn(t)}function Nwt(t){for(var e=Xs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,y9(i)]}return e}function m9(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function Iwt(t){var e=Nwt(t);return e.length==1&&e[0][2]?m9(e[0][0],e[0][1]):function(n){return n===t||Lwt(n,t,e)}}function jwt(t,e){return t!=null&&e in Object(t)}function $wt(t,e,n){e=qc(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Kc(e[r]);if(!(o=t!=null&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&E_(i)&&Jg(a,i)&&(Ut(t)||Xd(t)))}function b9(t,e){return t!=null&&$wt(t,e,jwt)}var Dwt=1,Fwt=2;function Rwt(t,e){return k_(t)&&y9(e)?m9(Kc(t),e):function(n){var r=pe(n,t);return r===void 0&&r===e?b9(n,t):ly(e,r,Dwt|Fwt)}}function Bwt(t){return function(e){return e==null?void 0:e[t]}}function zwt(t){return function(e){return oy(e,t)}}function Ywt(t){return k_(t)?Bwt(Kc(t)):zwt(t)}function W_(t){return typeof t=="function"?t:t==null?x_:typeof t=="object"?Ut(t)?Rwt(t[0],t[1]):Iwt(t):Ywt(t)}function Wwt(t,e,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Gwt(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(n(o[l],l,o)===!1)break}return e}}var Hwt=Gwt();const x9=Hwt;function Vwt(t,e){return t&&x9(t,e,Xs)}function Uwt(t,e){return function(n,r){if(n==null)return n;if(!Fa(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Xwt=Uwt(Vwt);const w9=Xwt;function qwt(t,e,n,r){return w9(t,function(i,o,a){e(r,i,n(i),a)}),r}function Kwt(t,e){return function(n,r){var i=Ut(n)?Wwt:qwt,o=e?e():{};return i(n,t,W_(r),o)}}function G_(t,e,n){(n!==void 0&&!Ud(t[e],n)||n===void 0&&!(e in t))&&ty(t,e,n)}function Zwt(t){return sr(t)&&Fa(t)}function H_(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Qwt(t){return Us(t,Zd(t))}function Jwt(t,e,n,r,i,o,a){var s=H_(t,n),l=H_(e,n),c=a.get(l);if(c){G_(t,n,c);return}var u=o?o(s,l,n+"",t,e,a):void 0,f=u===void 0;if(f){var d=Ut(l),h=!d&&qd(l),p=!d&&!h&&A_(l);u=l,d||h||p?Ut(s)?u=s:Zwt(s)?u=S_(s):h?(f=!1,u=GR(l,!0)):p?(f=!1,u=r9(l,!0)):u=[]:j_(l)||Xd(l)?(u=s,Xd(s)?u=Qwt(s):(!Gn(s)||Vc(s))&&(u=i9(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),G_(t,n,u)}function O9(t,e,n,r,i){t!==e&&x9(e,function(o,a){if(i||(i=new wi),Gn(o))Jwt(t,e,a,n,O9,r,i);else{var s=r?r(H_(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),G_(t,a,s)}},Zd)}var tOt=MR(function(t,e,n,r){O9(t,e,n,r)});const eOt=tOt;function nOt(t,e,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function rOt(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var iOt=xmt(function(t,e){return t/e},1);const oOt=iOt;function aOt(t,e){var n=-1,r=Fa(t)?Array(t.length):[];return w9(t,function(i,o,a){r[++n]=e(i,o,a)}),r}function Qc(t,e){var n=Ut(t)?Xg:aOt;return n(t,W_(e))}var sOt="Expected a function",lOt=8,cOt=32,uOt=128,fOt=256;function dOt(t){return N_(function(e){var n=e.length,r=n,i=Da.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new TypeError(sOt);if(i&&!a&&Kg(o)=="wrapper")var a=new Da([],!0)}for(r=a?r:n;++r<n;){o=e[r];var s=Kg(o),l=s=="wrapper"?bR(o):void 0;l&&wR(l[0])&&l[1]==(uOt|lOt|cOt|fOt)&&!l[4].length&&l[9]==1?a=a[Kg(l[0])].apply(a,l[3]):a=o.length==1&&wR(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&Ut(u))return a.plant(u).value();for(var f=0,d=n?e[f].apply(this,c):u;++f<n;)d=e[f].call(this,d);return d}})}var hOt=dOt();const zt=hOt;var pOt=Object.prototype,vOt=pOt.hasOwnProperty,gOt=Kwt(function(t,e,n){vOt.call(t,n)?t[n].push(e):ty(t,n,[e])});const _9=gOt;var yOt="[object String]";function S9(t){return typeof t=="string"||!Ut(t)&&sr(t)&&Qi(t)==yOt}function mOt(t,e){return Xg(e,function(n){return t[n]})}function bOt(t){return t==null?[]:mOt(t,Xs(t))}var xOt=Math.max;function wOt(t,e,n,r){t=Fa(t)?t:bOt(t),n=n&&!r?pR(n):0;var i=t.length;return n<0&&(n=xOt(i+n,0)),S9(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&_R(t,e,n)>-1}function OOt(t,e){return e.length<2?t:oy(t,pxt(e,0,-1))}var _Ot="[object Boolean]";function V_(t){return t===!0||t===!1||sr(t)&&Qi(t)==_Ot}function E9(t,e){return ly(t,e)}var SOt="[object Number]";function Jc(t){return typeof t=="number"||sr(t)&&Qi(t)==SOt}function EOt(t){return t==null}function MOt(t){return t===void 0}function POt(t,e){return e=qc(e,t),t=OOt(t,e),t==null||delete t[Kc(rOt(e))]}function AOt(t){return j_(t)?void 0:t}var kOt=1,COt=2,TOt=4,LOt=N_(function(t,e){var n={};if(t==null)return n;var r=!1;e=Xg(e,function(o){return o=qc(o,t),r||(r=o.length>1),o}),Us(t,qR(t),n),r&&(n=eh(n,kOt|COt|TOt,AOt));for(var i=e.length;i--;)POt(n,e[i]);return n});const U_=LOt;function M9(t,e,n,r){if(!Gn(t))return t;e=qc(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=Kc(e[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Gn(u)?u:Jg(e[i+1])?[]:{})}ey(s,l,c),s=s[l]}return t}function NOt(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=oy(t,a);n(s,a)&&M9(o,qc(a,t),s)}return o}function IOt(t,e){return NOt(t,e,function(n,r){return b9(t,r)})}var jOt=N_(function(t,e){return t==null?{}:IOt(t,e)});const P9=jOt;function dt(t,e,n){return t==null?t:M9(t,e,n)}var $Ot=1/0,DOt=Zc&&1/z_(new Zc([,-0]))[1]==$Ot?function(t){return new Zc(t)}:mR;const FOt=DOt;var ROt=200;function BOt(t,e,n){var r=-1,i=m1t,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=nOt;else if(o>=ROt){var c=e?null:FOt(t);if(c)return z_(c);a=!1,i=f9,l=new nh}else l=e?[]:s;t:for(;++r<o;){var u=t[r],f=e?e(u):u;if(u=n||u!==0?u:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue t;e&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function X_(t,e){return t&&t.length?BOt(t,W_(e)):[]}var zOt=function(t){var e=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return e.test(t)},q_=function(){return q_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},q_.apply(this,arguments)},A9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function YOt(t,e){var n=K.useRef(),r=K.useRef(),i=K.useRef(null),o=e.onReady,a=e.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)},l=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),v=document.createElement("a");return v.href=p,v.download=h,document.body.appendChild(v),v.click(),document.body.removeChild(v),v=null,h},c=function(u,f){f===void 0&&(f=!1);var d=Object.keys(u),h=f;d.forEach(function(p){var v=u[p];p==="tooltip"&&(h=!0),Vc(v)&&zOt("".concat(v))?u[p]=function(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];return Jyt(v.apply(void 0,y),h)}:Ut(v)?v.forEach(function(y){c(y,h)}):Gn(v)?c(v,h):h=f})};return K.useEffect(function(){if(n.current&&!E9(r.current,e)){var u=!1;if(r.current){var f=r.current;f.data;var d=A9(f,["data"]);e.data;var h=A9(e,["data"]);u=E9(d,h)}r.current=u9(e),u?n.current.changeData(pe(e,"data")):(c(e),n.current.update(e),n.current.render())}},[e]),K.useEffect(function(){if(!i.current)return function(){return null};r.current||(r.current=u9(e)),c(e);var u=new t(i.current,q_({},e));u.toDataURL=s,u.downloadImage=l,u.render(),n.current=u,o&&o(u);var f=function(d){a&&a(u,d)};return u.on("*",f),function(){n.current&&(n.current.destroy(),n.current.off("*",f),n.current=void 0)}},[]),{chart:n,container:i}}var WOt=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const k9=WOt;var GOt=function(t,e){if(!k9(t))return t;for(var n=[],r=0;r<t.length;r++){var i=t[r];e(i,r)&&n.push(i)}return n};const HOt=GOt,VOt=function(t){return typeof t=="function"};var UOt=function(t){return t==null};const XOt=UOt;var qOt={}.toString,KOt=function(t,e){return qOt.call(t)==="[object "+e+"]"};const K_=KOt,tu=function(t){return Array.isArray?Array.isArray(t):K_(t,"Array")},ZOt=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function Z_(t,e){if(t){var n;if(tu(t))for(var r=0,i=t.length;r<i&&(n=e(t[r],r),n!==!1);r++);else if(ZOt(t)){for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),n===!1))break}}}var QOt=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Z_(t,function(n,r){VOt(t)&&r==="prototype"||e.push(r)}),e};const JOt=QOt;var t_t=function(t){return typeof t=="object"&&t!==null};const e_t=t_t;var n_t=function(t){if(!e_t(t)||!K_(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};const cy=n_t;var r_t=function(t,e,n){if(!tu(t)&&!cy(t))return t;var r=n;return Z_(t,function(i,o){r=e(r,i,o)}),r};const i_t=r_t,Q_=function(t){return K_(t,"String")};function J_(t,e){for(var n in e)e.hasOwnProperty(n)&&n!=="constructor"&&e[n]!==void 0&&(t[n]=e[n])}function o_t(t,e,n,r){return e&&J_(t,e),n&&J_(t,n),r&&J_(t,r),t}var a_t=5;function s_t(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function C9(t,e,n,r){n=n||0,r=r||a_t;for(var i in e)if(s_t(e,i)){var o=e[i];o!==null&&cy(o)?(cy(t[i])||(t[i]={}),n<r?C9(t[i],o,n+1,r):t[i]=e[i]):tu(o)?(t[i]=[],t[i]=t[i].concat(o)):o!==void 0&&(t[i]=o)}}var l_t=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)C9(t,e[r]);return t};const uy=l_t,Ji=function(t,e,n){for(var r=0,i=Q_(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return t===void 0||r<i.length?n:t};var c_t=Object.prototype.hasOwnProperty;const T9=function(t,e){if(t===null||!cy(t))return{};var n={};return Z_(e,function(r){c_t.call(t,r)&&(n[r]=t[r])}),n};function u_t(t){return XOt(t)?0:k9(t)?t.length:Object.keys(t).length}const f_t={field:"value",size:[1,1],round:!1,padding:0,sort:(t,e)=>e.value-t.value,as:["x","y"],ignoreParentValue:!0},d_t="nodeIndex",rh="childNodeCount",h_t="nodeAncestor",tS="Invalid field: it must be a string!";function p_t(t,e){const{field:n,fields:r}=t;if(Q_(n))return n;if(tu(n))return console.warn(tS),n[0];if(console.warn(`${tS} will try to get fields instead.`),Q_(r))return r;if(tu(r)&&r.length)return r[0];if(e)return e;throw new TypeError(tS)}function v_t(t){const e=[];if(t&&t.each){let n,r;t.each(i=>{var o,a;i.parent!==n?(n=i.parent,r=0):r+=1;const s=HOt((((o=i.ancestors)===null||o===void 0?void 0:o.call(i))||[]).map(l=>e.find(c=>c.name===l.name)||l),({depth:l})=>l>0&&l<i.depth);i[h_t]=s,i[rh]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[d_t]=r,e.push(i)})}else t&&t.eachNode&&t.eachNode(n=>{e.push(n)});return e}function g_t(t,e){e=o_t({},f_t,e);const n=e.as;if(!tu(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=p_t(e)}catch(l){console.warn(l)}const o=(l=>trt().size(e.size).round(e.round).padding(e.padding)(Yl(l).sum(c=>u_t(c.children)?e.ignoreParentValue?0:c[r]-i_t(c.children,(u,f)=>u+f[r],0):c[r]).sort(e.sort)))(t),a=n[0],s=n[1];return o.each(l=>{var c,u;l[a]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((c=l.data)===null||c===void 0?void 0:c.name)||((u=l.data)===null||u===void 0?void 0:u.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete l[f]})}),v_t(o)}var y_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const eu="sunburst",eS="markType",L9="path",fy="ancestor-node";function m_t(t){const{data:e,encode:n}=t,{color:r,value:i}=n,a=g_t(e,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return a.forEach(l=>{var c,u,f,d;if(l.depth===0)return null;let h=l.data.name;const p=[h];let v=Object.assign({},l);for(;v.depth>1;)h=`${(c=v.parent.data)===null||c===void 0?void 0:c.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const y=Object.assign(Object.assign(Object.assign({},T9(l.data,[i])),{[L9]:h,[fy]:v.data.name}),l);r&&r!==fy&&(y[r]=l.data[r]||((d=(f=l.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(y)}),s.map(l=>Object.assign(Object.assign({},l),{x:l.x.slice(0,2),y:[l.y[2],l.y[0]],fillOpacity:Math.pow(.85,l.depth)}))}const N9={id:eu,encode:{x:"x",y:"y",key:L9,color:fy,value:"value"},axis:{x:!1,y:!1},style:{[eS]:eu,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[rh]:rh,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},I9=t=>{const{encode:e,data:n=[],legend:r}=t,i=y_t(t,["encode","data","legend"]),o=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(Ji(i,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},N9.encode),e),{value:s}=a,l=m_t({encode:a,data:n});return[uy({},N9,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};I9.props={};var b_t=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(t,e||[])).next())})};const x_t=t=>t.querySelectorAll(".element").filter(e=>Ji(e,["style",eS])===eu);function w_t(t){return pt(t).select(`.${Cf}`).node()}const O_t={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function __t(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=uy({},O_t,e);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=w_t(s),f=c.marks.find(({id:m})=>m===eu),{state:d}=f,h=new on;u.appendChild(h);const p=(m,b)=>b_t(this,void 0,void 0,function*(){if(h.removeChildren(),m){const x=new jr({style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});h.appendChild(x);let w="";const O=m==null?void 0:m.split(" / ");let _=r.style.y,S=h.getBBox().width;const E=u.getBBox().width,M=O.map((P,C)=>{const A=new jr({style:Object.assign(Object.assign({x:S,text:" / "},r.style),{y:_})});h.appendChild(A),S+=A.getBBox().width,w=`${w}${P} / `;const k=new jr({name:w.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:P,x:S,depth:C+1},r.style),{y:_})});return h.appendChild(k),S+=k.getBBox().width,S>E&&(_=h.getBBox().height,S=0,A.attr({x:S,y:_}),S+=A.getBBox().width,k.attr({x:S,y:_}),S+=k.getBBox().width),k});[x,...M].forEach((P,C)=>{if(C===M.length)return;const A=Object.assign({},P.attributes);P.attr("cursor","pointer"),P.addEventListener("mouseenter",()=>{P.attr(r.active)}),P.addEventListener("mouseleave",()=>{P.attr(A)}),P.addEventListener("click",()=>{p(P.name,Ji(P,["style","depth"]))})})}a("drillDown",x=>{const{marks:w}=x,O=w.map(_=>{if(_.id!==eu&&_.type!=="rect")return _;const{data:S}=_,E=Object.fromEntries(["color"].map(P=>[P,{domain:l.scale[P].getOptions().domain}])),M=S.filter(P=>{const C=P.path;return n&&(P[fy]=C.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(C):!0});return uy({},_,n?{data:M}:{data:M,scale:E})});return Object.assign(Object.assign({},x),{marks:O})}),yield o()}),v=m=>{const b=m.target;if(Ji(b,["style",eS])!==eu||Ji(b,["markType"])!=="rect"||!Ji(b,["style",rh]))return;const x=Ji(b,["__data__","key"]),w=Ji(b,["style","depth"]);b.style.cursor="pointer",p(x,w)};u.addEventListener("click",v);const y=JOt(Object.assign(Object.assign({},d.active),d.inactive)),g=()=>{x_t(u).forEach(b=>{const x=Ji(b,["style",rh]);if(Ji(b,["style","cursor"])!=="pointer"&&x){b.style.cursor="pointer";const O=T9(b.attributes,y);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(uy(O,d.inactive))})}})};return u.addEventListener("mousemove",g),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",g)}}}V.enableCSSParsing=!1;function S_t(){return{"interaction.drillDown":__t,"mark.sunburst":I9}}var dy=function(){return dy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},dy.apply(this,arguments)},E_t=pvt(Yvt,dy(dy({},DD()),S_t())),Xt=function(t){var e=P_t(t),n=e.children,r=n===void 0?[]:n,i=U_(e,[].concat(D9,hy.map(function(c){return c.key}))),o=function(c){var u;return(u=L_t.find(function(f){return f.key===c}))===null||u===void 0?void 0:u.callback},a=function(c,u,f){var d=o(u);d?d(c,u,f):c[u]=Ra({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){var f=hy.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Ra({},P9(c,h),{type:d},c[u]))):Ut(c[u])&&c[u].forEach(function(p){r.push(l(p))})}})},l=function(c){return s(c),Object.keys(rS).forEach(function(u){var f=rS[u];if(!MOt(c[u]))if(Gn(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else dt(c,f,c[u])}),c};return r.forEach(function(c){var u=Ra({},i,c);l(Ra(c,u))}),s(e),M_t(e),t},j9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},M_t=function(t){var e=t.children,n=e===void 0?[]:e,r=Object.keys(rS).concat(hy.map(function(i){return i.key}));return r.forEach(function(i){delete t[i]}),n.forEach(function(i){Object.keys(i).forEach(function(o){r.includes(o)&&delete i[o]})}),Object.keys(t).forEach(function(i){j9(j9([],D9,!0),oS.map(function(o){return o.key}),!0).includes(i)||delete t[i]}),t},P_t=function(t){var e=t.options,n=e.children,r=n===void 0?[]:n;return r.forEach(function(i){Object.keys(i).forEach(function(o){Ut(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[nS]}))})}),e},$9=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},A_t=function(t,e){if(Ut(e))return e},Ra=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return eOt.apply(void 0,$9($9([],t,!1),[A_t],!1))},ih=function(){return ih=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ih.apply(this,arguments)},k_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},C_t=["renderer"],D9=["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"],nS="__transform__",T_t="__skipDelCustomKeys__",Zs=function(t,e){return V_(e)?{type:t,available:e}:ih({type:t},e)},rS={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",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 Zs("stackY",t)}},normalize:{target:"transform",value:function(t){return Zs("normalizeY",t)}},percent:{target:"transform",value:function(t){return Zs("normalizeY",t)}},group:{target:"transform",value:function(t){return Zs("dodgeX",t)}},sort:{target:"transform",value:function(t){return Zs("sortX",t)}},symmetry:{target:"transform",value:function(t){return Zs("symmetryY",t)}},diff:{target:"transform",value:function(t){return Zs("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 V_(t)?{connect:t}:t}}},iS=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],hy=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:iS},{key:"point",type:"point",extend_keys:iS},{key:"area",type:"area",extend_keys:iS}],L_t=[{key:"transform",callback:function(t,e,n){var r;t[e]=t[e]||[];var i=n.available,o=i===void 0?!0:i,a=k_t(n,["available"]);o?t[e].push(ih((r={},r[nS]=!0,r),a)):t[e].splice(t[e].indexOf(function(s){return s.type===n.type}),1)}},{key:"labels",callback:function(t,e,n){var r;if(!n||Ut(n)){t[e]=n||[];return}n.text||(n.text=t.yField),t[e]=t[e]||[],t[e].push(ih((r={},r[nS]=!0,r),n))}}],oS=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],N_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),py=function(){return py=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},py.apply(this,arguments)},I_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},F9=function(t){N_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=I_t(n,["style"]);return t.call(this,py({style:py({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return e}(jr),j_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vy=function(){return vy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},vy.apply(this,arguments)},$_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},D_t=function(t){j_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$_t(n,["style"]);return t.call(this,vy({style:vy({fill:"#eee"},r)},i))||this}return e}(ef),F_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),R9=function(t){F_t(e,t);function e(n,r,i){var o=t.call(this,{style:Ra(i,r)})||this;return o.chart=n,o}return e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},e.prototype.disconnectedCallback=function(){},e.prototype.attributeChangedCallback=function(n){},e.prototype.update=function(n,r){var i;return this.attr(Ra({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},e.prototype.clear=function(){this.removeChildren()},e.prototype.getElementsLayout=function(){var n=this.chart.getContext().canvas,r=n.document.getElementsByClassName("element"),i=[];return r.forEach(function(o){var a=o.getBBox(),s=a.x,l=a.y,c=a.width,u=a.height,f=o.__data__;i.push({bbox:a,x:s,y:l,width:c,height:u,key:f.key,data:f})}),i},e.prototype.bindEvents=function(n,r){},e}(mp),R_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gy=function(){return gy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gy.apply(this,arguments)},B_t=function(t){R_t(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.getConversionTagLayout=function(){var n=this.direction==="vertical",r=this.getElementsLayout(),i=r[0],o=i.x,a=i.y,s=i.height,l=i.width,c=i.data,u=["items",0,"value"],f=pe(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,y=v===void 0?40:v,g=p.arrowSize,m=g===void 0?20:g,b=p.spacing,x=b===void 0?4:b;return r.forEach(function(w,O){if(O>0){var _=w.x,S=w.y,E=w.height,M=w.width,P=w.data,C=w.key,A=pe(P,u),k=y/2;if(n){var T=_+M/2,N=S;h.push({points:[[T+k,N-d+x],[T+k,N-m-x],[T,N-x],[T-k,N-m-x],[T-k,N-d+x]],center:[T,N-d/2-x],width:d,value:[f,A],key:C})}else{var T=_,N=S+E/2;h.push({points:[[_-d+x,N-k],[_-m-x,N-k],[T-x,N],[_-m-x,N+k],[_-d+x,N+k]],center:[T-d/2-x,N],width:d,value:[f,A],key:C})}f=A}}),h},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=pe(n,"options.transformations"),i="horizontal";r.forEach(function(o){o.includes("transpose")&&(i="vertical")}),this.direction=i},e.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,o=i.style,a=i.text,s=a.style,l=a.formatter;r.forEach(function(c){var u=c.points,f=c.center,d=c.value,h=c.key,p=d[0],v=d[1],y=f[0],g=f[1],m=new D_t({style:gy({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),b=new F9({style:gy({x:y,y:g,text:Vc(l)?l(p,v):(v/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(m),n.appendChild(b)})},e.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var o=i.points,a=i.center,s=i.key,l=a[0],c=a[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",o),f.setAttribute("x",l),f.setAttribute("y",c)})},e.tag="ConversionTag",e}(R9),aS=32,B9=16,z9=48,z_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),oh=function(){return oh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},oh.apply(this,arguments)},Y_t=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},W_t=function(t){z_t(e,t);function e(n,r){return t.call(this,n,r,{type:e.tag})||this}return e.prototype.render=function(){this.drawText()},e.prototype.getBidirectionalBarAxisTextLayout=function(){var n=this.attributes.layout,r=n==="vertical",i=this.getElementsLayout(),o=r?X_(i,"x"):X_(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=pe(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,y=d.width,g=d.data,m=d.key,b=pe(g,a);r?s.push({x:h+y/2,y:f,text:b,key:m}):s.push({x:u,y:p+v/2,text:b,key:m})}),X_(s,"text").length!==s.length&&(s=Object.values(_9(s,"text")).map(function(d){var h,p=d.reduce(function(v,y){return v+(r?y.x:y.y)},0);return oh(oh({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},e.prototype.transformLabelStyle=function(n){var r={},i=/^label[A-Z]/;return Object.keys(n).forEach(function(o){i.test(o)&&(r[o.replace("label","").replace(/^[A-Z]/,function(a){return a.toLowerCase()})]=n[o])}),r},e.prototype.drawText=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,o=i.layout,a=i.labelFormatter,s=Y_t(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new F9({style:oh({x:c,y:u,text:Vc(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?aS*2:120,maxLines:2,textOverflow:"ellipsis"},n.transformLabelStyle(s)),id:"text-".concat(d)});n.appendChild(h)})},e.prototype.update=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout();r.forEach(function(i){var o=i.x,a=i.y,s=i.key,l=n.getElementById("text-".concat(s));l.setAttribute("x",o),l.setAttribute("y",a)})},e.tag="BidirectionalBarAxisText",e}(R9),G_t={ConversionTag:B_t,BidirectionalBarAxisText:W_t},H_t=function(){function t(e,n){this.container=new Map,this.chart=e,this.config=n,this.init()}return t.prototype.init=function(){var e=this;oS.forEach(function(n){var r,i=n.key,o=n.shape,a=e.config[i];if(a){var s=new G_t[o](e.chart,a),l=e.chart.getContext().canvas;l.appendChild(s),e.container.set(i,s)}else(r=e.container.get(i))===null||r===void 0||r.clear()})},t.prototype.update=function(){var e=this;this.container.size&&oS.forEach(function(n){var r=n.key,i=e.container.get(r);i==null||i.update()})},t}(),V_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nu=function(){return nu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},nu.apply(this,arguments)},Y9="data-chart-source-type",Rt=function(t){V_t(e,t);function e(n,r){var i=t.call(this)||this;return i.container=typeof n=="string"?document.getElementById(n):n,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return e.prototype.getChartOptions=function(){return nu(nu({},P9(this.options,C_t)),{container:this.container})},e.prototype.getSpecOptions=function(){return this.type==="base"||this[T_t]?nu(nu({},this.options),this.getChartOptions()):this.options},e.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new E_t(this.getChartOptions()),this.container.setAttribute(Y9,"Ant Design Charts")},e.prototype.bindEvents=function(){var n=this;this.chart&&this.chart.on("*",function(r){r!=null&&r.type&&n.emit(r.type,r)})},e.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},e.prototype.getDefaultOptions=function(){},e.prototype.render=function(){var n=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){n.annotation=new H_t(n.chart,n.options)}),this.bindSizeSensor()},e.prototype.update=function(n){this.options=this.mergeOption(n)},e.prototype.mergeOption=function(n){return Ra({},this.getBaseOptions(),this.getDefaultOptions(),n)},e.prototype.changeData=function(n){this.chart.changeData(n)},e.prototype.changeSize=function(n,r){this.chart.changeSize(n,r)},e.prototype.destroy=function(){this.chart.destroy(),this.off(),this.container.removeAttribute(Y9)},e.prototype.execAdaptor=function(){var n=this.getSchemaAdaptor();n({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var n=this,r=this.options.autoFit,i=r===void 0?!0:r;i&&this.chart.on(Vt.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},e}(Ex),U_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),X_t=function(t){U_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="base",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return function(n){return n}},e}(Rt),sS=function(){return sS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},sS.apply(this,arguments)};function q_t(t){var e=t.options,n=e.stack,r=e.tooltip,i=e.xField;if(!n)return t;var o=hy.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){e[s]&&(a=!0,dt(e,[s,"stack"],sS({y1:"y"},typeof n=="object"?n:{})))}),a&&!V_(r)&&!r&&dt(e,"tooltip",{title:i,items:[{channel:"y"}]}),t}function Fe(t){return zt(q_t)(t)}function K_t(t){var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],t}function Z_t(t){K_t(t);var e=t.options.layout,n=e===void 0?"horizontal":e;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=n!=="horizontal"?void 0:[{type:"transpose"}])}),t}function Q_t(t){return zt(Fe,Xt)(t)}var J_t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tSt=function(t){J_t(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="area",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Q_t},e}(Rt),ru=function(){return ru=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ru.apply(this,arguments)};function W9(t){var e=function(n){var r=n.options;pe(r,"children.length")>1&&dt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=pe(i,"y.domain",[]);if(o&&c.length&&Ut(a)){var u="domainMax",f=a.map(function(d){var h;return ru(ru({originData:ru({},d)},U_(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(ru({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return zt(e,Fe,Xt)(t)}var eSt=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[0],p=r[1],v=r[2],y=r[3],g=(p[1]-h[1])/2,m=n.document,b=m.createElement("g",{}),x=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+g],[v[0]-d,h[1]+g],y],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=m.createElement("polygon",{style:{points:[[h[0]-d,h[1]+g],p,v,[v[0]-d,h[1]+g]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),O=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+g],p,[h[0]+d,h[1]+g]],fill:o,fillOpacity:l-.2}});return b.appendChild(x),b.appendChild(w),b.appendChild(O),b}};RD("shape.interval.bar25D",t)},nSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();eSt();var rSt=function(t){nSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Bar",n}return e.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},elementHighlightByColor:{background:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W9},e}(Rt),iSt=function(){var t=function(e,n){return function(r){var i=e.fill,o=i===void 0?"#2888FF":i,a=e.stroke,s=e.fillOpacity,l=s===void 0?1:s,c=e.strokeOpacity,u=c===void 0?.2:c,f=e.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],v=n.document,y=v.createElement("g",{}),g=v.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:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),m=v.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:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),b=v.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:o,fillOpacity:l-.2}});return y.appendChild(m),y.appendChild(g),y.appendChild(b),y}};RD("shape.interval.column25D",t)},oSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();iSt();var aSt=function(t){oSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return W9},e}(Rt);function sSt(t){var e=function(r){var i=r.options,o=i.children,a=o===void 0?[]:o,s=i.legend;return s&&a.forEach(function(l){if(!pe(l,"colorField")){var c=pe(l,"yField");dt(l,"colorField",function(){return c})}}),r},n=function(r){var i=r.options,o=i.annotations,a=o===void 0?[]:o,s=i.children,l=s===void 0?[]:s,c=i.scale,u=!1;return pe(c,"y.key")||l.forEach(function(f,d){if(!pe(f,"scale.y.key")){var h="child".concat(d,"Scale");dt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(dt(f,"scale.y.independent",!1),v.forEach(function(y){dt(y,"scale.y.key",h)})),!u&&a.length>0&&pe(f,"scale.y.independent")===void 0&&(u=!0,dt(f,"scale.y.independent",!1),a.forEach(function(y){dt(y,"scale.y.key",h)}))}}),r};return zt(e,n,Fe,Xt)(t)}var lSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),G9=function(t){lSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="DualAxes",n}return e.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return sSt},e}(Rt);function cSt(t){var e=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||dt(a,"colorField",s),o},n=function(o){var a=o.options,s=a.compareField,l=a.transform,c=a.isTransposed,u=c===void 0?!0:c,f=a.coordinate;return l||(s?dt(a,"transform",[]):dt(a,"transform",[{type:"symmetryY"}])),!f&&u&&dt(a,"coordinate",{transform:[{type:"transpose"}]}),o},r=function(o){var a=o.options,s=a.compareField,l=a.seriesField,c=a.data,u=a.children,f=a.yField,d=a.isTransposed,h=d===void 0?!0:d;if(s||l){var p=Object.values(_9(c,function(v){return v[s||l]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete a.compareField,delete a.data}return l&&(dt(a,"type","spaceFlex"),dt(a,"ratio",[1,1]),dt(a,"direction",h?"row":"col"),delete a.seriesField),o},i=function(o){var a=o.options,s=a.tooltip,l=a.xField,c=a.yField;return s||dt(a,"tooltip",{title:!1,items:[function(u){return{name:u[l],value:u[c]}}]}),o};return zt(e,n,r,i,Fe,Xt)(t)}var uSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fSt=function(t){uSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.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"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return cSt},e}(Rt);function dSt(t){return zt(Fe,Xt)(t)}var hSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pSt=function(t){hSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return dSt},e}(Rt),Ba=function(){return Ba=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ba.apply(this,arguments)};function vSt(t){var e=function(n){var r=n.options,i=r.angleField,o=r.data,a=r.label,s=r.tooltip,l=r.colorField;if(Ut(o)){var c=o.reduce(function(f,d){return f+d[i]},0);if(c===0){var u=o.map(function(f){var d;return Ba(Ba({},f),(d={},d[i]=1,d))});dt(r,"data",u),a&&dt(r,"label",Ba(Ba({},a),{formatter:function(){return 0}})),s!==!1&&dt(r,"tooltip",Ba(Ba({},s),{items:[function(f){return{name:f[l],value:0}}]}))}}return n};return zt(e,Xt)(t)}var gSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ySt=function(t){gSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vSt},e}(Rt);function mSt(t){return zt(Fe,Xt)(t)}var bSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xSt=function(t){bSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="scatter",n}return e.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mSt},e}(Rt);function wSt(t){var e=function(n){return dt(n,"options.coordinate",{type:pe(n,"options.coordinateType","polar")}),n};return zt(e,Xt)(t)}var OSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_St=function(t){OSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return e.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"}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return wSt},e}(Rt),$o=function(){return $o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},$o.apply(this,arguments)},SSt="__stock-range__",ESt="trend",MSt="up",PSt="down";function ASt(t){var e=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=Qc(o,function(s){var l=s&&$o({},s);if(Array.isArray(a)&&l){var c=a[0],u=a[1],f=a[2],d=a[3];l[ESt]=l[c]<=l[u]?MSt:PSt,l[SSt]=[l[c],l[u],l[f],l[d]]}return l}),r},n=function(r){var i=r.options,o=i.xField,a=i.yField,s=i.fallingFill,l=i.risingFill,c=a[0],u=a[1],f=a[2],d=a[3];return r.options.children=Qc(r.options.children,function(h,p){var v=p===0;return $o($o({},h),{tooltip:{title:function(y){return y[o]instanceof Date?y[o].toLocaleString():y[o]},items:[{field:f},{field:d},{field:c},{field:u}]},encode:$o($o({},h.encode||{}),{y:v?[f,d]:[c,u],color:function(y){return Math.sign(y[u]-y[c])}}),style:$o($o({},h.style||{}),{lineWidth:v?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&dt(r,"options.scale.color.range[0]",s),l&&dt(r,"options.scale.color.range[2]",l),r};return zt(e,n,Xt)(t)}var kSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),CSt=["#26a69a","#999999","#ef5350"],TSt=function(t){kSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="stock",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:CSt},y:{nice:!0}},children:[{type:"link"},{type:"link"}],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}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ASt},e}(Rt);function LSt(t){return zt(Fe,Xt)(t)}var NSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ISt=function(t){NSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyLine",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],autoFit:!1,animate:{enter:{type:"growInX",duration:500}},padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return LSt},e}(Rt);function jSt(t){return zt(Fe,Xt)(t)}var $St=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DSt=function(t){$St(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyArea",n}return e.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return jSt},e}(Rt);function FSt(t){return zt(Fe,Xt)(t)}var RSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BSt=function(t){RSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyColumn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],autoFit:!1,padding:0,margin:0,tooltip:!1}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return FSt},e}(Rt),lS=function(){return lS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},lS.apply(this,arguments)};function zSt(t){var e=function(n){var r=n.options,i=r.percent,o=r.color,a=o===void 0?[]:o;if(!i)return n;var s={scale:{color:{range:a.length?a:[]}},data:[1,i]};return Object.assign(r,lS({},s)),n};return zt(e,Fe,Xt)(t)}var YSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),WSt=function(t){YSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyProgress",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return zSt},e}(Rt),cS=function(){return cS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},cS.apply(this,arguments)};function GSt(t){var e=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return dt(r,"options.coordinate.innerRadius",a),r},n=function(r){var i=r.options,o=i.percent,a=i.color,s=a===void 0?[]:a;if(!o)return r;var l={scale:{color:{range:s.length?s:[]}},data:[1,o]};return Object.assign(i,cS({},l)),r};return zt(e,n,Fe,Xt)(t)}var HSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),VSt=function(t){HSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="TinyRing",n}return e.getDefaultOptions=function(){return{type:"view",data:[],autoFit:!1,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(n){return n},color:function(n,r){return r}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return GSt},e}(Rt);function USt(t){return zt(Xt)(t)}var XSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qSt=function(t){XSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="rose",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return USt},e}(Rt),uS="__start__",iu="__end__",fS="__waterfall_value__",dS=function(){return dS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},dS.apply(this,arguments)},KSt=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function ZSt(t){var e=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.yField;return a.length&&(a.reduce(function(l,c,u){var f;if(u===0||c.isTotal)c[uS]=0,c[iu]=c[s],c[fS]=c[s];else{var d=(f=l[iu])!==null&&f!==void 0?f:l[s];c[uS]=d,c[iu]=d+c[s],c[fS]=l[iu]}return c},[]),Object.assign(i,{yField:[uS,iu]})),r},n=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.xField,l=i.children,c=i.linkStyle,u=KSt([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[iu]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:dS({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return zt(e,n,Fe,Xt)(t)}var QSt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),JSt=function(t){QSt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:fS,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ZSt},e}(Rt);function tEt(t){var e=function(n){var r=n.options,i=r.data,o=r.binNumber,a=r.binWidth,s=r.children,l=r.channel,c=l===void 0?"count":l,u=pe(s,"[0].transform[0]",{});return Jc(a)?($R(u,{thresholds:bxt(oOt(i.length,a)),y:c}),n):(Jc(o)&&$R(u,{thresholds:o,y:c}),n)};return zt(e,Fe,Xt)(t)}var eEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nEt=function(t){eEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Histogram",n}return e.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return tEt},e}(Rt);function rEt(t){var e=function(r){var i=r.options,o=i.tooltip,a=i.colorField,s=i.sizeField;return o&&!o.field&&(o.field=a||s),r},n=function(r){var i=r.options,o=i.mark,a=i.children;return o&&(a[0].type=o),r};return zt(e,n,Fe,Xt)(t)}var iEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),oEt=function(t){iEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="heatmap",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rEt},e}(Rt);function aEt(t){var e=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return zt(e,Fe,Xt)(t)}var sEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lEt=function(t){sEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="box",n}return e.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"}]}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return aEt},e}(Rt);function cEt(t){var e=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(Ut(i))i.length>0?dt(r,"data",{value:i,transform:o}):delete r.children;else if(pe(i,"type")==="fetch"&&pe(i,"value")){var a=pe(i,"transform");Ut(a)?dt(i,"transform",a.concat(o)):dt(i,"transform",o)}return n};return zt(e,Fe,Xt)(t)}var uEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fEt=function(t){uEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="sankey",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return cEt},e}(Rt),Oi=function(){return Oi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Oi.apply(this,arguments)},yy=["#f0efff","#5B8FF9","#3D76DD"];function hS(t,e,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=Qc(t,function(s){var l,c,u=pe(s,[e]);if(EOt(u))return[];if(S9(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[e]=f,l)}return Ut(u)?(o=!0,i=Math.max(i,u.length),Qc(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[n]=s[n],p[e]=d,p.index=h,p})):(i=Math.max(1,i),c={},c[n]=s[n],c[e]=u,c)}).flat();return o?[a.map(function(s){return Oi({index:0},s)}),i]:[a,i]}function pS(t,e){return new Array(t).fill("").map(function(n,r){return Ut(e)?e[r%e.length]:e})}function dEt(t){var e=function(i){var o=i.options,a=o.color,s=o.rangeField,l=s===void 0?"ranges":s,c=o.measureField,u=c===void 0?"measures":c,f=o.targetField,d=f===void 0?"targets":f,h=o.xField,p=h===void 0?"title":h,v=o.mapField,y=o.data,g=hS(y,l,p),m=g[0],b=g[1],x=hS(y,u,p,!1),w=x[0],O=x[1],_=hS(y,d,p,!1),S=_[0],E=_[1],M=pe(a,[l],yy[0]),P=pe(a,[u],yy[1]),C=pe(a,[d],yy[2]),A=[pS(b,M),pS(O,P),pS(E,C)].flat();return i.options.children=Qc(i.options.children,function(k,T){var N=[m,w,S][T],$=[l,u,d][T];return Oi(Oi({},k),{data:N,encode:Oi(Oi({},k.encode||{}),{x:p,y:$,color:function(L){var I=L.index,D=Jc(I)?"".concat($,"_").concat(I):$;return v?pe(v,[$,I],D):D}}),style:Oi(Oi({},k.style||{}),{zIndex:function(L){return-L[$]}}),labels:T!==0?Qc(k.labels,function(L){return Oi(Oi({},L),{text:$})}):void 0})}),i.options.scale.color.range=A,i.options.legend.color.itemMarker=function(k){return v&&wOt(v==null?void 0:v[d],k)||(k==null?void 0:k.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&dt(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var o=i.options,a=o.range,s=a===void 0?{}:a,l=o.measure,c=l===void 0?{}:l,u=o.target,f=u===void 0?{}:u,d=o.children;return i.options.children=[s,c,f].map(function(h,p){return Ra(d[p],h)}),i};return zt(e,n,r,Z_t,Xt)(t)}var hEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pEt=function(t){hEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="bullet",n}return e.getDefaultOptions=function(){return{type:"view",scale:{color:{range:yy}},legend:{color:{itemMarker:function(n){return n==="target"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return dEt},e}(Rt);function vEt(t){var e=function(n){var r=n.options.data;return n.options.data={value:r},n};return zt(e,Fe,Xt)(t)}var gEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yEt=function(t){gEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Gauge",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vEt},e}(Rt);function mEt(t){var e=function(n){var r=n.options.percent;return Jc(r)&&dt(n,"options.data",r),n};return zt(e,Fe,Xt)(t)}var bEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xEt=function(t){bEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Liquid",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mEt},e}(Rt);function wEt(t){return zt(Fe,Xt)(t)}var OEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_Et=function(t){OEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="WordCloud",n}return e.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return wEt},e}(Rt);function SEt(t){var e=function(n){var r=n.options,i=r.data;return i&&dt(r,"data",{value:i}),n};return zt(e,Fe,Xt)(t)}var EEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),MEt=function(t){EEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="treemap",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return SEt},e}(Rt),Qs=function(){return Qs=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Qs.apply(this,arguments)};function PEt(t){var e=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=Jc(a)?a/(2*Math.PI)*360:-90,u=Jc(s)?(Number(s)+c)/180*Math.PI:Math.PI;return dt(i,["options","coordinate"],Qs(Qs({},l),{endAngle:u,startAngle:a!=null?a:-Math.PI/2})),i},n=function(i){var o=i.options,a=o.tooltip,s=o.xField,l=o.yField;return a||dt(o,"tooltip",{title:!1,items:[function(c){return{name:c[s],value:c[l]}}]}),i},r=function(i){var o=i.options,a=o.markBackground,s=o.children,l=o.scale,c=o.coordinate,u=o.xField,f=pe(l,"y.domain",[]);return a&&s.unshift(Qs({type:"interval",xField:u,yField:f[f.length-1],colorField:a.color,scale:{color:{type:"identity"}},style:{fillOpacity:a.opacity,fill:a.color?void 0:"#e0e4ee"},coordinate:Qs(Qs({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return zt(e,n,r,Fe,Xt)(t)}var AEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),kEt=function(t){AEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radial",n}return e.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}}}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return PEt},e}(Rt);function CEt(t){return zt(Xt)(t)}var TEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),LEt=function(t){TEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="CirclePacking",n}return e.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return CEt},e}(Rt),my=function(){return my=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},my.apply(this,arguments)};function NEt(t){var e=function(n){var r=n.options,i=r.xField,o=r.yField,a=r.seriesField,s=r.children,l=s==null?void 0:s.map(function(c){return my(my({},c),{xField:i,yField:o,seriesField:a,colorField:a,data:c.type==="density"?{transform:[{type:"kde",field:o,groupBy:[i,a]}]}:c.data})}).filter(function(c){return r.violinType!=="density"||c.type==="density"});return dt(r,"children",l),r.violinType==="polar"&&dt(r,"coordinate",{type:"polar"}),dt(r,"violinType",void 0),n};return zt(e,Fe,Xt)(t)}var IEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jEt=function(t){IEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="violin",n}return e.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"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return NEt},e}(Rt),ah=function(){return ah=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ah.apply(this,arguments)},$Et=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};function DEt(t){var e=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){dt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(j_(c))return o;var u=Ut(pe(c,[0]))?c:[c,c];return l.forEach(function(f,d){dt(f,"data",$Et([],u[d].map(function(h){return ah({groupKey:s[d]},h)}),!0))}),o},r=function(o){var a=o.options,s=a.yField,l=s[0],c=s[1],u=a.tooltip;return u||dt(a,"tooltip",{items:[{field:l,value:l},{field:c,value:c}]}),o},i=function(o){var a=o.options,s=a.children,l=a.layout,c=a.coordinate.transform,u=a.paddingBottom,f=u===void 0?z9:u,d=a.paddingLeft,h=d===void 0?z9:d,p=a.axis;dt(a,"axisText",ah(ah({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],y=s[1];if(l==="vertical")dt(a,"direction","col"),dt(a,"paddingLeft",h),dt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),dt(v,"paddingBottom",B9),dt(y,"paddingTop",B9),dt(y,"axis",{x:{position:"top"}}),dt(y,"scale",{y:{range:[0,1]}});else{dt(a,"paddingBottom",f),dt(v,"scale",{y:{range:[0,1]}});var g=v.paddingRight,m=g===void 0?aS:g,b=y.paddingLeft,x=b===void 0?aS:b;dt(v,"paddingRight",m),dt(v,"axis",{x:{position:"right"}}),dt(y,"paddingLeft",x)}return o};return zt(e,n,r,i,Fe,Xt)(t)}var FEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),REt=function(t){FEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="BidirectionalBar",n}return e.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"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DEt},e}(Rt),Js;(function(t){t.color="key",t.d="path"})(Js||(Js={}));function BEt(t){var e=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return Ut(i)&&(dt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[Js.color,Js.d]}]}),dt(r,"colorField",o),dt(r,["children","0","encode","d"],Js.d)),dt(n,"options",U_(r,["sizeField","setsField"])),n};return zt(e,Xt)(t)}var zEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YEt=function(t){zEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="venn",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:Js.color,d:Js.d}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return BEt},e}(Rt);function WEt(t){var e=function(n){return n};return zt(e,Xt)(t)}var GEt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HEt=function(t){GEt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Sunburst",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return WEt},e}(Rt),VEt={Base:X_t,Line:pSt,Column:aSt,Pie:ySt,Area:tSt,Bar:rSt,DualAxes:G9,Funnel:fSt,Scatter:xSt,Radar:_St,Rose:qSt,Stock:TSt,TinyLine:ISt,TinyArea:DSt,TinyColumn:BSt,TinyProgress:WSt,TinyRing:VSt,Waterfall:JSt,Histogram:nEt,Heatmap:oEt,Box:lEt,Sankey:fEt,Bullet:pEt,Gauge:yEt,Liquid:xEt,WordCloud:_Et,Treemap:MEt,RadialBar:kEt,CirclePacking:LEt,Violin:jEt,BidirectionalBar:REt,Venn:YEt,Mix:G9,Sunburst:HEt},vS=function(){return vS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},vS.apply(this,arguments)},H9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},tl=K.forwardRef(function(t,e){var n=t.chartType,r=n===void 0?"Base":n,i=H9(t,["chartType"]),o=i.containerStyle,a=o===void 0?{height:"inherit"}:o,s=i.containerAttributes,l=s===void 0?{}:s,c=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=H9(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=YOt(VEt[r],h),v=p.chart,y=p.container;return K.useImperativeHandle(e,function(){return v.current}),K.createElement(rmt,{errorTemplate:d},u&&K.createElement(emt,{loadingTemplate:f}),K.createElement("div",vS({className:c,style:a,ref:y},l)))}),gS=function(){return gS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gS.apply(this,arguments)},UEt=function(t){return K.createElement(tl,gS({},t,{chartType:"Area"}))};const XEt=UEt;var yS=function(){return yS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yS.apply(this,arguments)},qEt=function(t){return K.createElement(tl,yS({},t,{chartType:"Bar"}))};const KEt=qEt;var mS=function(){return mS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},mS.apply(this,arguments)},ZEt=function(t){return K.createElement(tl,mS({},t,{chartType:"Column"}))};const QEt=ZEt;var bS=function(){return bS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},bS.apply(this,arguments)},JEt=function(t){return K.createElement(tl,bS({},t,{chartType:"DualAxes"}))};const tMt=JEt;var xS=function(){return xS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xS.apply(this,arguments)},eMt=function(t){return K.createElement(tl,xS({},t,{chartType:"Line"}))};const nMt=eMt;var wS=function(){return wS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},wS.apply(this,arguments)},rMt=function(t){return K.createElement(tl,wS({},t,{chartType:"Pie"}))};const iMt=rMt;var OS=function(){return OS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},OS.apply(this,arguments)},oMt=function(t){return K.createElement(tl,OS({},t,{chartType:"Scatter"}))};const aMt=oMt,{booleanField:by}=KS,sMt={isStack:t=>by(at({name:"isStack",title:"isStack"},t)),smooth:t=>by(at({name:"smooth",title:"smooth"},t)),isPercent:t=>by(at({name:"isPercent",title:"isPercent"},t)),isGroup:t=>by(at({name:"isGroup",title:"isGroup"},t))};class el extends Ly{constructor({name:n,title:r,component:i,config:o}){super({name:n,title:r,component:i,config:["xField","yField","seriesField",...o||[]]});ni(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a,seriesField:s}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:a==null?void 0:a.value,seriesField:s==null?void 0:s.value}}});this.addConfigs(sMt)}getProps({data:n,general:r,advanced:i,fieldProps:o}){return at(Ot(at(at({legend:{color:{itemLabelText:s=>{const l=o[r.seriesField],c=l==null?void 0:l.transformer;return c?c(s.label):s.label}}},tooltip:(s,l,c,u)=>{const f=u.y.field,d=o[f],h=(d==null?void 0:d.label)||f,p=d==null?void 0:d.transformer,v=u.y.value[l];return{name:h,value:p?p(v):v}},axis:{x:{labelFormatter:s=>{const l=o[r.xField],c=l==null?void 0:l.transformer;return c?c(s):s}},y:{labelFormatter:s=>{const l=o[r.yField],c=l==null?void 0:l.transformer;return c?c(s):s}}},data:n,theme:"classic",animate:{enter:{type:!1},update:{type:!1},exit:{type:!1}},colorField:r.seriesField,stack:r.isStack,percent:r.isPercent?!0:void 0},r.smooth?{shapeField:"smooth"}:{}),r),{seriesField:r.isGroup?r.seriesField:void 0}),i)}getReference(){return{title:this.title,link:`https://g2plot.antv.antgroup.com/api/plots/${this.name}`}}}class lMt extends el{constructor(){super({name:"pie",title:"Pie Chart",component:iMt});ni(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yField:a}=this.infer(n,{measures:r,dimensions:i});return{general:{colorField:o==null?void 0:o.value,angleField:a==null?void 0:a.value}}});this.config=[{property:"field",name:"angleField",title:"angleField",required:!0},{property:"field",name:"colorField",title:"colorField",required:!0}]}getProps({data:n,general:r,advanced:i,fieldProps:o}){const a=super.getProps({data:n,general:r,advanced:i,fieldProps:o});return Ot(at({},a),{tooltip:(s,l,c,u)=>{const f=u.y0.field,d=o[f],h=(d==null?void 0:d.label)||f,p=d==null?void 0:d.transformer,v=u.y0.value[l];return{name:h,value:p?p(v):v}}})}}class cMt extends el{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",component:tMt});ni(this,"init",(n,{measures:r,dimensions:i})=>{const{xField:o,yFields:a}=this.infer(n,{measures:r,dimensions:i});return{general:{xField:o==null?void 0:o.value,yField:(a==null?void 0:a.map(s=>s.value))||[]}}});this.config=["xField",{yField:{title:'{{t("yField")}}',type:"array","x-decorator":"FormItem","x-component":"ArrayItems",items:{type:"void","x-component":"Space",properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},input:{type:"string","x-decorator":"FormItem","x-component":"Select","x-reactions":"{{ useChartFields }}","x-component-props":{style:{minWidth:"200px"}},required:!0},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}},properties:{add:{type:"void",title:'{{t("Add")}}',"x-component":"ArrayItems.Addition"}}}}]}getProps({data:n,general:r,advanced:i,fieldProps:o}){var s;const a=super.getProps({data:n,general:r,advanced:i,fieldProps:o});return Ot(at({},Nn.omit(a,["legend","tooltip"])),{children:((s=a.yField)==null?void 0:s.map((l,c)=>{var u;return{type:"line",yField:l,colorField:()=>{const f=o[l];return(f==null?void 0:f.label)||l},axis:{y:{title:((u=o[l])==null?void 0:u.label)||l,position:c===0?"left":"right",labelFormatter:f=>{const d=o[l],h=d==null?void 0:d.transformer;return h?h(f):f}}}}}))||[]})}}const uMt=[new el({name:"line",title:"Line Chart",component:nMt,config:["smooth","isStack"]}),new el({name:"area",title:"Area Chart",component:XEt,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new el({name:"column",title:"Column Chart",component:QEt,config:["isGroup","isStack","isPercent"]}),new el({name:"bar",title:"Bar Chart",component:KEt,config:["isGroup","isStack","isPercent"]}),new lMt,new cMt,new el({name:"scatter",title:"Scatter Chart",component:aMt})];class xy extends z.Plugin{constructor(){super(...arguments);ni(this,"charts",new SB)}load(){return kr(this,null,function*(){this.charts.setGroup("Built-in",[...uMt,...z7]),this.app.addComponents({ChartV2BlockInitializer:F7,ChartV2BlockDesigner:$7,ChartV2Block:j7}),this.app.schemaInitializerManager.add(qS),this.app.schemaInitializerManager.add(D7),this.app.schemaInitializerManager.add(YS),this.app.schemaInitializerManager.add(m7),this.app.schemaInitializerManager.add(VS),this.app.schemaInitializerManager.add(S7);const n=this.app.schemaInitializerManager.get("page:addBlock");n==null||n.add("dataBlocks.chartV2",{title:Nt("Charts"),Component:"ChartV2BlockInitializer"})})}}ct.Chart=Ly,ct.ChartConfigContext=Mi,ct.default=xy,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@nocobase/client": "0.20.0-alpha.
|
|
2
|
+
"@nocobase/client": "0.20.0-alpha.14",
|
|
3
3
|
"@formily/react": "2.3.0",
|
|
4
4
|
"@formily/shared": "2.3.0",
|
|
5
5
|
"lodash": "4.17.21",
|
|
6
|
-
"@nocobase/cache": "0.20.0-alpha.
|
|
7
|
-
"@nocobase/server": "0.20.0-alpha.
|
|
6
|
+
"@nocobase/cache": "0.20.0-alpha.14",
|
|
7
|
+
"@nocobase/server": "0.20.0-alpha.14",
|
|
8
8
|
"react": "18.2.0",
|
|
9
9
|
"@ant-design/icons": "5.2.6",
|
|
10
10
|
"ahooks": "3.7.8",
|
|
@@ -13,8 +13,8 @@ module.exports = {
|
|
|
13
13
|
"antd": "5.12.8",
|
|
14
14
|
"@formily/antd-v5": "1.1.9",
|
|
15
15
|
"@formily/core": "2.3.0",
|
|
16
|
-
"@nocobase/utils": "0.20.0-alpha.
|
|
17
|
-
"@nocobase/database": "0.20.0-alpha.
|
|
16
|
+
"@nocobase/utils": "0.20.0-alpha.14",
|
|
17
|
+
"@nocobase/database": "0.20.0-alpha.14",
|
|
18
18
|
"react-i18next": "11.18.6",
|
|
19
|
-
"@nocobase/actions": "0.20.0-alpha.
|
|
19
|
+
"@nocobase/actions": "0.20.0-alpha.14"
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-03-
|
|
1
|
+
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-03-18T10:37:44.132Z"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-data-visualization",
|
|
3
|
-
"version": "0.20.0-alpha.
|
|
3
|
+
"version": "0.20.0-alpha.14",
|
|
4
4
|
"displayName": "Data visualization",
|
|
5
5
|
"displayName.zh-CN": "数据可视化",
|
|
6
6
|
"description": "Provides data visualization feature, including chart block and chart filter block, support line charts, area charts, bar charts and more than a dozen kinds of charts, you can also extend more chart types.",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@nocobase/test": "0.x",
|
|
34
34
|
"@nocobase/utils": "0.x"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "4af62dec7c2358a7596c80cdc1cf893ca8cd57e7",
|
|
37
37
|
"keywords": [
|
|
38
38
|
"Blocks"
|
|
39
39
|
]
|