@visactor/react-vchart 2.0.13-alpha.7 → 2.0.13-alpha.8
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.
package/build/index.js
CHANGED
|
@@ -85786,220 +85786,8 @@
|
|
|
85786
85786
|
return reactIs_production_min;
|
|
85787
85787
|
}
|
|
85788
85788
|
|
|
85789
|
-
|
|
85790
|
-
|
|
85791
|
-
/**
|
|
85792
|
-
* @license React
|
|
85793
|
-
* react-is.development.js
|
|
85794
|
-
*
|
|
85795
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
85796
|
-
*
|
|
85797
|
-
* This source code is licensed under the MIT license found in the
|
|
85798
|
-
* LICENSE file in the root directory of this source tree.
|
|
85799
|
-
*/
|
|
85800
|
-
var hasRequiredReactIs_development;
|
|
85801
|
-
function requireReactIs_development() {
|
|
85802
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
85803
|
-
hasRequiredReactIs_development = 1;
|
|
85804
|
-
if (process.env.NODE_ENV !== "production") {
|
|
85805
|
-
(function () {
|
|
85806
|
-
|
|
85807
|
-
// ATTENTION
|
|
85808
|
-
// When adding new symbols to this file,
|
|
85809
|
-
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
85810
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
85811
|
-
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
85812
|
-
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
85813
|
-
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
85814
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
85815
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
85816
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
85817
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
85818
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
85819
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
85820
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
85821
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
85822
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
85823
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
85824
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
85825
|
-
|
|
85826
|
-
// -----------------------------------------------------------------------------
|
|
85827
|
-
|
|
85828
|
-
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
85829
|
-
var enableCacheElement = false;
|
|
85830
|
-
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
85831
|
-
|
|
85832
|
-
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
85833
|
-
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
85834
|
-
// issues in DEV builds.
|
|
85835
|
-
|
|
85836
|
-
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
85837
|
-
|
|
85838
|
-
var REACT_MODULE_REFERENCE;
|
|
85839
|
-
{
|
|
85840
|
-
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
85841
|
-
}
|
|
85842
|
-
function isValidElementType(type) {
|
|
85843
|
-
if (typeof type === 'string' || typeof type === 'function') {
|
|
85844
|
-
return true;
|
|
85845
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
85846
|
-
|
|
85847
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
85848
|
-
return true;
|
|
85849
|
-
}
|
|
85850
|
-
if (typeof type === 'object' && type !== null) {
|
|
85851
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
85852
|
-
// This needs to include all possible module reference object
|
|
85853
|
-
// types supported by any Flight configuration anywhere since
|
|
85854
|
-
// we don't know which Flight build this will end up being used
|
|
85855
|
-
// with.
|
|
85856
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
85857
|
-
return true;
|
|
85858
|
-
}
|
|
85859
|
-
}
|
|
85860
|
-
return false;
|
|
85861
|
-
}
|
|
85862
|
-
function typeOf(object) {
|
|
85863
|
-
if (typeof object === 'object' && object !== null) {
|
|
85864
|
-
var $$typeof = object.$$typeof;
|
|
85865
|
-
switch ($$typeof) {
|
|
85866
|
-
case REACT_ELEMENT_TYPE:
|
|
85867
|
-
var type = object.type;
|
|
85868
|
-
switch (type) {
|
|
85869
|
-
case REACT_FRAGMENT_TYPE:
|
|
85870
|
-
case REACT_PROFILER_TYPE:
|
|
85871
|
-
case REACT_STRICT_MODE_TYPE:
|
|
85872
|
-
case REACT_SUSPENSE_TYPE:
|
|
85873
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
85874
|
-
return type;
|
|
85875
|
-
default:
|
|
85876
|
-
var $$typeofType = type && type.$$typeof;
|
|
85877
|
-
switch ($$typeofType) {
|
|
85878
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
85879
|
-
case REACT_CONTEXT_TYPE:
|
|
85880
|
-
case REACT_FORWARD_REF_TYPE:
|
|
85881
|
-
case REACT_LAZY_TYPE:
|
|
85882
|
-
case REACT_MEMO_TYPE:
|
|
85883
|
-
case REACT_PROVIDER_TYPE:
|
|
85884
|
-
return $$typeofType;
|
|
85885
|
-
default:
|
|
85886
|
-
return $$typeof;
|
|
85887
|
-
}
|
|
85888
|
-
}
|
|
85889
|
-
case REACT_PORTAL_TYPE:
|
|
85890
|
-
return $$typeof;
|
|
85891
|
-
}
|
|
85892
|
-
}
|
|
85893
|
-
return undefined;
|
|
85894
|
-
}
|
|
85895
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
85896
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
85897
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
85898
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
85899
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
85900
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
85901
|
-
var Memo = REACT_MEMO_TYPE;
|
|
85902
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
85903
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
85904
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
85905
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
85906
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
85907
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
85908
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
85909
|
-
|
|
85910
|
-
function isAsyncMode(object) {
|
|
85911
|
-
{
|
|
85912
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
85913
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
85914
|
-
|
|
85915
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
85916
|
-
}
|
|
85917
|
-
}
|
|
85918
|
-
return false;
|
|
85919
|
-
}
|
|
85920
|
-
function isConcurrentMode(object) {
|
|
85921
|
-
{
|
|
85922
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
85923
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
85924
|
-
|
|
85925
|
-
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
85926
|
-
}
|
|
85927
|
-
}
|
|
85928
|
-
return false;
|
|
85929
|
-
}
|
|
85930
|
-
function isContextConsumer(object) {
|
|
85931
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
85932
|
-
}
|
|
85933
|
-
function isContextProvider(object) {
|
|
85934
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
85935
|
-
}
|
|
85936
|
-
function isElement(object) {
|
|
85937
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
85938
|
-
}
|
|
85939
|
-
function isForwardRef(object) {
|
|
85940
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
85941
|
-
}
|
|
85942
|
-
function isFragment(object) {
|
|
85943
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
85944
|
-
}
|
|
85945
|
-
function isLazy(object) {
|
|
85946
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
85947
|
-
}
|
|
85948
|
-
function isMemo(object) {
|
|
85949
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
85950
|
-
}
|
|
85951
|
-
function isPortal(object) {
|
|
85952
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
85953
|
-
}
|
|
85954
|
-
function isProfiler(object) {
|
|
85955
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
85956
|
-
}
|
|
85957
|
-
function isStrictMode(object) {
|
|
85958
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
85959
|
-
}
|
|
85960
|
-
function isSuspense(object) {
|
|
85961
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
85962
|
-
}
|
|
85963
|
-
function isSuspenseList(object) {
|
|
85964
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
85965
|
-
}
|
|
85966
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
85967
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
85968
|
-
reactIs_development.Element = Element;
|
|
85969
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
85970
|
-
reactIs_development.Fragment = Fragment;
|
|
85971
|
-
reactIs_development.Lazy = Lazy;
|
|
85972
|
-
reactIs_development.Memo = Memo;
|
|
85973
|
-
reactIs_development.Portal = Portal;
|
|
85974
|
-
reactIs_development.Profiler = Profiler;
|
|
85975
|
-
reactIs_development.StrictMode = StrictMode;
|
|
85976
|
-
reactIs_development.Suspense = Suspense;
|
|
85977
|
-
reactIs_development.SuspenseList = SuspenseList;
|
|
85978
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
85979
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
85980
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
85981
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
85982
|
-
reactIs_development.isElement = isElement;
|
|
85983
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
85984
|
-
reactIs_development.isFragment = isFragment;
|
|
85985
|
-
reactIs_development.isLazy = isLazy;
|
|
85986
|
-
reactIs_development.isMemo = isMemo;
|
|
85987
|
-
reactIs_development.isPortal = isPortal;
|
|
85988
|
-
reactIs_development.isProfiler = isProfiler;
|
|
85989
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
85990
|
-
reactIs_development.isSuspense = isSuspense;
|
|
85991
|
-
reactIs_development.isSuspenseList = isSuspenseList;
|
|
85992
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
85993
|
-
reactIs_development.typeOf = typeOf;
|
|
85994
|
-
})();
|
|
85995
|
-
}
|
|
85996
|
-
return reactIs_development;
|
|
85997
|
-
}
|
|
85998
|
-
|
|
85999
|
-
if (process.env.NODE_ENV === 'production') {
|
|
85789
|
+
{
|
|
86000
85790
|
reactIs.exports = requireReactIs_production_min();
|
|
86001
|
-
} else {
|
|
86002
|
-
reactIs.exports = requireReactIs_development();
|
|
86003
85791
|
}
|
|
86004
85792
|
var reactIsExports = reactIs.exports;
|
|
86005
85793
|
|
package/build/index.min.js
CHANGED
|
@@ -21,13 +21,4 @@ let b$=class t extends r${constructor(e){super(z({},t.defaultOptions,e)),this.fi
|
|
|
21
21
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
22
|
PERFORMANCE OF THIS SOFTWARE.
|
|
23
23
|
***************************************************************************** */
|
|
24
|
-
function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i}(i,["className","style","width","height","id"]);return e.useLayoutEffect((()=>{o(!0)}),[]),e.createElement("div",{ref:r,id:null==u?void 0:u.toString(),className:l,style:Object.assign({position:"relative",height:d||"100%",width:c||"100%"},h)},a?e.createElement(t,Object.assign({ref:n,container:r.current},s?s(p):p)):e.createElement(e.Fragment,null))}));return n.displayName=i||t.name,n}const M1=e.createContext(null);M1.displayName="ChartContext";var w1,C1={exports:{}},T1={};var B1,P1={};
|
|
25
|
-
/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-is.development.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/"production"===process.env.NODE_ENV?C1.exports=function(){if(w1)return T1;w1=1;var t,e=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function f(t){if("object"==typeof t&&null!==t){var g=t.$$typeof;switch(g){case e:switch(t=t.type){case s:case r:case n:case c:case d:return t;default:switch(t=t&&t.$$typeof){case l:case o:case h:case p:case u:case a:return t;default:return g}}case i:return g}}}return t=Symbol.for("react.module.reference"),T1.ContextConsumer=o,T1.ContextProvider=a,T1.Element=e,T1.ForwardRef=h,T1.Fragment=s,T1.Lazy=p,T1.Memo=u,T1.Portal=i,T1.Profiler=r,T1.StrictMode=n,T1.Suspense=c,T1.SuspenseList=d,T1.isAsyncMode=function(){return!1},T1.isConcurrentMode=function(){return!1},T1.isContextConsumer=function(t){return f(t)===o},T1.isContextProvider=function(t){return f(t)===a},T1.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},T1.isForwardRef=function(t){return f(t)===h},T1.isFragment=function(t){return f(t)===s},T1.isLazy=function(t){return f(t)===p},T1.isMemo=function(t){return f(t)===u},T1.isPortal=function(t){return f(t)===i},T1.isProfiler=function(t){return f(t)===r},T1.isStrictMode=function(t){return f(t)===n},T1.isSuspense=function(t){return f(t)===c},T1.isSuspenseList=function(t){return f(t)===d},T1.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===r||e===n||e===c||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===u||e.$$typeof===a||e.$$typeof===o||e.$$typeof===h||e.$$typeof===t||void 0!==e.getModuleId)},T1.typeOf=f,T1}():C1.exports=(B1||(B1=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function f(t){if("object"==typeof t&&null!==t){var g=t.$$typeof;switch(g){case e:var f=t.type;switch(f){case s:case r:case n:case c:case d:return f;default:var m=f&&f.$$typeof;switch(m){case l:case o:case h:case p:case u:case a:return m;default:return g}}case i:return g}}}t=Symbol.for("react.module.reference");var m=o,v=a,y=e,_=h,b=s,x=p,S=u,k=i,A=r,M=n,w=c,C=d,T=!1,B=!1;P1.ContextConsumer=m,P1.ContextProvider=v,P1.Element=y,P1.ForwardRef=_,P1.Fragment=b,P1.Lazy=x,P1.Memo=S,P1.Portal=k,P1.Profiler=A,P1.StrictMode=M,P1.Suspense=w,P1.SuspenseList=C,P1.isAsyncMode=function(t){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},P1.isConcurrentMode=function(t){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},P1.isContextConsumer=function(t){return f(t)===o},P1.isContextProvider=function(t){return f(t)===a},P1.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},P1.isForwardRef=function(t){return f(t)===h},P1.isFragment=function(t){return f(t)===s},P1.isLazy=function(t){return f(t)===p},P1.isMemo=function(t){return f(t)===u},P1.isPortal=function(t){return f(t)===i},P1.isProfiler=function(t){return f(t)===r},P1.isStrictMode=function(t){return f(t)===n},P1.isSuspense=function(t){return f(t)===c},P1.isSuspenseList=function(t){return f(t)===d},P1.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===r||e===n||e===c||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===u||e.$$typeof===a||e.$$typeof===o||e.$$typeof===h||e.$$typeof===t||void 0!==e.getModuleId)},P1.typeOf=f}()),P1);var E1=C1.exports;const O1=t=>{let i=[];return e.Children.forEach(t,(t=>{u(t)||(E1.isFragment(t)?i=i.concat(O1(t.props.children)):i.push(t))})),i},R1={onPointerDown:"pointerdown",onPointerUp:"pointerup",onPointerUpOutside:"pointerupoutside",onPointerTap:"pointertap",onPointerOver:"pointerover",onPointerMove:"pointermove",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerOut:"pointerout",onMouseDown:"mousedown",onMouseUp:"mouseup",onMouseUpOutside:"mouseupoutside",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onPinch:"pinch",onPinchStart:"pinchstart",onPinchEnd:"pinchend",onPan:"pan",onPanStart:"panstart",onPanEnd:"panend",onDrag:"drag",onDragStart:"dragstart",onDragEnter:"dragenter",onDragLeave:"dragleave",onDragOver:"dragover",onDragEnd:"dragend",onRightDown:"rightdown",onRightUp:"rightup",onRightUpOutside:"rightupoutside",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchEndOutside:"touchendoutside",onTouchMove:"touchmove",onTouchCancel:"touchcancel",onPress:"press",onPressUp:"pressup",onPressEnd:"pressend",onSwipe:"swipe",onDrop:"drop",onWeel:"wheel",onClick:"click",onDblClick:"dblclick"},I1={onLegendItemHover:"legendItemHover",onLegendItemUnHover:"legendItemUnHover",onLegendItemClick:"legendItemClick",onLegendFilter:"legendFilter",onLegendSelectedDataChange:"legendSelectedDataChange"},L1={onBrushStart:"brushStart",onBrushChange:"brushChange",onBrushEnd:"brushEnd",onBrushClear:"brushClear"},D1={onDataZoomChange:"dataZoomChange"},F1={onPlayerPlay:"playerPlay",onPlayerPause:"playerPause",onPlayerEnd:"playerEnd",onPlayerChange:"playerChange",onPlayerForward:"playerForward",onPlayerBackward:"playerBackward"},j1={onScrollBarChange:"scrollBarChange"},z1=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},I1),L1),F1),D1),j1),{onDimensionHover:"dimensionHover",onDimensionClick:"dimensionClick"}),{onInitialized:"initialized",onRendered:"rendered",onRenderFinished:"renderFinished",onAnimationFinished:"animationFinished",onLayoutStart:"layoutStart",onLayoutEnd:"layoutEnd"}),{onDrill:"drill"}),R1),H1=Object.keys(z1).concat(Object.keys(R1).map((t=>`${t}Filter`))),V1=Object.keys(R1),N1=Object.keys(R1).reduce(((t,e)=>(t[R1[e]]=e,t)),{}),W1=(t,e=R1)=>{const i={};return Object.keys(t).forEach((s=>{e[s]&&t[s]&&(i[s]=t[s])})),i},U1=(t,e,i,s=R1)=>{if(!e&&!i||!t)return!1;const n=i?W1(i,s):null,r=e?W1(e,s):null;return n&&Object.keys(n).forEach((e=>{r&&r[e]&&r[e]===n[e]||t.off(s[e],n[e])})),r&&Object.keys(r).forEach((i=>{if(!n||!n[i]||n[i]!==r[i]){const n=e[`${i}Filter`];n?t.on(s[i],n,r[i]):t.on(s[i],r[i])}})),!0},G1=`${kL}_REACT_TOOLTIP`,Y1=["children","hooks","ref",...H1,"vchartConstructor","vchartConstrouctor","useSyncRender","skipFunctionDiff","onError","onReady","spec","container","options","morphConfig"],$1={morph:!1,enableExitAnimation:!1},X1=(t,e)=>`${t&&t.type&&(t.type.displayName||t.type.name)}-${e}`,K1=e.forwardRef(((t,s)=>{const[n,r]=e.useState(0),a=e.useRef({});e.useImperativeHandle(s,(()=>{var t;return null===(t=a.current)||void 0===t?void 0:t.chart}));const o=!!t.spec,l=e.useRef(!1),h=e.useRef(H(t,Y1)),c=e.useRef(null),d=e.useRef(null),g=!!t.skipFunctionDiff,[f,m]=e.useState(null),v=t=>{let s;o&&t.spec?(s=t.spec,p(t.data)&&(s=Object.assign(Object.assign({},t.spec),{data:t.data}))):s=Object.assign(Object.assign({},h.current),c.current);const n=((t,s,n)=>{let r;if((null==n?void 0:n.tooltipRender)?(r=n.tooltipRender,delete n.tooltipRender):s.tooltipRender&&(r=s.tooltipRender),r){let a;return(null==n?void 0:n.reserveDefaultTooltip)?(a=n.reserveDefaultTooltip,delete n.reserveDefaultTooltip):a=s.reserveDefaultTooltip,Object.assign(Object.assign({},n),{updateElement:(s,n,o)=>{const{changePositionOnly:l}=o;if(!l){if(!a){s.style.width="auto",s.style.height="auto",s.style.minHeight="auto",s.style.padding="0px";for(let t=0;t<s.children.length;t++){const e=s.children[t];e.className!==G1&&"none"!==e.style.display&&(e.style.display="none")}}t(i.createPortal(e.createElement("div",{className:G1},r(s,n,o)),s))}}})}return n})(m,t,s.tooltip);return n&&(s.tooltip=n),s},y=e=>{if(!l.current){if(!a.current||!a.current.chart)return;e&&U1(a.current.chart,t,d.current,z1),r(n+1),t.onReady&&t.onReady(a.current.chart,0===n)}};return e.useEffect((()=>{var e,i,s;const n=o?null:(t=>{const e={};return O1(t.children).map(((t,i)=>{const s=t&&t.type&&t.type.parseSpec;if(s&&t.props){const n=s(u(t.props.componentId)?Object.assign(Object.assign({},t.props),{componentId:X1(t,i)}):t.props);n.isSingle?e[n.specName]=n.spec:(e[n.specName]||(e[n.specName]=[]),e[n.specName].push(n.spec))}})),e})(t);if(!(null===(e=a.current)||void 0===e?void 0:e.chart))return o||(c.current=n),(t=>{var e;const i=new(null!==(e=t.vchartConstructor)&&void 0!==e?e:t.vchartConstrouctor)(v(t),Object.assign(Object.assign({},t.options),{onError:t.onError,autoFit:!0,dom:t.container}));a.current=Object.assign(Object.assign({},a.current),{chart:i}),l.current=!1})(t),a.current.chart&&(U1(a.current.chart,t,d.current,z1),a.current.chart.renderSync({reuse:!1}),y()),void(d.current=t);if(o)return void(W(d.current.spec,t.spec,{skipFunction:g})?d.current.data!==t.data&&(a.current.chart.updateFullDataSync(t.data),y(!0),d.current=t):(a.current.chart.updateSpecSync(v(t),void 0,null!==(i=t.morphConfig)&&void 0!==i?i:$1),y(!0),d.current=t));const r=H(t,Y1);W(r,h.current,{skipFunction:g})&&W(n,c.current,{skipFunction:g})||(h.current=r,c.current=n,a.current.chart.updateSpecSync(v(t),void 0,null!==(s=t.morphConfig)&&void 0!==s?s:$1),y(!0),d.current=t)}),[t]),e.useEffect((()=>()=>{a&&a.current&&a.current.chart&&(a.current.chart.release(),a.current.chart=null),d.current=null,l.current=!0}),[]),e.createElement(M1.Provider,{value:a.current},O1(t.children).map(((t,i)=>{if("string"==typeof t)return null;const s=X1(t,i);return e.createElement(e.Fragment,{key:s},e.cloneElement(t,{updateId:n,componentId:s}))})),f)})),q1=(t,e,i)=>{i&&i.length&&e.vchartConstructor&&e.vchartConstructor.useRegisters(i);const s=A1(K1,t,(t=>e?Object.assign(t,e):t));return s.displayName=t,s},Z1=[nj,Hb,cJ,z0,UH,XH,qH,JH,vJ,p0,eJ,LJ,NZ,f0,p1,jQ,PQ,o0,FJ,IQ],J1=q1("AreaChart",{type:"area",vchartConstructor:mj},[yN,QQ,i0,...Z1]),Q1=q1("BarChart",{type:"bar",vchartConstructor:mj},[LN,QQ,i0,...Z1]);class t2 extends RN{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return e.barWidth=t.barWidth,e.barMaxWidth=t.barMaxWidth,e.barMinWidth=t.barMinWidth,e.barGapInGroup=t.barGapInGroup,e}}var e2,i2,s2,n2,r2;!function(t){t.bar3d="bar3d",t.histogram3d="histogram3d",t.rangeColumn3d="rangeColumn3d",t.pie3d="pie3d",t.wordCloud3d="wordCloud3d",t.funnel3d="funnel3d"}(e2||(e2={})),function(t){t.rect3d="rect3d",t.arc3d="arc3d",t.pyramid3d="pyramid3d"}(i2||(i2={})),function(t){t.bar3d="bar3d",t.rangeColumn3d="rangeColumn3d",t.pie3d="pie3d",t.wordCloud3d="wordCloud3d",t.funnel3d="funnel3d"}(s2||(s2={})),function(t){t.bar3d="bar3d",t.funnel3d="funnel3d",t.transform3d="transform3d",t.pie3d="pie3d"}(n2||(n2={})),function(t){t.bar3d_horizontal="bar3d_horizontal",t.bar3d_vertical="bar3d_vertical",t.bar3d_stack="bar3d_stack",t.rangeColumn3d_horizontal="rangeColumn3d_horizontal",t.rangeColumn3d_vertical="rangeColumn3d_vertical"}(r2||(r2={}));const a2=t=>t.zField||t.series&&t.series.some((t=>t.zField));class o2 extends Uz{constructor(){super(o2.type),this.type="VChart3dPlugin"}onInit(t,e){var i;if(this._is3d=(t=>{return!!t&&("bar3d"===(e=t.type)||"funnel3d"===e||"histogram3d"===e||"pie3d"===e||"rangeColumn3d"===e||"wordCloud3d"===e||a2(t),!0);var e})(e),this._is3d){const{globalInstance:e}=t;e.getCompiler().getStage().set3dOptions(Object.assign({},null===(i=e._option)||void 0===i?void 0:i.options3d))}}onBeforeInitChart(t,e,i){this._is3d&&a2(e)&&(e.layout={type:"layout3d"})}}o2.pluginType="chart",o2.type="VChart3dPlugin";const l2=()=>{Y0(o2),B_(),E_(),__.registerPlugin("ViewTransform3dPlugin",Vb)},h2={label:{name:"label",type:"text"},bar3d:{name:"bar3d",type:"rect3d"}};class c2 extends PN{_transformLabelSpec(t){this._addMarkLabelSpec(t,"bar3d")}}class d2 extends FF{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,length:3})}setDataLabelType(){return"rect"}constructor(t,e){super(t,e),this.type=d2.type,this._markConfig.support3d=!0}setMarkConfig(t){super.setMarkConfig(t),this._markConfig.support3d=!0}}d2.type="rect3d";const u2=()=>{iL.registerMark(d2.type,d2),nw(),tw(),tj(),iL.registerGraphicComponent("rect3d",gf)};class p2 extends EN{constructor(){super(...arguments),this.type=s2.bar3d,this._barMarkName="bar3d",this._barMarkType="rect3d",this.transformerConstructor=c2}}p2.type=s2.bar3d,p2.mark=h2,p2.builtInTheme={bar3d:{bar3d:{style:{length:3}},label:{visible:!1,style:{offset:12,position:"outside"}}}},p2.transformerConstructor=c2;const g2=()=>{iL.registerAnimation("bar3d",((t,e)=>({appear:AN(t,e),enter:bN(t,!1),exit:xN(t,!1),disappear:xN(t)}))),u2(),XH(),UH(),iL.registerSeries(p2.type,p2)};class f2 extends xF{layoutItems(t,e,i,s){this._layoutInit(t,e,i,s);const n={recomputeWidth:this.recomputeWidth,recomputeHeight:this.recomputeHeight};this._layoutNormalItems(e,n);const r={left:this.leftCurrent,top:this.topCurrent,right:this.rightCurrent,bottom:this.bottomCurrent},a=e.filter((t=>"absolute"===t.layoutType)),o=a.filter((t=>"z"===t.layoutOrient));let l={width:0,height:0};o.length&&(l=o[0].getLayoutRect()),this.leftCurrent+=l.width/8,this.rightCurrent-=l.width/8,this.topCurrent+=l.height/8,this.bottomCurrent-=l.height/8;const{regionItems:h,relativeItems:c,relativeOverlapItems:d,allRelatives:u,overlapItems:p}=this._groupItems(e);this.layoutRegionItems(h,c,d,p,n),this._processAutoIndent(h,c,d,p,u,r,n);const g=a.filter((t=>"z"!==t.layoutOrient));this.layoutAbsoluteItems(g);const f=c.filter((t=>"axes"===t.model.specKey&&cz(t.layoutOrient)))[0],m=c.filter((t=>"axes"===t.model.specKey&&dz(t.layoutOrient)))[0];if(f&&o.length){const t=f.getLayoutStartPoint(),e=f.getLayoutRect(),i={x:"left"===m.layoutOrient?t.x+e.width:t.x,y:t.y,width:this._chartLayoutRect.width,height:this._chartLayoutRect.height};o[0].model.directionStr="left"===m.layoutOrient?"r2l":"l2r";const s=f.getLayoutRect(),n=m.getLayoutRect(),r={length:o[0].getLayoutRect().width,width:s.width,height:n.height};f.model.setLayout3dBox&&f.model.setLayout3dBox(r),m.model.setLayout3dBox&&m.model.setLayout3dBox(r),o[0].model.setLayout3dBox&&o[0].model.setLayout3dBox(r),this.layoutZAxisItems(o,i)}}layoutZAxisItems(t,e){t.forEach((t=>{t.absoluteLayoutInRect(e)}))}getItemComputeLayoutRect(t,e){return e||(e={offsetLeft:0,offsetRight:0,offsetTop:0,offsetBottom:0}),{width:this.rightCurrent-this.leftCurrent-t.layoutPaddingLeft-t.layoutPaddingRight-(e.offsetLeft+e.offsetRight),height:this.bottomCurrent-this.topCurrent-t.layoutPaddingTop-t.layoutPaddingBottom-(e.offsetTop+e.offsetBottom)}}_checkAutoIndent(t){const e={top:0,left:0,bottom:0,right:0},i=this._chartViewBox.x2-this._chartViewBox.x1-this.rightCurrent,s=this._chartViewBox.y2-this._chartViewBox.y1-this.bottomCurrent;return t.forEach((t=>{if(!t.getModelVisible()||!t.autoIndent)return;const n="left"===t.layoutOrient||"right"===t.layoutOrient,r=t.getLastComputeOutBounds();n?(e.top=Math.max(e.top,r.y1-this.topCurrent),e.bottom=Math.max(e.bottom,r.y2-s)):(e.left=Math.max(e.left,r.x1-this.leftCurrent),e.right=Math.max(e.right,r.x2-i))})),e}}f2.type="layout3d";const m2=()=>{iL.registerLayout(f2.type,f2)};let v2=class extends IN{constructor(){super(...arguments),this.transformerConstructor=t2,this.type="bar3d",this.seriesType=s2.bar3d}};v2.type="bar3d",v2.seriesType=s2.bar3d,v2.transformerConstructor=t2;const y2=()=>{l2(),m2(),g2(),iL.registerChart(v2.type,v2)},_2=Object.assign(Object.assign({},Wj),{funnel3d:{name:"funnel3d",type:"pyramid3d"},transform3d:{name:"transform3d",type:"pyramid3d"},transformLabel:{name:"transformLabel",type:"text"},outerLabel:{name:"outerLabel",type:"text"},outerLabelLine:{name:"outerLabelLine",type:"rule"}});class b2 extends uX{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel3d"),t.isTransform&&this._addMarkLabelSpec(t,"transform3d","transformLabel")}}class x2 extends lX{_getDefaultStyle(){const t=super._getDefaultStyle();return t.stroke=!1,t}constructor(t,e){super(t,e),this.type=x2.type,this._markConfig.support3d=!0}setMarkConfig(t){super.setMarkConfig(t),this._markConfig.support3d=!0}}x2.type="pyramid3d";const S2=rL(!0);class k2 extends pX{constructor(){super(...arguments),this.type=s2.funnel3d,this._funnelMarkName="funnel3d",this._funnelMarkType="pyramid3d",this._transformMarkName="transform3d",this._transformMarkType="pyramid3d",this.transformerConstructor=b2}initMark(){var t,e,i,s,n,r,a,o;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},k2.mark.funnel3d),{name:this._funnelMarkName,type:this._funnelMarkType}),{themeSpec:null===(t=this._theme)||void 0===t?void 0:t.funnel3d,key:this._seriesField,isSeriesMark:!0},{support3d:!0}),this._spec.isTransform&&(this._funnelTransformMark=this._createMark(Object.assign(Object.assign({},k2.mark.transform3d),{name:this._transformMarkName,type:this._transformMarkType}),{themeSpec:null===(e=this._theme)||void 0===e?void 0:e.transform3d,key:this._seriesField,skipBeforeLayouted:!1,dataView:this._viewDataTransform.getDataView(),dataProductId:this._viewDataTransform.getProductId()})),null===(s=null===(i=this._spec)||void 0===i?void 0:i.outerLabel)||void 0===s?void 0:s.visible){const{line:t}=null!==(n=this._spec.outerLabel)&&void 0!==n?n:{},{line:e}=null!==(a=null===(r=this._theme)||void 0===r?void 0:r.outerLabel)&&void 0!==a?a:{};this._funnelOuterLabelMark.label=this._createMark(k2.mark.outerLabel,{themeSpec:null===(o=this._theme)||void 0===o?void 0:o.outerLabel,key:this._seriesField,markSpec:this._spec.outerLabel}),this._funnelOuterLabelMark.line=this._createMark(k2.mark.outerLabelLine,{themeSpec:e,key:this._seriesField,markSpec:t})}}initMarkStyle(){super.initMarkStyle();const t=this._funnelMark;t&&this.setMarkStyle(t,{z:t=>{if(this._isHorizontal())return 0;const e=this.getPoints(t),i=Math.max(Math.abs(e[0].x-e[1].x),Math.abs(e[2].x-e[3].x));return(this._computeMaxSize()-i)/2}},"normal",sF.Series)}initLabelMarkStyle(t){var e,i;super.initLabelMarkStyle(t),this.setMarkStyle(t,{z:t=>{if(this._isHorizontal())return 0;const e=this.getPoints(t),i=Math.max(Math.abs(e[0].x-e[1].x),Math.abs(e[2].x-e[3].x));return(this._computeMaxSize()-i)/2}},"normal",sF.Series),this._labelMark=t,null===(e=this._funnelOuterLabelMark)||void 0===e||e.label,null===(i=this._funnelOuterLabelMark)||void 0===i||i.line}}k2.type=s2.funnel3d,k2.mark=_2,k2.builtInTheme={funnel3d:S2},k2.transformerConstructor=b2;const A2=()=>{iL.registerMark(x2.type,x2),nw(),qM(),sj(),iL.registerGraphicComponent("pyramid3d",Uf),dU(),kW(),iL.registerSeries(k2.type,k2)};let M2=class extends bV{constructor(){super(...arguments),this.transformerConstructor=tZ,this.type="funnel3d",this.seriesType=s2.funnel3d}};M2.type="funnel3d",M2.seriesType=s2.funnel3d,M2.transformerConstructor=tZ;const w2=()=>{iN(),l2(),m2(),A2(),iL.registerChart(M2.type,M2)};let C2=class extends zq{constructor(){super(...arguments),this.transformerConstructor=Hq,this.type="histogram3d",this.seriesType=s2.bar3d}_setModelOption(){this._modelOption.getDimensionInfo=FV,this._modelOption.getDimensionInfoByValue=zV,this._modelOption.getRectByDimensionData=GV}};C2.type="histogram3d",C2.seriesType=s2.bar3d,C2.transformerConstructor=Hq;const T2=()=>{nN(),tN(),iN(),EV(),PV(),l2(),m2(),g2(),iL.registerChart(C2.type,C2)};class B2 extends bq{transformSpec(t){super.transformSpec(t),t.series.forEach((e=>{"pie3d"===e.type&&(e.angle3d=t.angle3d)}))}}class P2 extends DU{setDataLabelType(){return"arc"}constructor(t,e){super(t,e),this.type=P2.type,this._markConfig.support3d=!0}setMarkConfig(t){super.setMarkConfig(t),this._markConfig.support3d=!0}}P2.type="arc3d";const E2=Object.assign(Object.assign({},Wj),{pie3d:{name:"pie3d",type:"arc3d"},labelLine:{name:"labelLine",type:"path"}});class O2 extends HU{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie3d")}}class R2 extends NU{constructor(){super(...arguments),this.type=s2.pie3d,this._pieMarkName="pie3d",this._pieMarkType="arc3d",this.transformerConstructor=O2}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this._angle3d=null!==(e=null===(t=this._spec)||void 0===t?void 0:t.angle3d)&&void 0!==e?e:-Math.PI/3}initMarkStyle(){super.initMarkStyle();const t=this._pieMark;t&&this.setMarkStyle(t,{beta:()=>this._angle3d},"normal",sF.Series)}initLabelMarkStyle(t,e={}){t&&(super.initLabelMarkStyle(t),this.setMarkStyle(t,{support3d:!0},void 0,sF.Mark))}}R2.type=s2.pie3d,R2.mark=E2,R2.builtInTheme={pie3d:{outerRadius:.6,pie3d:{style:{height:10,fillOpacity:1}},label:{visible:!1,interactive:!0,position:"outside"}}},R2.transformerConstructor=O2;const I2=()=>{iL.registerAnimation("pie3d",((t,e)=>({appear:LU(t,e),enter:OU(t),exit:RU(t),disappear:IU(t)}))),ej(),nw(),OM(),iL.registerGraphicComponent("arc3d",zf),iL.registerMark("arc3d",P2),iL.registerSeries(R2.type,R2)};let L2=class extends xq{constructor(){super(...arguments),this.transformerConstructor=B2,this.type="pie3d",this.seriesType=s2.pie3d}};L2.type="pie3d",L2.seriesType=s2.pie3d,L2.transformerConstructor=B2;const D2=()=>{iN(),l2(),m2(),I2(),iL.registerChart(L2.type,L2)},F2=t=>({custom:iB,customParameters:()=>t,easing:"linear",loop:1/0,duration:6e3});class j2 extends QG{constructor(){super(...arguments),this.type=s2.wordCloud3d}_wordCloudTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudTransformOption()),{postProjection:null!==(t=this._spec.postProjection)&&void 0!==t?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}_wordCloudShapeTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudShapeTransformOption()),{postProjection:null!==(t=this._spec.postProjection)&&void 0!==t?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}initMark(){this._wordMark=this._createMark(QG.mark.word,{groupKey:this._seriesField,isSeriesMark:!0},{support3d:!0})}initMarkStyle(){super.initMarkStyle();const t=this._wordMark;t&&this.setMarkStyle(t,{z:t=>{var e;return null!==(e=t.z)&&void 0!==e?e:0}},"normal",sF.Series)}initAnimation(){var t,e;const i=null!==(t=this._padding)&&void 0!==t?t:{};this._wordMark&&this._wordMark.setAnimationConfig(Zj(null===(e=iL.getAnimationInKey("wordCloud3d"))||void 0===e?void 0:e((()=>{var t;const e=this.getCompiler().getStage(),s=e.width-i.left||0-i.right||0,n=e.height-i.top||0-i.bottom||0,r=Math.max(s,n)/2;return{center:{x:r,y:r,z:null!==(t=this._spec.depth_3d)&&void 0!==t?t:r},r:r}})),Jj("word",this._spec,this._markAttributeContext)))}}j2.type=s2.wordCloud3d,j2.builtInTheme={wordCloud3d:{word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}}};const z2=()=>{dU(),iL.registerAnimation("wordCloud3d",(t=>({appear:F2(t)}))),iL.registerSeries(j2.type,j2)};class H2 extends Kq{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return e.depth_3d=t.depth_3d,e}}let V2=class extends qq{constructor(){super(...arguments),this.transformerConstructor=H2,this.type="wordCloud3d",this.seriesType=s2.wordCloud3d}};V2.type="wordCloud3d",V2.seriesType=s2.wordCloud3d,V2.transformerConstructor=H2;const N2=()=>{l2(),z2(),iL.registerChart(V2.type,V2)},W2={label:{space:0}};class U2{setLayout3dBox(t){this.layout3dBox=t}_afterUpdateAttribute(t,e){const i=uz(this._orient),s=cz(this._orient),n=dz(this._orient);let r=0,a=0;if(!e){const t=this.getRegions();let{x:e,y:i}=t[0].getLayoutStartPoint(),s=e+t[0].getLayoutRect().width,n=i+t[0].getLayoutRect().height;for(let r=1;r<t.length;r++){const a=t[r],{x:o,y:l}=a.getLayoutStartPoint(),{width:h,height:c}=a.getLayoutRect();e=Math.min(e,o),s=Math.max(s,h+o),i=Math.min(i,l),n=Math.max(n,c+l)}r=Math.abs(n-i),a=Math.abs(s-e)}let o=0,l=0;const{width:h,height:c}=this.getLayoutRect();let d={x:0,y:0};s?(d={x:h,y:0},o=r,l=h):n&&(d={x:0,y:c},o=a,l=c);const u=this.layout3dBox?this.layout3dBox.length:0;if(!i){const e=this.getLabelItems(l);return t.grid={length:o},t.start={x:0,y:0},t.text=this._spec.title.text||this._dataFieldText,t.maxWidth=this._getTitleLimit(s),t.items=e,t.grid={type:"line",start:{x:0,y:0},end:d,items:e[0],depth:u,length:o},t}return((t,e)=>{var i;const s=wH(t.getRegions()),{width:n}=t.getLayoutRect(),r=n,a=t.layout3dBox?t.layout3dBox.length:0,o=t.layout3dBox?t.layout3dBox.width:0,l={x:a,y:0},h=t.getLabelItems(r),c={start:{x:0,y:0},end:l,title:{text:t._spec.title.text||t._dataFieldText,maxWidth:t._getTitleLimit(!1)},items:h,scale:t._scale.clone()},d=null!==(i=t.directionStr)&&void 0!==i?i:"r2l";let u=[0,0],p=-Math.PI/2,g=0;return"l2r"===d&&(g=t.layout3dBox.length,u=[0,0,0],p=Math.PI/2),c.z=g,c.alpha=p,c.anchor3d=u,e||(c.grid={type:"line",start:{x:0,y:0},end:l,items:h[0],verticalFactor:t._axisStyle.verticalFactor,depth:o,length:e?0:s.height,alpha:p,z:g,anchor3d:u}),c})(this,e)}}const G2=Object.assign(Object.assign({},h2),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}});class Y2 extends _U{constructor(){super(...arguments),this.type=s2.rangeColumn3d,this._barMarkType="rect3d",this._barName=s2.bar3d}}Y2.type=s2.rangeColumn3d,Y2.mark=G2;const $2=()=>{u2(),XH(),UH(),iL.registerSeries(Y2.type,Y2)};class X2 extends kV{_getDefaultSeriesSpec(t){var e,i;const s=super._getDefaultSeriesSpec(t,["bar3d","barGapInGroup"]);return"horizontal"===t.direction?s.xField=null!==(e=t.xField)&&void 0!==e?e:[t.minField,t.maxField]:s.yField=null!==(i=t.yField)&&void 0!==i?i:[t.minField,t.maxField],s}}let K2=class extends bV{constructor(){super(...arguments),this.transformerConstructor=X2,this.type="rangeColumn3d",this.seriesType=s2.rangeColumn3d}_setModelOption(){this._modelOption.getDimensionInfo=FV,this._modelOption.getDimensionInfoByValue=zV,this._modelOption.getRectByDimensionData=GV}};K2.type="rangeColumn3d",K2.seriesType=s2.rangeColumn3d,K2.transformerConstructor=X2;const q2=()=>{tN(),iN(),EV(),PV(),l2(),m2(),$2(),iL.registerChart(K2.type,K2)},Z2="pictogram",J2="pictogram";var Q2;!function(t){t.pictogram="pictogram"}(Q2||(Q2={}));const t3=Object.assign(Object.assign({},Wj),{pictogram:{name:"pictogram",type:"group"}});class e3 extends SV{_isValidSeries(t){return t===J2}_getDefaultSeriesSpec(t){return super._getDefaultSeriesSpec(t,["type","nameField","valueField","svg","pictogram","defaultFillColor"])}transformSpec(t){super.transformSpec(t),t.region.forEach((t=>{t.coordinate="geo"})),super.transformSeriesSpec(t)}}const i3=new Map;let s3;function n3(t,e){i3.has(t)&&Gb(`svg source key of '${t}' already exists, will be overwritten.`),s3||(s3=new io,wD(s3,"svg",$a));const i=new so(s3);i.parse(e,{type:"svg"}),i3.set(t,i)}function r3(t){i3.has(t)?i3.delete(t):Gb(`map type of '${t}' does not exists.`)}class a3 extends Ej{constructor(){super(...arguments),this.dimensionTooltipTitleCallback=t=>{var e;const i=this.series;return null!==(e=this._getDimensionData(t))&&void 0!==e?e:i.getDatumName(t)},this.markTooltipValueCallback=(t,e)=>{const{measureFields:i}=this._seriesCacheInfo;if(i[0]&&t.data)return t.data[i[0]]},this.markTooltipKeyCallback=t=>{var e;return null===(e=t.data)||void 0===e?void 0:e[this.series.getDimensionField()[0]]}}}const o3="element-highlight-by-graphic-name";class l3 extends cj{constructor(){super(...arguments),this.type=o3,this.handleStart=t=>{if(t&&t.item&&this.isGraphicInMark(t.item)&&(this.options.shouldStart?this.options.shouldStart(t):this._filterByName(t))){const e=this._parseTargetKey(t);this.start(e)}},this.handleReset=t=>{t&&t.item&&this.isGraphicInMark(t.item)&&this.reset()}}_filterByName(t){var e;return!!(null===(e=null==t?void 0:t.node)||void 0===e?void 0:e.name)}_parseTargetKey(t){return t.node.name}start(t){if(u(t))return;const{interaction:e,highlightState:i,blurState:s}=this.options,n=e.getStatedGraphics(this),r=[];this.getMarks().forEach((e=>{var i;null===(i=e.getGraphics())||void 0===i||i.forEach((e=>{e.name===t&&r.push(e)}))})),e.updateStates(this,r,n,i,s),e.setStatedGraphics(this,r)}reset(){const{highlightState:t,blurState:e,interaction:i}=this.options;i.clearAllStatesOfTrigger(this,t,e),i.setStatedGraphics(this,[])}}l3.type=o3;const h3="element-select-by-graphic-name";class c3 extends uj{constructor(){super(...arguments),this.type=h3}start(t){const e=null==t?void 0:t.name;e&&this.getMarks().forEach((t=>{var i;null===(i=t.getGraphics())||void 0===i||i.forEach((t=>{t.name===e&&super.start(t)}))}))}}c3.type=h3;function d3(t){var e;return p(t)&&"none"!==t&&!(null===(e=t.includes)||void 0===e?void 0:e.call(t,"url"))}const u3=t=>{const e=parseFloat(t.strokeWidth);if(!isNaN(e))return e;const i=t.stroke;return i&&d3(i)?1:0},p3=(t,e)=>{var i;const s=null!==(i=t.fill)&&void 0!==i?i:e;return s&&d3(s)?s:void 0},g3=(t,e)=>{var i;const s=null!==(i=t.stroke)&&void 0!==i?i:e;return!(!s||!d3(s))&&s},f3=t=>Object.assign(Object.assign({},t),{x:parseFloat(t.x)||void 0,y:parseFloat(t.y)||void 0,fillStrokeOrder:!1,fill:p3(t),lineWidth:u3(t),stroke:g3(t)}),m3={group:t=>{const e=f3(t);return Object.assign(Object.assign({},e),{visibleAll:!1!==e.visible})},rule:t=>Object.assign(Object.assign({},f3(t)),{x:parseFloat(t.x1),y:parseFloat(t.y1),x1:parseFloat(t.x2),y1:parseFloat(t.y2)}),rect:t=>Object.assign(Object.assign({},f3(t)),{fill:p3(t,"#000"),width:parseFloat(t.width),height:parseFloat(t.height)}),polygon:t=>Object.assign(Object.assign({},f3(t)),{fill:p3(t,"#000"),points:t.points.trim().split(/\s+/).map((t=>{const[e,i]=t.split(",").map(Number);return{x:e,y:i}}))}),line:t=>Object.assign(Object.assign({},f3(t)),{points:t.points.trim().split(/\s+/).map((t=>{const[e,i]=t.split(",").map(Number);return{x:e,y:i}}))}),path:t=>Object.assign(Object.assign({},f3(t)),{path:t.d,fillStrokeOrder:!1,fill:p3(t,"#000")}),arc:t=>{var e;return Object.assign(Object.assign({},f3(t)),{outerRadius:null!==(e=t.r)&&void 0!==e?e:t.ry,x:parseFloat(t.cx),y:parseFloat(t.cy),startAngle:0,endAngle:2*Math.PI,scaleX:parseFloat(t.rx)/parseFloat(t.ry)||1,fill:p3(t,"#000")})},text:(t,e)=>{var i,s;return Object.assign(Object.assign({},f3(t)),{text:e,textAlign:null!==(i=t.textAlign)&&void 0!==i?i:"left",textBaseLine:null!==(s=t.textAnchor)&&void 0!==s?s:"middle",anchor:[0,0],fill:p3(t,"#000")})}},v3=t=>{var e,i;if(!t||!t[0])return{};const{elements:s}=t[0].latestData;if(s&&s.length){s.forEach(((t,e)=>{var i;t[wL]=e,t._uniqueId=`${t.id}-${e}`,t.data=void 0;const{graphicType:s,transform:n}=t,r={visible:"hidden"!==t.attributes.visibility&&"collapse"!==t.attributes.visibility};"text"===t.graphicType?z(r,t._inheritStyle,null===(i=t.parent)||void 0===i?void 0:i._textGroupStyle,t.attributes):"group"!==t.graphicType&&z(r,t._inheritStyle,t.attributes),m3[s]?t._finalAttributes=m3[s](r,t.value):t._finalAttributes=r,n&&(t._finalAttributes.postMatrix=Object.assign({},n))}));const t=s.filter((t=>"text"===t.tagName));for(let n=0;n<t.length;n++){const r=t[n]._uniqueId,a=s.filter((t=>{let e=!1,i=t.parent;for(;i;){if(i._uniqueId===r){e=!0;break}i=i.parent}return e}));if(a&&a.length){const s=null!==(i=null===(e=t[n]._textGroupStyle)||void 0===e?void 0:e.x)&&void 0!==i?i:0;let r=s;for(let t=0;t<a.length;t++){const e=a[t];if("group"===e.graphicType)r=s;else if(e.value&&void 0===e.parent._textGroupStyle.x){const i=a.slice(0,t).reverse().find((t=>"text"===t.graphicType&&t.value));i&&(r+=SL(i.value,i._finalAttributes).width),e._finalAttributes.x=r}}}}}return s};class y3 extends KN{constructor(){super(...arguments),this.type=J2,this._idToMark=new Map}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec(),this.svg=this._spec.svg,this._nameField=this._spec.nameField,this._valueField=this._spec.valueField,this.svg||null===(t=this._option)||void 0===t||t.onError("svg source is not specified !"),this._parsedSvgResult=null===(e=function(t){return i3.get(t)}(this.svg))||void 0===e?void 0:e.latestData,this._parsedSvgResult||null===(i=this._option)||void 0===i||i.onError(`'${this.svg}' is not registered !`)}getDatumCenter(t){return[Number.NaN,Number.NaN]}getDatumName(t){return t.name||t._nameFromParent}getMarksWithoutRoot(){return this.getMarks().filter((t=>t.name&&!t.name.includes("seriesGroup")&&!t.name.includes("root")&&t!==this._pictogramMark))}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.getTransformMatrix=this.getRootMatrix.bind(this),this._markAttributeContext.coordToPosition=this.coordToPosition.bind(this),this._markAttributeContext.dataToPosition=this.dataToPosition.bind(this)}_defaultHoverConfig(t){return{type:"element-highlight-by-graphic-name",trigger:t.trigger,triggerOff:"pointerout",blurState:kF.STATE_HOVER_REVERSE,highlightState:kF.STATE_HOVER}}_defaultSelectConfig(t){const e="multiple"===t.mode,i=p(t.triggerOff)?t.triggerOff:e?["empty","self"]:["empty",t.trigger];return{type:"element-select-by-graphic-name",trigger:t.trigger,triggerOff:i,reverseState:kF.STATE_SELECTED_REVERSE,state:kF.STATE_SELECTED,isMultiple:e}}initMark(){var t;if(this._pictogramMark=this._createMark(y3.mark.pictogram,{groupKey:this.getDimensionField()[0],isSeriesMark:!0,skipBeforeLayouted:!0},{morph:ez(this._spec,y3.mark.pictogram.name)}),this._pictogramMark){this._pictogramMark.setData(this._mapViewData),this._pictogramMark.setUserId(y3.mark.pictogram.name);for(const e of this._mapViewData.getDataView().latestData){const{graphicType:i,name:s,parent:n,id:r,_nameFromParent:a,_uniqueId:o}=e,l=this._createMark({type:i,name:null!=s?s:a},{groupKey:o,isSeriesMark:!1,skipBeforeLayouted:!0,parent:null!==(t=this._idToMark.get(null==n?void 0:n._uniqueId))&&void 0!==t?t:this._pictogramMark},{morph:ez(this._spec,y3.mark.pictogram.name)});l&&(l.setData(this._mapViewData),l.setUserId(o),this._idToMark.set(o,l),"group"!==l.type&&l.setMarkConfig({graphicName:l.name}),l.setTransform([{type:"filter",callback:t=>t._uniqueId===o}]))}this._initLabelMark()}}_initLabelMark(){if(!0!==this._spec.label.visible)return;const t=this._createMark(y3.mark.label,{isSeriesMark:!1,parent:this._pictogramMark,groupKey:"_uniqueId",skipBeforeLayouted:!0});t&&(this._labelMark=t,this._labelMark.setData(this._mapViewData))}initLabelMarkStyle(){this._labelMark&&this.setMarkStyle(this._labelMark,{visible:t=>!!this._validElement(t),x:t=>{var e;return null===(e=this.dataToPosition(t,!0))||void 0===e?void 0:e.x},y:t=>{var e;return null===(e=this.dataToPosition(t,!0))||void 0===e?void 0:e.y},text:t=>t[this.nameField],textAlign:"center",textBaseline:"middle"},kF.STATE_NORMAL,sF.Series)}initMarkStyle(){const{root:t,viewBoxRect:e}=this._parsedSvgResult,i=this._mapViewData.getDataView().latestData;t&&(this.setMarkStyle(this._pictogramMark,m3.group(t.attributes),"normal",sF.Built_In),t.transform&&this.setMarkStyle(this._pictogramMark,{postMatrix:()=>t.transform},"normal",sF.Built_In),e&&this._pictogramMark.setMarkConfig({clip:!0,clipPath:[df(Object.assign(Object.assign({},e),{fill:!0}))]}));for(const t of i){const{_uniqueId:e,_finalAttributes:i}=t,s=this._idToMark.get(e),n=this._validElement(t);s&&(this.setMarkStyle(s,{keepStrokeScale:!0},"normal",sF.Built_In),n?(this.initMarkStyleWithSpec(s,z({},this._spec.pictogram,this._spec[s.name])),this.setMarkStyle(s,i,"normal",sF.Series),s.setPostProcess("fill",((t,e)=>p(t)?t:this._spec.defaultFillColor))):(s.setMarkConfig({interactive:!1}),this.setMarkStyle(s,i,"normal",sF.Built_In)))}this.initLabelMarkStyle()}_validElement(t){return t.name||t._nameFromParent}initTooltip(){this._tooltipHelper=new a3(this),this.getMarksWithoutRoot().forEach((t=>{t&&t.name&&this._tooltipHelper.activeTriggerSet.mark.add(t)}))}dataToPosition(t,e=!1){if(!t)return null;const i=t[this.nameField];if(!i)return null;const s=this.getMarksWithoutRoot().filter((t=>t.name===i));if(!s||0===s.length)return null;let n=new $e;e?s.forEach((t=>{n=n.union(t.getGraphics()[0].globalAABBBounds)})):s.forEach((t=>{n=n.union(t.getProduct().AABBBounds)}));const r={x:(n.x1+n.x2)/2,y:(n.y1+n.y2)/2};if(e){const{x:t,y:e}=this.getLayoutStartPoint();r.x-=t,r.y-=e}return r}coordToPosition(t){if(!t)return null;const{x:e,y:i}=t,s=this.getRootMatrix();if(!s)return null;const n={};return s.getInverse().transformPoint({x:e,y:i},n),n}getRootMatrix(){var t;return null===(t=this.getPictogramRootGraphic())||void 0===t?void 0:t.transMatrix}getPictogramRootGraphic(){return this._pictogramMark.getProduct()}initData(){var t,e;super.initData();const i=i3.get(this.svg);i||null===(t=this._option)||void 0===t||t.onError("no valid svg found!");const s=new so(this._dataSet,{name:`pictogram_${this.id}_data`});MD(this._dataSet,"pictogram",v3),MD(this._dataSet,"lookup",Sj),s.parse([i],{type:"dataview"}).transform({type:"pictogram"}).transform({type:"lookup",options:{from:()=>this.getViewData().latestData,key:"name",fields:this._nameField,set:(t,e)=>{e&&(t.data=e)}}}).transform({type:"lookup",options:{from:()=>this.getViewData().latestData,key:"_nameFromParent",fields:this._nameField,set:(t,e)=>{e&&(t.data=e)}}}),null===(e=this._data)||void 0===e||e.getDataView().target.addListener("change",s.reRunAllTransform),this._mapViewData=new EF(this._option,s)}mapViewDataUpdate(){this._mapViewData.updateData()}onLayoutEnd(){var t;super.onLayoutEnd(),null===(t=this._mapViewData)||void 0===t||t.getDataView().reRunAllTransform()}updateSVGSize(){const{width:t,height:e}=this.getLayoutRect(),i=t/2,s=e/2,n=this.getPictogramRootGraphic();if(n){const r=n.AABBBounds,{x1:a,x2:o,y1:l,y2:h}=n.AABBBounds,c=(a+o)/2,d=(l+h)/2,u=t/r.width(),p=e/r.height(),g=Math.min(u,p);n.scale(g,g,{x:c,y:d}),n.translate(i-c,s-d)}}initEvent(){var t;super.initEvent(),null===(t=this._mapViewData.getDataView())||void 0===t||t.target.addListener("change",this.mapViewDataUpdate.bind(this)),this.event.on(yD.afterMarkLayoutEnd,this.updateSVGSize.bind(this))}handleZoom(t){const{scale:e,scaleCenter:i}=t;if(1===e)return;const s=this.getPictogramRootGraphic();s&&(s.attribute.postMatrix||s.setAttributes({postMatrix:new qe}),s.scale(e,e,i))}handlePan(t){const{delta:e}=t;if(0===e[0]&&0===e[1])return;const i=this.getPictogramRootGraphic();i&&(i.attribute.postMatrix||i.setAttributes({postMatrix:new qe}),i.translate(e[0],e[1]))}getMarkData(t){var e;return null!==(e=t.data)&&void 0!==e?e:{}}getMeasureField(){return[this.valueField]}getDimensionField(){return[this.nameField]}_getSeriesInfo(t,e){const i=this.getDefaultShapeType();return e.map((e=>({key:e,originalKey:e,style:this.getSeriesStyle({data:{[t]:e}}),shapeType:i})))}release(){this._parsedSvgResult=null,this._idToMark.clear(),this._idToMark=null}}y3.type=J2,y3.mark=t3,y3.transformerConstructor=class extends rz{_getDefaultSpecFromChart(t){var e,i,s;const n=null!==(e=super._getDefaultSpecFromChart(t))&&void 0!==e?e:{},r=t.svg,a=null===(s=null===(i=i3.get(r))||void 0===i?void 0:i.latestData)||void 0===s?void 0:s.elements;return a&&a.length&&a.map((t=>t.name)).filter((t=>p(t))).forEach((e=>{t[e]&&(n[e]=t[e])})),n}};const _3=()=>{iL.registerSeries(y3.type,y3),iL.registerImplement("registerSVG",n3),iL.registerImplement("unregisterSVG",r3),iL.registerInteractionTrigger(l3.type,l3),iL.registerInteractionTrigger(c3.type,c3)};let b3=class extends bV{constructor(){super(...arguments),this.transformerConstructor=e3,this.type=Z2,this.seriesType=J2}};b3.type=J2,b3.seriesType=Z2,b3.transformerConstructor=e3;const x3=()=>{iN(),_3(),iL.registerChart(b3.type,b3)};function S3(t,e,i=0){return i>Math.max(e.x1-t.x2,t.x1-e.x2,e.y1-t.y2,t.y1-e.y2)}function k3(t){return{x1:t.x,x2:t.x+t.width,y1:t.y,y2:t.y+t.height}}function A3(t){var e;if(!t||0===t.length)return[];if(1===t.length)return[t[0].rect];const i=t.map((t=>{var e;return Object.assign(Object.assign({},t),{bound:k3(t.rect),anchorCandidates:P3(null!==(e=t.anchors)&&void 0!==e?e:[],t.point,t.rect,t.offset)})})),s=[];s.push(i[0].bound);for(let t=1;t<=i.length-1;t++){const n=i[t],r=n.bound;let a=s.some((t=>S3(t,r)));if(n.anchorCandidates)if(a&&(null===(e=n.anchorCandidates)||void 0===e?void 0:e.length)>0){for(let t=0;t<n.anchorCandidates.length;t++){const e=n.anchorCandidates[t],i={x1:e.x,y1:e.y,x2:e.x+r.x2-r.x1,y2:e.y+r.y2-r.y1,anchor:e};if(!s.some((t=>S3(t,i)))){s.push(i),a=!1;break}}a&&s.push(n.bound)}else s.push(n.bound)}return s.map((t=>function(t){return{x:t.x1,y:t.y1,width:t.x2-t.x1,height:t.y2-t.y1}}(t)))}function M3(t,e,i){const s=t.map((t=>t.pointCoord)),{x1:n,x2:r,y1:a,y2:o}=Ie(s),l=i([(n+r)/2,(a+o)/2]);return l?A3(t.map((t=>{const s=t.rect,n=T3(e,t.pointCoord)?i(function(t,e,i,s=200){const n=5621/s;let r=e;for(let e=1;e<=n;e++){const e=xi(r,s,i);if(!T3(t,e))return[e.x,e.y];r=[e.x,e.y]}return e}(e,[t.pointCoord.x,t.pointCoord.y],w3(C3(t.point,l)))):t.point;n&&(s.x=n.x,s.y=n.y);const r=w3(C3(t.point,l));let a;const o=[];return r>=-45&&r<45?(a="top",o.push("left","right")):r>=45&&r<135?a="right":r>=-135&&r<-45?(a="left",o.push("left")):(a="bottom",o.push("left","right")),t.anchors=o,t.offset=20,t.rect=B3(t.rect,a,0),t}))):[]}function w3(t){return t>180?t-360:t}function C3(t,e){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI+90}function T3(t,e){for(let i=0;i<t.length;i++)if(bi(e,t[i]))return!0;return!1}function B3(t,e,i=0){const s=Object.assign({},t);return"top"===e?(s.x-=t.width/2,s.y-=i+t.height/2):"bottom"===e?(s.x-=t.width/2,s.y+=i-t.height/2):"left"===e?(s.x-=i+t.width,s.y-=t.height/2):"right"===e&&(s.x+=i,s.y-=t.height/2),s}function P3(t,e,i,s=0){const n=[];return t.forEach((t=>{const{x:r,y:a}=B3(Object.assign(Object.assign({},e),{width:i.width,height:i.height}),t,s);n.push({x:r,y:a})})),n}const E3={visible:!0,offset:12,position:"top",space:10,nameLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:10}},valueLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:10}},background:{visible:!0,padding:{top:4,bottom:4,left:6,right:6},style:{cornerRadius:2,lineWidth:1,fill:"white",stroke:"grey"}},leader:{visible:!1,style:{lineWidth:1,stroke:"black"}}};class O3 extends fH{_getDefaultSpecFromChart(){return E3}}class R3 extends _H{constructor(){super(...arguments),this.type="mapLabel",this.name=" mapLabel",this.specKey="mapLabel",this.transformerConstructor=O3,this.layoutType="none",this.layoutZIndex=eF.MarkPoint,this._activeDatum=[]}static getSpecInfo(t){return xj(t,this.specKey,this.type,(t=>t.visible&&p(t.seriesId)))}setAttrFromSpec(){var t,e,i,s;this.nameField=null!==(t=this._spec.nameField)&&void 0!==t?t:null===(e=this._series)||void 0===e?void 0:e.getDimensionField()[0],this.valueField=null!==(i=this._spec.valueField)&&void 0!==i?i:null===(s=this._series)||void 0===s?void 0:s.getMeasureField()[0]}created(){super.created(),0!=!!this._spec.visible&&(this.initRelatedInfo(),this.initData(),this.initEvent())}initRelatedInfo(){var t,e,i,s,n,r,a,o;this._series=this._option.getSeriesInUserIdOrIndex([this._spec.seriesId])[0],"outer"===this._spec.position&&(this._map=null===(e=null===(t=this._regions[0].getSeriesInType("map")[0])||void 0===t?void 0:t.getMapViewData())||void 0===e?void 0:e.latestData,this._longitudeField=null===(n=null===(s=(i=this._regions[0]).getSpec)||void 0===s?void 0:s.call(i))||void 0===n?void 0:n.longitudeField,this._latitudeField=null===(o=null===(a=(r=this._regions[0]).getSpec)||void 0===a?void 0:a.call(r))||void 0===o?void 0:o.latitudeField)}initData(){const t=this._series;if(!t)return;const e=t.getViewData();if(e){const t=new so(this._option.dataSet,{name:`${this.name}_data`});t.parse([e],{type:"dataview"}),t.transform({type:"copyDataView",level:FD.copyDataView},!1),this._data=new EF(this._option,t),t.target.addListener("change",(()=>{"hover"!==this._spec.trigger&&"click"!==this._spec.trigger&&(this._activeDatum=this._data.getLatestData())}))}}initEvent(){this.event.on("zoom",{filter:t=>this._isRelativeModel(t.model)},(()=>(this.handleZoom(),!0))),this.event.on("panmove",{filter:t=>this._isRelativeModel(t.model)},(t=>(this.handlePan(t),!0)));const t=this._spec.trigger;"none"!==t&&("hover"===t?(this.event.on("element-highlight:start",(t=>{const e=t.graphics[0];this._isRelativeSeries(e)&&this._updateDatum(pD(e))})),this.event.on("element-highlight:reset",(t=>{this._activeDatum&&this._updateDatum(null)}))):"click"===t&&(this.event.on("element-select:start",(t=>{const e=t.graphics[0];this._isRelativeSeries(e)&&this._updateDatum(pD(e))})),this.event.on("elementSelectReset",(t=>{this._activeDatum&&this._updateDatum([])}))))}handlePan(t){const{delta:e}=t;this._markerComponents.forEach((t=>{t.translate(e[0],e[1])}))}handleZoom(){this._updateMarkerLayoutAttribute()}_updateDatum(t){this._activeDatum=t,this._markerComponents.forEach(((t,e)=>{var i;const s=null===(i=this._data)||void 0===i?void 0:i.getLatestData()[e];this._activeDatum.includes(s)?t.setAttribute("visible",!0):t.setAttribute("visible",!1)}))}dataToPosition(t){return this._series.dataToPosition(t)}updateLayoutAttribute(){var t;const e=null===(t=this._data)||void 0===t?void 0:t.getLatestData();e&&0!==e.length&&(super.updateLayoutAttribute(),this._updateMarkerLayoutAttribute())}_updateMarkerLayoutAttribute(){var t;const e=[],i=[];this._markerComponents||(this._markerComponents=null===(t=this._data)||void 0===t?void 0:t.getLatestData().map(((t,e)=>{var i;const s=new pR({position:void 0,animation:!1});return s&&(s.name=`${this.name}_marker_${e}`,s.id=null!==(i=this._spec.id)&&void 0!==i?i:`${this.name}_marker_${this.id}`,s.setAttribute("zIndex",this.layoutZIndex)),s}))),this._markerComponents.forEach(((t,s)=>{const{pairInfo:n,contentMarks:r}=this._evaluateMarker(this._data.getLatestData()[s],s);n&&e.push(n),r&&i.push(r)}));const s=this._layoutLabels(e);this._layoutMarkers(s,i),this._renderMarkers()}_evaluateMarker(t,e){var i,s,n,r,a,o,l,h,c,d,u,g,f,m;let v=0,y=0,_=0,b=0,x=0;const S=this._spec.position||"top",k=this._spec.offset,A=$I(null===(i=this._spec.background)||void 0===i?void 0:i.padding),M=this._spec.space||0;y+=((null==A?void 0:A.left)||0)+((null==A?void 0:A.right)||0),_+=((null==A?void 0:A.top)||0)+((null==A?void 0:A.bottom)||0);const w={},C=this.dataToPosition(t),T=$f.group({});if(T.name=`${this.name}_marker_itemContainer_${e}`,w.container=T,null===(s=this._spec.background)||void 0===s?void 0:s.visible){const t=$f.rect(uD(Object.assign({},this._spec.background.style)));t.setAttributes(C),w.labelBackground=t,T.appendChild(t)}if(null===(n=this._spec.icon)||void 0===n?void 0:n.visible){const t=$f.symbol(uD(Object.assign({},this._spec.icon.style)));t.setAttributes(C),t.setAttribute("symbolType",null!==(a=null===(r=this._spec.icon.style)||void 0===r?void 0:r.symbolType)&&void 0!==a?a:null===(o=this._spec.icon.style)||void 0===o?void 0:o.shape);const e=t.AABBBounds,i=null!==(l=(null==e?void 0:e.y2)-(null==e?void 0:e.y1))&&void 0!==l?l:0,s=null!==(h=(null==e?void 0:e.x2)-(null==e?void 0:e.x1))&&void 0!==h?h:0;w.icon=t,T.appendChild(t),x=i,b+=s,v++}if(null===(c=this._spec.nameLabel)||void 0===c?void 0:c.visible){const e=$f.text(uD(Object.assign({},this._spec.nameLabel.style)));e.setAttributes(C),e.setAttribute("text",t[this.nameField]);const i=e.AABBBounds,s=null!==(d=(null==i?void 0:i.y2)-(null==i?void 0:i.y1))&&void 0!==d?d:0,n=null!==(u=(null==i?void 0:i.x2)-(null==i?void 0:i.x1))&&void 0!==u?u:0;w.nameLabel=e,T.appendChild(e),x=Math.max(x,s),b+=n,v++}if((null===(g=this._spec.valueLabel)||void 0===g?void 0:g.visible)&&p(t[this.valueField])){const e=$f.text(uD(Object.assign({},this._spec.valueLabel.style)));e.setAttributes(C),e.setAttribute("text",t[this.valueField]);const i=e.AABBBounds,s=null!==(f=(null==i?void 0:i.y2)-(null==i?void 0:i.y1))&&void 0!==f?f:0,n=null!==(m=(null==i?void 0:i.x2)-(null==i?void 0:i.x1))&&void 0!==m?m:0;w.valueLabel=e,T.appendChild(e),x=Math.max(x,s),b+=n,v++}const B=Object.values(w).find((t=>!!t&&"group"!==t.type)),P={x:null==B?void 0:B.getComputedAttribute("x"),y:null==B?void 0:B.getComputedAttribute("y")},E={x:P.x,y:P.y,width:0,height:0};E.width=y+b+(v-1)*M,E.height=_+x;const O={rect:E,point:P,index:e};if("outer"!==S){const t=["top","right","left","bottom"].filter((t=>t!==S));O.rect=B3(E,S,k),O.anchors=t,O.offset=k}else O.pointCoord={x:+(null==t?void 0:t[this._longitudeField]),y:+(null==t?void 0:t[this._latitudeField])};return{pairInfo:O,contentMarks:w}}_layoutMarkers(t,e){var i,s,n;for(let r=0;r<e.length;r++){if(!t[r]||!e[r])return;const{icon:a,nameLabel:o,valueLabel:l,labelBackground:h,container:c}=e[r],d=t[r],u=$I(null===(i=this._spec.background)||void 0===i?void 0:i.padding),p=this._spec.space||0,g=d.height/2;let f=(null==u?void 0:u.left)||0;[a,o,l].forEach(((t,e)=>{var i,s;if(t){const n=t.AABBBounds;let r=0;"symbol"===t.type&&(r+=(null!==(i=n.x2-n.x1)&&void 0!==i?i:0)/2),t.setAttributes({x:f+r,y:g}),f+=null!==(s=n.x2-n.x1)&&void 0!==s?s:0,2!==e&&(f+=p)}})),null==h||h.setAttributes({x:0,y:0,width:d.width,height:d.height}),null==c||c.setAttributes({dx:-d.width/2,dy:-d.height/2});const m=this._data.getLatestData()[r],v=this.dataToPosition(m),y=this.getRegions()[0].getLayoutStartPoint(),_=!(!(null===(s=this._spec.leader)||void 0===s?void 0:s.visible)||!(a||o||l));this._markerComponents[r].setAttributes({x:y.x,y:y.y,position:v,visible:this._activeDatum.includes(m),itemContent:{refX:0,type:"custom",renderCustomCallback:()=>c,autoRotate:!1,offsetX:d.x+d.width/2-v.x,offsetY:d.y+d.height/2-v.y},itemLine:{visible:_,type:"type-po",lineStyle:uD(Object.assign({},null===(n=this._spec.leader)||void 0===n?void 0:n.style)),startSymbol:{visible:!1}}})}}_renderMarkers(){if(this._markerComponents&&this._markerComponents.length)for(let t=0;t<this._markerComponents.length;t++)this.getContainer().add(this._markerComponents[t])}_layoutLabels(t){return"outer"===this._spec.position&&this._map?M3(t,this._map,(t=>this._series.dataToPosition({[this._longitudeField]:t[0],[this._latitudeField]:t[1]}))):A3(t)}_isRelativeModel(t){var e,i,s;const n=null!==(i=null===(e=this._series.getXAxisHelper())||void 0===e?void 0:e.getAxisId())&&void 0!==i?i:null===(s=this._series.getCoordinateHelper())||void 0===s?void 0:s.getCoordinateId();return(null==t?void 0:t.id)===n}_isRelativeSeries(t){var e;return(null===(e=t.context)||void 0===e?void 0:e.modelId)===this._series.id}_getNeedClearVRenderComponents(){return this._markerComponents}getVRenderComponents(){return this._markerComponents}}R3.type="mapLabel",R3.specKey="mapLabel",R3.transformerConstructor=O3;const I3=q1("Bar3dChart",{type:"bar3d",vchartConstructor:mj},[y2,QQ,i0,...Z1]),L3=q1("BoxPlotChart",{type:"boxPlot",vchartConstructor:mj},[kZ,QQ,...Z1]),D3=[nj,Hb,cJ,z0,NZ,eJ,f0,p1,IQ],F3=q1("CirclePackingChart",{type:"circlePacking",vchartConstructor:mj},[gZ,QQ,...D3]),j3=[nj,Hb,cJ,z0,rG,oG,_J,p0,eJ,LJ,NZ,f0,p1,FJ,IQ],z3=q1("CircularProgressChart",{type:"circularProgress",vchartConstructor:mj},[Gq,QQ,WJ,...j3]),H3=q1("CommonChart",{type:"common",vchartConstructor:mj},[Rq,UH,XH,qH,JH,vJ,QQ,i0,fN,ON,fV,GN,UU]),V3=q1("CorrelationChart",{type:"correlation",vchartConstructor:mj},[LZ,...D3]),N3=q1("FunnelChart",{type:"funnel",vchartConstructor:mj},[iZ,QQ,...D3]),W3=q1("Funnel3dChart",{type:"funnel3d",vchartConstructor:mj},[w2,QQ,...D3]),U3=q1("GaugeChart",{type:"gauge",vchartConstructor:mj},[Xq,...D3]),G3=q1("HeatmapChart",{type:"heatmap",vchartConstructor:mj},[OZ,QQ,...Z1]),Y3=q1("Histogram3dChart",{type:"histogram3d",vchartConstructor:mj},[T2,QQ,...Z1]),$3=q1("HistogramChart",{type:"histogram",vchartConstructor:mj},[Nq,QQ,...Z1]),X3=q1("LinearProgressChart",{type:"linearProgress",vchartConstructor:mj},[rZ,QQ,...Z1]),K3=q1("LineChart",{type:"line",vchartConstructor:mj},[aN,QQ,...Z1]),q3=q1("LiquidChart",{type:"liquid",vchartConstructor:mj},[m1,WJ,...D3]),Z3=q1("MapChart",{type:"map",vchartConstructor:mj},[mq,QQ,...D3]),J3=q1("MosaicChart",{type:"mosaic",vchartConstructor:mj},[S1,QQ,i0,...Z1]),Q3=q1("PictogramChart",{type:"pictogram",vchartConstructor:mj},[x3,QQ,...D3]),t5=q1("PieChart",{type:"pie",vchartConstructor:mj},[kq,QQ,WJ,...D3]),e5=q1("Pie3dChart",{type:"pie3d",vchartConstructor:mj},[D2,QQ,WJ,...D3]),i5=q1("RadarChart",{type:"radar",vchartConstructor:mj},[Pq,QQ,...j3]),s5=q1("RangeAreaChart",{type:"rangeArea",vchartConstructor:mj},[BZ,QQ,...Z1]),n5=q1("RangeColumnChart",{type:"rangeColumn",vchartConstructor:mj},[lZ,QQ,...Z1]),r5=q1("RangeColumn3dChart",{type:"rangeColumn3d",vchartConstructor:mj},[q2,QQ,...Z1]),a5=q1("RoseChart",{type:"rose",vchartConstructor:mj},[Cq,QQ,...j3]),o5=q1("SankeyChart",{type:"sankey",vchartConstructor:mj},[wZ,QQ,...D3]),l5=q1("ScatterChart",{type:"scatter",vchartConstructor:mj},[XN,QQ,...Z1]),h5=q1("SequenceChart",{type:"sequence",vchartConstructor:mj},[Fq,...Z1]),c5=q1("SunburstChart",{type:"sunburst",vchartConstructor:mj},[dZ,QQ,...D3]),d5=q1("TreemapChart",{type:"treemap",vchartConstructor:mj},[vZ,QQ,...D3]),u5=q1("WordCloudChart",{type:"wordCloud",vchartConstructor:mj},[Jq,...D3]),p5=q1("WordCloud3dChart",{type:"wordCloud3d",vchartConstructor:mj},[N2,...D3]),g5=q1("VennChart",{type:"venn",vchartConstructor:mj},[_1,QQ,...D3]),f5=q1("WaterfallChart",{type:"waterfall",vchartConstructor:mj},[bZ,QQ,i0,...Z1]),m5=(t,i,s,n)=>{n&&n.length&&mj.useRegisters(n);const r=V1.concat(["updateId","componentId"]),a=t=>{var s;const n=e.useContext(M1),r=null!==(s=t.id)&&void 0!==s?s:t.componentId,a=e.useRef({}),o=e=>{const s=i.map((t=>`${r}-${t}`));(null==e?void 0:e.mark)&&s.includes(e.mark.getUserId())&&t[N1[e.event.type]](e)},l=t=>{t&&n.chart&&(a.current&&Object.keys(a.current).forEach((t=>{n.chart.off(R1[t],a.current[t]),a.current[t]=null})),t&&Object.keys(t).forEach((t=>{var e;(null===(e=a.current)||void 0===e?void 0:e[t])||(n.chart.on(R1[t],o),a.current||(a.current={}),a.current[t]=o)})))};return l(W1(t)),e.useEffect((()=>()=>{l({}),a.current={}}),[]),null};return a.displayName=t,a.parseSpec=t=>{var e;const n=H(t,r);var a,o;return a=n,o=null!==(e=t.id)&&void 0!==e?e:t.componentId,i.forEach((t=>{const e=`${o}-${t}`;u(a[t])?a[t]={id:e}:u(a[t].id)&&(a[t].id=e)})),u(s)||(n.type=s),{spec:n,specName:"series"}},a},v5=m5("Series",["bar","line","area"]),y5=m5("Area",["area"],"area",[fN]),_5=m5("Bar",["bar"],"bar",[ON]),b5=m5("Bar3d",["bar"],"bar3d",[g2]),x5=m5("BoxPlot",["boxPlot"],"boxPlot",[hU]),S5=m5("CirclePacking",["circlePacking","label"],"circlePacking",[jX]),k5=m5("CircularProgress",["circularProgress"],"circularProgress",[jG]),A5=m5("Correlation",["centerPoint","ripplePoint","centerLabel","nodePoint","label"],"correlation",[LZ]),M5=m5("Dot",["dot"],"dot",[AG]),w5=m5("Funnel",["funnel"],"funnel",[gX]),C5=m5("Funnel3d",["funnel"],"funnel3d",[A2]),T5=m5("Gauge",["segment","track","label"],"gauge",[kK]),B5=m5("GaugePointer",["pinBackground","pin","pointer"],"gaugePointer",[bK]),P5=m5("Heatmap",["cell","cellBackground","label"],"heatmap",[PK]),E5=m5("Line",["line"],"line",[fV]),O5=m5("LinearProgress",["linearProgress"],"linearProgress",[GG]),R5=m5("Link",["link"],"link",[BG]),I5=m5("Liquid",["node","link"],"liquid",[eq]),L5=m5("Map",["map"],"map",[uW]),D5=m5("Mosaic",["mosaic"],"mosaic",[pq]),F5=m5("Pictogram",["pictogram"],"pictogram",[_3]),j5=m5("Pie",["pie"],"pie",[UU]),z5=m5("Pie3d",["pie"],"pie3d",[I2]),H5=m5("Radar",["radar"],"radar",[yG]),V5=m5("RangeArea",["rangeArea"],"rangeArea",[AU]),N5=m5("RangeColumn",["rangeColumn"],"rangeColumn",[bU]),W5=m5("RangeColumn3d",["rangeColumn"],"rangeColumn3d",[$2]),U5=m5("Rose",["rose"],"rose",[hG]),G5=m5("Sankey",["node","link"],"sankey",[iK]),Y5=m5("Scatter",["scatter"],"scatter",[GN]),$5=m5("Sunburst",["sunburst","label"],"sunburst",[OX]),X5=m5("Treemap",["leaf","nonLeaf","label","nonLeafLabel"],"treemap",[cK]),K5=m5("Venn",["circle","overlap","overlapLabel"],"venn",[dq]),q5=m5("Waterfall",["leaderLine","stackLabel","label","bar"],"waterfall",[VW]),Z5=m5("WordCloud",["wordCloud"],"wordCloud",[X$]),J5=m5("WordCloud3d",["wordCloud"],"wordCloud3d",[z2]),Q5=(t,i,s,n,r)=>{r&&r.length&&mj.useRegisters(r);const a=["updateId","componentId","children"],o=s?Object.keys(s).concat(a):a,l=t=>{const i=e.useContext(M1),n=e.useRef(null),r=e.useRef(t.updateId);if(t.updateId!==r.current){r.current=t.updateId;!!s&&U1(i.chart,t,n.current,s)&&(n.current=t)}return e.useEffect((()=>()=>{s&&U1(i.chart,null,n.current,s)}),[]),null};return l.displayName=t,l.parseSpec=t=>({spec:H(t,o),specName:i,isSingle:n}),l},t4=Q5("Axis","axes"),e4=Q5("Mark","customMark",null,!1,[f0,p1]),i4=Q5("Region","region"),s4=Q5("Legend","legends",I1,!1,[NZ]),n4=Q5("Brush","brush",L1,!0,[p0]),r4=Q5("Crosshair","crosshair"),a4=Q5("DataZoom","dataZoom",D1,!1,[LJ]),o4=Q5("MarkLine","markLine",null,!1,[PQ]),l4=Q5("MarkArea","markArea",null,!1,[jQ]),h4=Q5("MarkPoint","markPoint",null,!1,[o0]),c4=Q5("ScrollBar","scrollBar",j1,!1,[FJ]),d4=(t,i,s)=>{s&&s.length&&mj.useRegisters(s);const n=["updateId","componentId","children"],r=t=>{const i=e.useRef(t.updateId);return t.updateId!==i.current&&(i.current=t.updateId),null};return r.displayName=t,r.parseSpec=t=>{const s=H(t,n);return!t.tooltipRender&&t.children&&(s.tooltipRender=(i,s,n)=>e.Children.map(t.children,(t=>g(t)?e.cloneElement(t,{tooltipElement:i,actualTooltip:s,params:n}):t))),{spec:s,specName:i,isSingle:!0}},r},u4=d4("Tooltip","tooltip",[cJ,z0]),p4=d4("CanvasTooltip","tooltip",[cJ,G0]),g4=Q5("Player","player",F1,!0,[$Q]),f4=Q5("Indicator","indicator",null,!0,[WJ]),m4=Q5("Title","title",null,!0,[IQ]),v4=Q5("ContinuousLegend","legends",I1,!1,[eJ]),y4=q1("VChart",{vchartConstructor:mj}),_4=q1("VChartSimple");t.Area=y5,t.AreaChart=J1,t.Axis=t4,t.Bar=_5,t.Bar3d=b5,t.Bar3dChart=I3,t.BarChart=Q1,t.BoxPlot=x5,t.BoxPlotChart=L3,t.Brush=n4,t.CanvasTooltip=p4,t.CirclePacking=S5,t.CirclePackingChart=F3,t.CircularProgress=k5,t.CircularProgressChart=z3,t.CommonChart=H3,t.ContinuousLegend=v4,t.Correlation=A5,t.CorrelationChart=V3,t.Crosshair=r4,t.DataZoom=a4,t.Dot=M5,t.Funnel=w5,t.Funnel3d=C5,t.Funnel3dChart=W3,t.FunnelChart=N3,t.Gauge=T5,t.GaugeChart=U3,t.GaugePointer=B5,t.Heatmap=P5,t.HeatmapChart=G3,t.Histogram3dChart=Y3,t.HistogramChart=$3,t.Indicator=f4,t.Legend=s4,t.Line=E5,t.LineChart=K3,t.LinearProgress=O5,t.LinearProgressChart=X3,t.Link=R5,t.Liquid=I5,t.LiquidChart=q3,t.Map=L5,t.MapChart=Z3,t.Mark=e4,t.MarkArea=l4,t.MarkLine=o4,t.MarkPoint=h4,t.Mosaic=D5,t.MosaicChart=J3,t.Pictogram=F5,t.PictogramChart=Q3,t.Pie=j5,t.Pie3d=z5,t.Pie3dChart=e5,t.PieChart=t5,t.Player=g4,t.REACT_TOOLTIP_ClASS_NAME=G1,t.Radar=H5,t.RadarChart=i5,t.RangeArea=V5,t.RangeAreaChart=s5,t.RangeColumn=N5,t.RangeColumn3d=W5,t.RangeColumn3dChart=r5,t.RangeColumnChart=n5,t.Region=i4,t.Rose=U5,t.RoseChart=a5,t.Sankey=G5,t.SankeyChart=o5,t.Scatter=Y5,t.ScatterChart=l5,t.ScrollBar=c4,t.SequenceChart=h5,t.Series=v5,t.Sunburst=$5,t.SunburstChart=c5,t.Title=m4,t.Tooltip=u4,t.Treemap=X5,t.TreemapChart=d5,t.VChart=y4,t.VChartCore=mj,t.VChartSimple=_4,t.Venn=K5,t.VennChart=g5,t.Waterfall=q5,t.WaterfallChart=f5,t.WordCloud=Z5,t.WordCloud3d=J5,t.WordCloud3dChart=p5,t.WordCloudChart=u5,t.registerAreaChart=yN,t.registerAxis3dPlugin=()=>{l2(),m2(),(()=>{XH();const t=iL.getComponentInKey($H.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},$H.builtInTheme.axisX),W2)}),G(t,U2)})(),(()=>{UH();const t=iL.getComponentInKey(WH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},WH.builtInTheme.axisX),W2)}),G(t,U2)})(),(()=>{qH();const t=iL.getComponentInKey(KH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},t.builtInTheme.axisX),W2)}),G(t,U2)})(),(()=>{JH();const t=iL.getComponentInKey(QH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},t.builtInTheme.axisX),W2)}),G(t,U2)})(),(()=>{JH();const t=iL.getComponentInKey(ZH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},ZH.builtInTheme.axisX),W2)}),G(t,U2)})()},t.registerBar3dChart=y2,t.registerBarChart=LN,t.registerBoxplotChart=kZ,t.registerBrush=p0,t.registerCartesianBandAxis=XH,t.registerCartesianCrossHair=vJ,t.registerCartesianLinearAxis=UH,t.registerCartesianLogAxis=JH,t.registerCartesianSymlogAxis=tV,t.registerCartesianTimeAxis=qH,t.registerChartResizeZoomPlugin=()=>{Y0(k1)},t.registerCirclePackingChart=gZ,t.registerCircularProgressChart=Gq,t.registerCommonChart=Rq,t.registerContinuousLegend=eJ,t.registerCorrelationChart=LZ,t.registerCustomMark=f0,t.registerDataZoom=LJ,t.registerDiscreteLegend=NZ,t.registerFunnel3dChart=w2,t.registerFunnelChart=iZ,t.registerGaugeChart=Xq,t.registerGeoCoordinate=hW,t.registerGeoMarkPoint=d0,t.registerHeatmapChart=OZ,t.registerHistogram3dChart=T2,t.registerHistogramChart=Nq,t.registerIndicator=WJ,t.registerLabel=QQ,t.registerLineChart=aN,t.registerLinearProgressChart=rZ,t.registerLiquidChart=m1,t.registerMapChart=mq,t.registerMapLabel=t=>{const e=(null==t?void 0:t.VChart)||mj;e&&e.useComponent([R3])},t.registerMarkArea=jQ,t.registerMarkLine=PQ,t.registerMarkPoint=o0,t.registerMosaicChart=S1,t.registerPictogramChart=x3,t.registerPie3dChart=D2,t.registerPieChart=kq,t.registerPlayer=$Q,t.registerPolarBandAxis=oG,t.registerPolarCrossHair=_J,t.registerPolarLinearAxis=rG,t.registerPolarMarkArea=HQ,t.registerPolarMarkLine=OQ,t.registerPolarMarkPoint=h0,t.registerPoptip=y0,t.registerRadarChart=Pq,t.registerRangeAreaChart=BZ,t.registerRangeColumn3dChart=q2,t.registerRangeColumnChart=lZ,t.registerRoseChart=Cq,t.registerSankeyChart=wZ,t.registerScatterChart=XN,t.registerScrollBar=FJ,t.registerSequenceChart=Fq,t.registerSunburstChart=dZ,t.registerTitle=IQ,t.registerTooltip=cJ,t.registerTotalLabel=i0,t.registerTreemapChart=vZ,t.registerVennChart=_1,t.registerWaterfallChart=bZ,t.registerWordCloud3dChart=N2,t.registerWordCloudChart=Jq,t.registerWordCloudShapeChart=Qq,t.version="2.0.12"}));
|
|
24
|
+
function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(i[s[n]]=t[s[n]])}return i}(i,["className","style","width","height","id"]);return e.useLayoutEffect((()=>{o(!0)}),[]),e.createElement("div",{ref:r,id:null==u?void 0:u.toString(),className:l,style:Object.assign({position:"relative",height:d||"100%",width:c||"100%"},h)},a?e.createElement(t,Object.assign({ref:n,container:r.current},s?s(p):p)):e.createElement(e.Fragment,null))}));return n.displayName=i||t.name,n}const M1=e.createContext(null);M1.displayName="ChartContext";var w1,C1={exports:{}},T1={};C1.exports=function(){if(w1)return T1;w1=1;var t,e=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function f(t){if("object"==typeof t&&null!==t){var g=t.$$typeof;switch(g){case e:switch(t=t.type){case s:case r:case n:case c:case d:return t;default:switch(t=t&&t.$$typeof){case l:case o:case h:case p:case u:case a:return t;default:return g}}case i:return g}}}return t=Symbol.for("react.module.reference"),T1.ContextConsumer=o,T1.ContextProvider=a,T1.Element=e,T1.ForwardRef=h,T1.Fragment=s,T1.Lazy=p,T1.Memo=u,T1.Portal=i,T1.Profiler=r,T1.StrictMode=n,T1.Suspense=c,T1.SuspenseList=d,T1.isAsyncMode=function(){return!1},T1.isConcurrentMode=function(){return!1},T1.isContextConsumer=function(t){return f(t)===o},T1.isContextProvider=function(t){return f(t)===a},T1.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},T1.isForwardRef=function(t){return f(t)===h},T1.isFragment=function(t){return f(t)===s},T1.isLazy=function(t){return f(t)===p},T1.isMemo=function(t){return f(t)===u},T1.isPortal=function(t){return f(t)===i},T1.isProfiler=function(t){return f(t)===r},T1.isStrictMode=function(t){return f(t)===n},T1.isSuspense=function(t){return f(t)===c},T1.isSuspenseList=function(t){return f(t)===d},T1.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===r||e===n||e===c||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===u||e.$$typeof===a||e.$$typeof===o||e.$$typeof===h||e.$$typeof===t||void 0!==e.getModuleId)},T1.typeOf=f,T1}();var B1=C1.exports;const P1=t=>{let i=[];return e.Children.forEach(t,(t=>{u(t)||(B1.isFragment(t)?i=i.concat(P1(t.props.children)):i.push(t))})),i},E1={onPointerDown:"pointerdown",onPointerUp:"pointerup",onPointerUpOutside:"pointerupoutside",onPointerTap:"pointertap",onPointerOver:"pointerover",onPointerMove:"pointermove",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerOut:"pointerout",onMouseDown:"mousedown",onMouseUp:"mouseup",onMouseUpOutside:"mouseupoutside",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onPinch:"pinch",onPinchStart:"pinchstart",onPinchEnd:"pinchend",onPan:"pan",onPanStart:"panstart",onPanEnd:"panend",onDrag:"drag",onDragStart:"dragstart",onDragEnter:"dragenter",onDragLeave:"dragleave",onDragOver:"dragover",onDragEnd:"dragend",onRightDown:"rightdown",onRightUp:"rightup",onRightUpOutside:"rightupoutside",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchEndOutside:"touchendoutside",onTouchMove:"touchmove",onTouchCancel:"touchcancel",onPress:"press",onPressUp:"pressup",onPressEnd:"pressend",onSwipe:"swipe",onDrop:"drop",onWeel:"wheel",onClick:"click",onDblClick:"dblclick"},O1={onLegendItemHover:"legendItemHover",onLegendItemUnHover:"legendItemUnHover",onLegendItemClick:"legendItemClick",onLegendFilter:"legendFilter",onLegendSelectedDataChange:"legendSelectedDataChange"},R1={onBrushStart:"brushStart",onBrushChange:"brushChange",onBrushEnd:"brushEnd",onBrushClear:"brushClear"},I1={onDataZoomChange:"dataZoomChange"},L1={onPlayerPlay:"playerPlay",onPlayerPause:"playerPause",onPlayerEnd:"playerEnd",onPlayerChange:"playerChange",onPlayerForward:"playerForward",onPlayerBackward:"playerBackward"},D1={onScrollBarChange:"scrollBarChange"},F1=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},O1),R1),L1),I1),D1),{onDimensionHover:"dimensionHover",onDimensionClick:"dimensionClick"}),{onInitialized:"initialized",onRendered:"rendered",onRenderFinished:"renderFinished",onAnimationFinished:"animationFinished",onLayoutStart:"layoutStart",onLayoutEnd:"layoutEnd"}),{onDrill:"drill"}),E1),j1=Object.keys(F1).concat(Object.keys(E1).map((t=>`${t}Filter`))),z1=Object.keys(E1),H1=Object.keys(E1).reduce(((t,e)=>(t[E1[e]]=e,t)),{}),V1=(t,e=E1)=>{const i={};return Object.keys(t).forEach((s=>{e[s]&&t[s]&&(i[s]=t[s])})),i},N1=(t,e,i,s=E1)=>{if(!e&&!i||!t)return!1;const n=i?V1(i,s):null,r=e?V1(e,s):null;return n&&Object.keys(n).forEach((e=>{r&&r[e]&&r[e]===n[e]||t.off(s[e],n[e])})),r&&Object.keys(r).forEach((i=>{if(!n||!n[i]||n[i]!==r[i]){const n=e[`${i}Filter`];n?t.on(s[i],n,r[i]):t.on(s[i],r[i])}})),!0},W1=`${kL}_REACT_TOOLTIP`,U1=["children","hooks","ref",...j1,"vchartConstructor","vchartConstrouctor","useSyncRender","skipFunctionDiff","onError","onReady","spec","container","options","morphConfig"],G1={morph:!1,enableExitAnimation:!1},Y1=(t,e)=>`${t&&t.type&&(t.type.displayName||t.type.name)}-${e}`,$1=e.forwardRef(((t,s)=>{const[n,r]=e.useState(0),a=e.useRef({});e.useImperativeHandle(s,(()=>{var t;return null===(t=a.current)||void 0===t?void 0:t.chart}));const o=!!t.spec,l=e.useRef(!1),h=e.useRef(H(t,U1)),c=e.useRef(null),d=e.useRef(null),g=!!t.skipFunctionDiff,[f,m]=e.useState(null),v=t=>{let s;o&&t.spec?(s=t.spec,p(t.data)&&(s=Object.assign(Object.assign({},t.spec),{data:t.data}))):s=Object.assign(Object.assign({},h.current),c.current);const n=((t,s,n)=>{let r;if((null==n?void 0:n.tooltipRender)?(r=n.tooltipRender,delete n.tooltipRender):s.tooltipRender&&(r=s.tooltipRender),r){let a;return(null==n?void 0:n.reserveDefaultTooltip)?(a=n.reserveDefaultTooltip,delete n.reserveDefaultTooltip):a=s.reserveDefaultTooltip,Object.assign(Object.assign({},n),{updateElement:(s,n,o)=>{const{changePositionOnly:l}=o;if(!l){if(!a){s.style.width="auto",s.style.height="auto",s.style.minHeight="auto",s.style.padding="0px";for(let t=0;t<s.children.length;t++){const e=s.children[t];e.className!==W1&&"none"!==e.style.display&&(e.style.display="none")}}t(i.createPortal(e.createElement("div",{className:W1},r(s,n,o)),s))}}})}return n})(m,t,s.tooltip);return n&&(s.tooltip=n),s},y=e=>{if(!l.current){if(!a.current||!a.current.chart)return;e&&N1(a.current.chart,t,d.current,F1),r(n+1),t.onReady&&t.onReady(a.current.chart,0===n)}};return e.useEffect((()=>{var e,i,s;const n=o?null:(t=>{const e={};return P1(t.children).map(((t,i)=>{const s=t&&t.type&&t.type.parseSpec;if(s&&t.props){const n=s(u(t.props.componentId)?Object.assign(Object.assign({},t.props),{componentId:Y1(t,i)}):t.props);n.isSingle?e[n.specName]=n.spec:(e[n.specName]||(e[n.specName]=[]),e[n.specName].push(n.spec))}})),e})(t);if(!(null===(e=a.current)||void 0===e?void 0:e.chart))return o||(c.current=n),(t=>{var e;const i=new(null!==(e=t.vchartConstructor)&&void 0!==e?e:t.vchartConstrouctor)(v(t),Object.assign(Object.assign({},t.options),{onError:t.onError,autoFit:!0,dom:t.container}));a.current=Object.assign(Object.assign({},a.current),{chart:i}),l.current=!1})(t),a.current.chart&&(N1(a.current.chart,t,d.current,F1),a.current.chart.renderSync({reuse:!1}),y()),void(d.current=t);if(o)return void(W(d.current.spec,t.spec,{skipFunction:g})?d.current.data!==t.data&&(a.current.chart.updateFullDataSync(t.data),y(!0),d.current=t):(a.current.chart.updateSpecSync(v(t),void 0,null!==(i=t.morphConfig)&&void 0!==i?i:G1),y(!0),d.current=t));const r=H(t,U1);W(r,h.current,{skipFunction:g})&&W(n,c.current,{skipFunction:g})||(h.current=r,c.current=n,a.current.chart.updateSpecSync(v(t),void 0,null!==(s=t.morphConfig)&&void 0!==s?s:G1),y(!0),d.current=t)}),[t]),e.useEffect((()=>()=>{a&&a.current&&a.current.chart&&(a.current.chart.release(),a.current.chart=null),d.current=null,l.current=!0}),[]),e.createElement(M1.Provider,{value:a.current},P1(t.children).map(((t,i)=>{if("string"==typeof t)return null;const s=Y1(t,i);return e.createElement(e.Fragment,{key:s},e.cloneElement(t,{updateId:n,componentId:s}))})),f)})),X1=(t,e,i)=>{i&&i.length&&e.vchartConstructor&&e.vchartConstructor.useRegisters(i);const s=A1($1,t,(t=>e?Object.assign(t,e):t));return s.displayName=t,s},K1=[nj,Hb,cJ,z0,UH,XH,qH,JH,vJ,p0,eJ,LJ,NZ,f0,p1,jQ,PQ,o0,FJ,IQ],q1=X1("AreaChart",{type:"area",vchartConstructor:mj},[yN,QQ,i0,...K1]),Z1=X1("BarChart",{type:"bar",vchartConstructor:mj},[LN,QQ,i0,...K1]);class J1 extends RN{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return e.barWidth=t.barWidth,e.barMaxWidth=t.barMaxWidth,e.barMinWidth=t.barMinWidth,e.barGapInGroup=t.barGapInGroup,e}}var Q1,t2,e2,i2,s2;!function(t){t.bar3d="bar3d",t.histogram3d="histogram3d",t.rangeColumn3d="rangeColumn3d",t.pie3d="pie3d",t.wordCloud3d="wordCloud3d",t.funnel3d="funnel3d"}(Q1||(Q1={})),function(t){t.rect3d="rect3d",t.arc3d="arc3d",t.pyramid3d="pyramid3d"}(t2||(t2={})),function(t){t.bar3d="bar3d",t.rangeColumn3d="rangeColumn3d",t.pie3d="pie3d",t.wordCloud3d="wordCloud3d",t.funnel3d="funnel3d"}(e2||(e2={})),function(t){t.bar3d="bar3d",t.funnel3d="funnel3d",t.transform3d="transform3d",t.pie3d="pie3d"}(i2||(i2={})),function(t){t.bar3d_horizontal="bar3d_horizontal",t.bar3d_vertical="bar3d_vertical",t.bar3d_stack="bar3d_stack",t.rangeColumn3d_horizontal="rangeColumn3d_horizontal",t.rangeColumn3d_vertical="rangeColumn3d_vertical"}(s2||(s2={}));const n2=t=>t.zField||t.series&&t.series.some((t=>t.zField));class r2 extends Uz{constructor(){super(r2.type),this.type="VChart3dPlugin"}onInit(t,e){var i;if(this._is3d=(t=>{return!!t&&("bar3d"===(e=t.type)||"funnel3d"===e||"histogram3d"===e||"pie3d"===e||"rangeColumn3d"===e||"wordCloud3d"===e||n2(t),!0);var e})(e),this._is3d){const{globalInstance:e}=t;e.getCompiler().getStage().set3dOptions(Object.assign({},null===(i=e._option)||void 0===i?void 0:i.options3d))}}onBeforeInitChart(t,e,i){this._is3d&&n2(e)&&(e.layout={type:"layout3d"})}}r2.pluginType="chart",r2.type="VChart3dPlugin";const a2=()=>{Y0(r2),B_(),E_(),__.registerPlugin("ViewTransform3dPlugin",Vb)},o2={label:{name:"label",type:"text"},bar3d:{name:"bar3d",type:"rect3d"}};class l2 extends PN{_transformLabelSpec(t){this._addMarkLabelSpec(t,"bar3d")}}class h2 extends FF{_getDefaultStyle(){return Object.assign(Object.assign({},super._getDefaultStyle()),{width:void 0,height:void 0,length:3})}setDataLabelType(){return"rect"}constructor(t,e){super(t,e),this.type=h2.type,this._markConfig.support3d=!0}setMarkConfig(t){super.setMarkConfig(t),this._markConfig.support3d=!0}}h2.type="rect3d";const c2=()=>{iL.registerMark(h2.type,h2),nw(),tw(),tj(),iL.registerGraphicComponent("rect3d",gf)};class d2 extends EN{constructor(){super(...arguments),this.type=e2.bar3d,this._barMarkName="bar3d",this._barMarkType="rect3d",this.transformerConstructor=l2}}d2.type=e2.bar3d,d2.mark=o2,d2.builtInTheme={bar3d:{bar3d:{style:{length:3}},label:{visible:!1,style:{offset:12,position:"outside"}}}},d2.transformerConstructor=l2;const u2=()=>{iL.registerAnimation("bar3d",((t,e)=>({appear:AN(t,e),enter:bN(t,!1),exit:xN(t,!1),disappear:xN(t)}))),c2(),XH(),UH(),iL.registerSeries(d2.type,d2)};class p2 extends xF{layoutItems(t,e,i,s){this._layoutInit(t,e,i,s);const n={recomputeWidth:this.recomputeWidth,recomputeHeight:this.recomputeHeight};this._layoutNormalItems(e,n);const r={left:this.leftCurrent,top:this.topCurrent,right:this.rightCurrent,bottom:this.bottomCurrent},a=e.filter((t=>"absolute"===t.layoutType)),o=a.filter((t=>"z"===t.layoutOrient));let l={width:0,height:0};o.length&&(l=o[0].getLayoutRect()),this.leftCurrent+=l.width/8,this.rightCurrent-=l.width/8,this.topCurrent+=l.height/8,this.bottomCurrent-=l.height/8;const{regionItems:h,relativeItems:c,relativeOverlapItems:d,allRelatives:u,overlapItems:p}=this._groupItems(e);this.layoutRegionItems(h,c,d,p,n),this._processAutoIndent(h,c,d,p,u,r,n);const g=a.filter((t=>"z"!==t.layoutOrient));this.layoutAbsoluteItems(g);const f=c.filter((t=>"axes"===t.model.specKey&&cz(t.layoutOrient)))[0],m=c.filter((t=>"axes"===t.model.specKey&&dz(t.layoutOrient)))[0];if(f&&o.length){const t=f.getLayoutStartPoint(),e=f.getLayoutRect(),i={x:"left"===m.layoutOrient?t.x+e.width:t.x,y:t.y,width:this._chartLayoutRect.width,height:this._chartLayoutRect.height};o[0].model.directionStr="left"===m.layoutOrient?"r2l":"l2r";const s=f.getLayoutRect(),n=m.getLayoutRect(),r={length:o[0].getLayoutRect().width,width:s.width,height:n.height};f.model.setLayout3dBox&&f.model.setLayout3dBox(r),m.model.setLayout3dBox&&m.model.setLayout3dBox(r),o[0].model.setLayout3dBox&&o[0].model.setLayout3dBox(r),this.layoutZAxisItems(o,i)}}layoutZAxisItems(t,e){t.forEach((t=>{t.absoluteLayoutInRect(e)}))}getItemComputeLayoutRect(t,e){return e||(e={offsetLeft:0,offsetRight:0,offsetTop:0,offsetBottom:0}),{width:this.rightCurrent-this.leftCurrent-t.layoutPaddingLeft-t.layoutPaddingRight-(e.offsetLeft+e.offsetRight),height:this.bottomCurrent-this.topCurrent-t.layoutPaddingTop-t.layoutPaddingBottom-(e.offsetTop+e.offsetBottom)}}_checkAutoIndent(t){const e={top:0,left:0,bottom:0,right:0},i=this._chartViewBox.x2-this._chartViewBox.x1-this.rightCurrent,s=this._chartViewBox.y2-this._chartViewBox.y1-this.bottomCurrent;return t.forEach((t=>{if(!t.getModelVisible()||!t.autoIndent)return;const n="left"===t.layoutOrient||"right"===t.layoutOrient,r=t.getLastComputeOutBounds();n?(e.top=Math.max(e.top,r.y1-this.topCurrent),e.bottom=Math.max(e.bottom,r.y2-s)):(e.left=Math.max(e.left,r.x1-this.leftCurrent),e.right=Math.max(e.right,r.x2-i))})),e}}p2.type="layout3d";const g2=()=>{iL.registerLayout(p2.type,p2)};let f2=class extends IN{constructor(){super(...arguments),this.transformerConstructor=J1,this.type="bar3d",this.seriesType=e2.bar3d}};f2.type="bar3d",f2.seriesType=e2.bar3d,f2.transformerConstructor=J1;const m2=()=>{a2(),g2(),u2(),iL.registerChart(f2.type,f2)},v2=Object.assign(Object.assign({},Wj),{funnel3d:{name:"funnel3d",type:"pyramid3d"},transform3d:{name:"transform3d",type:"pyramid3d"},transformLabel:{name:"transformLabel",type:"text"},outerLabel:{name:"outerLabel",type:"text"},outerLabelLine:{name:"outerLabelLine",type:"rule"}});class y2 extends uX{_transformLabelSpec(t){this._addMarkLabelSpec(t,"funnel3d"),t.isTransform&&this._addMarkLabelSpec(t,"transform3d","transformLabel")}}class _2 extends lX{_getDefaultStyle(){const t=super._getDefaultStyle();return t.stroke=!1,t}constructor(t,e){super(t,e),this.type=_2.type,this._markConfig.support3d=!0}setMarkConfig(t){super.setMarkConfig(t),this._markConfig.support3d=!0}}_2.type="pyramid3d";const b2=rL(!0);class x2 extends pX{constructor(){super(...arguments),this.type=e2.funnel3d,this._funnelMarkName="funnel3d",this._funnelMarkType="pyramid3d",this._transformMarkName="transform3d",this._transformMarkType="pyramid3d",this.transformerConstructor=y2}initMark(){var t,e,i,s,n,r,a,o;if(this._funnelMark=this._createMark(Object.assign(Object.assign({},x2.mark.funnel3d),{name:this._funnelMarkName,type:this._funnelMarkType}),{themeSpec:null===(t=this._theme)||void 0===t?void 0:t.funnel3d,key:this._seriesField,isSeriesMark:!0},{support3d:!0}),this._spec.isTransform&&(this._funnelTransformMark=this._createMark(Object.assign(Object.assign({},x2.mark.transform3d),{name:this._transformMarkName,type:this._transformMarkType}),{themeSpec:null===(e=this._theme)||void 0===e?void 0:e.transform3d,key:this._seriesField,skipBeforeLayouted:!1,dataView:this._viewDataTransform.getDataView(),dataProductId:this._viewDataTransform.getProductId()})),null===(s=null===(i=this._spec)||void 0===i?void 0:i.outerLabel)||void 0===s?void 0:s.visible){const{line:t}=null!==(n=this._spec.outerLabel)&&void 0!==n?n:{},{line:e}=null!==(a=null===(r=this._theme)||void 0===r?void 0:r.outerLabel)&&void 0!==a?a:{};this._funnelOuterLabelMark.label=this._createMark(x2.mark.outerLabel,{themeSpec:null===(o=this._theme)||void 0===o?void 0:o.outerLabel,key:this._seriesField,markSpec:this._spec.outerLabel}),this._funnelOuterLabelMark.line=this._createMark(x2.mark.outerLabelLine,{themeSpec:e,key:this._seriesField,markSpec:t})}}initMarkStyle(){super.initMarkStyle();const t=this._funnelMark;t&&this.setMarkStyle(t,{z:t=>{if(this._isHorizontal())return 0;const e=this.getPoints(t),i=Math.max(Math.abs(e[0].x-e[1].x),Math.abs(e[2].x-e[3].x));return(this._computeMaxSize()-i)/2}},"normal",sF.Series)}initLabelMarkStyle(t){var e,i;super.initLabelMarkStyle(t),this.setMarkStyle(t,{z:t=>{if(this._isHorizontal())return 0;const e=this.getPoints(t),i=Math.max(Math.abs(e[0].x-e[1].x),Math.abs(e[2].x-e[3].x));return(this._computeMaxSize()-i)/2}},"normal",sF.Series),this._labelMark=t,null===(e=this._funnelOuterLabelMark)||void 0===e||e.label,null===(i=this._funnelOuterLabelMark)||void 0===i||i.line}}x2.type=e2.funnel3d,x2.mark=v2,x2.builtInTheme={funnel3d:b2},x2.transformerConstructor=y2;const S2=()=>{iL.registerMark(_2.type,_2),nw(),qM(),sj(),iL.registerGraphicComponent("pyramid3d",Uf),dU(),kW(),iL.registerSeries(x2.type,x2)};let k2=class extends bV{constructor(){super(...arguments),this.transformerConstructor=tZ,this.type="funnel3d",this.seriesType=e2.funnel3d}};k2.type="funnel3d",k2.seriesType=e2.funnel3d,k2.transformerConstructor=tZ;const A2=()=>{iN(),a2(),g2(),S2(),iL.registerChart(k2.type,k2)};let M2=class extends zq{constructor(){super(...arguments),this.transformerConstructor=Hq,this.type="histogram3d",this.seriesType=e2.bar3d}_setModelOption(){this._modelOption.getDimensionInfo=FV,this._modelOption.getDimensionInfoByValue=zV,this._modelOption.getRectByDimensionData=GV}};M2.type="histogram3d",M2.seriesType=e2.bar3d,M2.transformerConstructor=Hq;const w2=()=>{nN(),tN(),iN(),EV(),PV(),a2(),g2(),u2(),iL.registerChart(M2.type,M2)};class C2 extends bq{transformSpec(t){super.transformSpec(t),t.series.forEach((e=>{"pie3d"===e.type&&(e.angle3d=t.angle3d)}))}}class T2 extends DU{setDataLabelType(){return"arc"}constructor(t,e){super(t,e),this.type=T2.type,this._markConfig.support3d=!0}setMarkConfig(t){super.setMarkConfig(t),this._markConfig.support3d=!0}}T2.type="arc3d";const B2=Object.assign(Object.assign({},Wj),{pie3d:{name:"pie3d",type:"arc3d"},labelLine:{name:"labelLine",type:"path"}});class P2 extends HU{_transformLabelSpec(t){this._addMarkLabelSpec(t,"pie3d")}}class E2 extends NU{constructor(){super(...arguments),this.type=e2.pie3d,this._pieMarkName="pie3d",this._pieMarkType="arc3d",this.transformerConstructor=P2}setAttrFromSpec(){var t,e;super.setAttrFromSpec(),this._angle3d=null!==(e=null===(t=this._spec)||void 0===t?void 0:t.angle3d)&&void 0!==e?e:-Math.PI/3}initMarkStyle(){super.initMarkStyle();const t=this._pieMark;t&&this.setMarkStyle(t,{beta:()=>this._angle3d},"normal",sF.Series)}initLabelMarkStyle(t,e={}){t&&(super.initLabelMarkStyle(t),this.setMarkStyle(t,{support3d:!0},void 0,sF.Mark))}}E2.type=e2.pie3d,E2.mark=B2,E2.builtInTheme={pie3d:{outerRadius:.6,pie3d:{style:{height:10,fillOpacity:1}},label:{visible:!1,interactive:!0,position:"outside"}}},E2.transformerConstructor=P2;const O2=()=>{iL.registerAnimation("pie3d",((t,e)=>({appear:LU(t,e),enter:OU(t),exit:RU(t),disappear:IU(t)}))),ej(),nw(),OM(),iL.registerGraphicComponent("arc3d",zf),iL.registerMark("arc3d",T2),iL.registerSeries(E2.type,E2)};let R2=class extends xq{constructor(){super(...arguments),this.transformerConstructor=C2,this.type="pie3d",this.seriesType=e2.pie3d}};R2.type="pie3d",R2.seriesType=e2.pie3d,R2.transformerConstructor=C2;const I2=()=>{iN(),a2(),g2(),O2(),iL.registerChart(R2.type,R2)},L2=t=>({custom:iB,customParameters:()=>t,easing:"linear",loop:1/0,duration:6e3});class D2 extends QG{constructor(){super(...arguments),this.type=e2.wordCloud3d}_wordCloudTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudTransformOption()),{postProjection:null!==(t=this._spec.postProjection)&&void 0!==t?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}_wordCloudShapeTransformOption(){var t;return Object.assign(Object.assign({},super._wordCloudShapeTransformOption()),{postProjection:null!==(t=this._spec.postProjection)&&void 0!==t?t:"StereographicProjection",depth_3d:this._spec.depth_3d})}initMark(){this._wordMark=this._createMark(QG.mark.word,{groupKey:this._seriesField,isSeriesMark:!0},{support3d:!0})}initMarkStyle(){super.initMarkStyle();const t=this._wordMark;t&&this.setMarkStyle(t,{z:t=>{var e;return null!==(e=t.z)&&void 0!==e?e:0}},"normal",sF.Series)}initAnimation(){var t,e;const i=null!==(t=this._padding)&&void 0!==t?t:{};this._wordMark&&this._wordMark.setAnimationConfig(Zj(null===(e=iL.getAnimationInKey("wordCloud3d"))||void 0===e?void 0:e((()=>{var t;const e=this.getCompiler().getStage(),s=e.width-i.left||0-i.right||0,n=e.height-i.top||0-i.bottom||0,r=Math.max(s,n)/2;return{center:{x:r,y:r,z:null!==(t=this._spec.depth_3d)&&void 0!==t?t:r},r:r}})),Jj("word",this._spec,this._markAttributeContext)))}}D2.type=e2.wordCloud3d,D2.builtInTheme={wordCloud3d:{word:{padding:1,style:{textAlign:"center",textBaseline:"alphabetic"}}}};const F2=()=>{dU(),iL.registerAnimation("wordCloud3d",(t=>({appear:L2(t)}))),iL.registerSeries(D2.type,D2)};class j2 extends Kq{_getDefaultSeriesSpec(t){const e=super._getDefaultSeriesSpec(t);return e.depth_3d=t.depth_3d,e}}let z2=class extends qq{constructor(){super(...arguments),this.transformerConstructor=j2,this.type="wordCloud3d",this.seriesType=e2.wordCloud3d}};z2.type="wordCloud3d",z2.seriesType=e2.wordCloud3d,z2.transformerConstructor=j2;const H2=()=>{a2(),F2(),iL.registerChart(z2.type,z2)},V2={label:{space:0}};class N2{setLayout3dBox(t){this.layout3dBox=t}_afterUpdateAttribute(t,e){const i=uz(this._orient),s=cz(this._orient),n=dz(this._orient);let r=0,a=0;if(!e){const t=this.getRegions();let{x:e,y:i}=t[0].getLayoutStartPoint(),s=e+t[0].getLayoutRect().width,n=i+t[0].getLayoutRect().height;for(let r=1;r<t.length;r++){const a=t[r],{x:o,y:l}=a.getLayoutStartPoint(),{width:h,height:c}=a.getLayoutRect();e=Math.min(e,o),s=Math.max(s,h+o),i=Math.min(i,l),n=Math.max(n,c+l)}r=Math.abs(n-i),a=Math.abs(s-e)}let o=0,l=0;const{width:h,height:c}=this.getLayoutRect();let d={x:0,y:0};s?(d={x:h,y:0},o=r,l=h):n&&(d={x:0,y:c},o=a,l=c);const u=this.layout3dBox?this.layout3dBox.length:0;if(!i){const e=this.getLabelItems(l);return t.grid={length:o},t.start={x:0,y:0},t.text=this._spec.title.text||this._dataFieldText,t.maxWidth=this._getTitleLimit(s),t.items=e,t.grid={type:"line",start:{x:0,y:0},end:d,items:e[0],depth:u,length:o},t}return((t,e)=>{var i;const s=wH(t.getRegions()),{width:n}=t.getLayoutRect(),r=n,a=t.layout3dBox?t.layout3dBox.length:0,o=t.layout3dBox?t.layout3dBox.width:0,l={x:a,y:0},h=t.getLabelItems(r),c={start:{x:0,y:0},end:l,title:{text:t._spec.title.text||t._dataFieldText,maxWidth:t._getTitleLimit(!1)},items:h,scale:t._scale.clone()},d=null!==(i=t.directionStr)&&void 0!==i?i:"r2l";let u=[0,0],p=-Math.PI/2,g=0;return"l2r"===d&&(g=t.layout3dBox.length,u=[0,0,0],p=Math.PI/2),c.z=g,c.alpha=p,c.anchor3d=u,e||(c.grid={type:"line",start:{x:0,y:0},end:l,items:h[0],verticalFactor:t._axisStyle.verticalFactor,depth:o,length:e?0:s.height,alpha:p,z:g,anchor3d:u}),c})(this,e)}}const W2=Object.assign(Object.assign({},o2),{minLabel:{name:"minLabel",type:"text"},maxLabel:{name:"maxLabel",type:"text"}});class U2 extends _U{constructor(){super(...arguments),this.type=e2.rangeColumn3d,this._barMarkType="rect3d",this._barName=e2.bar3d}}U2.type=e2.rangeColumn3d,U2.mark=W2;const G2=()=>{c2(),XH(),UH(),iL.registerSeries(U2.type,U2)};class Y2 extends kV{_getDefaultSeriesSpec(t){var e,i;const s=super._getDefaultSeriesSpec(t,["bar3d","barGapInGroup"]);return"horizontal"===t.direction?s.xField=null!==(e=t.xField)&&void 0!==e?e:[t.minField,t.maxField]:s.yField=null!==(i=t.yField)&&void 0!==i?i:[t.minField,t.maxField],s}}let $2=class extends bV{constructor(){super(...arguments),this.transformerConstructor=Y2,this.type="rangeColumn3d",this.seriesType=e2.rangeColumn3d}_setModelOption(){this._modelOption.getDimensionInfo=FV,this._modelOption.getDimensionInfoByValue=zV,this._modelOption.getRectByDimensionData=GV}};$2.type="rangeColumn3d",$2.seriesType=e2.rangeColumn3d,$2.transformerConstructor=Y2;const X2=()=>{tN(),iN(),EV(),PV(),a2(),g2(),G2(),iL.registerChart($2.type,$2)},K2="pictogram",q2="pictogram";var Z2;!function(t){t.pictogram="pictogram"}(Z2||(Z2={}));const J2=Object.assign(Object.assign({},Wj),{pictogram:{name:"pictogram",type:"group"}});class Q2 extends SV{_isValidSeries(t){return t===q2}_getDefaultSeriesSpec(t){return super._getDefaultSeriesSpec(t,["type","nameField","valueField","svg","pictogram","defaultFillColor"])}transformSpec(t){super.transformSpec(t),t.region.forEach((t=>{t.coordinate="geo"})),super.transformSeriesSpec(t)}}const t3=new Map;let e3;function i3(t,e){t3.has(t)&&Gb(`svg source key of '${t}' already exists, will be overwritten.`),e3||(e3=new io,wD(e3,"svg",$a));const i=new so(e3);i.parse(e,{type:"svg"}),t3.set(t,i)}function s3(t){t3.has(t)?t3.delete(t):Gb(`map type of '${t}' does not exists.`)}class n3 extends Ej{constructor(){super(...arguments),this.dimensionTooltipTitleCallback=t=>{var e;const i=this.series;return null!==(e=this._getDimensionData(t))&&void 0!==e?e:i.getDatumName(t)},this.markTooltipValueCallback=(t,e)=>{const{measureFields:i}=this._seriesCacheInfo;if(i[0]&&t.data)return t.data[i[0]]},this.markTooltipKeyCallback=t=>{var e;return null===(e=t.data)||void 0===e?void 0:e[this.series.getDimensionField()[0]]}}}const r3="element-highlight-by-graphic-name";class a3 extends cj{constructor(){super(...arguments),this.type=r3,this.handleStart=t=>{if(t&&t.item&&this.isGraphicInMark(t.item)&&(this.options.shouldStart?this.options.shouldStart(t):this._filterByName(t))){const e=this._parseTargetKey(t);this.start(e)}},this.handleReset=t=>{t&&t.item&&this.isGraphicInMark(t.item)&&this.reset()}}_filterByName(t){var e;return!!(null===(e=null==t?void 0:t.node)||void 0===e?void 0:e.name)}_parseTargetKey(t){return t.node.name}start(t){if(u(t))return;const{interaction:e,highlightState:i,blurState:s}=this.options,n=e.getStatedGraphics(this),r=[];this.getMarks().forEach((e=>{var i;null===(i=e.getGraphics())||void 0===i||i.forEach((e=>{e.name===t&&r.push(e)}))})),e.updateStates(this,r,n,i,s),e.setStatedGraphics(this,r)}reset(){const{highlightState:t,blurState:e,interaction:i}=this.options;i.clearAllStatesOfTrigger(this,t,e),i.setStatedGraphics(this,[])}}a3.type=r3;const o3="element-select-by-graphic-name";class l3 extends uj{constructor(){super(...arguments),this.type=o3}start(t){const e=null==t?void 0:t.name;e&&this.getMarks().forEach((t=>{var i;null===(i=t.getGraphics())||void 0===i||i.forEach((t=>{t.name===e&&super.start(t)}))}))}}l3.type=o3;function h3(t){var e;return p(t)&&"none"!==t&&!(null===(e=t.includes)||void 0===e?void 0:e.call(t,"url"))}const c3=t=>{const e=parseFloat(t.strokeWidth);if(!isNaN(e))return e;const i=t.stroke;return i&&h3(i)?1:0},d3=(t,e)=>{var i;const s=null!==(i=t.fill)&&void 0!==i?i:e;return s&&h3(s)?s:void 0},u3=(t,e)=>{var i;const s=null!==(i=t.stroke)&&void 0!==i?i:e;return!(!s||!h3(s))&&s},p3=t=>Object.assign(Object.assign({},t),{x:parseFloat(t.x)||void 0,y:parseFloat(t.y)||void 0,fillStrokeOrder:!1,fill:d3(t),lineWidth:c3(t),stroke:u3(t)}),g3={group:t=>{const e=p3(t);return Object.assign(Object.assign({},e),{visibleAll:!1!==e.visible})},rule:t=>Object.assign(Object.assign({},p3(t)),{x:parseFloat(t.x1),y:parseFloat(t.y1),x1:parseFloat(t.x2),y1:parseFloat(t.y2)}),rect:t=>Object.assign(Object.assign({},p3(t)),{fill:d3(t,"#000"),width:parseFloat(t.width),height:parseFloat(t.height)}),polygon:t=>Object.assign(Object.assign({},p3(t)),{fill:d3(t,"#000"),points:t.points.trim().split(/\s+/).map((t=>{const[e,i]=t.split(",").map(Number);return{x:e,y:i}}))}),line:t=>Object.assign(Object.assign({},p3(t)),{points:t.points.trim().split(/\s+/).map((t=>{const[e,i]=t.split(",").map(Number);return{x:e,y:i}}))}),path:t=>Object.assign(Object.assign({},p3(t)),{path:t.d,fillStrokeOrder:!1,fill:d3(t,"#000")}),arc:t=>{var e;return Object.assign(Object.assign({},p3(t)),{outerRadius:null!==(e=t.r)&&void 0!==e?e:t.ry,x:parseFloat(t.cx),y:parseFloat(t.cy),startAngle:0,endAngle:2*Math.PI,scaleX:parseFloat(t.rx)/parseFloat(t.ry)||1,fill:d3(t,"#000")})},text:(t,e)=>{var i,s;return Object.assign(Object.assign({},p3(t)),{text:e,textAlign:null!==(i=t.textAlign)&&void 0!==i?i:"left",textBaseLine:null!==(s=t.textAnchor)&&void 0!==s?s:"middle",anchor:[0,0],fill:d3(t,"#000")})}},f3=t=>{var e,i;if(!t||!t[0])return{};const{elements:s}=t[0].latestData;if(s&&s.length){s.forEach(((t,e)=>{var i;t[wL]=e,t._uniqueId=`${t.id}-${e}`,t.data=void 0;const{graphicType:s,transform:n}=t,r={visible:"hidden"!==t.attributes.visibility&&"collapse"!==t.attributes.visibility};"text"===t.graphicType?z(r,t._inheritStyle,null===(i=t.parent)||void 0===i?void 0:i._textGroupStyle,t.attributes):"group"!==t.graphicType&&z(r,t._inheritStyle,t.attributes),g3[s]?t._finalAttributes=g3[s](r,t.value):t._finalAttributes=r,n&&(t._finalAttributes.postMatrix=Object.assign({},n))}));const t=s.filter((t=>"text"===t.tagName));for(let n=0;n<t.length;n++){const r=t[n]._uniqueId,a=s.filter((t=>{let e=!1,i=t.parent;for(;i;){if(i._uniqueId===r){e=!0;break}i=i.parent}return e}));if(a&&a.length){const s=null!==(i=null===(e=t[n]._textGroupStyle)||void 0===e?void 0:e.x)&&void 0!==i?i:0;let r=s;for(let t=0;t<a.length;t++){const e=a[t];if("group"===e.graphicType)r=s;else if(e.value&&void 0===e.parent._textGroupStyle.x){const i=a.slice(0,t).reverse().find((t=>"text"===t.graphicType&&t.value));i&&(r+=SL(i.value,i._finalAttributes).width),e._finalAttributes.x=r}}}}}return s};class m3 extends KN{constructor(){super(...arguments),this.type=q2,this._idToMark=new Map}setAttrFromSpec(){var t,e,i;super.setAttrFromSpec(),this.svg=this._spec.svg,this._nameField=this._spec.nameField,this._valueField=this._spec.valueField,this.svg||null===(t=this._option)||void 0===t||t.onError("svg source is not specified !"),this._parsedSvgResult=null===(e=function(t){return t3.get(t)}(this.svg))||void 0===e?void 0:e.latestData,this._parsedSvgResult||null===(i=this._option)||void 0===i||i.onError(`'${this.svg}' is not registered !`)}getDatumCenter(t){return[Number.NaN,Number.NaN]}getDatumName(t){return t.name||t._nameFromParent}getMarksWithoutRoot(){return this.getMarks().filter((t=>t.name&&!t.name.includes("seriesGroup")&&!t.name.includes("root")&&t!==this._pictogramMark))}_buildMarkAttributeContext(){super._buildMarkAttributeContext(),this._markAttributeContext.getTransformMatrix=this.getRootMatrix.bind(this),this._markAttributeContext.coordToPosition=this.coordToPosition.bind(this),this._markAttributeContext.dataToPosition=this.dataToPosition.bind(this)}_defaultHoverConfig(t){return{type:"element-highlight-by-graphic-name",trigger:t.trigger,triggerOff:"pointerout",blurState:kF.STATE_HOVER_REVERSE,highlightState:kF.STATE_HOVER}}_defaultSelectConfig(t){const e="multiple"===t.mode,i=p(t.triggerOff)?t.triggerOff:e?["empty","self"]:["empty",t.trigger];return{type:"element-select-by-graphic-name",trigger:t.trigger,triggerOff:i,reverseState:kF.STATE_SELECTED_REVERSE,state:kF.STATE_SELECTED,isMultiple:e}}initMark(){var t;if(this._pictogramMark=this._createMark(m3.mark.pictogram,{groupKey:this.getDimensionField()[0],isSeriesMark:!0,skipBeforeLayouted:!0},{morph:ez(this._spec,m3.mark.pictogram.name)}),this._pictogramMark){this._pictogramMark.setData(this._mapViewData),this._pictogramMark.setUserId(m3.mark.pictogram.name);for(const e of this._mapViewData.getDataView().latestData){const{graphicType:i,name:s,parent:n,id:r,_nameFromParent:a,_uniqueId:o}=e,l=this._createMark({type:i,name:null!=s?s:a},{groupKey:o,isSeriesMark:!1,skipBeforeLayouted:!0,parent:null!==(t=this._idToMark.get(null==n?void 0:n._uniqueId))&&void 0!==t?t:this._pictogramMark},{morph:ez(this._spec,m3.mark.pictogram.name)});l&&(l.setData(this._mapViewData),l.setUserId(o),this._idToMark.set(o,l),"group"!==l.type&&l.setMarkConfig({graphicName:l.name}),l.setTransform([{type:"filter",callback:t=>t._uniqueId===o}]))}this._initLabelMark()}}_initLabelMark(){if(!0!==this._spec.label.visible)return;const t=this._createMark(m3.mark.label,{isSeriesMark:!1,parent:this._pictogramMark,groupKey:"_uniqueId",skipBeforeLayouted:!0});t&&(this._labelMark=t,this._labelMark.setData(this._mapViewData))}initLabelMarkStyle(){this._labelMark&&this.setMarkStyle(this._labelMark,{visible:t=>!!this._validElement(t),x:t=>{var e;return null===(e=this.dataToPosition(t,!0))||void 0===e?void 0:e.x},y:t=>{var e;return null===(e=this.dataToPosition(t,!0))||void 0===e?void 0:e.y},text:t=>t[this.nameField],textAlign:"center",textBaseline:"middle"},kF.STATE_NORMAL,sF.Series)}initMarkStyle(){const{root:t,viewBoxRect:e}=this._parsedSvgResult,i=this._mapViewData.getDataView().latestData;t&&(this.setMarkStyle(this._pictogramMark,g3.group(t.attributes),"normal",sF.Built_In),t.transform&&this.setMarkStyle(this._pictogramMark,{postMatrix:()=>t.transform},"normal",sF.Built_In),e&&this._pictogramMark.setMarkConfig({clip:!0,clipPath:[df(Object.assign(Object.assign({},e),{fill:!0}))]}));for(const t of i){const{_uniqueId:e,_finalAttributes:i}=t,s=this._idToMark.get(e),n=this._validElement(t);s&&(this.setMarkStyle(s,{keepStrokeScale:!0},"normal",sF.Built_In),n?(this.initMarkStyleWithSpec(s,z({},this._spec.pictogram,this._spec[s.name])),this.setMarkStyle(s,i,"normal",sF.Series),s.setPostProcess("fill",((t,e)=>p(t)?t:this._spec.defaultFillColor))):(s.setMarkConfig({interactive:!1}),this.setMarkStyle(s,i,"normal",sF.Built_In)))}this.initLabelMarkStyle()}_validElement(t){return t.name||t._nameFromParent}initTooltip(){this._tooltipHelper=new n3(this),this.getMarksWithoutRoot().forEach((t=>{t&&t.name&&this._tooltipHelper.activeTriggerSet.mark.add(t)}))}dataToPosition(t,e=!1){if(!t)return null;const i=t[this.nameField];if(!i)return null;const s=this.getMarksWithoutRoot().filter((t=>t.name===i));if(!s||0===s.length)return null;let n=new $e;e?s.forEach((t=>{n=n.union(t.getGraphics()[0].globalAABBBounds)})):s.forEach((t=>{n=n.union(t.getProduct().AABBBounds)}));const r={x:(n.x1+n.x2)/2,y:(n.y1+n.y2)/2};if(e){const{x:t,y:e}=this.getLayoutStartPoint();r.x-=t,r.y-=e}return r}coordToPosition(t){if(!t)return null;const{x:e,y:i}=t,s=this.getRootMatrix();if(!s)return null;const n={};return s.getInverse().transformPoint({x:e,y:i},n),n}getRootMatrix(){var t;return null===(t=this.getPictogramRootGraphic())||void 0===t?void 0:t.transMatrix}getPictogramRootGraphic(){return this._pictogramMark.getProduct()}initData(){var t,e;super.initData();const i=t3.get(this.svg);i||null===(t=this._option)||void 0===t||t.onError("no valid svg found!");const s=new so(this._dataSet,{name:`pictogram_${this.id}_data`});MD(this._dataSet,"pictogram",f3),MD(this._dataSet,"lookup",Sj),s.parse([i],{type:"dataview"}).transform({type:"pictogram"}).transform({type:"lookup",options:{from:()=>this.getViewData().latestData,key:"name",fields:this._nameField,set:(t,e)=>{e&&(t.data=e)}}}).transform({type:"lookup",options:{from:()=>this.getViewData().latestData,key:"_nameFromParent",fields:this._nameField,set:(t,e)=>{e&&(t.data=e)}}}),null===(e=this._data)||void 0===e||e.getDataView().target.addListener("change",s.reRunAllTransform),this._mapViewData=new EF(this._option,s)}mapViewDataUpdate(){this._mapViewData.updateData()}onLayoutEnd(){var t;super.onLayoutEnd(),null===(t=this._mapViewData)||void 0===t||t.getDataView().reRunAllTransform()}updateSVGSize(){const{width:t,height:e}=this.getLayoutRect(),i=t/2,s=e/2,n=this.getPictogramRootGraphic();if(n){const r=n.AABBBounds,{x1:a,x2:o,y1:l,y2:h}=n.AABBBounds,c=(a+o)/2,d=(l+h)/2,u=t/r.width(),p=e/r.height(),g=Math.min(u,p);n.scale(g,g,{x:c,y:d}),n.translate(i-c,s-d)}}initEvent(){var t;super.initEvent(),null===(t=this._mapViewData.getDataView())||void 0===t||t.target.addListener("change",this.mapViewDataUpdate.bind(this)),this.event.on(yD.afterMarkLayoutEnd,this.updateSVGSize.bind(this))}handleZoom(t){const{scale:e,scaleCenter:i}=t;if(1===e)return;const s=this.getPictogramRootGraphic();s&&(s.attribute.postMatrix||s.setAttributes({postMatrix:new qe}),s.scale(e,e,i))}handlePan(t){const{delta:e}=t;if(0===e[0]&&0===e[1])return;const i=this.getPictogramRootGraphic();i&&(i.attribute.postMatrix||i.setAttributes({postMatrix:new qe}),i.translate(e[0],e[1]))}getMarkData(t){var e;return null!==(e=t.data)&&void 0!==e?e:{}}getMeasureField(){return[this.valueField]}getDimensionField(){return[this.nameField]}_getSeriesInfo(t,e){const i=this.getDefaultShapeType();return e.map((e=>({key:e,originalKey:e,style:this.getSeriesStyle({data:{[t]:e}}),shapeType:i})))}release(){this._parsedSvgResult=null,this._idToMark.clear(),this._idToMark=null}}m3.type=q2,m3.mark=J2,m3.transformerConstructor=class extends rz{_getDefaultSpecFromChart(t){var e,i,s;const n=null!==(e=super._getDefaultSpecFromChart(t))&&void 0!==e?e:{},r=t.svg,a=null===(s=null===(i=t3.get(r))||void 0===i?void 0:i.latestData)||void 0===s?void 0:s.elements;return a&&a.length&&a.map((t=>t.name)).filter((t=>p(t))).forEach((e=>{t[e]&&(n[e]=t[e])})),n}};const v3=()=>{iL.registerSeries(m3.type,m3),iL.registerImplement("registerSVG",i3),iL.registerImplement("unregisterSVG",s3),iL.registerInteractionTrigger(a3.type,a3),iL.registerInteractionTrigger(l3.type,l3)};let y3=class extends bV{constructor(){super(...arguments),this.transformerConstructor=Q2,this.type=K2,this.seriesType=q2}};y3.type=q2,y3.seriesType=K2,y3.transformerConstructor=Q2;const _3=()=>{iN(),v3(),iL.registerChart(y3.type,y3)};function b3(t,e,i=0){return i>Math.max(e.x1-t.x2,t.x1-e.x2,e.y1-t.y2,t.y1-e.y2)}function x3(t){return{x1:t.x,x2:t.x+t.width,y1:t.y,y2:t.y+t.height}}function S3(t){var e;if(!t||0===t.length)return[];if(1===t.length)return[t[0].rect];const i=t.map((t=>{var e;return Object.assign(Object.assign({},t),{bound:x3(t.rect),anchorCandidates:T3(null!==(e=t.anchors)&&void 0!==e?e:[],t.point,t.rect,t.offset)})})),s=[];s.push(i[0].bound);for(let t=1;t<=i.length-1;t++){const n=i[t],r=n.bound;let a=s.some((t=>b3(t,r)));if(n.anchorCandidates)if(a&&(null===(e=n.anchorCandidates)||void 0===e?void 0:e.length)>0){for(let t=0;t<n.anchorCandidates.length;t++){const e=n.anchorCandidates[t],i={x1:e.x,y1:e.y,x2:e.x+r.x2-r.x1,y2:e.y+r.y2-r.y1,anchor:e};if(!s.some((t=>b3(t,i)))){s.push(i),a=!1;break}}a&&s.push(n.bound)}else s.push(n.bound)}return s.map((t=>function(t){return{x:t.x1,y:t.y1,width:t.x2-t.x1,height:t.y2-t.y1}}(t)))}function k3(t,e,i){const s=t.map((t=>t.pointCoord)),{x1:n,x2:r,y1:a,y2:o}=Ie(s),l=i([(n+r)/2,(a+o)/2]);return l?S3(t.map((t=>{const s=t.rect,n=w3(e,t.pointCoord)?i(function(t,e,i,s=200){const n=5621/s;let r=e;for(let e=1;e<=n;e++){const e=xi(r,s,i);if(!w3(t,e))return[e.x,e.y];r=[e.x,e.y]}return e}(e,[t.pointCoord.x,t.pointCoord.y],A3(M3(t.point,l)))):t.point;n&&(s.x=n.x,s.y=n.y);const r=A3(M3(t.point,l));let a;const o=[];return r>=-45&&r<45?(a="top",o.push("left","right")):r>=45&&r<135?a="right":r>=-135&&r<-45?(a="left",o.push("left")):(a="bottom",o.push("left","right")),t.anchors=o,t.offset=20,t.rect=C3(t.rect,a,0),t}))):[]}function A3(t){return t>180?t-360:t}function M3(t,e){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI+90}function w3(t,e){for(let i=0;i<t.length;i++)if(bi(e,t[i]))return!0;return!1}function C3(t,e,i=0){const s=Object.assign({},t);return"top"===e?(s.x-=t.width/2,s.y-=i+t.height/2):"bottom"===e?(s.x-=t.width/2,s.y+=i-t.height/2):"left"===e?(s.x-=i+t.width,s.y-=t.height/2):"right"===e&&(s.x+=i,s.y-=t.height/2),s}function T3(t,e,i,s=0){const n=[];return t.forEach((t=>{const{x:r,y:a}=C3(Object.assign(Object.assign({},e),{width:i.width,height:i.height}),t,s);n.push({x:r,y:a})})),n}const B3={visible:!0,offset:12,position:"top",space:10,nameLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:10}},valueLabel:{visible:!0,style:{textBaseline:"middle",textAlign:"left",fill:"black",fontSize:10}},background:{visible:!0,padding:{top:4,bottom:4,left:6,right:6},style:{cornerRadius:2,lineWidth:1,fill:"white",stroke:"grey"}},leader:{visible:!1,style:{lineWidth:1,stroke:"black"}}};class P3 extends fH{_getDefaultSpecFromChart(){return B3}}class E3 extends _H{constructor(){super(...arguments),this.type="mapLabel",this.name=" mapLabel",this.specKey="mapLabel",this.transformerConstructor=P3,this.layoutType="none",this.layoutZIndex=eF.MarkPoint,this._activeDatum=[]}static getSpecInfo(t){return xj(t,this.specKey,this.type,(t=>t.visible&&p(t.seriesId)))}setAttrFromSpec(){var t,e,i,s;this.nameField=null!==(t=this._spec.nameField)&&void 0!==t?t:null===(e=this._series)||void 0===e?void 0:e.getDimensionField()[0],this.valueField=null!==(i=this._spec.valueField)&&void 0!==i?i:null===(s=this._series)||void 0===s?void 0:s.getMeasureField()[0]}created(){super.created(),0!=!!this._spec.visible&&(this.initRelatedInfo(),this.initData(),this.initEvent())}initRelatedInfo(){var t,e,i,s,n,r,a,o;this._series=this._option.getSeriesInUserIdOrIndex([this._spec.seriesId])[0],"outer"===this._spec.position&&(this._map=null===(e=null===(t=this._regions[0].getSeriesInType("map")[0])||void 0===t?void 0:t.getMapViewData())||void 0===e?void 0:e.latestData,this._longitudeField=null===(n=null===(s=(i=this._regions[0]).getSpec)||void 0===s?void 0:s.call(i))||void 0===n?void 0:n.longitudeField,this._latitudeField=null===(o=null===(a=(r=this._regions[0]).getSpec)||void 0===a?void 0:a.call(r))||void 0===o?void 0:o.latitudeField)}initData(){const t=this._series;if(!t)return;const e=t.getViewData();if(e){const t=new so(this._option.dataSet,{name:`${this.name}_data`});t.parse([e],{type:"dataview"}),t.transform({type:"copyDataView",level:FD.copyDataView},!1),this._data=new EF(this._option,t),t.target.addListener("change",(()=>{"hover"!==this._spec.trigger&&"click"!==this._spec.trigger&&(this._activeDatum=this._data.getLatestData())}))}}initEvent(){this.event.on("zoom",{filter:t=>this._isRelativeModel(t.model)},(()=>(this.handleZoom(),!0))),this.event.on("panmove",{filter:t=>this._isRelativeModel(t.model)},(t=>(this.handlePan(t),!0)));const t=this._spec.trigger;"none"!==t&&("hover"===t?(this.event.on("element-highlight:start",(t=>{const e=t.graphics[0];this._isRelativeSeries(e)&&this._updateDatum(pD(e))})),this.event.on("element-highlight:reset",(t=>{this._activeDatum&&this._updateDatum(null)}))):"click"===t&&(this.event.on("element-select:start",(t=>{const e=t.graphics[0];this._isRelativeSeries(e)&&this._updateDatum(pD(e))})),this.event.on("elementSelectReset",(t=>{this._activeDatum&&this._updateDatum([])}))))}handlePan(t){const{delta:e}=t;this._markerComponents.forEach((t=>{t.translate(e[0],e[1])}))}handleZoom(){this._updateMarkerLayoutAttribute()}_updateDatum(t){this._activeDatum=t,this._markerComponents.forEach(((t,e)=>{var i;const s=null===(i=this._data)||void 0===i?void 0:i.getLatestData()[e];this._activeDatum.includes(s)?t.setAttribute("visible",!0):t.setAttribute("visible",!1)}))}dataToPosition(t){return this._series.dataToPosition(t)}updateLayoutAttribute(){var t;const e=null===(t=this._data)||void 0===t?void 0:t.getLatestData();e&&0!==e.length&&(super.updateLayoutAttribute(),this._updateMarkerLayoutAttribute())}_updateMarkerLayoutAttribute(){var t;const e=[],i=[];this._markerComponents||(this._markerComponents=null===(t=this._data)||void 0===t?void 0:t.getLatestData().map(((t,e)=>{var i;const s=new pR({position:void 0,animation:!1});return s&&(s.name=`${this.name}_marker_${e}`,s.id=null!==(i=this._spec.id)&&void 0!==i?i:`${this.name}_marker_${this.id}`,s.setAttribute("zIndex",this.layoutZIndex)),s}))),this._markerComponents.forEach(((t,s)=>{const{pairInfo:n,contentMarks:r}=this._evaluateMarker(this._data.getLatestData()[s],s);n&&e.push(n),r&&i.push(r)}));const s=this._layoutLabels(e);this._layoutMarkers(s,i),this._renderMarkers()}_evaluateMarker(t,e){var i,s,n,r,a,o,l,h,c,d,u,g,f,m;let v=0,y=0,_=0,b=0,x=0;const S=this._spec.position||"top",k=this._spec.offset,A=$I(null===(i=this._spec.background)||void 0===i?void 0:i.padding),M=this._spec.space||0;y+=((null==A?void 0:A.left)||0)+((null==A?void 0:A.right)||0),_+=((null==A?void 0:A.top)||0)+((null==A?void 0:A.bottom)||0);const w={},C=this.dataToPosition(t),T=$f.group({});if(T.name=`${this.name}_marker_itemContainer_${e}`,w.container=T,null===(s=this._spec.background)||void 0===s?void 0:s.visible){const t=$f.rect(uD(Object.assign({},this._spec.background.style)));t.setAttributes(C),w.labelBackground=t,T.appendChild(t)}if(null===(n=this._spec.icon)||void 0===n?void 0:n.visible){const t=$f.symbol(uD(Object.assign({},this._spec.icon.style)));t.setAttributes(C),t.setAttribute("symbolType",null!==(a=null===(r=this._spec.icon.style)||void 0===r?void 0:r.symbolType)&&void 0!==a?a:null===(o=this._spec.icon.style)||void 0===o?void 0:o.shape);const e=t.AABBBounds,i=null!==(l=(null==e?void 0:e.y2)-(null==e?void 0:e.y1))&&void 0!==l?l:0,s=null!==(h=(null==e?void 0:e.x2)-(null==e?void 0:e.x1))&&void 0!==h?h:0;w.icon=t,T.appendChild(t),x=i,b+=s,v++}if(null===(c=this._spec.nameLabel)||void 0===c?void 0:c.visible){const e=$f.text(uD(Object.assign({},this._spec.nameLabel.style)));e.setAttributes(C),e.setAttribute("text",t[this.nameField]);const i=e.AABBBounds,s=null!==(d=(null==i?void 0:i.y2)-(null==i?void 0:i.y1))&&void 0!==d?d:0,n=null!==(u=(null==i?void 0:i.x2)-(null==i?void 0:i.x1))&&void 0!==u?u:0;w.nameLabel=e,T.appendChild(e),x=Math.max(x,s),b+=n,v++}if((null===(g=this._spec.valueLabel)||void 0===g?void 0:g.visible)&&p(t[this.valueField])){const e=$f.text(uD(Object.assign({},this._spec.valueLabel.style)));e.setAttributes(C),e.setAttribute("text",t[this.valueField]);const i=e.AABBBounds,s=null!==(f=(null==i?void 0:i.y2)-(null==i?void 0:i.y1))&&void 0!==f?f:0,n=null!==(m=(null==i?void 0:i.x2)-(null==i?void 0:i.x1))&&void 0!==m?m:0;w.valueLabel=e,T.appendChild(e),x=Math.max(x,s),b+=n,v++}const B=Object.values(w).find((t=>!!t&&"group"!==t.type)),P={x:null==B?void 0:B.getComputedAttribute("x"),y:null==B?void 0:B.getComputedAttribute("y")},E={x:P.x,y:P.y,width:0,height:0};E.width=y+b+(v-1)*M,E.height=_+x;const O={rect:E,point:P,index:e};if("outer"!==S){const t=["top","right","left","bottom"].filter((t=>t!==S));O.rect=C3(E,S,k),O.anchors=t,O.offset=k}else O.pointCoord={x:+(null==t?void 0:t[this._longitudeField]),y:+(null==t?void 0:t[this._latitudeField])};return{pairInfo:O,contentMarks:w}}_layoutMarkers(t,e){var i,s,n;for(let r=0;r<e.length;r++){if(!t[r]||!e[r])return;const{icon:a,nameLabel:o,valueLabel:l,labelBackground:h,container:c}=e[r],d=t[r],u=$I(null===(i=this._spec.background)||void 0===i?void 0:i.padding),p=this._spec.space||0,g=d.height/2;let f=(null==u?void 0:u.left)||0;[a,o,l].forEach(((t,e)=>{var i,s;if(t){const n=t.AABBBounds;let r=0;"symbol"===t.type&&(r+=(null!==(i=n.x2-n.x1)&&void 0!==i?i:0)/2),t.setAttributes({x:f+r,y:g}),f+=null!==(s=n.x2-n.x1)&&void 0!==s?s:0,2!==e&&(f+=p)}})),null==h||h.setAttributes({x:0,y:0,width:d.width,height:d.height}),null==c||c.setAttributes({dx:-d.width/2,dy:-d.height/2});const m=this._data.getLatestData()[r],v=this.dataToPosition(m),y=this.getRegions()[0].getLayoutStartPoint(),_=!(!(null===(s=this._spec.leader)||void 0===s?void 0:s.visible)||!(a||o||l));this._markerComponents[r].setAttributes({x:y.x,y:y.y,position:v,visible:this._activeDatum.includes(m),itemContent:{refX:0,type:"custom",renderCustomCallback:()=>c,autoRotate:!1,offsetX:d.x+d.width/2-v.x,offsetY:d.y+d.height/2-v.y},itemLine:{visible:_,type:"type-po",lineStyle:uD(Object.assign({},null===(n=this._spec.leader)||void 0===n?void 0:n.style)),startSymbol:{visible:!1}}})}}_renderMarkers(){if(this._markerComponents&&this._markerComponents.length)for(let t=0;t<this._markerComponents.length;t++)this.getContainer().add(this._markerComponents[t])}_layoutLabels(t){return"outer"===this._spec.position&&this._map?k3(t,this._map,(t=>this._series.dataToPosition({[this._longitudeField]:t[0],[this._latitudeField]:t[1]}))):S3(t)}_isRelativeModel(t){var e,i,s;const n=null!==(i=null===(e=this._series.getXAxisHelper())||void 0===e?void 0:e.getAxisId())&&void 0!==i?i:null===(s=this._series.getCoordinateHelper())||void 0===s?void 0:s.getCoordinateId();return(null==t?void 0:t.id)===n}_isRelativeSeries(t){var e;return(null===(e=t.context)||void 0===e?void 0:e.modelId)===this._series.id}_getNeedClearVRenderComponents(){return this._markerComponents}getVRenderComponents(){return this._markerComponents}}E3.type="mapLabel",E3.specKey="mapLabel",E3.transformerConstructor=P3;const O3=X1("Bar3dChart",{type:"bar3d",vchartConstructor:mj},[m2,QQ,i0,...K1]),R3=X1("BoxPlotChart",{type:"boxPlot",vchartConstructor:mj},[kZ,QQ,...K1]),I3=[nj,Hb,cJ,z0,NZ,eJ,f0,p1,IQ],L3=X1("CirclePackingChart",{type:"circlePacking",vchartConstructor:mj},[gZ,QQ,...I3]),D3=[nj,Hb,cJ,z0,rG,oG,_J,p0,eJ,LJ,NZ,f0,p1,FJ,IQ],F3=X1("CircularProgressChart",{type:"circularProgress",vchartConstructor:mj},[Gq,QQ,WJ,...D3]),j3=X1("CommonChart",{type:"common",vchartConstructor:mj},[Rq,UH,XH,qH,JH,vJ,QQ,i0,fN,ON,fV,GN,UU]),z3=X1("CorrelationChart",{type:"correlation",vchartConstructor:mj},[LZ,...I3]),H3=X1("FunnelChart",{type:"funnel",vchartConstructor:mj},[iZ,QQ,...I3]),V3=X1("Funnel3dChart",{type:"funnel3d",vchartConstructor:mj},[A2,QQ,...I3]),N3=X1("GaugeChart",{type:"gauge",vchartConstructor:mj},[Xq,...I3]),W3=X1("HeatmapChart",{type:"heatmap",vchartConstructor:mj},[OZ,QQ,...K1]),U3=X1("Histogram3dChart",{type:"histogram3d",vchartConstructor:mj},[w2,QQ,...K1]),G3=X1("HistogramChart",{type:"histogram",vchartConstructor:mj},[Nq,QQ,...K1]),Y3=X1("LinearProgressChart",{type:"linearProgress",vchartConstructor:mj},[rZ,QQ,...K1]),$3=X1("LineChart",{type:"line",vchartConstructor:mj},[aN,QQ,...K1]),X3=X1("LiquidChart",{type:"liquid",vchartConstructor:mj},[m1,WJ,...I3]),K3=X1("MapChart",{type:"map",vchartConstructor:mj},[mq,QQ,...I3]),q3=X1("MosaicChart",{type:"mosaic",vchartConstructor:mj},[S1,QQ,i0,...K1]),Z3=X1("PictogramChart",{type:"pictogram",vchartConstructor:mj},[_3,QQ,...I3]),J3=X1("PieChart",{type:"pie",vchartConstructor:mj},[kq,QQ,WJ,...I3]),Q3=X1("Pie3dChart",{type:"pie3d",vchartConstructor:mj},[I2,QQ,WJ,...I3]),t5=X1("RadarChart",{type:"radar",vchartConstructor:mj},[Pq,QQ,...D3]),e5=X1("RangeAreaChart",{type:"rangeArea",vchartConstructor:mj},[BZ,QQ,...K1]),i5=X1("RangeColumnChart",{type:"rangeColumn",vchartConstructor:mj},[lZ,QQ,...K1]),s5=X1("RangeColumn3dChart",{type:"rangeColumn3d",vchartConstructor:mj},[X2,QQ,...K1]),n5=X1("RoseChart",{type:"rose",vchartConstructor:mj},[Cq,QQ,...D3]),r5=X1("SankeyChart",{type:"sankey",vchartConstructor:mj},[wZ,QQ,...I3]),a5=X1("ScatterChart",{type:"scatter",vchartConstructor:mj},[XN,QQ,...K1]),o5=X1("SequenceChart",{type:"sequence",vchartConstructor:mj},[Fq,...K1]),l5=X1("SunburstChart",{type:"sunburst",vchartConstructor:mj},[dZ,QQ,...I3]),h5=X1("TreemapChart",{type:"treemap",vchartConstructor:mj},[vZ,QQ,...I3]),c5=X1("WordCloudChart",{type:"wordCloud",vchartConstructor:mj},[Jq,...I3]),d5=X1("WordCloud3dChart",{type:"wordCloud3d",vchartConstructor:mj},[H2,...I3]),u5=X1("VennChart",{type:"venn",vchartConstructor:mj},[_1,QQ,...I3]),p5=X1("WaterfallChart",{type:"waterfall",vchartConstructor:mj},[bZ,QQ,i0,...K1]),g5=(t,i,s,n)=>{n&&n.length&&mj.useRegisters(n);const r=z1.concat(["updateId","componentId"]),a=t=>{var s;const n=e.useContext(M1),r=null!==(s=t.id)&&void 0!==s?s:t.componentId,a=e.useRef({}),o=e=>{const s=i.map((t=>`${r}-${t}`));(null==e?void 0:e.mark)&&s.includes(e.mark.getUserId())&&t[H1[e.event.type]](e)},l=t=>{t&&n.chart&&(a.current&&Object.keys(a.current).forEach((t=>{n.chart.off(E1[t],a.current[t]),a.current[t]=null})),t&&Object.keys(t).forEach((t=>{var e;(null===(e=a.current)||void 0===e?void 0:e[t])||(n.chart.on(E1[t],o),a.current||(a.current={}),a.current[t]=o)})))};return l(V1(t)),e.useEffect((()=>()=>{l({}),a.current={}}),[]),null};return a.displayName=t,a.parseSpec=t=>{var e;const n=H(t,r);var a,o;return a=n,o=null!==(e=t.id)&&void 0!==e?e:t.componentId,i.forEach((t=>{const e=`${o}-${t}`;u(a[t])?a[t]={id:e}:u(a[t].id)&&(a[t].id=e)})),u(s)||(n.type=s),{spec:n,specName:"series"}},a},f5=g5("Series",["bar","line","area"]),m5=g5("Area",["area"],"area",[fN]),v5=g5("Bar",["bar"],"bar",[ON]),y5=g5("Bar3d",["bar"],"bar3d",[u2]),_5=g5("BoxPlot",["boxPlot"],"boxPlot",[hU]),b5=g5("CirclePacking",["circlePacking","label"],"circlePacking",[jX]),x5=g5("CircularProgress",["circularProgress"],"circularProgress",[jG]),S5=g5("Correlation",["centerPoint","ripplePoint","centerLabel","nodePoint","label"],"correlation",[LZ]),k5=g5("Dot",["dot"],"dot",[AG]),A5=g5("Funnel",["funnel"],"funnel",[gX]),M5=g5("Funnel3d",["funnel"],"funnel3d",[S2]),w5=g5("Gauge",["segment","track","label"],"gauge",[kK]),C5=g5("GaugePointer",["pinBackground","pin","pointer"],"gaugePointer",[bK]),T5=g5("Heatmap",["cell","cellBackground","label"],"heatmap",[PK]),B5=g5("Line",["line"],"line",[fV]),P5=g5("LinearProgress",["linearProgress"],"linearProgress",[GG]),E5=g5("Link",["link"],"link",[BG]),O5=g5("Liquid",["node","link"],"liquid",[eq]),R5=g5("Map",["map"],"map",[uW]),I5=g5("Mosaic",["mosaic"],"mosaic",[pq]),L5=g5("Pictogram",["pictogram"],"pictogram",[v3]),D5=g5("Pie",["pie"],"pie",[UU]),F5=g5("Pie3d",["pie"],"pie3d",[O2]),j5=g5("Radar",["radar"],"radar",[yG]),z5=g5("RangeArea",["rangeArea"],"rangeArea",[AU]),H5=g5("RangeColumn",["rangeColumn"],"rangeColumn",[bU]),V5=g5("RangeColumn3d",["rangeColumn"],"rangeColumn3d",[G2]),N5=g5("Rose",["rose"],"rose",[hG]),W5=g5("Sankey",["node","link"],"sankey",[iK]),U5=g5("Scatter",["scatter"],"scatter",[GN]),G5=g5("Sunburst",["sunburst","label"],"sunburst",[OX]),Y5=g5("Treemap",["leaf","nonLeaf","label","nonLeafLabel"],"treemap",[cK]),$5=g5("Venn",["circle","overlap","overlapLabel"],"venn",[dq]),X5=g5("Waterfall",["leaderLine","stackLabel","label","bar"],"waterfall",[VW]),K5=g5("WordCloud",["wordCloud"],"wordCloud",[X$]),q5=g5("WordCloud3d",["wordCloud"],"wordCloud3d",[F2]),Z5=(t,i,s,n,r)=>{r&&r.length&&mj.useRegisters(r);const a=["updateId","componentId","children"],o=s?Object.keys(s).concat(a):a,l=t=>{const i=e.useContext(M1),n=e.useRef(null),r=e.useRef(t.updateId);if(t.updateId!==r.current){r.current=t.updateId;!!s&&N1(i.chart,t,n.current,s)&&(n.current=t)}return e.useEffect((()=>()=>{s&&N1(i.chart,null,n.current,s)}),[]),null};return l.displayName=t,l.parseSpec=t=>({spec:H(t,o),specName:i,isSingle:n}),l},J5=Z5("Axis","axes"),Q5=Z5("Mark","customMark",null,!1,[f0,p1]),t4=Z5("Region","region"),e4=Z5("Legend","legends",O1,!1,[NZ]),i4=Z5("Brush","brush",R1,!0,[p0]),s4=Z5("Crosshair","crosshair"),n4=Z5("DataZoom","dataZoom",I1,!1,[LJ]),r4=Z5("MarkLine","markLine",null,!1,[PQ]),a4=Z5("MarkArea","markArea",null,!1,[jQ]),o4=Z5("MarkPoint","markPoint",null,!1,[o0]),l4=Z5("ScrollBar","scrollBar",D1,!1,[FJ]),h4=(t,i,s)=>{s&&s.length&&mj.useRegisters(s);const n=["updateId","componentId","children"],r=t=>{const i=e.useRef(t.updateId);return t.updateId!==i.current&&(i.current=t.updateId),null};return r.displayName=t,r.parseSpec=t=>{const s=H(t,n);return!t.tooltipRender&&t.children&&(s.tooltipRender=(i,s,n)=>e.Children.map(t.children,(t=>g(t)?e.cloneElement(t,{tooltipElement:i,actualTooltip:s,params:n}):t))),{spec:s,specName:i,isSingle:!0}},r},c4=h4("Tooltip","tooltip",[cJ,z0]),d4=h4("CanvasTooltip","tooltip",[cJ,G0]),u4=Z5("Player","player",L1,!0,[$Q]),p4=Z5("Indicator","indicator",null,!0,[WJ]),g4=Z5("Title","title",null,!0,[IQ]),f4=Z5("ContinuousLegend","legends",O1,!1,[eJ]),m4=X1("VChart",{vchartConstructor:mj}),v4=X1("VChartSimple");t.Area=m5,t.AreaChart=q1,t.Axis=J5,t.Bar=v5,t.Bar3d=y5,t.Bar3dChart=O3,t.BarChart=Z1,t.BoxPlot=_5,t.BoxPlotChart=R3,t.Brush=i4,t.CanvasTooltip=d4,t.CirclePacking=b5,t.CirclePackingChart=L3,t.CircularProgress=x5,t.CircularProgressChart=F3,t.CommonChart=j3,t.ContinuousLegend=f4,t.Correlation=S5,t.CorrelationChart=z3,t.Crosshair=s4,t.DataZoom=n4,t.Dot=k5,t.Funnel=A5,t.Funnel3d=M5,t.Funnel3dChart=V3,t.FunnelChart=H3,t.Gauge=w5,t.GaugeChart=N3,t.GaugePointer=C5,t.Heatmap=T5,t.HeatmapChart=W3,t.Histogram3dChart=U3,t.HistogramChart=G3,t.Indicator=p4,t.Legend=e4,t.Line=B5,t.LineChart=$3,t.LinearProgress=P5,t.LinearProgressChart=Y3,t.Link=E5,t.Liquid=O5,t.LiquidChart=X3,t.Map=R5,t.MapChart=K3,t.Mark=Q5,t.MarkArea=a4,t.MarkLine=r4,t.MarkPoint=o4,t.Mosaic=I5,t.MosaicChart=q3,t.Pictogram=L5,t.PictogramChart=Z3,t.Pie=D5,t.Pie3d=F5,t.Pie3dChart=Q3,t.PieChart=J3,t.Player=u4,t.REACT_TOOLTIP_ClASS_NAME=W1,t.Radar=j5,t.RadarChart=t5,t.RangeArea=z5,t.RangeAreaChart=e5,t.RangeColumn=H5,t.RangeColumn3d=V5,t.RangeColumn3dChart=s5,t.RangeColumnChart=i5,t.Region=t4,t.Rose=N5,t.RoseChart=n5,t.Sankey=W5,t.SankeyChart=r5,t.Scatter=U5,t.ScatterChart=a5,t.ScrollBar=l4,t.SequenceChart=o5,t.Series=f5,t.Sunburst=G5,t.SunburstChart=l5,t.Title=g4,t.Tooltip=c4,t.Treemap=Y5,t.TreemapChart=h5,t.VChart=m4,t.VChartCore=mj,t.VChartSimple=v4,t.Venn=$5,t.VennChart=u5,t.Waterfall=X5,t.WaterfallChart=p5,t.WordCloud=K5,t.WordCloud3d=q5,t.WordCloud3dChart=d5,t.WordCloudChart=c5,t.registerAreaChart=yN,t.registerAxis3dPlugin=()=>{a2(),g2(),(()=>{XH();const t=iL.getComponentInKey($H.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},$H.builtInTheme.axisX),V2)}),G(t,N2)})(),(()=>{UH();const t=iL.getComponentInKey(WH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},WH.builtInTheme.axisX),V2)}),G(t,N2)})(),(()=>{qH();const t=iL.getComponentInKey(KH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},t.builtInTheme.axisX),V2)}),G(t,N2)})(),(()=>{JH();const t=iL.getComponentInKey(QH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},t.builtInTheme.axisX),V2)}),G(t,N2)})(),(()=>{JH();const t=iL.getComponentInKey(ZH.type);t.builtInTheme=Object.assign(Object.assign({},t.builtInTheme),{axisZ:Object.assign(Object.assign({},ZH.builtInTheme.axisX),V2)}),G(t,N2)})()},t.registerBar3dChart=m2,t.registerBarChart=LN,t.registerBoxplotChart=kZ,t.registerBrush=p0,t.registerCartesianBandAxis=XH,t.registerCartesianCrossHair=vJ,t.registerCartesianLinearAxis=UH,t.registerCartesianLogAxis=JH,t.registerCartesianSymlogAxis=tV,t.registerCartesianTimeAxis=qH,t.registerChartResizeZoomPlugin=()=>{Y0(k1)},t.registerCirclePackingChart=gZ,t.registerCircularProgressChart=Gq,t.registerCommonChart=Rq,t.registerContinuousLegend=eJ,t.registerCorrelationChart=LZ,t.registerCustomMark=f0,t.registerDataZoom=LJ,t.registerDiscreteLegend=NZ,t.registerFunnel3dChart=A2,t.registerFunnelChart=iZ,t.registerGaugeChart=Xq,t.registerGeoCoordinate=hW,t.registerGeoMarkPoint=d0,t.registerHeatmapChart=OZ,t.registerHistogram3dChart=w2,t.registerHistogramChart=Nq,t.registerIndicator=WJ,t.registerLabel=QQ,t.registerLineChart=aN,t.registerLinearProgressChart=rZ,t.registerLiquidChart=m1,t.registerMapChart=mq,t.registerMapLabel=t=>{const e=(null==t?void 0:t.VChart)||mj;e&&e.useComponent([E3])},t.registerMarkArea=jQ,t.registerMarkLine=PQ,t.registerMarkPoint=o0,t.registerMosaicChart=S1,t.registerPictogramChart=_3,t.registerPie3dChart=I2,t.registerPieChart=kq,t.registerPlayer=$Q,t.registerPolarBandAxis=oG,t.registerPolarCrossHair=_J,t.registerPolarLinearAxis=rG,t.registerPolarMarkArea=HQ,t.registerPolarMarkLine=OQ,t.registerPolarMarkPoint=h0,t.registerPoptip=y0,t.registerRadarChart=Pq,t.registerRangeAreaChart=BZ,t.registerRangeColumn3dChart=X2,t.registerRangeColumnChart=lZ,t.registerRoseChart=Cq,t.registerSankeyChart=wZ,t.registerScatterChart=XN,t.registerScrollBar=FJ,t.registerSequenceChart=Fq,t.registerSunburstChart=dZ,t.registerTitle=IQ,t.registerTooltip=cJ,t.registerTotalLabel=i0,t.registerTreemapChart=vZ,t.registerVennChart=_1,t.registerWaterfallChart=bZ,t.registerWordCloud3dChart=H2,t.registerWordCloudChart=Jq,t.registerWordCloudShapeChart=Qq,t.version="2.0.12"}));
|
|
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
|
|
7
7
|
const BaseComponent_1 = require("./BaseComponent"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.MarkArea = (0, BaseComponent_1.createComponent)("MarkArea", "markArea", null, !1, [ vchart_1.registerMarkArea ]);
|
|
10
|
-
//# sourceMappingURL=MarkArea.js.map
|
|
9
|
+
exports.MarkArea = (0, BaseComponent_1.createComponent)("MarkArea", "markArea", null, !1, [ vchart_1.registerMarkArea ]);
|
|
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
|
|
7
7
|
const eventsUtils_1 = require("../eventsUtils"), BaseComponent_1 = require("./BaseComponent"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.ScrollBar = (0, BaseComponent_1.createComponent)("ScrollBar", "scrollBar", eventsUtils_1.SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ vchart_1.registerScrollBar ]);
|
|
9
|
+
exports.ScrollBar = (0, BaseComponent_1.createComponent)("ScrollBar", "scrollBar", eventsUtils_1.SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ vchart_1.registerScrollBar ]);
|
|
10
|
+
//# sourceMappingURL=ScrollBar.js.map
|
|
@@ -2,5 +2,4 @@ import { createComponent } from "./BaseComponent";
|
|
|
2
2
|
|
|
3
3
|
import { registerMarkArea } from "@visactor/vchart";
|
|
4
4
|
|
|
5
|
-
export const MarkArea = createComponent("MarkArea", "markArea", null, !1, [ registerMarkArea ]);
|
|
6
|
-
//# sourceMappingURL=MarkArea.js.map
|
|
5
|
+
export const MarkArea = createComponent("MarkArea", "markArea", null, !1, [ registerMarkArea ]);
|
|
@@ -4,4 +4,5 @@ import { createComponent } from "./BaseComponent";
|
|
|
4
4
|
|
|
5
5
|
import { registerScrollBar } from "@visactor/vchart";
|
|
6
6
|
|
|
7
|
-
export const ScrollBar = createComponent("ScrollBar", "scrollBar", SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ registerScrollBar ]);
|
|
7
|
+
export const ScrollBar = createComponent("ScrollBar", "scrollBar", SCROLLBAR_CUSTOMIZED_EVENTS, !1, [ registerScrollBar ]);
|
|
8
|
+
//# sourceMappingURL=ScrollBar.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/react-vchart",
|
|
3
|
-
"version": "2.0.13-alpha.
|
|
3
|
+
"version": "2.0.13-alpha.8",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "The react version of VChart 4.x",
|
|
6
6
|
"keywords": [
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"build"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@visactor/vchart": "2.0.13-alpha.
|
|
27
|
-
"@visactor/vchart-extension": "2.0.13-alpha.
|
|
26
|
+
"@visactor/vchart": "2.0.13-alpha.8",
|
|
27
|
+
"@visactor/vchart-extension": "2.0.13-alpha.8",
|
|
28
28
|
"@visactor/vutils": "~1.0.12",
|
|
29
29
|
"@visactor/vrender-core": "~1.0.36",
|
|
30
30
|
"@visactor/vrender-kits": "~1.0.36",
|