@nocobase/plugin-data-visualization 1.3.0-alpha.20240724142600 → 1.3.0-alpha.20240807100243

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.
@@ -176,4 +176,4 @@ Error generating stack: `+o.message+`
176
176
  transform: translate(24px, 0);
177
177
  }
178
178
  }
179
- `,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},vmt=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&&pmt(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())},gmt=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)}}(),ymt=function(t){gmt(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),mmt=typeof global=="object"&&global&&global.Object===Object&&global;const cR=mmt;var bmt=typeof self=="object"&&self&&self.Object===Object&&self,xmt=cR||bmt||Function("return this")();const wi=xmt;var wmt=wi.Symbol;const ti=wmt;var uR=Object.prototype,Omt=uR.hasOwnProperty,_mt=uR.toString,Xd=ti?ti.toStringTag:void 0;function Smt(t){var e=Omt.call(t,Xd),n=t[Xd];try{t[Xd]=void 0;var r=!0}catch(o){}var i=_mt.call(t);return r&&(e?t[Xd]=n:delete t[Xd]),i}var Emt=Object.prototype,Mmt=Emt.toString;function Pmt(t){return Mmt.call(t)}var Amt="[object Null]",Cmt="[object Undefined]",fR=ti?ti.toStringTag:void 0;function Qi(t){return t==null?t===void 0?Cmt:Amt:fR&&fR in Object(t)?Smt(t):Pmt(t)}function lr(t){return t!=null&&typeof t=="object"}var Tmt="[object Symbol]";function qd(t){return typeof t=="symbol"||lr(t)&&Qi(t)==Tmt}var kmt=NaN;function dR(t){return typeof t=="number"?t:qd(t)?kmt:+t}function Qg(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 Lmt=Array.isArray;const Vt=Lmt;var Nmt=1/0,hR=ti?ti.prototype:void 0,pR=hR?hR.toString:void 0;function Jg(t){if(typeof t=="string")return t;if(Vt(t))return Qg(t,Jg)+"";if(qd(t))return pR?pR.call(t):"";var e=t+"";return e=="0"&&1/t==-Nmt?"-0":e}function Imt(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=Jg(n),r=Jg(r)):(n=dR(n),r=dR(r)),i=t(n,r)}return i}}var jmt=/\s/;function $mt(t){for(var e=t.length;e--&&jmt.test(t.charAt(e)););return e}var Dmt=/^\s+/;function Fmt(t){return t&&t.slice(0,$mt(t)+1).replace(Dmt,"")}function Hn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vR=NaN,Rmt=/^[-+]0x[0-9a-f]+$/i,Bmt=/^0b[01]+$/i,zmt=/^0o[0-7]+$/i,Ymt=parseInt;function gR(t){if(typeof t=="number")return t;if(qd(t))return vR;if(Hn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Hn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Fmt(t);var n=Bmt.test(t);return n||zmt.test(t)?Ymt(t.slice(2),n?2:8):Rmt.test(t)?vR:+t}var yR=1/0,Wmt=17976931348623157e292;function Gmt(t){if(!t)return t===0?t:0;if(t=gR(t),t===yR||t===-yR){var e=t<0?-1:1;return e*Wmt}return t===t?t:0}function mR(t){var e=Gmt(t),n=e%1;return e===e?n?e-n:e:0}function __(t){return t}var Hmt="[object AsyncFunction]",Umt="[object Function]",Vmt="[object GeneratorFunction]",Xmt="[object Proxy]";function Vc(t){if(!Hn(t))return!1;var e=Qi(t);return e==Umt||e==Vmt||e==Hmt||e==Xmt}var qmt=wi["__core-js_shared__"];const S_=qmt;var bR=function(){var t=/[^.]+$/.exec(S_&&S_.keys&&S_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Kmt(t){return!!bR&&bR in t}var Zmt=Function.prototype,Qmt=Zmt.toString;function Us(t){if(t!=null){try{return Qmt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Jmt=/[\\^$.*+?()[\]{}|]/g,t1t=/^\[object .+?Constructor\]$/,e1t=Function.prototype,n1t=Object.prototype,r1t=e1t.toString,i1t=n1t.hasOwnProperty,o1t=RegExp("^"+r1t.call(i1t).replace(Jmt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a1t(t){if(!Hn(t)||Kmt(t))return!1;var e=Vc(t)?o1t:t1t;return e.test(Us(t))}function s1t(t,e){return t==null?void 0:t[e]}function Vs(t,e){var n=s1t(t,e);return a1t(n)?n:void 0}var l1t=Vs(wi,"WeakMap");const Kd=l1t;var c1t=Kd&&new Kd;const xR=c1t;var wR=Object.create,u1t=function(){function t(){}return function(e){if(!Hn(e))return{};if(wR)return wR(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const E_=u1t;function f1t(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 M_(){}var d1t=4294967295;function Xc(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d1t,this.__views__=[]}Xc.prototype=E_(M_.prototype),Xc.prototype.constructor=Xc;function OR(){}var h1t=xR?function(t){return xR.get(t)}:OR;const _R=h1t;var p1t={};const SR=p1t;var v1t=Object.prototype,g1t=v1t.hasOwnProperty;function ty(t){for(var e=t.name+"",n=SR[e],r=g1t.call(SR,e)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==t)return i.name}return e}function Ba(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Ba.prototype=E_(M_.prototype),Ba.prototype.constructor=Ba;function P_(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function y1t(t){if(t instanceof Xc)return t.clone();var e=new Ba(t.__wrapped__,t.__chain__);return e.__actions__=P_(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var m1t=Object.prototype,b1t=m1t.hasOwnProperty;function ey(t){if(lr(t)&&!Vt(t)&&!(t instanceof Xc)){if(t instanceof Ba)return t;if(b1t.call(t,"__wrapped__"))return y1t(t)}return new Ba(t)}ey.prototype=M_.prototype,ey.prototype.constructor=ey;function ER(t){var e=ty(t),n=ey[e];if(typeof n!="function"||!(e in Xc.prototype))return!1;if(t===n)return!0;var r=_R(n);return!!r&&t===r[0]}var x1t=800,w1t=16,O1t=Date.now;function _1t(t){var e=0,n=0;return function(){var r=O1t(),i=w1t-(r-n);if(n=r,i>0){if(++e>=x1t)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function S1t(t){return function(){return t}}var E1t=function(){try{var t=Vs(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();const ny=E1t;var M1t=ny?function(t,e){return ny(t,"toString",{configurable:!0,enumerable:!1,value:S1t(e),writable:!0})}:__,P1t=_1t(M1t);const MR=P1t;function A1t(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function C1t(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 T1t(t){return t!==t}function k1t(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function PR(t,e,n){return e===e?k1t(t,e,n):C1t(t,T1t,n)}function L1t(t,e){var n=t==null?0:t.length;return!!n&&PR(t,e,0)>-1}var N1t=9007199254740991,I1t=/^(?:0|[1-9]\d*)$/;function ry(t,e){var n=typeof t;return e=e==null?N1t:e,!!e&&(n=="number"||n!="symbol"&&I1t.test(t))&&t>-1&&t%1==0&&t<e}function iy(t,e,n){e=="__proto__"&&ny?ny(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Zd(t,e){return t===e||t!==t&&e!==e}var j1t=Object.prototype,$1t=j1t.hasOwnProperty;function oy(t,e,n){var r=t[e];(!($1t.call(t,e)&&Zd(r,n))||n===void 0&&!(e in t))&&iy(t,e,n)}function Xs(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?iy(n,s,l):oy(n,s,l)}return n}var AR=Math.max;function CR(t,e,n){return e=AR(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=AR(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),f1t(t,this,s)}}function D1t(t,e){return MR(CR(t,e,__),t+"")}var F1t=9007199254740991;function A_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=F1t}function za(t){return t!=null&&A_(t.length)&&!Vc(t)}function R1t(t,e,n){if(!Hn(n))return!1;var r=typeof e;return(r=="number"?za(n)&&ry(e,n.length):r=="string"&&e in n)?Zd(n[e],t):!1}function TR(t){return D1t(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&&R1t(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 B1t=Object.prototype;function ay(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||B1t;return t===n}function z1t(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Y1t="[object Arguments]";function kR(t){return lr(t)&&Qi(t)==Y1t}var LR=Object.prototype,W1t=LR.hasOwnProperty,G1t=LR.propertyIsEnumerable,H1t=kR(function(){return arguments}())?kR:function(t){return lr(t)&&W1t.call(t,"callee")&&!G1t.call(t,"callee")};const Qd=H1t;function U1t(){return!1}var NR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,IR=NR&&typeof module=="object"&&module&&!module.nodeType&&module,V1t=IR&&IR.exports===NR,jR=V1t?wi.Buffer:void 0,X1t=jR?jR.isBuffer:void 0,q1t=X1t||U1t;const Jd=q1t;var K1t="[object Arguments]",Z1t="[object Array]",Q1t="[object Boolean]",J1t="[object Date]",tbt="[object Error]",ebt="[object Function]",nbt="[object Map]",rbt="[object Number]",ibt="[object Object]",obt="[object RegExp]",abt="[object Set]",sbt="[object String]",lbt="[object WeakMap]",cbt="[object ArrayBuffer]",ubt="[object DataView]",fbt="[object Float32Array]",dbt="[object Float64Array]",hbt="[object Int8Array]",pbt="[object Int16Array]",vbt="[object Int32Array]",gbt="[object Uint8Array]",ybt="[object Uint8ClampedArray]",mbt="[object Uint16Array]",bbt="[object Uint32Array]",Ee={};Ee[fbt]=Ee[dbt]=Ee[hbt]=Ee[pbt]=Ee[vbt]=Ee[gbt]=Ee[ybt]=Ee[mbt]=Ee[bbt]=!0,Ee[K1t]=Ee[Z1t]=Ee[cbt]=Ee[Q1t]=Ee[ubt]=Ee[J1t]=Ee[tbt]=Ee[ebt]=Ee[nbt]=Ee[rbt]=Ee[ibt]=Ee[obt]=Ee[abt]=Ee[sbt]=Ee[lbt]=!1;function xbt(t){return lr(t)&&A_(t.length)&&!!Ee[Qi(t)]}function C_(t){return function(e){return t(e)}}var $R=typeof ct=="object"&&ct&&!ct.nodeType&&ct,th=$R&&typeof module=="object"&&module&&!module.nodeType&&module,wbt=th&&th.exports===$R,T_=wbt&&cR.process,Obt=function(){try{var t=th&&th.require&&th.require("util").types;return t||T_&&T_.binding&&T_.binding("util")}catch(e){}}();const qc=Obt;var DR=qc&&qc.isTypedArray,_bt=DR?C_(DR):xbt;const k_=_bt;var Sbt=Object.prototype,Ebt=Sbt.hasOwnProperty;function FR(t,e){var n=Vt(t),r=!n&&Qd(t),i=!n&&!r&&Jd(t),o=!n&&!r&&!i&&k_(t),a=n||r||i||o,s=a?z1t(t.length,String):[],l=s.length;for(var c in t)(e||Ebt.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ry(c,l)))&&s.push(c);return s}function RR(t,e){return function(n){return t(e(n))}}var Mbt=RR(Object.keys,Object);const Pbt=Mbt;var Abt=Object.prototype,Cbt=Abt.hasOwnProperty;function Tbt(t){if(!ay(t))return Pbt(t);var e=[];for(var n in Object(t))Cbt.call(t,n)&&n!="constructor"&&e.push(n);return e}function qs(t){return za(t)?FR(t):Tbt(t)}var kbt=Object.prototype,Lbt=kbt.hasOwnProperty,Nbt=TR(function(t,e){if(ay(e)||za(e)){Xs(e,qs(e),t);return}for(var n in e)Lbt.call(e,n)&&oy(t,n,e[n])});const BR=Nbt;function Ibt(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var jbt=Object.prototype,$bt=jbt.hasOwnProperty;function Dbt(t){if(!Hn(t))return Ibt(t);var e=ay(t),n=[];for(var r in t)r=="constructor"&&(e||!$bt.call(t,r))||n.push(r);return n}function eh(t){return za(t)?FR(t,!0):Dbt(t)}var Fbt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rbt=/^\w*$/;function L_(t,e){if(Vt(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||qd(t)?!0:Rbt.test(t)||!Fbt.test(t)||e!=null&&t in Object(e)}var Bbt=Vs(Object,"create");const nh=Bbt;function zbt(){this.__data__=nh?nh(null):{},this.size=0}function Ybt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Wbt="__lodash_hash_undefined__",Gbt=Object.prototype,Hbt=Gbt.hasOwnProperty;function Ubt(t){var e=this.__data__;if(nh){var n=e[t];return n===Wbt?void 0:n}return Hbt.call(e,t)?e[t]:void 0}var Vbt=Object.prototype,Xbt=Vbt.hasOwnProperty;function qbt(t){var e=this.__data__;return nh?e[t]!==void 0:Xbt.call(e,t)}var Kbt="__lodash_hash_undefined__";function Zbt(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nh&&e===void 0?Kbt:e,this}function Ks(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])}}Ks.prototype.clear=zbt,Ks.prototype.delete=Ybt,Ks.prototype.get=Ubt,Ks.prototype.has=qbt,Ks.prototype.set=Zbt;function Qbt(){this.__data__=[],this.size=0}function sy(t,e){for(var n=t.length;n--;)if(Zd(t[n][0],e))return n;return-1}var Jbt=Array.prototype,txt=Jbt.splice;function ext(t){var e=this.__data__,n=sy(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():txt.call(e,n,1),--this.size,!0}function nxt(t){var e=this.__data__,n=sy(e,t);return n<0?void 0:e[n][1]}function rxt(t){return sy(this.__data__,t)>-1}function ixt(t,e){var n=this.__data__,r=sy(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=Qbt,Io.prototype.delete=ext,Io.prototype.get=nxt,Io.prototype.has=rxt,Io.prototype.set=ixt;var oxt=Vs(wi,"Map");const rh=oxt;function axt(){this.size=0,this.__data__={hash:new Ks,map:new(rh||Io),string:new Ks}}function sxt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ly(t,e){var n=t.__data__;return sxt(e)?n[typeof e=="string"?"string":"hash"]:n.map}function lxt(t){var e=ly(this,t).delete(t);return this.size-=e?1:0,e}function cxt(t){return ly(this,t).get(t)}function uxt(t){return ly(this,t).has(t)}function fxt(t,e){var n=ly(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=axt,jo.prototype.delete=lxt,jo.prototype.get=cxt,jo.prototype.has=uxt,jo.prototype.set=fxt;var dxt="Expected a function";function N_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(dxt);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(N_.Cache||jo),n}N_.Cache=jo;var hxt=500;function pxt(t){var e=N_(t,function(r){return n.size===hxt&&n.clear(),r}),n=e.cache;return e}var vxt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gxt=/\\(\\)?/g,yxt=pxt(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(vxt,function(n,r,i,o){e.push(i?o.replace(gxt,"$1"):r||n)}),e});const mxt=yxt;function I_(t){return t==null?"":Jg(t)}function Kc(t,e){return Vt(t)?t:L_(t,e)?[t]:mxt(I_(t))}var bxt=1/0;function Zc(t){if(typeof t=="string"||qd(t))return t;var e=t+"";return e=="0"&&1/t==-bxt?"-0":e}function cy(t,e){e=Kc(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Zc(e[n++])];return n&&n==r?t:void 0}function ge(t,e,n){var r=t==null?void 0:cy(t,e);return r===void 0?n:r}function j_(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var zR=ti?ti.isConcatSpreadable:void 0;function xxt(t){return Vt(t)||Qd(t)||!!(zR&&t&&t[zR])}function YR(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=xxt),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?YR(s,e-1,n,r,i):j_(i,s):r||(i[i.length]=s)}return i}function wxt(t){var e=t==null?0:t.length;return e?YR(t,1):[]}function $_(t){return MR(CR(t,void 0,wxt),t+"")}var Oxt=RR(Object.getPrototypeOf,Object);const D_=Oxt;var _xt="[object Object]",Sxt=Function.prototype,Ext=Object.prototype,WR=Sxt.toString,Mxt=Ext.hasOwnProperty,Pxt=WR.call(Object);function F_(t){if(!lr(t)||Qi(t)!=_xt)return!1;var e=D_(t);if(e===null)return!0;var n=Mxt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&WR.call(n)==Pxt}function Axt(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 Cxt=wi.isFinite,Txt=Math.min;function kxt(t){var e=Math[t];return function(n,r){if(n=gR(n),r=r==null?0:Txt(mR(r),292),r&&Cxt(n)){var i=(I_(n)+"e").split("e"),o=e(i[0]+"e"+(+i[1]+r));return i=(I_(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(n)}}var Lxt=kxt("ceil");const Nxt=Lxt;function Ixt(){this.__data__=new Io,this.size=0}function jxt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function $xt(t){return this.__data__.get(t)}function Dxt(t){return this.__data__.has(t)}var Fxt=200;function Rxt(t,e){var n=this.__data__;if(n instanceof Io){var r=n.__data__;if(!rh||r.length<Fxt-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 Oi(t){var e=this.__data__=new Io(t);this.size=e.size}Oi.prototype.clear=Ixt,Oi.prototype.delete=jxt,Oi.prototype.get=$xt,Oi.prototype.has=Dxt,Oi.prototype.set=Rxt;function Bxt(t,e){return t&&Xs(e,qs(e),t)}function zxt(t,e){return t&&Xs(e,eh(e),t)}var GR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,HR=GR&&typeof module=="object"&&module&&!module.nodeType&&module,Yxt=HR&&HR.exports===GR,UR=Yxt?wi.Buffer:void 0,VR=UR?UR.allocUnsafe:void 0;function XR(t,e){if(e)return t.slice();var n=t.length,r=VR?VR(n):new t.constructor(n);return t.copy(r),r}function Wxt(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 qR(){return[]}var Gxt=Object.prototype,Hxt=Gxt.propertyIsEnumerable,KR=Object.getOwnPropertySymbols,Uxt=KR?function(t){return t==null?[]:(t=Object(t),Wxt(KR(t),function(e){return Hxt.call(t,e)}))}:qR;const R_=Uxt;function Vxt(t,e){return Xs(t,R_(t),e)}var Xxt=Object.getOwnPropertySymbols,qxt=Xxt?function(t){for(var e=[];t;)j_(e,R_(t)),t=D_(t);return e}:qR;const ZR=qxt;function Kxt(t,e){return Xs(t,ZR(t),e)}function QR(t,e,n){var r=e(t);return Vt(t)?r:j_(r,n(t))}function B_(t){return QR(t,qs,R_)}function JR(t){return QR(t,eh,ZR)}var Zxt=Vs(wi,"DataView");const z_=Zxt;var Qxt=Vs(wi,"Promise");const Y_=Qxt;var Jxt=Vs(wi,"Set");const Qc=Jxt;var t9="[object Map]",t2t="[object Object]",e9="[object Promise]",n9="[object Set]",r9="[object WeakMap]",i9="[object DataView]",e2t=Us(z_),n2t=Us(rh),r2t=Us(Y_),i2t=Us(Qc),o2t=Us(Kd),Zs=Qi;(z_&&Zs(new z_(new ArrayBuffer(1)))!=i9||rh&&Zs(new rh)!=t9||Y_&&Zs(Y_.resolve())!=e9||Qc&&Zs(new Qc)!=n9||Kd&&Zs(new Kd)!=r9)&&(Zs=function(t){var e=Qi(t),n=e==t2t?t.constructor:void 0,r=n?Us(n):"";if(r)switch(r){case e2t:return i9;case n2t:return t9;case r2t:return e9;case i2t:return n9;case o2t:return r9}return e});const ih=Zs;var a2t=Object.prototype,s2t=a2t.hasOwnProperty;function l2t(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&s2t.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var c2t=wi.Uint8Array;const uy=c2t;function W_(t){var e=new t.constructor(t.byteLength);return new uy(e).set(new uy(t)),e}function u2t(t,e){var n=e?W_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var f2t=/\w*$/;function d2t(t){var e=new t.constructor(t.source,f2t.exec(t));return e.lastIndex=t.lastIndex,e}var o9=ti?ti.prototype:void 0,a9=o9?o9.valueOf:void 0;function h2t(t){return a9?Object(a9.call(t)):{}}function s9(t,e){var n=e?W_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var p2t="[object Boolean]",v2t="[object Date]",g2t="[object Map]",y2t="[object Number]",m2t="[object RegExp]",b2t="[object Set]",x2t="[object String]",w2t="[object Symbol]",O2t="[object ArrayBuffer]",_2t="[object DataView]",S2t="[object Float32Array]",E2t="[object Float64Array]",M2t="[object Int8Array]",P2t="[object Int16Array]",A2t="[object Int32Array]",C2t="[object Uint8Array]",T2t="[object Uint8ClampedArray]",k2t="[object Uint16Array]",L2t="[object Uint32Array]";function N2t(t,e,n){var r=t.constructor;switch(e){case O2t:return W_(t);case p2t:case v2t:return new r(+t);case _2t:return u2t(t,n);case S2t:case E2t:case M2t:case P2t:case A2t:case C2t:case T2t:case k2t:case L2t:return s9(t,n);case g2t:return new r;case y2t:case x2t:return new r(t);case m2t:return d2t(t);case b2t:return new r;case w2t:return h2t(t)}}function l9(t){return typeof t.constructor=="function"&&!ay(t)?E_(D_(t)):{}}var I2t="[object Map]";function j2t(t){return lr(t)&&ih(t)==I2t}var c9=qc&&qc.isMap,$2t=c9?C_(c9):j2t;const D2t=$2t;var F2t="[object Set]";function R2t(t){return lr(t)&&ih(t)==F2t}var u9=qc&&qc.isSet,B2t=u9?C_(u9):R2t;const z2t=B2t;var Y2t=1,W2t=2,G2t=4,f9="[object Arguments]",H2t="[object Array]",U2t="[object Boolean]",V2t="[object Date]",X2t="[object Error]",d9="[object Function]",q2t="[object GeneratorFunction]",K2t="[object Map]",Z2t="[object Number]",h9="[object Object]",Q2t="[object RegExp]",J2t="[object Set]",twt="[object String]",ewt="[object Symbol]",nwt="[object WeakMap]",rwt="[object ArrayBuffer]",iwt="[object DataView]",owt="[object Float32Array]",awt="[object Float64Array]",swt="[object Int8Array]",lwt="[object Int16Array]",cwt="[object Int32Array]",uwt="[object Uint8Array]",fwt="[object Uint8ClampedArray]",dwt="[object Uint16Array]",hwt="[object Uint32Array]",ye={};ye[f9]=ye[H2t]=ye[rwt]=ye[iwt]=ye[U2t]=ye[V2t]=ye[owt]=ye[awt]=ye[swt]=ye[lwt]=ye[cwt]=ye[K2t]=ye[Z2t]=ye[h9]=ye[Q2t]=ye[J2t]=ye[twt]=ye[ewt]=ye[uwt]=ye[fwt]=ye[dwt]=ye[hwt]=!0,ye[X2t]=ye[d9]=ye[nwt]=!1;function oh(t,e,n,r,i,o){var a,s=e&Y2t,l=e&W2t,c=e&G2t;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Hn(t))return t;var u=Vt(t);if(u){if(a=l2t(t),!s)return P_(t,a)}else{var f=ih(t),d=f==d9||f==q2t;if(Jd(t))return XR(t,s);if(f==h9||f==f9||d&&!i){if(a=l||d?{}:l9(t),!s)return l?Kxt(t,zxt(a,t)):Vxt(t,Bxt(a,t))}else{if(!ye[f])return i?t:{};a=N2t(t,f,s)}}o||(o=new Oi);var h=o.get(t);if(h)return h;o.set(t,a),z2t(t)?t.forEach(function(g){a.add(oh(g,e,n,g,t,o))}):D2t(t)&&t.forEach(function(g,y){a.set(y,oh(g,e,n,y,t,o))});var p=c?l?JR:B_:l?eh:qs,v=u?void 0:p(t);return A1t(v||t,function(g,y){v&&(y=g,g=t[y]),oy(a,y,oh(g,e,n,y,t,o))}),a}var pwt=1,vwt=4;function p9(t){return oh(t,pwt|vwt)}var gwt="__lodash_hash_undefined__";function ywt(t){return this.__data__.set(t,gwt),this}function mwt(t){return this.__data__.has(t)}function ah(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new jo;++e<n;)this.add(t[e])}ah.prototype.add=ah.prototype.push=ywt,ah.prototype.has=mwt;function bwt(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 v9(t,e){return t.has(e)}var xwt=1,wwt=2;function g9(t,e,n,r,i,o){var a=n&xwt,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&wwt?new ah:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!bwt(e,function(y,m){if(!v9(h,m)&&(p===y||i(p,y,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 Owt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function G_(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var _wt=1,Swt=2,Ewt="[object Boolean]",Mwt="[object Date]",Pwt="[object Error]",Awt="[object Map]",Cwt="[object Number]",Twt="[object RegExp]",kwt="[object Set]",Lwt="[object String]",Nwt="[object Symbol]",Iwt="[object ArrayBuffer]",jwt="[object DataView]",y9=ti?ti.prototype:void 0,H_=y9?y9.valueOf:void 0;function $wt(t,e,n,r,i,o,a){switch(n){case jwt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Iwt:return!(t.byteLength!=e.byteLength||!o(new uy(t),new uy(e)));case Ewt:case Mwt:case Cwt:return Zd(+t,+e);case Pwt:return t.name==e.name&&t.message==e.message;case Twt:case Lwt:return t==e+"";case Awt:var s=Owt;case kwt:var l=r&_wt;if(s||(s=G_),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=Swt,a.set(t,e);var u=g9(s(t),s(e),r,i,o,a);return a.delete(t),u;case Nwt:if(H_)return H_.call(t)==H_.call(e)}return!1}var Dwt=1,Fwt=Object.prototype,Rwt=Fwt.hasOwnProperty;function Bwt(t,e,n,r,i,o){var a=n&Dwt,s=B_(t),l=s.length,c=B_(e),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:Rwt.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 g=a;++f<l;){d=s[f];var y=t[d],m=e[d];if(r)var b=a?r(m,y,d,e,t,o):r(y,m,d,t,e,o);if(!(b===void 0?y===m||i(y,m,n,r,o):b)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){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 zwt=1,m9="[object Arguments]",b9="[object Array]",fy="[object Object]",Ywt=Object.prototype,x9=Ywt.hasOwnProperty;function Wwt(t,e,n,r,i,o){var a=Vt(t),s=Vt(e),l=a?b9:ih(t),c=s?b9:ih(e);l=l==m9?fy:l,c=c==m9?fy:c;var u=l==fy,f=c==fy,d=l==c;if(d&&Jd(t)){if(!Jd(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Oi),a||k_(t)?g9(t,e,n,r,i,o):$wt(t,e,l,n,r,i,o);if(!(n&zwt)){var h=u&&x9.call(t,"__wrapped__"),p=f&&x9.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,g=p?e.value():e;return o||(o=new Oi),i(v,g,n,r,o)}}return d?(o||(o=new Oi),Bwt(t,e,n,r,i,o)):!1}function dy(t,e,n,r,i){return t===e?!0:t==null||e==null||!lr(t)&&!lr(e)?t!==t&&e!==e:Wwt(t,e,n,r,dy,i)}var Gwt=1,Hwt=2;function Uwt(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 Oi;if(r)var d=r(c,u,l,t,e,f);if(!(d===void 0?dy(u,c,Gwt|Hwt,r,f):d))return!1}}return!0}function w9(t){return t===t&&!Hn(t)}function Vwt(t){for(var e=qs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,w9(i)]}return e}function O9(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function Xwt(t){var e=Vwt(t);return e.length==1&&e[0][2]?O9(e[0][0],e[0][1]):function(n){return n===t||Uwt(n,t,e)}}function qwt(t,e){return t!=null&&e in Object(t)}function Kwt(t,e,n){e=Kc(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Zc(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&&A_(i)&&ry(a,i)&&(Vt(t)||Qd(t)))}function _9(t,e){return t!=null&&Kwt(t,e,qwt)}var Zwt=1,Qwt=2;function Jwt(t,e){return L_(t)&&w9(e)?O9(Zc(t),e):function(n){var r=ge(n,t);return r===void 0&&r===e?_9(n,t):dy(e,r,Zwt|Qwt)}}function tOt(t){return function(e){return e==null?void 0:e[t]}}function eOt(t){return function(e){return cy(e,t)}}function nOt(t){return L_(t)?tOt(Zc(t)):eOt(t)}function U_(t){return typeof t=="function"?t:t==null?__:typeof t=="object"?Vt(t)?Jwt(t[0],t[1]):Xwt(t):nOt(t)}function rOt(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 iOt(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 oOt=iOt();const S9=oOt;function aOt(t,e){return t&&S9(t,e,qs)}function sOt(t,e){return function(n,r){if(n==null)return n;if(!za(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 lOt=sOt(aOt);const E9=lOt;function cOt(t,e,n,r){return E9(t,function(i,o,a){e(r,i,n(i),a)}),r}function uOt(t,e){return function(n,r){var i=Vt(n)?rOt:cOt,o=e?e():{};return i(n,t,U_(r),o)}}function V_(t,e,n){(n!==void 0&&!Zd(t[e],n)||n===void 0&&!(e in t))&&iy(t,e,n)}function fOt(t){return lr(t)&&za(t)}function X_(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function dOt(t){return Xs(t,eh(t))}function hOt(t,e,n,r,i,o,a){var s=X_(t,n),l=X_(e,n),c=a.get(l);if(c){V_(t,n,c);return}var u=o?o(s,l,n+"",t,e,a):void 0,f=u===void 0;if(f){var d=Vt(l),h=!d&&Jd(l),p=!d&&!h&&k_(l);u=l,d||h||p?Vt(s)?u=s:fOt(s)?u=P_(s):h?(f=!1,u=XR(l,!0)):p?(f=!1,u=s9(l,!0)):u=[]:F_(l)||Qd(l)?(u=s,Qd(s)?u=dOt(s):(!Hn(s)||Vc(s))&&(u=l9(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),V_(t,n,u)}function M9(t,e,n,r,i){t!==e&&S9(e,function(o,a){if(i||(i=new Oi),Hn(o))hOt(t,e,a,n,M9,r,i);else{var s=r?r(X_(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),V_(t,a,s)}},eh)}var pOt=TR(function(t,e,n,r){M9(t,e,n,r)});const vOt=pOt;function gOt(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 yOt(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var mOt=Imt(function(t,e){return t/e},1);const bOt=mOt;function xOt(t,e){var n=-1,r=za(t)?Array(t.length):[];return E9(t,function(i,o,a){r[++n]=e(i,o,a)}),r}function Jc(t,e){var n=Vt(t)?Qg:xOt;return n(t,U_(e))}var wOt="Expected a function",OOt=8,_Ot=32,SOt=128,EOt=256;function MOt(t){return $_(function(e){var n=e.length,r=n,i=Ba.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new TypeError(wOt);if(i&&!a&&ty(o)=="wrapper")var a=new Ba([],!0)}for(r=a?r:n;++r<n;){o=e[r];var s=ty(o),l=s=="wrapper"?_R(o):void 0;l&&ER(l[0])&&l[1]==(SOt|OOt|_Ot|EOt)&&!l[4].length&&l[9]==1?a=a[ty(l[0])].apply(a,l[3]):a=o.length==1&&ER(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&Vt(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 POt=MOt();const zt=POt;var AOt=Object.prototype,COt=AOt.hasOwnProperty,TOt=uOt(function(t,e,n){COt.call(t,n)?t[n].push(e):iy(t,n,[e])});const P9=TOt;var kOt="[object String]";function A9(t){return typeof t=="string"||!Vt(t)&&lr(t)&&Qi(t)==kOt}function LOt(t,e){return Qg(e,function(n){return t[n]})}function NOt(t){return t==null?[]:LOt(t,qs(t))}var IOt=Math.max;function jOt(t,e,n,r){t=za(t)?t:NOt(t),n=n&&!r?mR(n):0;var i=t.length;return n<0&&(n=IOt(i+n,0)),A9(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&PR(t,e,n)>-1}function $Ot(t,e){return e.length<2?t:cy(t,Axt(e,0,-1))}var DOt="[object Boolean]";function q_(t){return t===!0||t===!1||lr(t)&&Qi(t)==DOt}function C9(t,e){return dy(t,e)}var FOt="[object Number]";function tu(t){return typeof t=="number"||lr(t)&&Qi(t)==FOt}function ROt(t){return t==null}function BOt(t){return t===void 0}function zOt(t,e){return e=Kc(e,t),t=$Ot(t,e),t==null||delete t[Zc(yOt(e))]}function YOt(t){return F_(t)?void 0:t}var WOt=1,GOt=2,HOt=4,UOt=$_(function(t,e){var n={};if(t==null)return n;var r=!1;e=Qg(e,function(o){return o=Kc(o,t),r||(r=o.length>1),o}),Xs(t,JR(t),n),r&&(n=oh(n,WOt|GOt|HOt,YOt));for(var i=e.length;i--;)zOt(n,e[i]);return n});const K_=UOt;function T9(t,e,n,r){if(!Hn(t))return t;e=Kc(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=Zc(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=Hn(u)?u:ry(e[i+1])?[]:{})}oy(s,l,c),s=s[l]}return t}function VOt(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=cy(t,a);n(s,a)&&T9(o,Kc(a,t),s)}return o}function XOt(t,e){return VOt(t,e,function(n,r){return _9(t,r)})}var qOt=$_(function(t,e){return t==null?{}:XOt(t,e)});const k9=qOt;function pt(t,e,n){return t==null?t:T9(t,e,n)}var KOt=1/0,ZOt=Qc&&1/G_(new Qc([,-0]))[1]==KOt?function(t){return new Qc(t)}:OR;const QOt=ZOt;var JOt=200;function t_t(t,e,n){var r=-1,i=L1t,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=gOt;else if(o>=JOt){var c=e?null:QOt(t);if(c)return G_(c);a=!1,i=v9,l=new ah}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 Z_(t,e){return t&&t.length?t_t(t,U_(e)):[]}var e_t=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)},L9=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 n_t(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)&&e_t("".concat(v))?u[p]=function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];return hmt(v.apply(void 0,g),h)}:Vt(v)?v.forEach(function(g){c(g,h)}):Hn(v)?c(v,h):h=f})};return K.useEffect(function(){if(n.current&&!C9(r.current,e)){var u=!1;if(r.current){var f=r.current;f.data;var d=L9(f,["data"]);e.data;var h=L9(e,["data"]);u=C9(d,h)}r.current=p9(e),u?n.current.changeData(ge(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=p9(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 r_t=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const N9=r_t;var i_t=function(t,e){if(!N9(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 o_t=i_t,a_t=function(t){return typeof t=="function"};var s_t=function(t){return t==null};const l_t=s_t;var c_t={}.toString,u_t=function(t,e){return c_t.call(t)==="[object "+e+"]"};const J_=u_t,eu=function(t){return Array.isArray?Array.isArray(t):J_(t,"Array")},f_t=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function tS(t,e){if(t){var n;if(eu(t))for(var r=0,i=t.length;r<i&&(n=e(t[r],r),n!==!1);r++);else if(f_t(t)){for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),n===!1))break}}}var d_t=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return tS(t,function(n,r){a_t(t)&&r==="prototype"||e.push(r)}),e};const h_t=d_t;var p_t=function(t){return typeof t=="object"&&t!==null};const v_t=p_t;var g_t=function(t){if(!v_t(t)||!J_(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 hy=g_t;var y_t=function(t,e,n){if(!eu(t)&&!hy(t))return t;var r=n;return tS(t,function(i,o){r=e(r,i,o)}),r};const m_t=y_t,eS=function(t){return J_(t,"String")};function nS(t,e){for(var n in e)e.hasOwnProperty(n)&&n!=="constructor"&&e[n]!==void 0&&(t[n]=e[n])}function b_t(t,e,n,r){return e&&nS(t,e),n&&nS(t,n),r&&nS(t,r),t}var x_t=5;function w_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 I9(t,e,n,r){n=n||0,r=r||x_t;for(var i in e)if(w_t(e,i)){var o=e[i];o!==null&&hy(o)?(hy(t[i])||(t[i]={}),n<r?I9(t[i],o,n+1,r):t[i]=e[i]):eu(o)?(t[i]=[],t[i]=t[i].concat(o)):o!==void 0&&(t[i]=o)}}var O_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)I9(t,e[r]);return t};const py=O_t,Ji=function(t,e,n){for(var r=0,i=eS(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return t===void 0||r<i.length?n:t};var __t=Object.prototype.hasOwnProperty;const j9=function(t,e){if(t===null||!hy(t))return{};var n={};return tS(e,function(r){__t.call(t,r)&&(n[r]=t[r])}),n};function S_t(t){return l_t(t)?0:N9(t)?t.length:Object.keys(t).length}const E_t={field:"value",size:[1,1],round:!1,padding:0,sort:(t,e)=>e.value-t.value,as:["x","y"],ignoreParentValue:!0},M_t="nodeIndex",sh="childNodeCount",P_t="nodeAncestor",rS="Invalid field: it must be a string!";function A_t(t,e){const{field:n,fields:r}=t;if(eS(n))return n;if(eu(n))return console.warn(rS),n[0];if(console.warn(`${rS} will try to get fields instead.`),eS(r))return r;if(eu(r)&&r.length)return r[0];if(e)return e;throw new TypeError(rS)}function C_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=o_t((((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[P_t]=s,i[sh]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[M_t]=r,e.push(i)})}else t&&t.eachNode&&t.eachNode(n=>{e.push(n)});return e}function T_t(t,e){e=b_t({},E_t,e);const n=e.as;if(!eu(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=A_t(e)}catch(l){console.warn(l)}const o=(l=>prt().size(e.size).round(e.round).padding(e.padding)(Wl(l).sum(c=>S_t(c.children)?e.ignoreParentValue?0:c[r]-m_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]})}),C_t(o)}var 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};const nu="sunburst",iS="markType",$9="path",vy="ancestor-node";function L_t(t){const{data:e,encode:n}=t,{color:r,value:i}=n,a=T_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 g=Object.assign(Object.assign(Object.assign({},j9(l.data,[i])),{[$9]:h,[vy]:v.data.name}),l);r&&r!==vy&&(g[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(g)}),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 D9={id:nu,encode:{x:"x",y:"y",key:$9,color:vy,value:"value"},axis:{x:!1,y:!1},style:{[iS]:nu,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[sh]:sh,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},F9=t=>{const{encode:e,data:n=[],legend:r}=t,i=k_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({},D9.encode),e),{value:s}=a,l=L_t({encode:a,data:n});return[py({},D9,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};F9.props={};var N_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 I_t=t=>t.querySelectorAll(".element").filter(e=>Ji(e,["style",iS])===nu);function j_t(t){return gt(t).select(`.${If}`).node()}const $_t={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function D_t(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=py({},$_t,e);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=j_t(s),f=c.marks.find(({id:m})=>m===nu),{state:d}=f,h=new sn;u.appendChild(h);const p=(m,b)=>N_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,T)=>{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 C=new jr({name:w.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:P,x:S,depth:T+1},r.style),{y:_})});return h.appendChild(C),S+=C.getBBox().width,S>E&&(_=h.getBBox().height,S=0,A.attr({x:S,y:_}),S+=A.getBBox().width,C.attr({x:S,y:_}),S+=C.getBBox().width),C});[x,...M].forEach((P,T)=>{if(T===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!==nu&&_.type!=="rect")return _;const{data:S}=_,E=Object.fromEntries(["color"].map(P=>[P,{domain:l.scale[P].getOptions().domain}])),M=S.filter(P=>{const T=P.path;return n&&(P[vy]=T.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(T):!0});return py({},_,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",iS])!==nu||Ji(b,["markType"])!=="rect"||!Ji(b,["style",sh]))return;const x=Ji(b,["__data__","key"]),w=Ji(b,["style","depth"]);b.style.cursor="pointer",p(x,w)};u.addEventListener("click",v);const g=h_t(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{I_t(u).forEach(b=>{const x=Ji(b,["style",sh]);if(Ji(b,["style","cursor"])!=="pointer"&&x){b.style.cursor="pointer";const O=j9(b.attributes,g);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(py(O,d.inactive))})}})};return u.addEventListener("mousemove",y),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",y)}}}U.enableCSSParsing=!1;function F_t(){return{"interaction.drillDown":D_t,"mark.sunburst":F9}}var 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)},R_t=Avt(ngt,gy(gy({},zD()),F_t())),Xt=function(t){var e=z_t(t),n=e.children,r=n===void 0?[]:n,i=K_(e,[].concat(z9,yy.map(function(c){return c.key}))),o=function(c){var u;return(u=U_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]=Ya({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){var f=yy.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Ya({},k9(c,h),{type:d},c[u]))):Vt(c[u])&&c[u].forEach(function(p){r.push(l(p))})}})},l=function(c){return s(c),Object.keys(aS).forEach(function(u){var f=aS[u];if(!BOt(c[u]))if(Hn(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else pt(c,f,c[u])}),c};return r.forEach(function(c){var u=Ya({},i,c);l(Ya(c,u))}),s(e),B_t(e),t},R9=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))},B_t=function(t){var e=t.children,n=e===void 0?[]:e,r=Object.keys(aS).concat(yy.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){R9(R9([],z9,!0),lS.map(function(o){return o.key}),!0).includes(i)||delete t[i]}),t},z_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){Vt(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[oS]}))})}),e},B9=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))},Y_t=function(t,e){if(Vt(e))return e},Ya=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return vOt.apply(void 0,B9(B9([],t,!1),[Y_t],!1))},lh=function(){return lh=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},lh.apply(this,arguments)},W_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},G_t=["renderer"],z9=["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"],oS="__transform__",H_t="__skipDelCustomKeys__",Qs=function(t,e){return q_(e)?{type:t,available:e}:lh({type:t},e)},aS={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 Qs("stackY",t)}},normalize:{target:"transform",value:function(t){return Qs("normalizeY",t)}},percent:{target:"transform",value:function(t){return Qs("normalizeY",t)}},group:{target:"transform",value:function(t){return Qs("dodgeX",t)}},sort:{target:"transform",value:function(t){return Qs("sortX",t)}},symmetry:{target:"transform",value:function(t){return Qs("symmetryY",t)}},diff:{target:"transform",value:function(t){return Qs("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 q_(t)?{connect:t}:t}}},sS=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],yy=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:sS},{key:"point",type:"point",extend_keys:sS},{key:"area",type:"area",extend_keys:sS}],U_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=W_t(n,["available"]);o?t[e].push(lh((r={},r[oS]=!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||Vt(n)){t[e]=n||[];return}n.text||(n.text=t.yField),t[e]=t[e]||[],t[e].push(lh((r={},r[oS]=!0,r),n))}}],lS=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],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)}}(),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)},X_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},Y9=function(t){V_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=X_t(n,["style"]);return t.call(this,my({style:my({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return e}(jr),q_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)}}(),by=function(){return by=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},by.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},Z_t=function(t){q_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=K_t(n,["style"]);return t.call(this,by({style:by({fill:"#eee"},r)},i))||this}return e}(af),Q_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)}}(),W9=function(t){Q_t(e,t);function e(n,r,i){var o=t.call(this,{style:Ya(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(Ya({},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}(Op),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)}}(),xy=function(){return xy=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},xy.apply(this,arguments)},tSt=function(t){J_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=ge(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,g=v===void 0?40:v,y=p.arrowSize,m=y===void 0?20:y,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,T=w.key,A=ge(P,u),C=g/2;if(n){var k=_+M/2,N=S;h.push({points:[[k+C,N-d+x],[k+C,N-m-x],[k,N-x],[k-C,N-m-x],[k-C,N-d+x]],center:[k,N-d/2-x],width:d,value:[f,A],key:T})}else{var k=_,N=S+E/2;h.push({points:[[_-d+x,N-C],[_-m-x,N-C],[k-x,N],[_-m-x,N+C],[_-d+x,N+C]],center:[k-d/2-x,N],width:d,value:[f,A],key:T})}f=A}}),h},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=ge(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],g=f[0],y=f[1],m=new Z_t({style:xy({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),b=new Y9({style:xy({x:g,y,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}(W9),cS=32,G9=16,H9=48,eSt=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)}}(),ch=function(){return ch=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},ch.apply(this,arguments)},nSt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},rSt=function(t){eSt(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?Z_(i,"x"):Z_(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=ge(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,g=d.width,y=d.data,m=d.key,b=ge(y,a);r?s.push({x:h+g/2,y:f,text:b,key:m}):s.push({x:u,y:p+v/2,text:b,key:m})}),Z_(s,"text").length!==s.length&&(s=Object.values(P9(s,"text")).map(function(d){var h,p=d.reduce(function(v,g){return v+(r?g.x:g.y)},0);return ch(ch({},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=nSt(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new Y9({style:ch({x:c,y:u,text:Vc(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?cS*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}(W9),iSt={ConversionTag:tSt,BidirectionalBarAxisText:rSt},oSt=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;lS.forEach(function(n){var r,i=n.key,o=n.shape,a=e.config[i];if(a){var s=new iSt[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&&lS.forEach(function(n){var r=n.key,i=e.container.get(r);i==null||i.update()})},t}(),aSt=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)}}(),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)},U9="data-chart-source-type",Rt=function(t){aSt(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 ru(ru({},k9(this.options,G_t)),{container:this.container})},e.prototype.getSpecOptions=function(){return this.type==="base"||this[H_t]?ru(ru({},this.options),this.getChartOptions()):this.options},e.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new R_t(this.getChartOptions()),this.container.setAttribute(U9,"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 oSt(n.chart,n.options)}),this.bindSizeSensor()},e.prototype.update=function(n){this.options=this.mergeOption(n)},e.prototype.mergeOption=function(n){return Ya({},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(U9)},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(Ut.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},e}(Ax),sSt=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)}}(),lSt=function(t){sSt(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),uS=function(){return uS=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},uS.apply(this,arguments)};function cSt(t){var e=t.options,n=e.stack,r=e.tooltip,i=e.xField;if(!n)return t;var o=yy.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){e[s]&&(a=!0,pt(e,[s,"stack"],uS({y1:"y"},typeof n=="object"?n:{})))}),a&&!q_(r)&&!r&&pt(e,"tooltip",{title:i,items:[{channel:"y"}]}),t}function Fe(t){return zt(cSt)(t)}function uSt(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 fSt(t){uSt(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 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="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 dSt},e}(Rt),iu=function(){return iu=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},iu.apply(this,arguments)};function V9(t){var e=function(n){var r=n.options;ge(r,"children.length")>1&&pt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=ge(i,"y.domain",[]);if(o&&c.length&&Vt(a)){var u="domainMax",f=a.map(function(d){var h;return iu(iu({originData:iu({},d)},K_(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(iu({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return zt(e,Fe,Xt)(t)}var vSt=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],g=r[3],y=(p[1]-h[1])/2,m=n.document,b=m.createElement("g",{}),x=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],[v[0]-d,h[1]+y],g],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=m.createElement("polygon",{style:{points:[[h[0]-d,h[1]+y],p,v,[v[0]-d,h[1]+y]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),O=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],p,[h[0]+d,h[1]+y]],fill:o,fillOpacity:l-.2}});return b.appendChild(x),b.appendChild(w),b.appendChild(O),b}};WD("shape.interval.bar25D",t)},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)}}();vSt();var ySt=function(t){gSt(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 V9},e}(Rt),mSt=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,g=v.createElement("g",{}),y=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 g.appendChild(m),g.appendChild(y),g.appendChild(b),g}};WD("shape.interval.column25D",t)},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)}}();mSt();var xSt=function(t){bSt(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 V9},e}(Rt);function wSt(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(!ge(l,"colorField")){var c=ge(l,"yField");pt(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 ge(c,"y.key")||l.forEach(function(f,d){if(!ge(f,"scale.y.key")){var h="child".concat(d,"Scale");pt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(pt(f,"scale.y.independent",!1),v.forEach(function(g){pt(g,"scale.y.key",h)})),!u&&a.length>0&&ge(f,"scale.y.independent")===void 0&&(u=!0,pt(f,"scale.y.independent",!1),a.forEach(function(g){pt(g,"scale.y.key",h)}))}}),r};return zt(e,n,Fe,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)}}(),X9=function(t){OSt(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 wSt},e}(Rt);function _St(t){var e=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||pt(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?pt(a,"transform",[]):pt(a,"transform",[{type:"symmetryY"}])),!f&&u&&pt(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(P9(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&&(pt(a,"type","spaceFlex"),pt(a,"ratio",[1,1]),pt(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||pt(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 SSt=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=function(t){SSt(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 _St},e}(Rt);function MSt(t){return zt(Fe,Xt)(t)}var PSt=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)}}(),ASt=function(t){PSt(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 MSt},e}(Rt),Wa=function(){return Wa=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},Wa.apply(this,arguments)};function CSt(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(Vt(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 Wa(Wa({},f),(d={},d[i]=1,d))});pt(r,"data",u),a&&pt(r,"label",Wa(Wa({},a),{formatter:function(){return 0}})),s!==!1&&pt(r,"tooltip",Wa(Wa({},s),{items:[function(f){return{name:f[l],value:0}}]}))}}return n};return zt(e,Xt)(t)}var TSt=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)}}(),kSt=function(t){TSt(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 CSt},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="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 LSt},e}(Rt);function jSt(t){var e=function(n){return pt(n,"options.coordinate",{type:ge(n,"options.coordinateType","polar")}),n};return zt(e,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="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 jSt},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)},FSt="__stock-range__",RSt="trend",BSt="up",zSt="down";function YSt(t){var e=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=Jc(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[RSt]=l[c]<=l[u]?BSt:zSt,l[FSt]=[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=Jc(r.options.children,function(h,p){var v=p===0;return $o($o({},h),{tooltip:{title:function(g){return g[o]instanceof Date?g[o].toLocaleString():g[o]},items:[{field:f},{field:d},{field:c},{field:u}]},encode:$o($o({},h.encode||{}),{y:v?[f,d]:[c,u],color:function(g){return Math.sign(g[u]-g[c])}}),style:$o($o({},h.style||{}),{lineWidth:v?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&pt(r,"options.scale.color.range[0]",s),l&&pt(r,"options.scale.color.range[2]",l),r};return zt(e,n,Xt)(t)}var WSt=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)}}(),GSt=["#26a69a","#999999","#ef5350"],HSt=function(t){WSt(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:GSt},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 YSt},e}(Rt);function USt(t){return zt(Fe,Xt)(t)}var VSt=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){VSt(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 USt},e}(Rt);function qSt(t){return zt(Fe,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)}}(),ZSt=function(t){KSt(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 qSt},e}(Rt);function QSt(t){return zt(Fe,Xt)(t)}var JSt=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)}}(),tEt=function(t){JSt(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 QSt},e}(Rt),fS=function(){return fS=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},fS.apply(this,arguments)};function eEt(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,fS({},s)),n};return zt(e,Fe,Xt)(t)}var nEt=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){nEt(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 eEt},e}(Rt),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)};function iEt(t){var e=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return pt(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,dS({},l)),r};return zt(e,n,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)}}(),aEt=function(t){oEt(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 iEt},e}(Rt);function sEt(t){return zt(Xt)(t)}var lEt=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)}}(),cEt=function(t){lEt(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 sEt},e}(Rt),hS="__start__",ou="__end__",pS="__waterfall_value__",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)},uEt=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 fEt(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[hS]=0,c[ou]=c[s],c[pS]=c[s];else{var d=(f=l[ou])!==null&&f!==void 0?f:l[s];c[hS]=d,c[ou]=d+c[s],c[pS]=l[ou]}return c},[]),Object.assign(i,{yField:[hS,ou]})),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=uEt([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[ou]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:vS({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return zt(e,n,Fe,Xt)(t)}var dEt=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){dEt(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:pS,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 fEt},e}(Rt);function pEt(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=ge(s,"[0].transform[0]",{});return tu(a)?(BR(u,{thresholds:Nxt(bOt(i.length,a)),y:c}),n):(tu(o)&&BR(u,{thresholds:o,y:c}),n)};return zt(e,Fe,Xt)(t)}var vEt=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)}}(),gEt=function(t){vEt(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 pEt},e}(Rt);function yEt(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 mEt=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)}}(),bEt=function(t){mEt(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 yEt},e}(Rt);function xEt(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 wEt=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){wEt(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 xEt},e}(Rt);function _Et(t){var e=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(Vt(i))i.length>0?pt(r,"data",{value:i,transform:o}):delete r.children;else if(ge(i,"type")==="fetch"&&ge(i,"value")){var a=ge(i,"transform");Vt(a)?pt(i,"transform",a.concat(o)):pt(i,"transform",o)}return 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)}}(),EEt=function(t){SEt(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 _Et},e}(Rt),_i=function(){return _i=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},_i.apply(this,arguments)},wy=["#f0efff","#5B8FF9","#3D76DD"];function gS(t,e,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=Jc(t,function(s){var l,c,u=ge(s,[e]);if(ROt(u))return[];if(A9(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[e]=f,l)}return Vt(u)?(o=!0,i=Math.max(i,u.length),Jc(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 _i({index:0},s)}),i]:[a,i]}function yS(t,e){return new Array(t).fill("").map(function(n,r){return Vt(e)?e[r%e.length]:e})}function MEt(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,g=o.data,y=gS(g,l,p),m=y[0],b=y[1],x=gS(g,u,p,!1),w=x[0],O=x[1],_=gS(g,d,p,!1),S=_[0],E=_[1],M=ge(a,[l],wy[0]),P=ge(a,[u],wy[1]),T=ge(a,[d],wy[2]),A=[yS(b,M),yS(O,P),yS(E,T)].flat();return i.options.children=Jc(i.options.children,function(C,k){var N=[m,w,S][k],j=[l,u,d][k];return _i(_i({},C),{data:N,encode:_i(_i({},C.encode||{}),{x:p,y:j,color:function(L){var I=L.index,D=tu(I)?"".concat(j,"_").concat(I):j;return v?ge(v,[j,I],D):D}}),style:_i(_i({},C.style||{}),{zIndex:function(L){return-L[j]}}),labels:k!==0?Jc(C.labels,function(L){return _i(_i({},L),{text:j})}):void 0})}),i.options.scale.color.range=A,i.options.legend.color.itemMarker=function(C){return v&&jOt(v==null?void 0:v[d],C)||(C==null?void 0:C.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&pt(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 Ya(d[p],h)}),i};return zt(e,n,r,fSt,Xt)(t)}var PEt=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)}}(),AEt=function(t){PEt(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:wy}},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 MEt},e}(Rt);function CEt(t){var e=function(n){var r=n.options.data;return n.options.data={value:r},n};return zt(e,Fe,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)}}(),kEt=function(t){TEt(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 CEt},e}(Rt);function LEt(t){var e=function(n){var r=n.options.percent;return tu(r)&&pt(n,"options.data",r),n};return zt(e,Fe,Xt)(t)}var NEt=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)}}(),IEt=function(t){NEt(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 LEt},e}(Rt);function jEt(t){return zt(Fe,Xt)(t)}var $Et=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)}}(),DEt=function(t){$Et(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 jEt},e}(Rt);function FEt(t){var e=function(n){var r=n.options,i=r.data;return i&&pt(r,"data",{value:i}),n};return zt(e,Fe,Xt)(t)}var REt=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)}}(),BEt=function(t){REt(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 FEt},e}(Rt),Js=function(){return Js=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},Js.apply(this,arguments)};function zEt(t){var e=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=tu(a)?a/(2*Math.PI)*360:-90,u=tu(s)?(Number(s)+c)/180*Math.PI:Math.PI;return pt(i,["options","coordinate"],Js(Js({},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||pt(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=ge(l,"y.domain",[]);return a&&s.unshift(Js({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:Js(Js({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return zt(e,n,r,Fe,Xt)(t)}var YEt=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)}}(),WEt=function(t){YEt(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 zEt},e}(Rt);function GEt(t){return zt(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)}}(),UEt=function(t){HEt(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 GEt},e}(Rt),Oy=function(){return Oy=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},Oy.apply(this,arguments)};function VEt(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 Oy(Oy({},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 pt(r,"children",l),r.violinType==="polar"&&pt(r,"coordinate",{type:"polar"}),pt(r,"violinType",void 0),n};return zt(e,Fe,Xt)(t)}var XEt=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)}}(),qEt=function(t){XEt(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 VEt},e}(Rt),uh=function(){return uh=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},uh.apply(this,arguments)},KEt=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 ZEt(t){var e=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){pt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(F_(c))return o;var u=Vt(ge(c,[0]))?c:[c,c];return l.forEach(function(f,d){pt(f,"data",KEt([],u[d].map(function(h){return uh({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||pt(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?H9:u,d=a.paddingLeft,h=d===void 0?H9:d,p=a.axis;pt(a,"axisText",uh(uh({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],g=s[1];if(l==="vertical")pt(a,"direction","col"),pt(a,"paddingLeft",h),pt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),pt(v,"paddingBottom",G9),pt(g,"paddingTop",G9),pt(g,"axis",{x:{position:"top"}}),pt(g,"scale",{y:{range:[0,1]}});else{pt(a,"paddingBottom",f),pt(v,"scale",{y:{range:[0,1]}});var y=v.paddingRight,m=y===void 0?cS:y,b=g.paddingLeft,x=b===void 0?cS:b;pt(v,"paddingRight",m),pt(v,"axis",{x:{position:"right"}}),pt(g,"paddingLeft",x)}return o};return zt(e,n,r,i,Fe,Xt)(t)}var QEt=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){QEt(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 ZEt},e}(Rt),tl;(function(t){t.color="key",t.d="path"})(tl||(tl={}));function tMt(t){var e=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return Vt(i)&&(pt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[tl.color,tl.d]}]}),pt(r,"colorField",o),pt(r,["children","0","encode","d"],tl.d)),pt(n,"options",K_(r,["sizeField","setsField"])),n};return zt(e,Xt)(t)}var eMt=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)}}(),nMt=function(t){eMt(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:tl.color,d:tl.d}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return tMt},e}(Rt);function rMt(t){var e=function(n){return n};return zt(e,Xt)(t)}var iMt=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)}}(),oMt=function(t){iMt(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 rMt},e}(Rt),aMt={Base:lSt,Line:ASt,Column:xSt,Pie:kSt,Area:pSt,Bar:ySt,DualAxes:X9,Funnel:ESt,Scatter:ISt,Radar:DSt,Rose:cEt,Stock:HSt,TinyLine:XSt,TinyArea:ZSt,TinyColumn:tEt,TinyProgress:rEt,TinyRing:aEt,Waterfall:hEt,Histogram:gEt,Heatmap:bEt,Box:OEt,Sankey:EEt,Bullet:AEt,Gauge:kEt,Liquid:IEt,WordCloud:DEt,Treemap:BEt,RadialBar:WEt,CirclePacking:UEt,Violin:qEt,BidirectionalBar:JEt,Venn:nMt,Mix:X9,Sunburst:oMt},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)},q9=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},el=K.forwardRef(function(t,e){var n=t.chartType,r=n===void 0?"Base":n,i=q9(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=q9(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=n_t(aMt[r],h),v=p.chart,g=p.container;return K.useImperativeHandle(e,function(){return v.current}),K.createElement(ymt,{errorTemplate:d},u&&K.createElement(vmt,{loadingTemplate:f}),K.createElement("div",mS({className:c,style:a,ref:g},l)))}),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)},sMt=function(t){return K.createElement(el,bS({},t,{chartType:"Area"}))};const lMt=sMt;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)},cMt=function(t){return K.createElement(el,xS({},t,{chartType:"Bar"}))};const uMt=cMt;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)},fMt=function(t){return K.createElement(el,wS({},t,{chartType:"Column"}))};const dMt=fMt;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)},hMt=function(t){return K.createElement(el,OS({},t,{chartType:"DualAxes"}))};const pMt=hMt;var _S=function(){return _S=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},_S.apply(this,arguments)},vMt=function(t){return K.createElement(el,_S({},t,{chartType:"Line"}))};const gMt=vMt;var 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)},yMt=function(t){return K.createElement(el,SS({},t,{chartType:"Pie"}))};const mMt=yMt;var ES=function(){return ES=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},ES.apply(this,arguments)},bMt=function(t){return K.createElement(el,ES({},t,{chartType:"Scatter"}))};const xMt=bMt,{booleanField:_y}=tE,wMt={isStack:t=>_y(tt({name:"isStack",title:"isStack"},t)),smooth:t=>_y(tt({name:"smooth",title:"smooth"},t)),isPercent:t=>_y(tt({name:"isPercent",title:"isPercent"},t)),isGroup:t=>_y(tt({name:"isGroup",title:"isGroup"},t)),size:()=>({size:{title:St("Size"),type:"object","x-decorator":"FormItem","x-component":"Space",properties:{type:{"x-component":"Select","x-component-props":{allowClear:!1},default:"ratio",enum:[{label:St("Aspect ratio"),value:"ratio"},{label:St("Fixed height"),value:"fixed"}]},fixed:{type:"number","x-component":"InputNumber","x-component-props":{min:0,addonAfter:"px"},"x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'fixed'}}"}}}]},ratio:{type:"object","x-component":"Space","x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'ratio'}}"}}}],properties:{width:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Width"),min:1}},colon:{type:"void","x-component":"Text","x-component-props":{children:":"}},height:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Height"),min:1}}}}}}})},OMt=t=>e=>{var l,c;const{size:n={}}=e;let{height:r}=e;!r&&n.type==="fixed"&&(r=n.fixed);const{service:i}=K.useContext(ri),o=K.useRef(null),[a,s]=K.useState(0);return K.useEffect(()=>{var h,p;const u=o.current;if(!u||i.loading===!0||r)return;let f=0;n.type==="ratio"&&((h=n.ratio)!=null&&h.width)&&((p=n.ratio)!=null&&p.height)&&(f=n.ratio.height/n.ratio.width);const d=new ResizeObserver(v=>{v.forEach(g=>{if(f){s(g.contentRect.width*f);return}s(g.contentRect.height)})});return d.observe(u),()=>d.disconnect()},[i.loading,r,n.type,(l=n.ratio)==null?void 0:l.width,(c=n.ratio)==null?void 0:c.height]),Y.jsx("div",{ref:o,style:a?{height:`${r||a}px`}:{},children:Y.jsx(t,tt(tt({},e),a?{height:r||a}:{}))})};class nl extends jy{constructor({name:n,title:r,Component:i,config:o}){super({name:n,title:r,Component:OMt(i),config:["xField","yField","seriesField","size",...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(wMt)}getProps({data:n,general:r,advanced:i,fieldProps:o}){const a=o[r.xField],s=o[r.yField],l=o[r.seriesField];return tt(ht(tt(tt({legend:{color:{itemLabelText:u=>{const f=l==null?void 0:l.transformer;return f?f(u.label):u.label}}},tooltip:{title:u=>{const{[r.xField]:f}=u;return a!=null&&a.transformer?a.transformer(f):f},items:[u=>{const{[r.xField]:f,[r.yField]:d,[r.seriesField]:h}=u;let p="";return h?p=l.transformer?l.transformer(h):h:p=(s==null?void 0:s.label)||r.yField,{name:p,value:s!=null&&s.transformer?s.transformer(d):d}}]},axis:{x:{labelFormatter:u=>{const f=a==null?void 0:a.transformer;return f?f(u):u}},y:{labelFormatter:u=>{const f=s==null?void 0:s.transformer;return f?f(u):u}}},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://ant-design-charts-next.antgroup.com/examples#statistics-${this.name}`}}}class _Mt extends nl{constructor(){super({name:"pie",title:"Pie Chart",Component:mMt});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=r.angleField,s=o[a]||{};if(n.some(f=>f[a]<0)){const f=Math.min(...n.map(h=>h[a]));n=n.map(h=>ht(tt({},h),{[a]:h[a]-f}));const d=s.transformer;s.transformer=h=>{const p=h+f;return d?d(p):p}}const c=super.getProps({data:n,general:r,advanced:i,fieldProps:o}),u={items:[f=>{const{[r.colorField]:d,[a]:h}=f,p=d||(s==null?void 0:s.label)||a,v=s==null?void 0:s.transformer;return{name:p,value:v?v(h):h}}]};return ht(tt({},c),{tooltip:i.tooltip||u})}}class SMt extends nl{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",Component:pMt});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 ht(tt({},rn.omit(a,["legend","tooltip","yField"])),{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 EMt=[new nl({name:"line",title:"Line Chart",Component:gMt,config:["smooth","isStack"]}),new nl({name:"area",title:"Area Chart",Component:lMt,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new nl({name:"column",title:"Column Chart",Component:dMt,config:["isGroup","isStack","isPercent"]}),new nl({name:"bar",title:"Bar Chart",Component:uMt,config:["isGroup","isStack","isPercent"]}),new _Mt,new SMt,new nl({name:"scatter",title:"Scatter Chart",Component:xMt})];class Sy extends z.Plugin{constructor(){super(...arguments);ni(this,"charts",new AB)}load(){return Nn(this,null,function*(){this.charts.setGroup("Built-in",[...EMt,...e7]),this.app.addComponents({ChartV2BlockInitializer:Qz,ChartV2BlockDesigner:qz,ChartV2Block:Xz}),this.app.schemaInitializerManager.add(JS),this.app.schemaInitializerManager.add(Zz),this.app.schemaInitializerManager.add(XS),this.app.schemaInitializerManager.add(Cz),this.app.schemaInitializerManager.add(KS),this.app.schemaInitializerManager.add(jz);const n=this.app.schemaInitializerManager.get("page:addBlock");n==null||n.add("dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"}),this.app.schemaInitializerManager.addItem("mobile:addBlock","dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"})})}}ct.Chart=jy,ct.ChartConfigContext=Mi,ct.default=Sy,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
179
+ `,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},vmt=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&&pmt(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())},gmt=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)}}(),ymt=function(t){gmt(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),mmt=typeof global=="object"&&global&&global.Object===Object&&global;const cR=mmt;var bmt=typeof self=="object"&&self&&self.Object===Object&&self,xmt=cR||bmt||Function("return this")();const wi=xmt;var wmt=wi.Symbol;const ti=wmt;var uR=Object.prototype,Omt=uR.hasOwnProperty,_mt=uR.toString,Xd=ti?ti.toStringTag:void 0;function Smt(t){var e=Omt.call(t,Xd),n=t[Xd];try{t[Xd]=void 0;var r=!0}catch(o){}var i=_mt.call(t);return r&&(e?t[Xd]=n:delete t[Xd]),i}var Emt=Object.prototype,Mmt=Emt.toString;function Pmt(t){return Mmt.call(t)}var Amt="[object Null]",Cmt="[object Undefined]",fR=ti?ti.toStringTag:void 0;function Qi(t){return t==null?t===void 0?Cmt:Amt:fR&&fR in Object(t)?Smt(t):Pmt(t)}function lr(t){return t!=null&&typeof t=="object"}var Tmt="[object Symbol]";function qd(t){return typeof t=="symbol"||lr(t)&&Qi(t)==Tmt}var kmt=NaN;function dR(t){return typeof t=="number"?t:qd(t)?kmt:+t}function Qg(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 Lmt=Array.isArray;const Vt=Lmt;var Nmt=1/0,hR=ti?ti.prototype:void 0,pR=hR?hR.toString:void 0;function Jg(t){if(typeof t=="string")return t;if(Vt(t))return Qg(t,Jg)+"";if(qd(t))return pR?pR.call(t):"";var e=t+"";return e=="0"&&1/t==-Nmt?"-0":e}function Imt(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=Jg(n),r=Jg(r)):(n=dR(n),r=dR(r)),i=t(n,r)}return i}}var jmt=/\s/;function $mt(t){for(var e=t.length;e--&&jmt.test(t.charAt(e)););return e}var Dmt=/^\s+/;function Fmt(t){return t&&t.slice(0,$mt(t)+1).replace(Dmt,"")}function Hn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vR=NaN,Rmt=/^[-+]0x[0-9a-f]+$/i,Bmt=/^0b[01]+$/i,zmt=/^0o[0-7]+$/i,Ymt=parseInt;function gR(t){if(typeof t=="number")return t;if(qd(t))return vR;if(Hn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Hn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Fmt(t);var n=Bmt.test(t);return n||zmt.test(t)?Ymt(t.slice(2),n?2:8):Rmt.test(t)?vR:+t}var yR=1/0,Wmt=17976931348623157e292;function Gmt(t){if(!t)return t===0?t:0;if(t=gR(t),t===yR||t===-yR){var e=t<0?-1:1;return e*Wmt}return t===t?t:0}function mR(t){var e=Gmt(t),n=e%1;return e===e?n?e-n:e:0}function __(t){return t}var Hmt="[object AsyncFunction]",Umt="[object Function]",Vmt="[object GeneratorFunction]",Xmt="[object Proxy]";function Vc(t){if(!Hn(t))return!1;var e=Qi(t);return e==Umt||e==Vmt||e==Hmt||e==Xmt}var qmt=wi["__core-js_shared__"];const S_=qmt;var bR=function(){var t=/[^.]+$/.exec(S_&&S_.keys&&S_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Kmt(t){return!!bR&&bR in t}var Zmt=Function.prototype,Qmt=Zmt.toString;function Us(t){if(t!=null){try{return Qmt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Jmt=/[\\^$.*+?()[\]{}|]/g,t1t=/^\[object .+?Constructor\]$/,e1t=Function.prototype,n1t=Object.prototype,r1t=e1t.toString,i1t=n1t.hasOwnProperty,o1t=RegExp("^"+r1t.call(i1t).replace(Jmt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a1t(t){if(!Hn(t)||Kmt(t))return!1;var e=Vc(t)?o1t:t1t;return e.test(Us(t))}function s1t(t,e){return t==null?void 0:t[e]}function Vs(t,e){var n=s1t(t,e);return a1t(n)?n:void 0}var l1t=Vs(wi,"WeakMap");const Kd=l1t;var c1t=Kd&&new Kd;const xR=c1t;var wR=Object.create,u1t=function(){function t(){}return function(e){if(!Hn(e))return{};if(wR)return wR(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const E_=u1t;function f1t(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 M_(){}var d1t=4294967295;function Xc(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d1t,this.__views__=[]}Xc.prototype=E_(M_.prototype),Xc.prototype.constructor=Xc;function OR(){}var h1t=xR?function(t){return xR.get(t)}:OR;const _R=h1t;var p1t={};const SR=p1t;var v1t=Object.prototype,g1t=v1t.hasOwnProperty;function ty(t){for(var e=t.name+"",n=SR[e],r=g1t.call(SR,e)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==t)return i.name}return e}function Ba(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Ba.prototype=E_(M_.prototype),Ba.prototype.constructor=Ba;function P_(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function y1t(t){if(t instanceof Xc)return t.clone();var e=new Ba(t.__wrapped__,t.__chain__);return e.__actions__=P_(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var m1t=Object.prototype,b1t=m1t.hasOwnProperty;function ey(t){if(lr(t)&&!Vt(t)&&!(t instanceof Xc)){if(t instanceof Ba)return t;if(b1t.call(t,"__wrapped__"))return y1t(t)}return new Ba(t)}ey.prototype=M_.prototype,ey.prototype.constructor=ey;function ER(t){var e=ty(t),n=ey[e];if(typeof n!="function"||!(e in Xc.prototype))return!1;if(t===n)return!0;var r=_R(n);return!!r&&t===r[0]}var x1t=800,w1t=16,O1t=Date.now;function _1t(t){var e=0,n=0;return function(){var r=O1t(),i=w1t-(r-n);if(n=r,i>0){if(++e>=x1t)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function S1t(t){return function(){return t}}var E1t=function(){try{var t=Vs(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();const ny=E1t;var M1t=ny?function(t,e){return ny(t,"toString",{configurable:!0,enumerable:!1,value:S1t(e),writable:!0})}:__,P1t=_1t(M1t);const MR=P1t;function A1t(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function C1t(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 T1t(t){return t!==t}function k1t(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function PR(t,e,n){return e===e?k1t(t,e,n):C1t(t,T1t,n)}function L1t(t,e){var n=t==null?0:t.length;return!!n&&PR(t,e,0)>-1}var N1t=9007199254740991,I1t=/^(?:0|[1-9]\d*)$/;function ry(t,e){var n=typeof t;return e=e==null?N1t:e,!!e&&(n=="number"||n!="symbol"&&I1t.test(t))&&t>-1&&t%1==0&&t<e}function iy(t,e,n){e=="__proto__"&&ny?ny(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Zd(t,e){return t===e||t!==t&&e!==e}var j1t=Object.prototype,$1t=j1t.hasOwnProperty;function oy(t,e,n){var r=t[e];(!($1t.call(t,e)&&Zd(r,n))||n===void 0&&!(e in t))&&iy(t,e,n)}function Xs(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?iy(n,s,l):oy(n,s,l)}return n}var AR=Math.max;function CR(t,e,n){return e=AR(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=AR(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),f1t(t,this,s)}}function D1t(t,e){return MR(CR(t,e,__),t+"")}var F1t=9007199254740991;function A_(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=F1t}function za(t){return t!=null&&A_(t.length)&&!Vc(t)}function R1t(t,e,n){if(!Hn(n))return!1;var r=typeof e;return(r=="number"?za(n)&&ry(e,n.length):r=="string"&&e in n)?Zd(n[e],t):!1}function TR(t){return D1t(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&&R1t(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 B1t=Object.prototype;function ay(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||B1t;return t===n}function z1t(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Y1t="[object Arguments]";function kR(t){return lr(t)&&Qi(t)==Y1t}var LR=Object.prototype,W1t=LR.hasOwnProperty,G1t=LR.propertyIsEnumerable,H1t=kR(function(){return arguments}())?kR:function(t){return lr(t)&&W1t.call(t,"callee")&&!G1t.call(t,"callee")};const Qd=H1t;function U1t(){return!1}var NR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,IR=NR&&typeof module=="object"&&module&&!module.nodeType&&module,V1t=IR&&IR.exports===NR,jR=V1t?wi.Buffer:void 0,X1t=jR?jR.isBuffer:void 0,q1t=X1t||U1t;const Jd=q1t;var K1t="[object Arguments]",Z1t="[object Array]",Q1t="[object Boolean]",J1t="[object Date]",tbt="[object Error]",ebt="[object Function]",nbt="[object Map]",rbt="[object Number]",ibt="[object Object]",obt="[object RegExp]",abt="[object Set]",sbt="[object String]",lbt="[object WeakMap]",cbt="[object ArrayBuffer]",ubt="[object DataView]",fbt="[object Float32Array]",dbt="[object Float64Array]",hbt="[object Int8Array]",pbt="[object Int16Array]",vbt="[object Int32Array]",gbt="[object Uint8Array]",ybt="[object Uint8ClampedArray]",mbt="[object Uint16Array]",bbt="[object Uint32Array]",Ee={};Ee[fbt]=Ee[dbt]=Ee[hbt]=Ee[pbt]=Ee[vbt]=Ee[gbt]=Ee[ybt]=Ee[mbt]=Ee[bbt]=!0,Ee[K1t]=Ee[Z1t]=Ee[cbt]=Ee[Q1t]=Ee[ubt]=Ee[J1t]=Ee[tbt]=Ee[ebt]=Ee[nbt]=Ee[rbt]=Ee[ibt]=Ee[obt]=Ee[abt]=Ee[sbt]=Ee[lbt]=!1;function xbt(t){return lr(t)&&A_(t.length)&&!!Ee[Qi(t)]}function C_(t){return function(e){return t(e)}}var $R=typeof ct=="object"&&ct&&!ct.nodeType&&ct,th=$R&&typeof module=="object"&&module&&!module.nodeType&&module,wbt=th&&th.exports===$R,T_=wbt&&cR.process,Obt=function(){try{var t=th&&th.require&&th.require("util").types;return t||T_&&T_.binding&&T_.binding("util")}catch(e){}}();const qc=Obt;var DR=qc&&qc.isTypedArray,_bt=DR?C_(DR):xbt;const k_=_bt;var Sbt=Object.prototype,Ebt=Sbt.hasOwnProperty;function FR(t,e){var n=Vt(t),r=!n&&Qd(t),i=!n&&!r&&Jd(t),o=!n&&!r&&!i&&k_(t),a=n||r||i||o,s=a?z1t(t.length,String):[],l=s.length;for(var c in t)(e||Ebt.call(t,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ry(c,l)))&&s.push(c);return s}function RR(t,e){return function(n){return t(e(n))}}var Mbt=RR(Object.keys,Object);const Pbt=Mbt;var Abt=Object.prototype,Cbt=Abt.hasOwnProperty;function Tbt(t){if(!ay(t))return Pbt(t);var e=[];for(var n in Object(t))Cbt.call(t,n)&&n!="constructor"&&e.push(n);return e}function qs(t){return za(t)?FR(t):Tbt(t)}var kbt=Object.prototype,Lbt=kbt.hasOwnProperty,Nbt=TR(function(t,e){if(ay(e)||za(e)){Xs(e,qs(e),t);return}for(var n in e)Lbt.call(e,n)&&oy(t,n,e[n])});const BR=Nbt;function Ibt(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var jbt=Object.prototype,$bt=jbt.hasOwnProperty;function Dbt(t){if(!Hn(t))return Ibt(t);var e=ay(t),n=[];for(var r in t)r=="constructor"&&(e||!$bt.call(t,r))||n.push(r);return n}function eh(t){return za(t)?FR(t,!0):Dbt(t)}var Fbt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rbt=/^\w*$/;function L_(t,e){if(Vt(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||qd(t)?!0:Rbt.test(t)||!Fbt.test(t)||e!=null&&t in Object(e)}var Bbt=Vs(Object,"create");const nh=Bbt;function zbt(){this.__data__=nh?nh(null):{},this.size=0}function Ybt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Wbt="__lodash_hash_undefined__",Gbt=Object.prototype,Hbt=Gbt.hasOwnProperty;function Ubt(t){var e=this.__data__;if(nh){var n=e[t];return n===Wbt?void 0:n}return Hbt.call(e,t)?e[t]:void 0}var Vbt=Object.prototype,Xbt=Vbt.hasOwnProperty;function qbt(t){var e=this.__data__;return nh?e[t]!==void 0:Xbt.call(e,t)}var Kbt="__lodash_hash_undefined__";function Zbt(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nh&&e===void 0?Kbt:e,this}function Ks(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])}}Ks.prototype.clear=zbt,Ks.prototype.delete=Ybt,Ks.prototype.get=Ubt,Ks.prototype.has=qbt,Ks.prototype.set=Zbt;function Qbt(){this.__data__=[],this.size=0}function sy(t,e){for(var n=t.length;n--;)if(Zd(t[n][0],e))return n;return-1}var Jbt=Array.prototype,txt=Jbt.splice;function ext(t){var e=this.__data__,n=sy(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():txt.call(e,n,1),--this.size,!0}function nxt(t){var e=this.__data__,n=sy(e,t);return n<0?void 0:e[n][1]}function rxt(t){return sy(this.__data__,t)>-1}function ixt(t,e){var n=this.__data__,r=sy(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=Qbt,Io.prototype.delete=ext,Io.prototype.get=nxt,Io.prototype.has=rxt,Io.prototype.set=ixt;var oxt=Vs(wi,"Map");const rh=oxt;function axt(){this.size=0,this.__data__={hash:new Ks,map:new(rh||Io),string:new Ks}}function sxt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ly(t,e){var n=t.__data__;return sxt(e)?n[typeof e=="string"?"string":"hash"]:n.map}function lxt(t){var e=ly(this,t).delete(t);return this.size-=e?1:0,e}function cxt(t){return ly(this,t).get(t)}function uxt(t){return ly(this,t).has(t)}function fxt(t,e){var n=ly(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=axt,jo.prototype.delete=lxt,jo.prototype.get=cxt,jo.prototype.has=uxt,jo.prototype.set=fxt;var dxt="Expected a function";function N_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(dxt);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(N_.Cache||jo),n}N_.Cache=jo;var hxt=500;function pxt(t){var e=N_(t,function(r){return n.size===hxt&&n.clear(),r}),n=e.cache;return e}var vxt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gxt=/\\(\\)?/g,yxt=pxt(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(vxt,function(n,r,i,o){e.push(i?o.replace(gxt,"$1"):r||n)}),e});const mxt=yxt;function I_(t){return t==null?"":Jg(t)}function Kc(t,e){return Vt(t)?t:L_(t,e)?[t]:mxt(I_(t))}var bxt=1/0;function Zc(t){if(typeof t=="string"||qd(t))return t;var e=t+"";return e=="0"&&1/t==-bxt?"-0":e}function cy(t,e){e=Kc(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Zc(e[n++])];return n&&n==r?t:void 0}function ge(t,e,n){var r=t==null?void 0:cy(t,e);return r===void 0?n:r}function j_(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var zR=ti?ti.isConcatSpreadable:void 0;function xxt(t){return Vt(t)||Qd(t)||!!(zR&&t&&t[zR])}function YR(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=xxt),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?YR(s,e-1,n,r,i):j_(i,s):r||(i[i.length]=s)}return i}function wxt(t){var e=t==null?0:t.length;return e?YR(t,1):[]}function $_(t){return MR(CR(t,void 0,wxt),t+"")}var Oxt=RR(Object.getPrototypeOf,Object);const D_=Oxt;var _xt="[object Object]",Sxt=Function.prototype,Ext=Object.prototype,WR=Sxt.toString,Mxt=Ext.hasOwnProperty,Pxt=WR.call(Object);function F_(t){if(!lr(t)||Qi(t)!=_xt)return!1;var e=D_(t);if(e===null)return!0;var n=Mxt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&WR.call(n)==Pxt}function Axt(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 Cxt=wi.isFinite,Txt=Math.min;function kxt(t){var e=Math[t];return function(n,r){if(n=gR(n),r=r==null?0:Txt(mR(r),292),r&&Cxt(n)){var i=(I_(n)+"e").split("e"),o=e(i[0]+"e"+(+i[1]+r));return i=(I_(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(n)}}var Lxt=kxt("ceil");const Nxt=Lxt;function Ixt(){this.__data__=new Io,this.size=0}function jxt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function $xt(t){return this.__data__.get(t)}function Dxt(t){return this.__data__.has(t)}var Fxt=200;function Rxt(t,e){var n=this.__data__;if(n instanceof Io){var r=n.__data__;if(!rh||r.length<Fxt-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 Oi(t){var e=this.__data__=new Io(t);this.size=e.size}Oi.prototype.clear=Ixt,Oi.prototype.delete=jxt,Oi.prototype.get=$xt,Oi.prototype.has=Dxt,Oi.prototype.set=Rxt;function Bxt(t,e){return t&&Xs(e,qs(e),t)}function zxt(t,e){return t&&Xs(e,eh(e),t)}var GR=typeof ct=="object"&&ct&&!ct.nodeType&&ct,HR=GR&&typeof module=="object"&&module&&!module.nodeType&&module,Yxt=HR&&HR.exports===GR,UR=Yxt?wi.Buffer:void 0,VR=UR?UR.allocUnsafe:void 0;function XR(t,e){if(e)return t.slice();var n=t.length,r=VR?VR(n):new t.constructor(n);return t.copy(r),r}function Wxt(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 qR(){return[]}var Gxt=Object.prototype,Hxt=Gxt.propertyIsEnumerable,KR=Object.getOwnPropertySymbols,Uxt=KR?function(t){return t==null?[]:(t=Object(t),Wxt(KR(t),function(e){return Hxt.call(t,e)}))}:qR;const R_=Uxt;function Vxt(t,e){return Xs(t,R_(t),e)}var Xxt=Object.getOwnPropertySymbols,qxt=Xxt?function(t){for(var e=[];t;)j_(e,R_(t)),t=D_(t);return e}:qR;const ZR=qxt;function Kxt(t,e){return Xs(t,ZR(t),e)}function QR(t,e,n){var r=e(t);return Vt(t)?r:j_(r,n(t))}function B_(t){return QR(t,qs,R_)}function JR(t){return QR(t,eh,ZR)}var Zxt=Vs(wi,"DataView");const z_=Zxt;var Qxt=Vs(wi,"Promise");const Y_=Qxt;var Jxt=Vs(wi,"Set");const Qc=Jxt;var t9="[object Map]",t2t="[object Object]",e9="[object Promise]",n9="[object Set]",r9="[object WeakMap]",i9="[object DataView]",e2t=Us(z_),n2t=Us(rh),r2t=Us(Y_),i2t=Us(Qc),o2t=Us(Kd),Zs=Qi;(z_&&Zs(new z_(new ArrayBuffer(1)))!=i9||rh&&Zs(new rh)!=t9||Y_&&Zs(Y_.resolve())!=e9||Qc&&Zs(new Qc)!=n9||Kd&&Zs(new Kd)!=r9)&&(Zs=function(t){var e=Qi(t),n=e==t2t?t.constructor:void 0,r=n?Us(n):"";if(r)switch(r){case e2t:return i9;case n2t:return t9;case r2t:return e9;case i2t:return n9;case o2t:return r9}return e});const ih=Zs;var a2t=Object.prototype,s2t=a2t.hasOwnProperty;function l2t(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&s2t.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var c2t=wi.Uint8Array;const uy=c2t;function W_(t){var e=new t.constructor(t.byteLength);return new uy(e).set(new uy(t)),e}function u2t(t,e){var n=e?W_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var f2t=/\w*$/;function d2t(t){var e=new t.constructor(t.source,f2t.exec(t));return e.lastIndex=t.lastIndex,e}var o9=ti?ti.prototype:void 0,a9=o9?o9.valueOf:void 0;function h2t(t){return a9?Object(a9.call(t)):{}}function s9(t,e){var n=e?W_(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var p2t="[object Boolean]",v2t="[object Date]",g2t="[object Map]",y2t="[object Number]",m2t="[object RegExp]",b2t="[object Set]",x2t="[object String]",w2t="[object Symbol]",O2t="[object ArrayBuffer]",_2t="[object DataView]",S2t="[object Float32Array]",E2t="[object Float64Array]",M2t="[object Int8Array]",P2t="[object Int16Array]",A2t="[object Int32Array]",C2t="[object Uint8Array]",T2t="[object Uint8ClampedArray]",k2t="[object Uint16Array]",L2t="[object Uint32Array]";function N2t(t,e,n){var r=t.constructor;switch(e){case O2t:return W_(t);case p2t:case v2t:return new r(+t);case _2t:return u2t(t,n);case S2t:case E2t:case M2t:case P2t:case A2t:case C2t:case T2t:case k2t:case L2t:return s9(t,n);case g2t:return new r;case y2t:case x2t:return new r(t);case m2t:return d2t(t);case b2t:return new r;case w2t:return h2t(t)}}function l9(t){return typeof t.constructor=="function"&&!ay(t)?E_(D_(t)):{}}var I2t="[object Map]";function j2t(t){return lr(t)&&ih(t)==I2t}var c9=qc&&qc.isMap,$2t=c9?C_(c9):j2t;const D2t=$2t;var F2t="[object Set]";function R2t(t){return lr(t)&&ih(t)==F2t}var u9=qc&&qc.isSet,B2t=u9?C_(u9):R2t;const z2t=B2t;var Y2t=1,W2t=2,G2t=4,f9="[object Arguments]",H2t="[object Array]",U2t="[object Boolean]",V2t="[object Date]",X2t="[object Error]",d9="[object Function]",q2t="[object GeneratorFunction]",K2t="[object Map]",Z2t="[object Number]",h9="[object Object]",Q2t="[object RegExp]",J2t="[object Set]",twt="[object String]",ewt="[object Symbol]",nwt="[object WeakMap]",rwt="[object ArrayBuffer]",iwt="[object DataView]",owt="[object Float32Array]",awt="[object Float64Array]",swt="[object Int8Array]",lwt="[object Int16Array]",cwt="[object Int32Array]",uwt="[object Uint8Array]",fwt="[object Uint8ClampedArray]",dwt="[object Uint16Array]",hwt="[object Uint32Array]",ye={};ye[f9]=ye[H2t]=ye[rwt]=ye[iwt]=ye[U2t]=ye[V2t]=ye[owt]=ye[awt]=ye[swt]=ye[lwt]=ye[cwt]=ye[K2t]=ye[Z2t]=ye[h9]=ye[Q2t]=ye[J2t]=ye[twt]=ye[ewt]=ye[uwt]=ye[fwt]=ye[dwt]=ye[hwt]=!0,ye[X2t]=ye[d9]=ye[nwt]=!1;function oh(t,e,n,r,i,o){var a,s=e&Y2t,l=e&W2t,c=e&G2t;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Hn(t))return t;var u=Vt(t);if(u){if(a=l2t(t),!s)return P_(t,a)}else{var f=ih(t),d=f==d9||f==q2t;if(Jd(t))return XR(t,s);if(f==h9||f==f9||d&&!i){if(a=l||d?{}:l9(t),!s)return l?Kxt(t,zxt(a,t)):Vxt(t,Bxt(a,t))}else{if(!ye[f])return i?t:{};a=N2t(t,f,s)}}o||(o=new Oi);var h=o.get(t);if(h)return h;o.set(t,a),z2t(t)?t.forEach(function(g){a.add(oh(g,e,n,g,t,o))}):D2t(t)&&t.forEach(function(g,y){a.set(y,oh(g,e,n,y,t,o))});var p=c?l?JR:B_:l?eh:qs,v=u?void 0:p(t);return A1t(v||t,function(g,y){v&&(y=g,g=t[y]),oy(a,y,oh(g,e,n,y,t,o))}),a}var pwt=1,vwt=4;function p9(t){return oh(t,pwt|vwt)}var gwt="__lodash_hash_undefined__";function ywt(t){return this.__data__.set(t,gwt),this}function mwt(t){return this.__data__.has(t)}function ah(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new jo;++e<n;)this.add(t[e])}ah.prototype.add=ah.prototype.push=ywt,ah.prototype.has=mwt;function bwt(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 v9(t,e){return t.has(e)}var xwt=1,wwt=2;function g9(t,e,n,r,i,o){var a=n&xwt,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&wwt?new ah:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!bwt(e,function(y,m){if(!v9(h,m)&&(p===y||i(p,y,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 Owt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function G_(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var _wt=1,Swt=2,Ewt="[object Boolean]",Mwt="[object Date]",Pwt="[object Error]",Awt="[object Map]",Cwt="[object Number]",Twt="[object RegExp]",kwt="[object Set]",Lwt="[object String]",Nwt="[object Symbol]",Iwt="[object ArrayBuffer]",jwt="[object DataView]",y9=ti?ti.prototype:void 0,H_=y9?y9.valueOf:void 0;function $wt(t,e,n,r,i,o,a){switch(n){case jwt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Iwt:return!(t.byteLength!=e.byteLength||!o(new uy(t),new uy(e)));case Ewt:case Mwt:case Cwt:return Zd(+t,+e);case Pwt:return t.name==e.name&&t.message==e.message;case Twt:case Lwt:return t==e+"";case Awt:var s=Owt;case kwt:var l=r&_wt;if(s||(s=G_),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;r|=Swt,a.set(t,e);var u=g9(s(t),s(e),r,i,o,a);return a.delete(t),u;case Nwt:if(H_)return H_.call(t)==H_.call(e)}return!1}var Dwt=1,Fwt=Object.prototype,Rwt=Fwt.hasOwnProperty;function Bwt(t,e,n,r,i,o){var a=n&Dwt,s=B_(t),l=s.length,c=B_(e),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:Rwt.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 g=a;++f<l;){d=s[f];var y=t[d],m=e[d];if(r)var b=a?r(m,y,d,e,t,o):r(y,m,d,t,e,o);if(!(b===void 0?y===m||i(y,m,n,r,o):b)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){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 zwt=1,m9="[object Arguments]",b9="[object Array]",fy="[object Object]",Ywt=Object.prototype,x9=Ywt.hasOwnProperty;function Wwt(t,e,n,r,i,o){var a=Vt(t),s=Vt(e),l=a?b9:ih(t),c=s?b9:ih(e);l=l==m9?fy:l,c=c==m9?fy:c;var u=l==fy,f=c==fy,d=l==c;if(d&&Jd(t)){if(!Jd(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Oi),a||k_(t)?g9(t,e,n,r,i,o):$wt(t,e,l,n,r,i,o);if(!(n&zwt)){var h=u&&x9.call(t,"__wrapped__"),p=f&&x9.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,g=p?e.value():e;return o||(o=new Oi),i(v,g,n,r,o)}}return d?(o||(o=new Oi),Bwt(t,e,n,r,i,o)):!1}function dy(t,e,n,r,i){return t===e?!0:t==null||e==null||!lr(t)&&!lr(e)?t!==t&&e!==e:Wwt(t,e,n,r,dy,i)}var Gwt=1,Hwt=2;function Uwt(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 Oi;if(r)var d=r(c,u,l,t,e,f);if(!(d===void 0?dy(u,c,Gwt|Hwt,r,f):d))return!1}}return!0}function w9(t){return t===t&&!Hn(t)}function Vwt(t){for(var e=qs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,w9(i)]}return e}function O9(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function Xwt(t){var e=Vwt(t);return e.length==1&&e[0][2]?O9(e[0][0],e[0][1]):function(n){return n===t||Uwt(n,t,e)}}function qwt(t,e){return t!=null&&e in Object(t)}function Kwt(t,e,n){e=Kc(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Zc(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&&A_(i)&&ry(a,i)&&(Vt(t)||Qd(t)))}function _9(t,e){return t!=null&&Kwt(t,e,qwt)}var Zwt=1,Qwt=2;function Jwt(t,e){return L_(t)&&w9(e)?O9(Zc(t),e):function(n){var r=ge(n,t);return r===void 0&&r===e?_9(n,t):dy(e,r,Zwt|Qwt)}}function tOt(t){return function(e){return e==null?void 0:e[t]}}function eOt(t){return function(e){return cy(e,t)}}function nOt(t){return L_(t)?tOt(Zc(t)):eOt(t)}function U_(t){return typeof t=="function"?t:t==null?__:typeof t=="object"?Vt(t)?Jwt(t[0],t[1]):Xwt(t):nOt(t)}function rOt(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 iOt(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 oOt=iOt();const S9=oOt;function aOt(t,e){return t&&S9(t,e,qs)}function sOt(t,e){return function(n,r){if(n==null)return n;if(!za(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 lOt=sOt(aOt);const E9=lOt;function cOt(t,e,n,r){return E9(t,function(i,o,a){e(r,i,n(i),a)}),r}function uOt(t,e){return function(n,r){var i=Vt(n)?rOt:cOt,o=e?e():{};return i(n,t,U_(r),o)}}function V_(t,e,n){(n!==void 0&&!Zd(t[e],n)||n===void 0&&!(e in t))&&iy(t,e,n)}function fOt(t){return lr(t)&&za(t)}function X_(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function dOt(t){return Xs(t,eh(t))}function hOt(t,e,n,r,i,o,a){var s=X_(t,n),l=X_(e,n),c=a.get(l);if(c){V_(t,n,c);return}var u=o?o(s,l,n+"",t,e,a):void 0,f=u===void 0;if(f){var d=Vt(l),h=!d&&Jd(l),p=!d&&!h&&k_(l);u=l,d||h||p?Vt(s)?u=s:fOt(s)?u=P_(s):h?(f=!1,u=XR(l,!0)):p?(f=!1,u=s9(l,!0)):u=[]:F_(l)||Qd(l)?(u=s,Qd(s)?u=dOt(s):(!Hn(s)||Vc(s))&&(u=l9(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),V_(t,n,u)}function M9(t,e,n,r,i){t!==e&&S9(e,function(o,a){if(i||(i=new Oi),Hn(o))hOt(t,e,a,n,M9,r,i);else{var s=r?r(X_(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),V_(t,a,s)}},eh)}var pOt=TR(function(t,e,n,r){M9(t,e,n,r)});const vOt=pOt;function gOt(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 yOt(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var mOt=Imt(function(t,e){return t/e},1);const bOt=mOt;function xOt(t,e){var n=-1,r=za(t)?Array(t.length):[];return E9(t,function(i,o,a){r[++n]=e(i,o,a)}),r}function Jc(t,e){var n=Vt(t)?Qg:xOt;return n(t,U_(e))}var wOt="Expected a function",OOt=8,_Ot=32,SOt=128,EOt=256;function MOt(t){return $_(function(e){var n=e.length,r=n,i=Ba.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new TypeError(wOt);if(i&&!a&&ty(o)=="wrapper")var a=new Ba([],!0)}for(r=a?r:n;++r<n;){o=e[r];var s=ty(o),l=s=="wrapper"?_R(o):void 0;l&&ER(l[0])&&l[1]==(SOt|OOt|_Ot|EOt)&&!l[4].length&&l[9]==1?a=a[ty(l[0])].apply(a,l[3]):a=o.length==1&&ER(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&Vt(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 POt=MOt();const zt=POt;var AOt=Object.prototype,COt=AOt.hasOwnProperty,TOt=uOt(function(t,e,n){COt.call(t,n)?t[n].push(e):iy(t,n,[e])});const P9=TOt;var kOt="[object String]";function A9(t){return typeof t=="string"||!Vt(t)&&lr(t)&&Qi(t)==kOt}function LOt(t,e){return Qg(e,function(n){return t[n]})}function NOt(t){return t==null?[]:LOt(t,qs(t))}var IOt=Math.max;function jOt(t,e,n,r){t=za(t)?t:NOt(t),n=n&&!r?mR(n):0;var i=t.length;return n<0&&(n=IOt(i+n,0)),A9(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&PR(t,e,n)>-1}function $Ot(t,e){return e.length<2?t:cy(t,Axt(e,0,-1))}var DOt="[object Boolean]";function q_(t){return t===!0||t===!1||lr(t)&&Qi(t)==DOt}function C9(t,e){return dy(t,e)}var FOt="[object Number]";function tu(t){return typeof t=="number"||lr(t)&&Qi(t)==FOt}function ROt(t){return t==null}function BOt(t){return t===void 0}function zOt(t,e){return e=Kc(e,t),t=$Ot(t,e),t==null||delete t[Zc(yOt(e))]}function YOt(t){return F_(t)?void 0:t}var WOt=1,GOt=2,HOt=4,UOt=$_(function(t,e){var n={};if(t==null)return n;var r=!1;e=Qg(e,function(o){return o=Kc(o,t),r||(r=o.length>1),o}),Xs(t,JR(t),n),r&&(n=oh(n,WOt|GOt|HOt,YOt));for(var i=e.length;i--;)zOt(n,e[i]);return n});const K_=UOt;function T9(t,e,n,r){if(!Hn(t))return t;e=Kc(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=Zc(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=Hn(u)?u:ry(e[i+1])?[]:{})}oy(s,l,c),s=s[l]}return t}function VOt(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=cy(t,a);n(s,a)&&T9(o,Kc(a,t),s)}return o}function XOt(t,e){return VOt(t,e,function(n,r){return _9(t,r)})}var qOt=$_(function(t,e){return t==null?{}:XOt(t,e)});const k9=qOt;function pt(t,e,n){return t==null?t:T9(t,e,n)}var KOt=1/0,ZOt=Qc&&1/G_(new Qc([,-0]))[1]==KOt?function(t){return new Qc(t)}:OR;const QOt=ZOt;var JOt=200;function t_t(t,e,n){var r=-1,i=L1t,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=gOt;else if(o>=JOt){var c=e?null:QOt(t);if(c)return G_(c);a=!1,i=v9,l=new ah}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 Z_(t,e){return t&&t.length?t_t(t,U_(e)):[]}var e_t=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)},L9=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 n_t(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)&&e_t("".concat(v))?u[p]=function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];return hmt(v.apply(void 0,g),h)}:Vt(v)?v.forEach(function(g){c(g,h)}):Hn(v)?c(v,h):h=f})};return K.useEffect(function(){if(n.current&&!C9(r.current,e)){var u=!1;if(r.current){var f=r.current;f.data;var d=L9(f,["data"]);e.data;var h=L9(e,["data"]);u=C9(d,h)}r.current=p9(e),u?n.current.changeData(ge(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=p9(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 r_t=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const N9=r_t;var i_t=function(t,e){if(!N9(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 o_t=i_t,a_t=function(t){return typeof t=="function"};var s_t=function(t){return t==null};const l_t=s_t;var c_t={}.toString,u_t=function(t,e){return c_t.call(t)==="[object "+e+"]"};const J_=u_t,eu=function(t){return Array.isArray?Array.isArray(t):J_(t,"Array")},f_t=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function tS(t,e){if(t){var n;if(eu(t))for(var r=0,i=t.length;r<i&&(n=e(t[r],r),n!==!1);r++);else if(f_t(t)){for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),n===!1))break}}}var d_t=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return tS(t,function(n,r){a_t(t)&&r==="prototype"||e.push(r)}),e};const h_t=d_t;var p_t=function(t){return typeof t=="object"&&t!==null};const v_t=p_t;var g_t=function(t){if(!v_t(t)||!J_(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 hy=g_t;var y_t=function(t,e,n){if(!eu(t)&&!hy(t))return t;var r=n;return tS(t,function(i,o){r=e(r,i,o)}),r};const m_t=y_t,eS=function(t){return J_(t,"String")};function nS(t,e){for(var n in e)e.hasOwnProperty(n)&&n!=="constructor"&&e[n]!==void 0&&(t[n]=e[n])}function b_t(t,e,n,r){return e&&nS(t,e),n&&nS(t,n),r&&nS(t,r),t}var x_t=5;function w_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 I9(t,e,n,r){n=n||0,r=r||x_t;for(var i in e)if(w_t(e,i)){var o=e[i];o!==null&&hy(o)?(hy(t[i])||(t[i]={}),n<r?I9(t[i],o,n+1,r):t[i]=e[i]):eu(o)?(t[i]=[],t[i]=t[i].concat(o)):o!==void 0&&(t[i]=o)}}var O_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)I9(t,e[r]);return t};const py=O_t,Ji=function(t,e,n){for(var r=0,i=eS(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return t===void 0||r<i.length?n:t};var __t=Object.prototype.hasOwnProperty;const j9=function(t,e){if(t===null||!hy(t))return{};var n={};return tS(e,function(r){__t.call(t,r)&&(n[r]=t[r])}),n};function S_t(t){return l_t(t)?0:N9(t)?t.length:Object.keys(t).length}const E_t={field:"value",size:[1,1],round:!1,padding:0,sort:(t,e)=>e.value-t.value,as:["x","y"],ignoreParentValue:!0},M_t="nodeIndex",sh="childNodeCount",P_t="nodeAncestor",rS="Invalid field: it must be a string!";function A_t(t,e){const{field:n,fields:r}=t;if(eS(n))return n;if(eu(n))return console.warn(rS),n[0];if(console.warn(`${rS} will try to get fields instead.`),eS(r))return r;if(eu(r)&&r.length)return r[0];if(e)return e;throw new TypeError(rS)}function C_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=o_t((((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[P_t]=s,i[sh]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[M_t]=r,e.push(i)})}else t&&t.eachNode&&t.eachNode(n=>{e.push(n)});return e}function T_t(t,e){e=b_t({},E_t,e);const n=e.as;if(!eu(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=A_t(e)}catch(l){console.warn(l)}const o=(l=>prt().size(e.size).round(e.round).padding(e.padding)(Wl(l).sum(c=>S_t(c.children)?e.ignoreParentValue?0:c[r]-m_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]})}),C_t(o)}var 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};const nu="sunburst",iS="markType",$9="path",vy="ancestor-node";function L_t(t){const{data:e,encode:n}=t,{color:r,value:i}=n,a=T_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 g=Object.assign(Object.assign(Object.assign({},j9(l.data,[i])),{[$9]:h,[vy]:v.data.name}),l);r&&r!==vy&&(g[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(g)}),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 D9={id:nu,encode:{x:"x",y:"y",key:$9,color:vy,value:"value"},axis:{x:!1,y:!1},style:{[iS]:nu,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[sh]:sh,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},F9=t=>{const{encode:e,data:n=[],legend:r}=t,i=k_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({},D9.encode),e),{value:s}=a,l=L_t({encode:a,data:n});return[py({},D9,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};F9.props={};var N_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 I_t=t=>t.querySelectorAll(".element").filter(e=>Ji(e,["style",iS])===nu);function j_t(t){return gt(t).select(`.${If}`).node()}const $_t={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function D_t(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=py({},$_t,e);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=j_t(s),f=c.marks.find(({id:m})=>m===nu),{state:d}=f,h=new sn;u.appendChild(h);const p=(m,b)=>N_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,T)=>{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 C=new jr({name:w.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:P,x:S,depth:T+1},r.style),{y:_})});return h.appendChild(C),S+=C.getBBox().width,S>E&&(_=h.getBBox().height,S=0,A.attr({x:S,y:_}),S+=A.getBBox().width,C.attr({x:S,y:_}),S+=C.getBBox().width),C});[x,...M].forEach((P,T)=>{if(T===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!==nu&&_.type!=="rect")return _;const{data:S}=_,E=Object.fromEntries(["color"].map(P=>[P,{domain:l.scale[P].getOptions().domain}])),M=S.filter(P=>{const T=P.path;return n&&(P[vy]=T.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(T):!0});return py({},_,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",iS])!==nu||Ji(b,["markType"])!=="rect"||!Ji(b,["style",sh]))return;const x=Ji(b,["__data__","key"]),w=Ji(b,["style","depth"]);b.style.cursor="pointer",p(x,w)};u.addEventListener("click",v);const g=h_t(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{I_t(u).forEach(b=>{const x=Ji(b,["style",sh]);if(Ji(b,["style","cursor"])!=="pointer"&&x){b.style.cursor="pointer";const O=j9(b.attributes,g);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(py(O,d.inactive))})}})};return u.addEventListener("mousemove",y),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",y)}}}U.enableCSSParsing=!1;function F_t(){return{"interaction.drillDown":D_t,"mark.sunburst":F9}}var 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)},R_t=Avt(ngt,gy(gy({},zD()),F_t())),Xt=function(t){var e=z_t(t),n=e.children,r=n===void 0?[]:n,i=K_(e,[].concat(z9,yy.map(function(c){return c.key}))),o=function(c){var u;return(u=U_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]=Ya({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){var f=yy.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Ya({},k9(c,h),{type:d},c[u]))):Vt(c[u])&&c[u].forEach(function(p){r.push(l(p))})}})},l=function(c){return s(c),Object.keys(aS).forEach(function(u){var f=aS[u];if(!BOt(c[u]))if(Hn(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else pt(c,f,c[u])}),c};return r.forEach(function(c){var u=Ya({},i,c);l(Ya(c,u))}),s(e),B_t(e),t},R9=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))},B_t=function(t){var e=t.children,n=e===void 0?[]:e,r=Object.keys(aS).concat(yy.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){R9(R9([],z9,!0),lS.map(function(o){return o.key}),!0).includes(i)||delete t[i]}),t},z_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){Vt(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[oS]}))})}),e},B9=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))},Y_t=function(t,e){if(Vt(e))return e},Ya=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return vOt.apply(void 0,B9(B9([],t,!1),[Y_t],!1))},lh=function(){return lh=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},lh.apply(this,arguments)},W_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},G_t=["renderer"],z9=["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"],oS="__transform__",H_t="__skipDelCustomKeys__",Qs=function(t,e){return q_(e)?{type:t,available:e}:lh({type:t},e)},aS={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 Qs("stackY",t)}},normalize:{target:"transform",value:function(t){return Qs("normalizeY",t)}},percent:{target:"transform",value:function(t){return Qs("normalizeY",t)}},group:{target:"transform",value:function(t){return Qs("dodgeX",t)}},sort:{target:"transform",value:function(t){return Qs("sortX",t)}},symmetry:{target:"transform",value:function(t){return Qs("symmetryY",t)}},diff:{target:"transform",value:function(t){return Qs("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 q_(t)?{connect:t}:t}}},sS=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],yy=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:sS},{key:"point",type:"point",extend_keys:sS},{key:"area",type:"area",extend_keys:sS}],U_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=W_t(n,["available"]);o?t[e].push(lh((r={},r[oS]=!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||Vt(n)){t[e]=n||[];return}n.text||(n.text=t.yField),t[e]=t[e]||[],t[e].push(lh((r={},r[oS]=!0,r),n))}}],lS=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],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)}}(),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)},X_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},Y9=function(t){V_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=X_t(n,["style"]);return t.call(this,my({style:my({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return e}(jr),q_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)}}(),by=function(){return by=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},by.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},Z_t=function(t){q_t(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=K_t(n,["style"]);return t.call(this,by({style:by({fill:"#eee"},r)},i))||this}return e}(af),Q_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)}}(),W9=function(t){Q_t(e,t);function e(n,r,i){var o=t.call(this,{style:Ya(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(Ya({},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}(Op),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)}}(),xy=function(){return xy=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},xy.apply(this,arguments)},tSt=function(t){J_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=ge(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,g=v===void 0?40:v,y=p.arrowSize,m=y===void 0?20:y,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,T=w.key,A=ge(P,u),C=g/2;if(n){var k=_+M/2,N=S;h.push({points:[[k+C,N-d+x],[k+C,N-m-x],[k,N-x],[k-C,N-m-x],[k-C,N-d+x]],center:[k,N-d/2-x],width:d,value:[f,A],key:T})}else{var k=_,N=S+E/2;h.push({points:[[_-d+x,N-C],[_-m-x,N-C],[k-x,N],[_-m-x,N+C],[_-d+x,N+C]],center:[k-d/2-x,N],width:d,value:[f,A],key:T})}f=A}}),h},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=ge(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],g=f[0],y=f[1],m=new Z_t({style:xy({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),b=new Y9({style:xy({x:g,y,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}(W9),cS=32,G9=16,H9=48,eSt=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)}}(),ch=function(){return ch=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},ch.apply(this,arguments)},nSt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},rSt=function(t){eSt(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?Z_(i,"x"):Z_(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=ge(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,g=d.width,y=d.data,m=d.key,b=ge(y,a);r?s.push({x:h+g/2,y:f,text:b,key:m}):s.push({x:u,y:p+v/2,text:b,key:m})}),Z_(s,"text").length!==s.length&&(s=Object.values(P9(s,"text")).map(function(d){var h,p=d.reduce(function(v,g){return v+(r?g.x:g.y)},0);return ch(ch({},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=nSt(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new Y9({style:ch({x:c,y:u,text:Vc(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?cS*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}(W9),iSt={ConversionTag:tSt,BidirectionalBarAxisText:rSt},oSt=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;lS.forEach(function(n){var r,i=n.key,o=n.shape,a=e.config[i];if(a){var s=new iSt[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&&lS.forEach(function(n){var r=n.key,i=e.container.get(r);i==null||i.update()})},t}(),aSt=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)}}(),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)},U9="data-chart-source-type",Rt=function(t){aSt(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 ru(ru({},k9(this.options,G_t)),{container:this.container})},e.prototype.getSpecOptions=function(){return this.type==="base"||this[H_t]?ru(ru({},this.options),this.getChartOptions()):this.options},e.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new R_t(this.getChartOptions()),this.container.setAttribute(U9,"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 oSt(n.chart,n.options)}),this.bindSizeSensor()},e.prototype.update=function(n){this.options=this.mergeOption(n)},e.prototype.mergeOption=function(n){return Ya({},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(U9)},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(Ut.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},e}(Ax),sSt=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)}}(),lSt=function(t){sSt(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),uS=function(){return uS=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},uS.apply(this,arguments)};function cSt(t){var e=t.options,n=e.stack,r=e.tooltip,i=e.xField;if(!n)return t;var o=yy.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){e[s]&&(a=!0,pt(e,[s,"stack"],uS({y1:"y"},typeof n=="object"?n:{})))}),a&&!q_(r)&&!r&&pt(e,"tooltip",{title:i,items:[{channel:"y"}]}),t}function Fe(t){return zt(cSt)(t)}function uSt(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 fSt(t){uSt(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 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="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 dSt},e}(Rt),iu=function(){return iu=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},iu.apply(this,arguments)};function V9(t){var e=function(n){var r=n.options;ge(r,"children.length")>1&&pt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=ge(i,"y.domain",[]);if(o&&c.length&&Vt(a)){var u="domainMax",f=a.map(function(d){var h;return iu(iu({originData:iu({},d)},K_(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(iu({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return zt(e,Fe,Xt)(t)}var vSt=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],g=r[3],y=(p[1]-h[1])/2,m=n.document,b=m.createElement("g",{}),x=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],[v[0]-d,h[1]+y],g],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=m.createElement("polygon",{style:{points:[[h[0]-d,h[1]+y],p,v,[v[0]-d,h[1]+y]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),O=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],p,[h[0]+d,h[1]+y]],fill:o,fillOpacity:l-.2}});return b.appendChild(x),b.appendChild(w),b.appendChild(O),b}};WD("shape.interval.bar25D",t)},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)}}();vSt();var ySt=function(t){gSt(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 V9},e}(Rt),mSt=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,g=v.createElement("g",{}),y=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 g.appendChild(m),g.appendChild(y),g.appendChild(b),g}};WD("shape.interval.column25D",t)},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)}}();mSt();var xSt=function(t){bSt(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 V9},e}(Rt);function wSt(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(!ge(l,"colorField")){var c=ge(l,"yField");pt(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 ge(c,"y.key")||l.forEach(function(f,d){if(!ge(f,"scale.y.key")){var h="child".concat(d,"Scale");pt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(pt(f,"scale.y.independent",!1),v.forEach(function(g){pt(g,"scale.y.key",h)})),!u&&a.length>0&&ge(f,"scale.y.independent")===void 0&&(u=!0,pt(f,"scale.y.independent",!1),a.forEach(function(g){pt(g,"scale.y.key",h)}))}}),r};return zt(e,n,Fe,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)}}(),X9=function(t){OSt(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 wSt},e}(Rt);function _St(t){var e=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||pt(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?pt(a,"transform",[]):pt(a,"transform",[{type:"symmetryY"}])),!f&&u&&pt(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(P9(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&&(pt(a,"type","spaceFlex"),pt(a,"ratio",[1,1]),pt(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||pt(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 SSt=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=function(t){SSt(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 _St},e}(Rt);function MSt(t){return zt(Fe,Xt)(t)}var PSt=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)}}(),ASt=function(t){PSt(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 MSt},e}(Rt),Wa=function(){return Wa=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},Wa.apply(this,arguments)};function CSt(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(Vt(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 Wa(Wa({},f),(d={},d[i]=1,d))});pt(r,"data",u),a&&pt(r,"label",Wa(Wa({},a),{formatter:function(){return 0}})),s!==!1&&pt(r,"tooltip",Wa(Wa({},s),{items:[function(f){return{name:f[l],value:0}}]}))}}return n};return zt(e,Xt)(t)}var TSt=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)}}(),kSt=function(t){TSt(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 CSt},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="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 LSt},e}(Rt);function jSt(t){var e=function(n){return pt(n,"options.coordinate",{type:ge(n,"options.coordinateType","polar")}),n};return zt(e,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="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 jSt},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)},FSt="__stock-range__",RSt="trend",BSt="up",zSt="down";function YSt(t){var e=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=Jc(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[RSt]=l[c]<=l[u]?BSt:zSt,l[FSt]=[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=Jc(r.options.children,function(h,p){var v=p===0;return $o($o({},h),{tooltip:{title:function(g){return g[o]instanceof Date?g[o].toLocaleString():g[o]},items:[{field:f},{field:d},{field:c},{field:u}]},encode:$o($o({},h.encode||{}),{y:v?[f,d]:[c,u],color:function(g){return Math.sign(g[u]-g[c])}}),style:$o($o({},h.style||{}),{lineWidth:v?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&pt(r,"options.scale.color.range[0]",s),l&&pt(r,"options.scale.color.range[2]",l),r};return zt(e,n,Xt)(t)}var WSt=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)}}(),GSt=["#26a69a","#999999","#ef5350"],HSt=function(t){WSt(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:GSt},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 YSt},e}(Rt);function USt(t){return zt(Fe,Xt)(t)}var VSt=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){VSt(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 USt},e}(Rt);function qSt(t){return zt(Fe,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)}}(),ZSt=function(t){KSt(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 qSt},e}(Rt);function QSt(t){return zt(Fe,Xt)(t)}var JSt=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)}}(),tEt=function(t){JSt(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 QSt},e}(Rt),fS=function(){return fS=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},fS.apply(this,arguments)};function eEt(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,fS({},s)),n};return zt(e,Fe,Xt)(t)}var nEt=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){nEt(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 eEt},e}(Rt),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)};function iEt(t){var e=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return pt(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,dS({},l)),r};return zt(e,n,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)}}(),aEt=function(t){oEt(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 iEt},e}(Rt);function sEt(t){return zt(Xt)(t)}var lEt=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)}}(),cEt=function(t){lEt(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 sEt},e}(Rt),hS="__start__",ou="__end__",pS="__waterfall_value__",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)},uEt=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 fEt(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[hS]=0,c[ou]=c[s],c[pS]=c[s];else{var d=(f=l[ou])!==null&&f!==void 0?f:l[s];c[hS]=d,c[ou]=d+c[s],c[pS]=l[ou]}return c},[]),Object.assign(i,{yField:[hS,ou]})),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=uEt([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[ou]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:vS({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return zt(e,n,Fe,Xt)(t)}var dEt=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){dEt(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:pS,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 fEt},e}(Rt);function pEt(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=ge(s,"[0].transform[0]",{});return tu(a)?(BR(u,{thresholds:Nxt(bOt(i.length,a)),y:c}),n):(tu(o)&&BR(u,{thresholds:o,y:c}),n)};return zt(e,Fe,Xt)(t)}var vEt=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)}}(),gEt=function(t){vEt(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 pEt},e}(Rt);function yEt(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 mEt=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)}}(),bEt=function(t){mEt(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 yEt},e}(Rt);function xEt(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 wEt=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){wEt(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 xEt},e}(Rt);function _Et(t){var e=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(Vt(i))i.length>0?pt(r,"data",{value:i,transform:o}):delete r.children;else if(ge(i,"type")==="fetch"&&ge(i,"value")){var a=ge(i,"transform");Vt(a)?pt(i,"transform",a.concat(o)):pt(i,"transform",o)}return 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)}}(),EEt=function(t){SEt(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 _Et},e}(Rt),_i=function(){return _i=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},_i.apply(this,arguments)},wy=["#f0efff","#5B8FF9","#3D76DD"];function gS(t,e,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=Jc(t,function(s){var l,c,u=ge(s,[e]);if(ROt(u))return[];if(A9(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[e]=f,l)}return Vt(u)?(o=!0,i=Math.max(i,u.length),Jc(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 _i({index:0},s)}),i]:[a,i]}function yS(t,e){return new Array(t).fill("").map(function(n,r){return Vt(e)?e[r%e.length]:e})}function MEt(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,g=o.data,y=gS(g,l,p),m=y[0],b=y[1],x=gS(g,u,p,!1),w=x[0],O=x[1],_=gS(g,d,p,!1),S=_[0],E=_[1],M=ge(a,[l],wy[0]),P=ge(a,[u],wy[1]),T=ge(a,[d],wy[2]),A=[yS(b,M),yS(O,P),yS(E,T)].flat();return i.options.children=Jc(i.options.children,function(C,k){var N=[m,w,S][k],j=[l,u,d][k];return _i(_i({},C),{data:N,encode:_i(_i({},C.encode||{}),{x:p,y:j,color:function(L){var I=L.index,D=tu(I)?"".concat(j,"_").concat(I):j;return v?ge(v,[j,I],D):D}}),style:_i(_i({},C.style||{}),{zIndex:function(L){return-L[j]}}),labels:k!==0?Jc(C.labels,function(L){return _i(_i({},L),{text:j})}):void 0})}),i.options.scale.color.range=A,i.options.legend.color.itemMarker=function(C){return v&&jOt(v==null?void 0:v[d],C)||(C==null?void 0:C.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&pt(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 Ya(d[p],h)}),i};return zt(e,n,r,fSt,Xt)(t)}var PEt=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)}}(),AEt=function(t){PEt(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:wy}},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 MEt},e}(Rt);function CEt(t){var e=function(n){var r=n.options.data;return n.options.data={value:r},n};return zt(e,Fe,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)}}(),kEt=function(t){TEt(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 CEt},e}(Rt);function LEt(t){var e=function(n){var r=n.options.percent;return tu(r)&&pt(n,"options.data",r),n};return zt(e,Fe,Xt)(t)}var NEt=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)}}(),IEt=function(t){NEt(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 LEt},e}(Rt);function jEt(t){return zt(Fe,Xt)(t)}var $Et=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)}}(),DEt=function(t){$Et(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 jEt},e}(Rt);function FEt(t){var e=function(n){var r=n.options,i=r.data;return i&&pt(r,"data",{value:i}),n};return zt(e,Fe,Xt)(t)}var REt=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)}}(),BEt=function(t){REt(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 FEt},e}(Rt),Js=function(){return Js=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},Js.apply(this,arguments)};function zEt(t){var e=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=tu(a)?a/(2*Math.PI)*360:-90,u=tu(s)?(Number(s)+c)/180*Math.PI:Math.PI;return pt(i,["options","coordinate"],Js(Js({},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||pt(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=ge(l,"y.domain",[]);return a&&s.unshift(Js({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:Js(Js({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return zt(e,n,r,Fe,Xt)(t)}var YEt=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)}}(),WEt=function(t){YEt(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 zEt},e}(Rt);function GEt(t){return zt(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)}}(),UEt=function(t){HEt(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 GEt},e}(Rt),Oy=function(){return Oy=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},Oy.apply(this,arguments)};function VEt(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 Oy(Oy({},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 pt(r,"children",l),r.violinType==="polar"&&pt(r,"coordinate",{type:"polar"}),pt(r,"violinType",void 0),n};return zt(e,Fe,Xt)(t)}var XEt=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)}}(),qEt=function(t){XEt(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 VEt},e}(Rt),uh=function(){return uh=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},uh.apply(this,arguments)},KEt=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 ZEt(t){var e=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){pt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(F_(c))return o;var u=Vt(ge(c,[0]))?c:[c,c];return l.forEach(function(f,d){pt(f,"data",KEt([],u[d].map(function(h){return uh({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||pt(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?H9:u,d=a.paddingLeft,h=d===void 0?H9:d,p=a.axis;pt(a,"axisText",uh(uh({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],g=s[1];if(l==="vertical")pt(a,"direction","col"),pt(a,"paddingLeft",h),pt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),pt(v,"paddingBottom",G9),pt(g,"paddingTop",G9),pt(g,"axis",{x:{position:"top"}}),pt(g,"scale",{y:{range:[0,1]}});else{pt(a,"paddingBottom",f),pt(v,"scale",{y:{range:[0,1]}});var y=v.paddingRight,m=y===void 0?cS:y,b=g.paddingLeft,x=b===void 0?cS:b;pt(v,"paddingRight",m),pt(v,"axis",{x:{position:"right"}}),pt(g,"paddingLeft",x)}return o};return zt(e,n,r,i,Fe,Xt)(t)}var QEt=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){QEt(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 ZEt},e}(Rt),tl;(function(t){t.color="key",t.d="path"})(tl||(tl={}));function tMt(t){var e=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return Vt(i)&&(pt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[tl.color,tl.d]}]}),pt(r,"colorField",o),pt(r,["children","0","encode","d"],tl.d)),pt(n,"options",K_(r,["sizeField","setsField"])),n};return zt(e,Xt)(t)}var eMt=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)}}(),nMt=function(t){eMt(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:tl.color,d:tl.d}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return tMt},e}(Rt);function rMt(t){var e=function(n){return n};return zt(e,Xt)(t)}var iMt=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)}}(),oMt=function(t){iMt(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 rMt},e}(Rt),aMt={Base:lSt,Line:ASt,Column:xSt,Pie:kSt,Area:pSt,Bar:ySt,DualAxes:X9,Funnel:ESt,Scatter:ISt,Radar:DSt,Rose:cEt,Stock:HSt,TinyLine:XSt,TinyArea:ZSt,TinyColumn:tEt,TinyProgress:rEt,TinyRing:aEt,Waterfall:hEt,Histogram:gEt,Heatmap:bEt,Box:OEt,Sankey:EEt,Bullet:AEt,Gauge:kEt,Liquid:IEt,WordCloud:DEt,Treemap:BEt,RadialBar:WEt,CirclePacking:UEt,Violin:qEt,BidirectionalBar:JEt,Venn:nMt,Mix:X9,Sunburst:oMt},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)},q9=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},el=K.forwardRef(function(t,e){var n=t.chartType,r=n===void 0?"Base":n,i=q9(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=q9(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=n_t(aMt[r],h),v=p.chart,g=p.container;return K.useImperativeHandle(e,function(){return v.current}),K.createElement(ymt,{errorTemplate:d},u&&K.createElement(vmt,{loadingTemplate:f}),K.createElement("div",mS({className:c,style:a,ref:g},l)))}),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)},sMt=function(t){return K.createElement(el,bS({},t,{chartType:"Area"}))};const lMt=sMt;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)},cMt=function(t){return K.createElement(el,xS({},t,{chartType:"Bar"}))};const uMt=cMt;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)},fMt=function(t){return K.createElement(el,wS({},t,{chartType:"Column"}))};const dMt=fMt;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)},hMt=function(t){return K.createElement(el,OS({},t,{chartType:"DualAxes"}))};const pMt=hMt;var _S=function(){return _S=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},_S.apply(this,arguments)},vMt=function(t){return K.createElement(el,_S({},t,{chartType:"Line"}))};const gMt=vMt;var 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)},yMt=function(t){return K.createElement(el,SS({},t,{chartType:"Pie"}))};const mMt=yMt;var ES=function(){return ES=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},ES.apply(this,arguments)},bMt=function(t){return K.createElement(el,ES({},t,{chartType:"Scatter"}))};const xMt=bMt,{booleanField:_y}=tE,wMt={isStack:t=>_y(tt({name:"isStack",title:"isStack"},t)),smooth:t=>_y(tt({name:"smooth",title:"smooth"},t)),isPercent:t=>_y(tt({name:"isPercent",title:"isPercent"},t)),isGroup:t=>_y(tt({name:"isGroup",title:"isGroup"},t)),size:()=>({size:{title:St("Size"),type:"object","x-decorator":"FormItem","x-component":"Space",properties:{type:{"x-component":"Select","x-component-props":{allowClear:!1},default:"ratio",enum:[{label:St("Aspect ratio"),value:"ratio"},{label:St("Fixed height"),value:"fixed"}]},fixed:{type:"number","x-component":"InputNumber","x-component-props":{min:0,addonAfter:"px"},"x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'fixed'}}"}}}]},ratio:{type:"object","x-component":"Space","x-reactions":[{dependencies:[".type"],fulfill:{state:{visible:"{{$deps[0] === 'ratio'}}"}}}],properties:{width:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Width"),min:1}},colon:{type:"void","x-component":"Text","x-component-props":{children:":"}},height:{type:"number","x-component":"InputNumber","x-component-props":{placeholder:St("Height"),min:1}}}}}}})},OMt=t=>e=>{var c,u;const{size:n={}}=e;let{height:r}=e;!r&&n.type==="fixed"&&(r=n.fixed);const{service:i}=K.useContext(ri),o=K.useRef(null),[a,s]=K.useState(0);K.useEffect(()=>{var p,v;const f=o.current;if(!f||i.loading===!0||r)return;let d=0;n.type==="ratio"&&((p=n.ratio)!=null&&p.width)&&((v=n.ratio)!=null&&v.height)&&(d=n.ratio.height/n.ratio.width);const h=new ResizeObserver(g=>{g.forEach(y=>{if(d){s(y.contentRect.width*d);return}s(y.contentRect.height)})});return h.observe(f),()=>h.disconnect()},[i.loading,r,n.type,(c=n.ratio)==null?void 0:c.width,(u=n.ratio)==null?void 0:u.height]);const l=r||a;return Y.jsx("div",{ref:o,style:l?{height:`${l}px`}:{},children:Y.jsx(t,tt(tt({},e),l?{height:l}:{}))})};class nl extends jy{constructor({name:n,title:r,Component:i,config:o}){super({name:n,title:r,Component:OMt(i),config:["xField","yField","seriesField","size",...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(wMt)}getProps({data:n,general:r,advanced:i,fieldProps:o}){const a=o[r.xField],s=o[r.yField],l=o[r.seriesField];return tt(ht(tt(tt({legend:{color:{itemLabelText:u=>{const f=l==null?void 0:l.transformer;return f?f(u.label):u.label}}},tooltip:{title:u=>{const{[r.xField]:f}=u;return a!=null&&a.transformer?a.transformer(f):f},items:[u=>{const{[r.xField]:f,[r.yField]:d,[r.seriesField]:h}=u;let p="";return h?p=l.transformer?l.transformer(h):h:p=(s==null?void 0:s.label)||r.yField,{name:p,value:s!=null&&s.transformer?s.transformer(d):d}}]},axis:{x:{labelFormatter:u=>{const f=a==null?void 0:a.transformer;return f?f(u):u}},y:{labelFormatter:u=>{const f=s==null?void 0:s.transformer;return f?f(u):u}}},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://ant-design-charts-next.antgroup.com/examples#statistics-${this.name}`}}}class _Mt extends nl{constructor(){super({name:"pie",title:"Pie Chart",Component:mMt});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=r.angleField,s=o[a]||{};if(n.some(f=>f[a]<0)){const f=Math.min(...n.map(h=>h[a]));n=n.map(h=>ht(tt({},h),{[a]:h[a]-f}));const d=s.transformer;s.transformer=h=>{const p=h+f;return d?d(p):p}}const c=super.getProps({data:n,general:r,advanced:i,fieldProps:o}),u={items:[f=>{const{[r.colorField]:d,[a]:h}=f,p=d||(s==null?void 0:s.label)||a,v=s==null?void 0:s.transformer;return{name:p,value:v?v(h):h}}]};return ht(tt({},c),{tooltip:i.tooltip||u})}}class SMt extends nl{constructor(){super({name:"dualAxes",title:"Dual Axes Chart",Component:pMt});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 ht(tt({},rn.omit(a,["legend","tooltip","yField"])),{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 EMt=[new nl({name:"line",title:"Line Chart",Component:gMt,config:["smooth","isStack"]}),new nl({name:"area",title:"Area Chart",Component:lMt,config:["smooth",{property:"isStack",defaultValue:!0},"isPercent"]}),new nl({name:"column",title:"Column Chart",Component:dMt,config:["isGroup","isStack","isPercent"]}),new nl({name:"bar",title:"Bar Chart",Component:uMt,config:["isGroup","isStack","isPercent"]}),new _Mt,new SMt,new nl({name:"scatter",title:"Scatter Chart",Component:xMt})];class Sy extends z.Plugin{constructor(){super(...arguments);ni(this,"charts",new AB)}load(){return Nn(this,null,function*(){this.charts.setGroup("Built-in",[...EMt,...e7]),this.app.addComponents({ChartV2BlockInitializer:Qz,ChartV2BlockDesigner:qz,ChartV2Block:Xz}),this.app.schemaInitializerManager.add(JS),this.app.schemaInitializerManager.add(Zz),this.app.schemaInitializerManager.add(XS),this.app.schemaInitializerManager.add(Cz),this.app.schemaInitializerManager.add(KS),this.app.schemaInitializerManager.add(jz);const n=this.app.schemaInitializerManager.get("page:addBlock");n==null||n.add("dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"}),this.app.schemaInitializerManager.addItem("mobile:addBlock","dataBlocks.chartV2",{title:St("Charts"),Component:"ChartV2BlockInitializer"})})}}ct.Chart=jy,ct.ChartConfigContext=Mi,ct.default=Sy,Object.defineProperties(ct,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -8,13 +8,13 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.3.0-alpha.20240724142600",
11
+ "@nocobase/client": "1.3.0-alpha.20240807100243",
12
12
  "dayjs": "1.11.10",
13
13
  "@formily/react": "2.3.0",
14
14
  "@formily/shared": "2.3.0",
15
15
  "lodash": "4.17.21",
16
- "@nocobase/cache": "1.3.0-alpha.20240724142600",
17
- "@nocobase/server": "1.3.0-alpha.20240724142600",
16
+ "@nocobase/cache": "1.3.0-alpha.20240807100243",
17
+ "@nocobase/server": "1.3.0-alpha.20240807100243",
18
18
  "react": "18.2.0",
19
19
  "@emotion/css": "11.11.2",
20
20
  "@ant-design/icons": "5.2.6",
@@ -22,9 +22,9 @@ module.exports = {
22
22
  "antd": "5.12.8",
23
23
  "@formily/antd-v5": "1.1.9",
24
24
  "@formily/core": "2.3.0",
25
- "@nocobase/utils": "1.3.0-alpha.20240724142600",
25
+ "@nocobase/utils": "1.3.0-alpha.20240807100243",
26
26
  "react-i18next": "11.18.6",
27
27
  "sequelize": "6.35.2",
28
- "@nocobase/actions": "1.3.0-alpha.20240724142600",
29
- "@nocobase/database": "1.3.0-alpha.20240724142600"
28
+ "@nocobase/actions": "1.3.0-alpha.20240807100243",
29
+ "@nocobase/database": "1.3.0-alpha.20240807100243"
30
30
  };
@@ -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-07-24T14:35:56.036Z"}
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-08-07T10:13:24.321Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-visualization",
3
- "version": "1.3.0-alpha.20240724142600",
3
+ "version": "1.3.0-alpha.20240807100243",
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.",
@@ -34,7 +34,7 @@
34
34
  "@nocobase/test": "1.x",
35
35
  "@nocobase/utils": "1.x"
36
36
  },
37
- "gitHead": "28b0027addee28c6f41a974512d07e396012dd77",
37
+ "gitHead": "540c3fe4cfb7c20de0e6639f935a98b736d7b754",
38
38
  "keywords": [
39
39
  "Blocks"
40
40
  ]