UNPKG

ag-charts-core

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

2 lines 195 kB
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var n in t)__defProp(e,n,{get:t[n],enumerable:!0})},__copyProps=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of __getOwnPropNames(t))!__hasOwnProp.call(e,i)&&i!==n&&__defProp(e,i,{get:()=>t[i],enumerable:!(r=__getOwnPropDesc(t,i))||r.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__decorateClass=(e,t,n,r)=>{for(var i=r>1?void 0:r?__getOwnPropDesc(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(r?s(t,n,i):s(i))||i);return r&&i&&__defProp(t,n,i),i},main_exports={};__export(main_exports,{AGGREGATION_INDEX_SELECTED:()=>AGGREGATION_INDEX_SELECTED,AGGREGATION_INDEX_UNSET:()=>AGGREGATION_INDEX_UNSET,AGGREGATION_INDEX_X_MAX:()=>AGGREGATION_INDEX_X_MAX,AGGREGATION_INDEX_X_MIN:()=>AGGREGATION_INDEX_X_MIN,AGGREGATION_INDEX_Y_MAX:()=>AGGREGATION_INDEX_Y_MAX,AGGREGATION_INDEX_Y_MIN:()=>AGGREGATION_INDEX_Y_MIN,AGGREGATION_MAX_POINTS:()=>AGGREGATION_MAX_POINTS,AGGREGATION_MIN_RANGE:()=>AGGREGATION_MIN_RANGE,AGGREGATION_SPAN:()=>AGGREGATION_SPAN,AGGREGATION_THRESHOLD:()=>AGGREGATION_THRESHOLD,AbstractModuleInstance:()=>AbstractModuleInstance,ActionOnSet:()=>ActionOnSet,AgDocument:()=>AgDocument,AsyncAwaitQueue:()=>AsyncAwaitQueue,BASE_FONT_SIZE:()=>BASE_FONT_SIZE,BREAK_TRANSFORM_CHAIN:()=>BREAK_TRANSFORM_CHAIN,BaseProperties:()=>BaseProperties,Border:()=>Border,CANVAS_HEIGHT:()=>CANVAS_HEIGHT,CANVAS_TO_BUFFER_DEFAULTS:()=>CANVAS_TO_BUFFER_DEFAULTS,CANVAS_WIDTH:()=>CANVAS_WIDTH,CARTESIAN_AXIS_TYPE:()=>CARTESIAN_AXIS_TYPE,CARTESIAN_POSITION:()=>CARTESIAN_POSITION,CallbackCache:()=>CallbackCache,ChangeDetectableProperties:()=>ChangeDetectableProperties,ChartAxisDirection:()=>ChartAxisDirection,ChartUpdateType:()=>ChartUpdateType,CleanupRegistry:()=>CleanupRegistry,Color:()=>Color,ConfiguredCanvasMixin:()=>ConfiguredCanvasMixin,DEFAULT_ANNOTATION_HANDLE_FILL:()=>DEFAULT_ANNOTATION_HANDLE_FILL,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>DEFAULT_ANNOTATION_STATISTICS_COLOR,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>DEFAULT_ANNOTATION_STATISTICS_FILL,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>DEFAULT_ANNOTATION_STATISTICS_STROKE,DEFAULT_CAPTION_ALIGNMENT:()=>DEFAULT_CAPTION_ALIGNMENT,DEFAULT_CAPTION_LAYOUT_STYLE:()=>DEFAULT_CAPTION_LAYOUT_STYLE,DEFAULT_FIBONACCI_STROKES:()=>DEFAULT_FIBONACCI_STROKES,DEFAULT_FINANCIAL_CHARTS_ANNOTATION_BACKGROUND_FILL:()=>DEFAULT_FINANCIAL_CHARTS_ANNOTATION_BACKGROUND_FILL,DEFAULT_FINANCIAL_CHARTS_ANNOTATION_COLOR:()=>DEFAULT_FINANCIAL_CHARTS_ANNOTATION_COLOR,DEFAULT_POLAR_SERIES_STROKE:()=>DEFAULT_POLAR_SERIES_STROKE,DEFAULT_SHADOW_COLOUR:()=>DEFAULT_SHADOW_COLOUR,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>DEFAULT_SPARKLINE_CROSSHAIR_STROKE,DEFAULT_TEXTBOX_COLOR:()=>DEFAULT_TEXTBOX_COLOR,DEFAULT_TEXTBOX_FILL:()=>DEFAULT_TEXTBOX_FILL,DEFAULT_TEXTBOX_STROKE:()=>DEFAULT_TEXTBOX_STROKE,DEFAULT_TEXT_ANNOTATION_COLOR:()=>DEFAULT_TEXT_ANNOTATION_COLOR,DEFAULT_TOOLBAR_POSITION:()=>DEFAULT_TOOLBAR_POSITION,DIRECTION_SWAP_AXES:()=>DIRECTION_SWAP_AXES,Debug:()=>debugLogger_exports,DebugMetrics:()=>debugMetrics_exports,DeclaredSceneChangeDetection:()=>DeclaredSceneChangeDetection,DeclaredSceneObjectChangeDetection:()=>DeclaredSceneObjectChangeDetection,Deprecated:()=>Deprecated,DeprecatedAndRenamedTo:()=>DeprecatedAndRenamedTo,EllipsisChar:()=>EllipsisChar,ErrorType:()=>ErrorType,EventEmitter:()=>EventEmitter,FILL_GRADIENT_BLANK_DEFAULTS:()=>FILL_GRADIENT_BLANK_DEFAULTS,FILL_GRADIENT_CONIC_SERIES_DEFAULTS:()=>FILL_GRADIENT_CONIC_SERIES_DEFAULTS,FILL_GRADIENT_LINEAR_DEFAULTS:()=>FILL_GRADIENT_LINEAR_DEFAULTS,FILL_GRADIENT_LINEAR_HIERARCHY_DEFAULTS:()=>FILL_GRADIENT_LINEAR_HIERARCHY_DEFAULTS,FILL_GRADIENT_LINEAR_KEYED_DEFAULTS:()=>FILL_GRADIENT_LINEAR_KEYED_DEFAULTS,FILL_GRADIENT_LINEAR_SINGLE_DEFAULTS:()=>FILL_GRADIENT_LINEAR_SINGLE_DEFAULTS,FILL_GRADIENT_RADIAL_DEFAULTS:()=>FILL_GRADIENT_RADIAL_DEFAULTS,FILL_GRADIENT_RADIAL_REVERSED_DEFAULTS:()=>FILL_GRADIENT_RADIAL_REVERSED_DEFAULTS,FILL_GRADIENT_RADIAL_REVERSED_SERIES_DEFAULTS:()=>FILL_GRADIENT_RADIAL_REVERSED_SERIES_DEFAULTS,FILL_GRADIENT_RADIAL_SERIES_DEFAULTS:()=>FILL_GRADIENT_RADIAL_SERIES_DEFAULTS,FILL_IMAGE_BLANK_DEFAULTS:()=>FILL_IMAGE_BLANK_DEFAULTS,FILL_IMAGE_DEFAULTS:()=>FILL_IMAGE_DEFAULTS,FILL_PATTERN_BLANK_DEFAULTS:()=>FILL_PATTERN_BLANK_DEFAULTS,FILL_PATTERN_DEFAULTS:()=>FILL_PATTERN_DEFAULTS,FILL_PATTERN_HIERARCHY_DEFAULTS:()=>FILL_PATTERN_HIERARCHY_DEFAULTS,FILL_PATTERN_KEYED_DEFAULTS:()=>FILL_PATTERN_KEYED_DEFAULTS,FILL_PATTERN_SINGLE_DEFAULTS:()=>FILL_PATTERN_SINGLE_DEFAULTS,FONT_SIZE:()=>FONT_SIZE,FONT_SIZE_RATIO:()=>FONT_SIZE_RATIO,Graph:()=>Graph,IS_DARK_THEME:()=>IS_DARK_THEME,InterpolationProperties:()=>InterpolationProperties,LABEL_BOXING_DEFAULTS:()=>LABEL_BOXING_DEFAULTS,LEGEND_CONTAINER_THEME:()=>LEGEND_CONTAINER_THEME,LRUCache:()=>LRUCache,LineSplitter:()=>LineSplitter,Logger:()=>logger_exports,MARKER_SERIES_HIGHLIGHT_STYLE:()=>MARKER_SERIES_HIGHLIGHT_STYLE,MULTI_SERIES_HIGHLIGHT_STYLE:()=>MULTI_SERIES_HIGHLIGHT_STYLE,MementoCaretaker:()=>MementoCaretaker,ModuleRegistry:()=>moduleRegistry_exports,ModuleType:()=>ModuleType,ObserveChanges:()=>ObserveChanges,PALETTE_ALT_DOWN_FILL:()=>PALETTE_ALT_DOWN_FILL,PALETTE_ALT_DOWN_STROKE:()=>PALETTE_ALT_DOWN_STROKE,PALETTE_ALT_NEUTRAL_FILL:()=>PALETTE_ALT_NEUTRAL_FILL,PALETTE_ALT_NEUTRAL_STROKE:()=>PALETTE_ALT_NEUTRAL_STROKE,PALETTE_ALT_UP_FILL:()=>PALETTE_ALT_UP_FILL,PALETTE_ALT_UP_STROKE:()=>PALETTE_ALT_UP_STROKE,PALETTE_DOWN_FILL:()=>PALETTE_DOWN_FILL,PALETTE_DOWN_STROKE:()=>PALETTE_DOWN_STROKE,PALETTE_NEUTRAL_FILL:()=>PALETTE_NEUTRAL_FILL,PALETTE_NEUTRAL_STROKE:()=>PALETTE_NEUTRAL_STROKE,PALETTE_UP_FILL:()=>PALETTE_UP_FILL,PALETTE_UP_STROKE:()=>PALETTE_UP_STROKE,PART_WHOLE_HIGHLIGHT_STYLE:()=>PART_WHOLE_HIGHLIGHT_STYLE,POLAR_AXIS_SHAPE:()=>POLAR_AXIS_SHAPE,POLAR_AXIS_TYPE:()=>POLAR_AXIS_TYPE,Padding:()=>Padding,ParallelStateMachine:()=>ParallelStateMachine,PolarZIndexMap:()=>PolarZIndexMap,PropertiesArray:()=>PropertiesArray,Property:()=>addFakeTransformToInstanceProperty,ProxyOnWrite:()=>ProxyOnWrite,ProxyProperty:()=>ProxyProperty,ProxyPropertyOnWrite:()=>ProxyPropertyOnWrite,ReactiveState:()=>ReactiveState,SAFE_FILLS_OPERATION:()=>SAFE_FILLS_OPERATION,SAFE_FILL_OPERATION:()=>SAFE_FILL_OPERATION,SAFE_RANGE2_OPERATION:()=>SAFE_RANGE2_OPERATION,SAFE_STROKE_FILL_OPERATION:()=>SAFE_STROKE_FILL_OPERATION,SEGMENTATION_DEFAULTS:()=>SEGMENTATION_DEFAULTS,SERIES_SELECTION_THEME:()=>SERIES_SELECTION_THEME,SINGLE_SERIES_HIGHLIGHT_STYLE:()=>SINGLE_SERIES_HIGHLIGHT_STYLE,SKIP_JS_BUILTINS:()=>SKIP_JS_BUILTINS,ScaleAlignment:()=>ScaleAlignment,SceneArrayChangeDetection:()=>SceneArrayChangeDetection,SceneChangeDetection:()=>SceneChangeDetection,SceneObjectChangeDetection:()=>SceneObjectChangeDetection,SceneRefChangeDetection:()=>SceneRefChangeDetection,SeriesContentZIndexMap:()=>SeriesContentZIndexMap,SeriesZIndexMap:()=>SeriesZIndexMap,SimpleCache:()=>SimpleCache,SpanJoin:()=>SpanJoin,StateMachine:()=>StateMachine,StateMachineProperty:()=>StateMachineProperty,TRIPLE_EQ:()=>TRIPLE_EQ,TextMeasurer:()=>TextMeasurer,TickIntervals:()=>TickIntervals,TrimCharsRegex:()=>TrimCharsRegex,TrimEdgeGuard:()=>TrimEdgeGuard,UNIT_MAX:()=>UNIT_MAX,UNIT_MIN:()=>UNIT_MIN,UnknownError:()=>UnknownError,ValidationError:()=>ValidationError,Vec2:()=>vector_exports,Vec4:()=>vector4_exports,Vertex:()=>Vertex,WeakCache:()=>WeakCache,ZIndexMap:()=>ZIndexMap,addEscapeEventListener:()=>addEscapeEventListener,addFakeTransformToInstanceProperty:()=>addFakeTransformToInstanceProperty,addMouseCloseListener:()=>addMouseCloseListener,addObserverToInstanceProperty:()=>addObserverToInstanceProperty,addOverrideFocusVisibleEventListener:()=>addOverrideFocusVisibleEventListener,addTouchCloseListener:()=>addTouchCloseListener,addTransformToInstanceProperty:()=>addTransformToInstanceProperty,aggregationBucketForDatum:()=>aggregationBucketForDatum,aggregationDatumMatchesIndex:()=>aggregationDatumMatchesIndex,aggregationDomain:()=>aggregationDomain,aggregationIndexForXRatio:()=>aggregationIndexForXRatio,aggregationRangeFittingPoints:()=>aggregationRangeFittingPoints,aggregationXRatioForDatumIndex:()=>aggregationXRatioForDatumIndex,aggregationXRatioForXValue:()=>aggregationXRatioForXValue,and:()=>and,angleBetween:()=>angleBetween,angularPadding:()=>angularPadding,appendEllipsis:()=>appendEllipsis,applySkiaPatches:()=>applySkiaPatches,arcDistanceSquared:()=>arcDistanceSquared,areScalingEqual:()=>areScalingEqual,array:()=>array,arrayLength:()=>arrayLength,arrayOf:()=>arrayOf,arrayOfDefs:()=>arrayOfDefs,arraysEqual:()=>arraysEqual,assignIfNotStrictlyEqual:()=>assignIfNotStrictlyEqual,attachDescription:()=>attachDescription,attachListener:()=>attachListener,autoSizedLabelOptionsDefs:()=>autoSizedLabelOptionsDefs,barHighlightOptionsDef:()=>barHighlightOptionsDef,bezier2DDistance:()=>bezier2DDistance,bezier2DExtrema:()=>bezier2DExtrema,boolean:()=>boolean,borderOptionsDef:()=>borderOptionsDef,boxCollides:()=>boxCollides,boxContains:()=>boxContains,boxEmpty:()=>boxEmpty,boxesEqual:()=>boxesEqual,buildDateFormatter:()=>buildDateFormatter,cachedTextMeasurer:()=>cachedTextMeasurer,calcLineHeight:()=>calcLineHeight,calculatePlacement:()=>calculatePlacement,callWithContext:()=>callWithContext,callback:()=>callback,callbackDefs:()=>callbackDefs,callbackOf:()=>callbackOf,ceilTo:()=>ceilTo,checkDatum:()=>checkDatum,circularSliceArray:()=>circularSliceArray,clamp:()=>clamp,clampArray:()=>clampArray,clipLines:()=>clipLines,clipSpanX:()=>clipSpanX,coerceTextValue:()=>coerceTextValue,collapseSpanToPoint:()=>collapseSpanToPoint,collectAggregationLevels:()=>collectAggregationLevels,collectSparseSelection:()=>collectSparseSelection,color:()=>color,colorScaleOptionsDef:()=>colorScaleOptionsDef,colorStopsOrderValidator:()=>colorStopsOrderValidator,colorUnion:()=>colorUnion,commonChartOptionsDefs:()=>commonChartOptionsDefs,commonSeriesOptionsDefs:()=>commonSeriesOptionsDefs,commonSeriesThemeableOptionsDefs:()=>commonSeriesThemeableOptionsDefs,compactAggregationIndices:()=>compactAggregationIndices,compareDates:()=>compareDates,computeColorBins:()=>computeColorBins,computeExtremesAggregation:()=>computeExtremesAggregation,computeExtremesAggregationPartial:()=>computeExtremesAggregationPartial,constant:()=>constant,contextMenuItemsArray:()=>contextMenuItemsArray,countFractionDigits:()=>countFractionDigits,countLines:()=>countLines,createAggregationIndices:()=>createAggregationIndices,createButton:()=>createButton,createCanvasContext:()=>createCanvasContext,createCheckbox:()=>createCheckbox,createDeprecationWarning:()=>createDeprecationWarning,createDynamicContext:()=>createDynamicContext,createElement:()=>createElement,createElementId:()=>createElementId,createIcon:()=>createIcon,createId:()=>createId,createIdsGenerator:()=>createIdsGenerator,createNumberFormatter:()=>createNumberFormatter,createSelect:()=>createSelect,createSvgElement:()=>createSvgElement,createTextArea:()=>createTextArea,createTicks:()=>createTicks,date:()=>date,dateToNumber:()=>dateToNumber,dateTruncationForDomain:()=>dateTruncationForDomain,datesSortOrder:()=>datesSortOrder,debounce:()=>debounce,decodeIntervalValue:()=>decodeIntervalValue,deepClone:()=>deepClone,deepFreeze:()=>deepFreeze,defaultEpoch:()=>defaultEpoch,defined:()=>defined,definedZoomState:()=>definedZoomState,deprecated:()=>deprecated,deriveNormalizedStops:()=>deriveNormalizedStops,diffArrays:()=>diffArrays,discreteColorStops:()=>discreteColorStops,distribute:()=>distribute,downloadUrl:()=>downloadUrl,dropFirstWhile:()=>dropFirstWhile,dropLastWhile:()=>dropLastWhile,durationDay:()=>durationDay,durationHour:()=>durationHour,durationMinute:()=>durationMinute,durationMonth:()=>durationMonth,durationSecond:()=>durationSecond,durationWeek:()=>durationWeek,durationYear:()=>durationYear,easeIn:()=>easeIn,easeInOut:()=>easeInOut,easeInOutQuad:()=>easeInOutQuad,easeInQuad:()=>easeInQuad,easeOut:()=>easeOut,easeOutQuad:()=>easeOutQuad,encodedToTimestamp:()=>encodedToTimestamp,enterprise:()=>enterprise,enterpriseRegistry:()=>enterpriseRegistry,entries:()=>entries,errorBarOptionsDefs:()=>errorBarOptionsDefs,errorBarThemeableOptionsDefs:()=>errorBarThemeableOptionsDefs,estimateTickCount:()=>estimateTickCount,evaluateBezier:()=>evaluateBezier,every:()=>every,expandLegendPosition:()=>expandLegendPosition,extent:()=>extent,extractDecoratedProperties:()=>extractDecoratedProperties,extractDomain:()=>extractDomain,fillCssOptionsDef:()=>fillCssOptionsDef,fillGradientDefaults:()=>fillGradientDefaults,fillImageDefaults:()=>fillImageDefaults,fillOptionsDef:()=>fillOptionsDef,fillPatternDefaults:()=>fillPatternDefaults,findDiscreteColorBinLabel:()=>findDiscreteColorBinLabel,findMaxIndex:()=>findMaxIndex,findMaxValue:()=>findMaxValue,findMinIndex:()=>findMinIndex,findMinMax:()=>findMinMax,findMinValue:()=>findMinValue,findRangeExtent:()=>findRangeExtent,first:()=>first,flush:()=>flush,focusCursorAtEnd:()=>focusCursorAtEnd,fontFamilyFull:()=>fontFamilyFull,fontOptionsDef:()=>fontOptionsDef,fontWeight:()=>fontWeight,formatColorBinLabel:()=>formatColorBinLabel,formatColorScaleBinLabel:()=>formatColorScaleBinLabel,formatNumber:()=>formatNumber,formatObjectValidator:()=>formatObjectValidator,formatPercent:()=>formatPercent,formatValue:()=>formatValue,fromPairs:()=>fromPairs,generateUUID:()=>generateUUID,geoJson:()=>geoJson,getAngleRatioRadians:()=>getAngleRatioRadians,getAttribute:()=>getAttribute,getDOMMatrix:()=>getDOMMatrix,getDocument:()=>getDocument,getElementBBox:()=>getElementBBox,getIconClassNames:()=>getIconClassNames,getImage:()=>getImage,getLastFocus:()=>getLastFocus,getMaxInnerRectSize:()=>getMaxInnerRectSize,getMidpointsForIndices:()=>getMidpointsForIndices,getMinOuterRectSize:()=>getMinOuterRectSize,getOffscreenCanvas:()=>getOffscreenCanvas,getPath:()=>getPath,getPath2D:()=>getPath2D,getPrevNextKeys:()=>getPrevNextKeys,getResizeObserver:()=>getResizeObserver,getSequentialColors:()=>getSequentialColors,getTickTimeInterval:()=>getTickTimeInterval,getWindow:()=>getWindow,googleFont:()=>googleFont,gradientColorStops:()=>gradientColorStops,gradientStrict:()=>gradientStrict,graphemeSegments:()=>graphemeSegments,greaterThan:()=>greaterThan,groupBy:()=>groupBy,guardTextEdges:()=>guardTextEdges,hasNoModifiers:()=>hasNoModifiers,hasRequiredInPath:()=>hasRequiredInPath,highlightOptionsDef:()=>highlightOptionsDef,htmlElement:()=>htmlElement,inRange:()=>inRange,initRovingTabIndex:()=>initRovingTabIndex,insertListItemsSorted:()=>insertListItemsSorted,instanceOf:()=>instanceOf,interpolationOptionsDefs:()=>interpolationOptionsDefs,intervalAgo:()=>intervalAgo,intervalCeil:()=>intervalCeil,intervalEpoch:()=>intervalEpoch,intervalExtent:()=>intervalExtent,intervalFloor:()=>intervalFloor,intervalHierarchy:()=>intervalHierarchy,intervalMilliseconds:()=>intervalMilliseconds,intervalNext:()=>intervalNext,intervalPrevious:()=>intervalPrevious,intervalRange:()=>intervalRange,intervalRangeCount:()=>intervalRangeCount,intervalRangeNumeric:()=>intervalRangeNumeric,intervalRangeStartIndex:()=>intervalRangeStartIndex,intervalStep:()=>intervalStep,intervalUnit:()=>intervalUnit,inverseEaseOut:()=>inverseEaseOut,isArray:()=>isArray,isBetweenAngles:()=>isBetweenAngles,isBoolean:()=>isBoolean,isButtonClickEvent:()=>isButtonClickEvent,isColor:()=>isColor,isContinuous:()=>isContinuous,isDate:()=>isDate,isDecoratedObject:()=>isDecoratedObject,isDefined:()=>isDefined,isDenseInterval:()=>isDenseInterval,isDirectionRtl:()=>isDirectionRtl,isDocumentFragment:()=>isDocumentFragment,isElement:()=>isElement,isEmptyObject:()=>isEmptyObject,isEnumKey:()=>isEnumKey,isEnumValue:()=>isEnumValue,isFiniteNumber:()=>isFiniteNumber,isFunction:()=>isFunction,isGradientFill:()=>isGradientFill,isGradientFillArray:()=>isGradientFillArray,isGradientOrPatternFill:()=>isGradientOrPatternFill,isHTMLElement:()=>isHTMLElement,isHtmlElement:()=>isHtmlElement,isImageFill:()=>isImageFill,isInputPending:()=>isInputPending,isInteger:()=>isInteger,isKeyOf:()=>isKeyOf,isNegative:()=>isNegative,isNode:()=>isNode,isNumber:()=>isNumber,isNumberEqual:()=>isNumberEqual,isNumberObject:()=>isNumberObject,isObject:()=>isObject,isObjectLike:()=>isObjectLike,isObjectWithProperty:()=>isObjectWithProperty,isObjectWithStringProperty:()=>isObjectWithStringProperty,isPatternFill:()=>isPatternFill,isPlainObject:()=>isPlainObject,isPointLabelDatum:()=>isPointLabelDatum,isProperties:()=>isProperties,isRegExp:()=>isRegExp,isScaleValid:()=>isScaleValid,isSegmentTruncated:()=>isSegmentTruncated,isString:()=>isString,isStringFillArray:()=>isStringFillArray,isStringObject:()=>isStringObject,isSymbol:()=>isSymbol,isTextTruncated:()=>isTextTruncated,isTimeInterval:()=>isTimeInterval,isTimeIntervalUnit:()=>isTimeIntervalUnit,isTruncated:()=>isTruncated,isUnitTimeCategoryScaling:()=>isUnitTimeCategoryScaling,isValidDate:()=>isValidDate,isValidNumberFormat:()=>isValidNumberFormat,iterate:()=>iterate,joinFormatted:()=>joinFormatted,jsonApply:()=>jsonApply,jsonDiff:()=>jsonDiff,jsonPropertyCompare:()=>jsonPropertyCompare,jsonWalk:()=>jsonWalk,kebabCase:()=>kebabCase,labelBoxOptionsDef:()=>labelBoxOptionsDef,legendPositionValidator:()=>legendPositionValidator,lessThan:()=>lessThan,lessThanOrEqual:()=>lessThanOrEqual,levenshteinDistance:()=>levenshteinDistance,lineDashOptionsDef:()=>lineDashOptionsDef,lineDistanceSquared:()=>lineDistanceSquared,lineHighlightOptionsDef:()=>lineHighlightOptionsDef,lineSegmentOptions:()=>lineSegmentOptions,lineSegmentation:()=>lineSegmentation,linear:()=>linear,linearGaugeSeriesOptionsDef:()=>linearGaugeSeriesOptionsDef,linearGaugeSeriesThemeableOptionsDef:()=>linearGaugeSeriesThemeableOptionsDef,linearGaugeTargetOptionsDef:()=>linearGaugeTargetOptionsDef,linearPoints:()=>linearPoints,listDecoratedProperties:()=>listDecoratedProperties,lowestGranularityForInterval:()=>lowestGranularityForInterval,lowestGranularityUnitForTicks:()=>lowestGranularityUnitForTicks,lowestGranularityUnitForValue:()=>lowestGranularityUnitForValue,makeAccessibleClickListener:()=>makeAccessibleClickListener,mapValues:()=>mapValues,markerOptionsDefs:()=>markerOptionsDefs,markerStyleOptionsDefs:()=>markerStyleOptionsDefs,measureTextSegments:()=>measureTextSegments,memo:()=>memo,merge:()=>merge,mergeArrayDefaults:()=>mergeArrayDefaults,mergeDefaults:()=>mergeDefaults,modulus:()=>modulus,multiSeriesHighlightOptionsDef:()=>multiSeriesHighlightOptionsDef,nearestSquared:()=>nearestSquared,nearestSquaredInContainer:()=>nearestSquaredInContainer,nextPowerOf2:()=>nextPowerOf2,niceTicksDomain:()=>niceTicksDomain,normalisedExtentWithMetadata:()=>normalisedExtentWithMetadata,normalisedTimeExtentWithMetadata:()=>normalisedTimeExtentWithMetadata,normalizeAngle180:()=>normalizeAngle180,normalizeAngle360:()=>normalizeAngle360,normalizeAngle360FromDegrees:()=>normalizeAngle360FromDegrees,normalizeAngle360Inclusive:()=>normalizeAngle360Inclusive,number:()=>number,numberFormatValidator:()=>numberFormatValidator,numberMin:()=>numberMin,numberRange:()=>numberRange,object:()=>object,objectsEqual:()=>objectsEqual,objectsEqualWith:()=>objectsEqualWith,optionsDefs:()=>optionsDefs,or:()=>or,overflowStrategy:()=>overflowStrategy,padding:()=>padding,paddingOptions:()=>paddingOptions,parseColor:()=>parseColor,parseNumberFormat:()=>parseNumberFormat,partialAssign:()=>partialAssign,pause:()=>pause,pick:()=>pick,pickDirectionZoom:()=>pickDirectionZoom,placeLabels:()=>placeLabels,populateBucketSelectedFromSparse:()=>populateBucketSelectedFromSparse,populateBucketSelectedFromSparseSplit:()=>populateBucketSelectedFromSparseSplit,positiveNumber:()=>positiveNumber,positiveNumberNonZero:()=>positiveNumberNonZero,preserveArabicJoining:()=>preserveArabicJoining,previousPowerOf2:()=>previousPowerOf2,radialGaugeSeriesOptionsDef:()=>radialGaugeSeriesOptionsDef,radialGaugeSeriesThemeableOptionsDef:()=>radialGaugeSeriesThemeableOptionsDef,radialGaugeTargetOptionsDef:()=>radialGaugeTargetOptionsDef,range:()=>range,rangeValidator:()=>rangeValidator,ratio:()=>ratio,readIntegratedWrappedValue:()=>readIntegratedWrappedValue,record:()=>record,required:()=>required,rescaleSpan:()=>rescaleSpan,rescaleVisibleRange:()=>rescaleVisibleRange,resetIds:()=>resetIds,resolveStopPositions:()=>resolveStopPositions,rotatePoint:()=>rotatePoint,roundTo:()=>roundTo,safeCall:()=>safeCall,selectionContainmentValidator:()=>selectionContainmentValidator,selectionOptionsDef:()=>selectionOptionsDef,seriesLabelOptionsDefs:()=>seriesLabelOptionsDefs,seriesTooltipRangeValidator:()=>seriesTooltipRangeValidator,setAttribute:()=>setAttribute,setAttributes:()=>setAttributes,setDocument:()=>setDocument,setElementBBox:()=>setElementBBox,setElementStyle:()=>setElementStyle,setElementStyles:()=>setElementStyles,setPath:()=>setPath,setWindow:()=>setWindow,shadowOptionsDefs:()=>shadowOptionsDefs,shallowClone:()=>shallowClone,shapeHighlightOptionsDef:()=>shapeHighlightOptionsDef,shapeSegmentOptions:()=>shapeSegmentOptions,shapeSegmentation:()=>shapeSegmentation,shapeSelectionOptionsDef:()=>shapeSelectionOptionsDef,shapeValidator:()=>shapeValidator,simpleMemorize:()=>simpleMemorize,simpleMemorize2:()=>simpleMemorize2,smoothPoints:()=>smoothPoints,solveBezier:()=>solveBezier,sortAndUniqueDates:()=>sortAndUniqueDates,sortBasedOnArray:()=>sortBasedOnArray,spanRange:()=>spanRange,splitBezier2D:()=>splitBezier2D,stepPoints:()=>stepPoints,stopPageScrolling:()=>stopPageScrolling,strictObjectKeys:()=>strictObjectKeys,strictUnion:()=>strictUnion,string:()=>string,stringLength:()=>stringLength,stringifyValue:()=>stringifyValue,strokeOptionsDef:()=>strokeOptionsDef,textAlign:()=>textAlign,textOrSegments:()=>textOrSegments,textWrap:()=>textWrap,themeOperator:()=>themeOperator,throttle:()=>throttle,tickFormat:()=>tickFormat,tickStep:()=>tickStep,timeInterval:()=>timeInterval,timeIntervalUnit:()=>timeIntervalUnit,toArray:()=>toArray,toDegrees:()=>toDegrees,toFontString:()=>toFontString,toIterable:()=>toIterable,toPlainText:()=>toPlainText,toRadians:()=>toRadians,toTextString:()=>toTextString,toTimeInterval:()=>toTimeInterval,toZoomState:()=>toZoomState,toolbarButtonOptionsDefs:()=>toolbarButtonOptionsDefs,tooltipOptionsDefs:()=>tooltipOptionsDefs,tooltipOptionsDefsWithArea:()=>tooltipOptionsDefsWithArea,transformIntegratedCategoryValue:()=>transformIntegratedCategoryValue,truncateLine:()=>truncateLine,typeUnion:()=>typeUnion,undocumented:()=>undocumented,unguardTextEdges:()=>unguardTextEdges,union:()=>union,unionSymbol:()=>unionSymbol,unique:()=>unique,validate:()=>validate,withTimeout:()=>withTimeout,without:()=>without,wrapLines:()=>wrapLines,wrapText:()=>wrapText,wrapTextOrSegments:()=>wrapTextOrSegments,wrapTextSegments:()=>wrapTextSegments}),module.exports=__toCommonJS(main_exports);var ModuleType=(e=>(e.Chart="chart",e.Axis="axis",e.Series="series",e.Plugin="plugin",e.AxisPlugin="axis:plugin",e.SeriesPlugin="series:plugin",e.Preset="preset",e))(ModuleType||{});function extractDomain(e){return e.domain}var ScaleAlignment=(e=>(e[e.Leading=0]="Leading",e[e.Trailing=1]="Trailing",e[e.Interpolate=2]="Interpolate",e))(ScaleAlignment||{}),EventEmitter=class{constructor(){this.events=new Map}on(e,t){return this.events.has(e)||this.events.set(e,new Set),this.events.get(e)?.add(t),()=>this.off(e,t)}off(e,t){const n=this.events.get(e);n&&(n.delete(t),n.size===0&&this.events.delete(e))}emit(e,t){const n=this.events.get(e);if(n)for(const r of n)r(t)}clear(e){e?this.events.delete(e):this.events.clear()}},LRUCache=class{constructor(e){if(this.maxCacheSize=e,this.store=new Map,e<=0)throw new Error("LRUCache size must be greater than 0")}get(e){if(!this.store.has(e))return;const t=this.store.get(e);return this.store.delete(e),this.store.set(e,t),t}has(e){return this.store.has(e)}set(e,t){return this.store.set(e,t),this.store.size>this.maxCacheSize&&this.store.delete(this.store.keys().next().value),t}clear(){this.store.clear()}},debugLogger_exports={};__export(debugLogger_exports,{Time:()=>Time,check:()=>check,create:()=>create,inDevelopmentMode:()=>inDevelopmentMode});function toArray(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function unique(e){return Array.from(new Set(e))}function groupBy(e,t){return e.reduce((n,r)=>{const i=t(r);return n[i]??(n[i]=[]),n[i].push(r),n},{})}function arraysEqual(e,t){if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(Array.isArray(e[n])&&Array.isArray(t[n])){if(!arraysEqual(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1;return!0}function circularSliceArray(e,t,n=0){if(e.length===0)return[];const r=[];for(let i=0;i<t;i++)r.push(e.at((i+n)%e.length));return r}function sortBasedOnArray(e,t){const n=new Map;for(const[r,i]of t.entries())n.set(i,r);return e.sort((r,i)=>{const o=n.get(r)??1/0,s=n.get(i)??1/0;return o-s})}function dropFirstWhile(e,t){let n=0;for(;n<e.length&&t(e[n]);)n+=1;const r=n;r!==0&&e.splice(0,r)}function dropLastWhile(e,t){let n=e.length-1;for(;n>=0&&t(e[n]);)n-=1;const r=e.length-1-n;r!==0&&e.splice(e.length-r,r)}function distribute(e,t,n){const r=[e],i=Math.round((t-e)/(n-1));if(i>0)for(let o=e+i;o<t&&!(r.push(o)>=n-1);o+=i);return r.push(t),r}var verifiedGlobals={};typeof globalThis.window<"u"&&(verifiedGlobals.window=globalThis.window),typeof document<"u"?verifiedGlobals.document=document:typeof globalThis.global<"u"&&(verifiedGlobals.document=globalThis.document);function getDocument(e){return e?verifiedGlobals.document?.[e]:verifiedGlobals.document}function getWindow(e){return e?verifiedGlobals.window?.[e]:verifiedGlobals.window}function setDocument(e){verifiedGlobals.document=e}function setWindow(e){verifiedGlobals.window=e}function getOffscreenCanvas(){return verifiedGlobals.window?.OffscreenCanvas??globalThis.OffscreenCanvas}function getPath2D(){return verifiedGlobals.window?.Path2D??globalThis.Path2D}function getDOMMatrix(){return verifiedGlobals.window?.DOMMatrix??globalThis.DOMMatrix}function getImage(){return verifiedGlobals.window?.Image??globalThis.Image}function getResizeObserver(){return verifiedGlobals.window?.ResizeObserver??globalThis.ResizeObserver}var ELEMENT_NODE=1,DOCUMENT_FRAGMENT_NODE=11;function isNode(e){return e!=null&&typeof e.nodeType=="number"}function isElement(e){return e!=null&&e.nodeType===ELEMENT_NODE}function isDocumentFragment(e){return e!=null&&e.nodeType===DOCUMENT_FRAGMENT_NODE}function isHTMLElement(e){return e!=null&&e.nodeType===ELEMENT_NODE&&"style"in e}var logger_exports={};__export(logger_exports,{error:()=>error,errorOnce:()=>errorOnce,log:()=>log,logGroup:()=>logGroup,reset:()=>reset,table:()=>table,warn:()=>warn,warnOnce:()=>warnOnce});var doOnceCache=new Set;function log(...e){console.log(...e)}function warn(e,...t){console.warn(`AG Charts - ${e}`,...t)}function error(e,...t){typeof e=="object"?console.error("AG Charts error",e,...t):console.error(`AG Charts - ${e}`,...t)}function table(...e){console.table(...e)}function guardOnce(e,t,n){let r;e instanceof Error?r=e.message:typeof e=="string"?r=e:typeof e=="object"?r=JSON.stringify(e):r=String(e);const i=`${t}: ${r}`;doOnceCache.has(i)||(n(e),doOnceCache.add(i))}function warnOnce(e,...t){guardOnce(e,"Logger.warn",n=>warn(n,...t))}function errorOnce(e,...t){guardOnce(e,"Logger.error",n=>error(n,...t))}function reset(){doOnceCache.clear()}function isPromise(e){return typeof e=="object"&&e!==null&&"then"in e}function logGroup(e,t){console.groupCollapsed(e);let n=!0;try{const r=t();return isPromise(r)?(n=!1,r.finally(()=>{console.groupEnd()})):r}finally{n&&console.groupEnd()}}var LongTimePeriodThreshold=2e3,timeOfLastLog=Date.now();function logTimeGap(){const e=Date.now()-timeOfLastLog;if(e>LongTimePeriodThreshold){const t=(Math.floor(e/100)/10).toFixed(1);log(`**** ${t}s since last log message ****`)}timeOfLastLog=Date.now()}function create(...e){return Object.assign((...n)=>{check(...e)&&(typeof n[0]=="function"&&(n=toArray(n[0]())),logTimeGap(),log(...n))},{check:()=>check(...e),group:(n,r)=>check(...e)?logGroup(n,r):r()})}function check(...e){return e.length===0&&e.push(!0),toArray(getWindow("agChartsDebug")).some(n=>e.includes(n))}function inDevelopmentMode(e){if(check("dev"))return e()}function Time(e,t={}){const{logResult:n=!0,logStack:r=!1,logArgs:i=!1,logData:o}=t;return function(s,a,l){const c=l.value;l.value=function(...u){const f=performance.now(),d=c.apply(this,u),g={duration:performance.now()-f};return n&&(g.result=d),i&&(g.args=u),r&&(g.stack=new Error("Stack trace for timing debug").stack),o&&(g.logData=o(this)),log(e,g),d}}}var debugMetrics_exports={};__export(debugMetrics_exports,{flush:()=>flush,record:()=>record});var metrics=new Map;function record(e,t){check("scene:stats:verbose")&&metrics.set(e,t)}function flush(){const e=Object.fromEntries(metrics);return metrics.clear(),e}var enterpriseRegistry={},moduleRegistry_exports={};__export(moduleRegistry_exports,{RegistryMode:()=>RegistryMode,getAxisModule:()=>getAxisModule,getChartModule:()=>getChartModule,getPresetModule:()=>getPresetModule,getSeriesModule:()=>getSeriesModule,hasModule:()=>hasModule,ifRegistryChanged:()=>ifRegistryChanged,isEnterprise:()=>isEnterprise,isIntegrated:()=>isIntegrated,isModuleType:()=>isModuleType,isUmd:()=>isUmd,listModules:()=>listModules,listModulesByType:()=>listModulesByType,register:()=>register,registerModules:()=>registerModules,reset:()=>reset2,setRegistryMode:()=>setRegistryMode});var RegistryMode=(e=>(e.Enterprise="enterprise",e.Integrated="integrated",e.UMD="umd",e))(RegistryMode||{}),registeredModes=new Set;function setRegistryMode(e){registeredModes.add(e)}function clearRegistryModes(){registeredModes.clear()}function isEnterprise(){return registeredModes.has("enterprise")}function isIntegrated(){return registeredModes.has("integrated")}function isUmd(){return registeredModes.has("umd")}var registeredModules=new Map,registryRevision=0;function registerModuleDefinition(e){if(registeredModules.set(e.name,e),registryRevision++,e.dependencies)for(const t of e.dependencies)register(t)}function ifRegistryChanged(e,t){return registryRevision!==e&&t(),registryRevision}function register(e){const t=registeredModules.get(e.name);if(!t){registerModuleDefinition(e);return}if(t.version===e.version){!t.enterprise&&e.enterprise&&registerModuleDefinition(e);return}throw new Error([`AG Charts - Module '${e.name}' already registered with different version:`,`${t.version} vs ${e.version}`,"","Check your package.json for conflicting dependencies - depending on your package manager","one of these commands may help:","- npm ls ag-charts-community","- yarn why ag-charts-community"].join(` `))}function registerModules(e){for(const t of e.flat())register(t)}function reset2(){clearRegistryModes(),registeredModules.clear(),registryRevision++}function hasModule(e){return registeredModules.has(e)}function*listModules(){for(const e of registeredModules.values())yield e}function*listModulesByType(e){for(const t of registeredModules.values())isModuleType(e,t)&&(yield t)}function getAxisModule(e){const t=registeredModules.get(e);if(isModuleType("axis",t))return t}function getChartModule(e){const t=registeredModules.get(e);if(isModuleType("chart",t))return t;throw new Error("AG Charts - Unknown chart type; Check options are correctly structured and series types are specified")}function getPresetModule(e){const t=registeredModules.get(e);if(isModuleType("preset",t))return t}function getSeriesModule(e){const t=registeredModules.get(e);if(isModuleType("series",t))return t}function isModuleType(e,t){return t?.type===e}var CleanupRegistry=class{constructor(){this.callbacks=new Set}flush(){for(const e of this.callbacks)e();this.callbacks.clear()}merge(e){for(const t of e.callbacks)this.callbacks.add(t)}register(...e){for(const t of e)t&&this.callbacks.add(t)}},AbstractModuleInstance=class{constructor(){this.cleanup=new CleanupRegistry}destroy(){this.cleanup.flush()}};function asDynamicContext(e){return e}var state=new WeakMap;function internal(e){const t=state.get(e);if(!t)throw new Error("AG Charts - DynamicContext: missing internal state.");return t}var DynamicContextImpl=class ne{constructor(t){const n={cleanup:new CleanupRegistry,self:this,resolving:new Set,children:new Set,refs:new Set,parent:t,destroyed:!1};state.set(this,n),t&&internal(t).children.add(this)}get cleanup(){return internal(this).cleanup}constant(t,n){return this.assertNotDestroyed(),Object.defineProperty(this,t,{value:n,configurable:!0,enumerable:!0}),internal(this).self}ref(t,n){this.assertNotDestroyed();const r=internal(this);return r.refs.add(t),Object.defineProperty(this,t,{value:n,configurable:!0,enumerable:!0}),r.self}service(t,n){return this.assertNotDestroyed(),Object.defineProperty(this,t,{configurable:!0,enumerable:!0,get:()=>{const r=this.resolve(t,n);return Object.defineProperty(this,t,{value:r,configurable:!0,enumerable:!0}),r}}),internal(this).self}factory(t,n){return this.assertNotDestroyed(),Object.defineProperty(this,t,{configurable:!0,enumerable:!0,get:()=>this.resolve(t,n)}),internal(this).self}has(t){return t in this}child(){const t=new ne(this);return Object.setPrototypeOf(t,this),t}destroy(){const t=internal(this);if(t.destroyed)return;t.destroyed=!0;for(const r of t.children)r.destroy();t.children.clear();const n=Object.keys(this);for(let r=n.length-1;r>=0;r--){const i=n[r];if(t.refs.has(i))continue;const o=Object.getOwnPropertyDescriptor(this,i);o?.value!=null&&typeof o.value=="object"&&o.value.destroy?.()}t.cleanup.flush(),t.parent&&internal(t.parent).children.delete(this)}resolve(t,n){const r=internal(this);if(r.destroyed)throw new Error(`AG Charts - DynamicContext: cannot resolve '${t}' on a destroyed context.`);if(r.resolving.has(t))throw new Error(`AG Charts - DynamicContext: circular dependency detected while resolving '${t}'.`);r.resolving.add(t);try{return n(r.self)}finally{r.resolving.delete(t)}}assertNotDestroyed(){if(internal(this).destroyed)throw new Error("AG Charts - DynamicContext: cannot register on a destroyed context.")}};function createDynamicContext(){return new DynamicContextImpl}function clamp(e,t,n){return Math.min(n,Math.max(e,t))}function inRange(e,t,n=1e-10){return e>=t[0]-n&&e<=t[1]+n}function isNumberEqual(e,t,n=1e-10){return e===t||Math.abs(e-t)<n}function isNegative(e){return Math.sign(e)===-1||Object.is(e,-0)}function isInteger(e){return e%1===0}function roundTo(e,t=2){const n=10**t;return Math.round(e*n)/n}function ceilTo(e,t=2){const n=10**t;return Math.ceil(e*n)/n}function modulus(e,t){return Math.floor(e%t+(e<0?Math.abs(t):0))}function countFractionDigits(e){if(Math.floor(e)===e)return 0;let t=String(e),n=0;if(e<1e-6||e>=1e21){let i;[t,i]=t.split("e"),i!=null&&(n=Number(i))}const r=t.split(".")[1]?.length??0;return Math.max(r-n,0)}function findNextDefinedStop(e,t){for(let n=t+1;n<e.length;n++)if(e[n]?.stop!=null)return n;return e.length-1}function resolveStopPositions(e,t,n,r){const i=new Array(e.length);let o=0,s=-1;for(let a=0;a<e.length;a++){a>=s&&(s=findNextDefinedStop(e,a));const l=e[a]?.stop;if(l==null){const c=e[o]?.stop,u=e[s]?.stop,f=c??t,d=u??n,h=r&&c==null?1:0;i[a]=f+(d-f)*(a-o+h)/(s-o+h)}else i[a]=l,o=a}return i}function formatColorScaleBinLabel(e,t,n,r){if(e.name!=null)return e.name;const i=t===n.length-1;return Number.isInteger(e.start)&&Number.isInteger(e.end)&&!i&&e.end-e.start>=1?`${r(e.start,0)}\u2013${r(e.end-1,0)}`:`${r(e.start)}\u2013${r(e.end)}`}function computeColorBins(e,t,n){if(e.length===0)return{domain:[],range:[],bins:[]};const[r,i]=t,o=n==="discrete",s=resolveStopPositions(e,r,i,o),a=e.map(l=>l.color);return o?buildDiscreteBins(s,a,e,r,i):{domain:s,range:a,bins:[]}}function buildDiscreteBins(e,t,n,r,i){const o=[],s=[],a=[];for(let l=0;l<n.length;l++){const c=l===0?r:e[l-1],u=e[l],f=clamp(r,c,i),d=Math.max(f,clamp(r,u,i));o.push(f),s.push(t[l]),a.push({start:f,end:d,color:t[l],name:n[l].name})}return o.push(a.at(-1).end),{domain:o,range:s,bins:a}}function deriveNormalizedStops(e){const{domain:t,range:n,mode:r,displayDomain:i}=e;if(n.length===0)return[];const[o,s]=i??[t[0],t.at(-1)],a=s-o||1;if(r==="discrete"){const l=[];for(let c=0;c<n.length;c++){const u=clamp(0,(t[c]-o)/a,1),f=clamp(0,(t[c+1]-o)/a,1);f<u||(l.push({stop:u,color:n[c]}),f>u&&l.push({stop:f,color:n[c]}))}return l}if(t.length<n.length){const l=Math.max(n.length-1,1);return n.map((c,u)=>({stop:u/l,color:c}))}return t.map((l,c)=>({stop:(l-o)/a,color:n[c]}))}function formatColorBinLabel(e,t,n,r,i){return formatColorScaleBinLabel({start:e,end:t,color:""},n,{length:r},i)}function findDiscreteColorBinLabel(e,t,n,r){const{domain:i,range:o,mode:s}=e;if(s!=="discrete"||o.length===0)return;let a=0;for(;a<o.length-1&&n>=i[a+1];)a++;return t[a]?.name??formatColorBinLabel(i[a],i[a+1],a,o.length,r)}function discreteColorStops(e){return e.flatMap((t,n)=>{const{stop:r}=t,i=e.at(n+1)?.color;return i==null?[t]:[t,{stop:r,color:i}]})}var __MINI_CHART_SERIES_OPTIONS=void 0,__VERIFY_MINI_CHART_SERIES_OPTIONS=void 0;__VERIFY_MINI_CHART_SERIES_OPTIONS=__MINI_CHART_SERIES_OPTIONS;var __THEME_OVERRIDES=void 0,__VERIFY_THEME_OVERRIDES=void 0;__VERIFY_THEME_OVERRIDES=__THEME_OVERRIDES;var __THEMEABLE_OPTIONS=void 0,__VERIFY_THEMEABLE_OPTIONS=void 0;__VERIFY_THEMEABLE_OPTIONS=__THEMEABLE_OPTIONS;var __AXIS_LABEL_OPTIONS=void 0,__VERIFY_AXIS_LABEL_OPTIONS=void 0;__VERIFY_AXIS_LABEL_OPTIONS=__AXIS_LABEL_OPTIONS;var EllipsisChar="\u2026",LineSplitter=/\r?\n/g,TrimEdgeGuard="\u200B",TrimCharsRegex=/[\s.,;:-]{1,5}$/,styleDeclaration;function parseColor(e){if(styleDeclaration==null){const n=getWindow("Option");styleDeclaration=new n().style}styleDeclaration.color=e;const t=styleDeclaration.color||null;return styleDeclaration.color="",t}function isDirectionRtl(e){return e?.ownerDocument.defaultView?.getComputedStyle(e).direction==="rtl"}function setElementBBox(e,t){if(!e)return;const{x:n,y:r,width:i,height:o}=normalizeBounds(t);setPixelValue(e.style,"width",i),setPixelValue(e.style,"height",o),setPixelValue(e.style,"left",n),setPixelValue(e.style,"top",r)}function getElementBBox(e){const t=Number.parseFloat(e.style.width),n=Number.parseFloat(e.style.height),r=Number.parseFloat(e.style.left),i=Number.parseFloat(e.style.top),o=Number.isFinite(t)?t:e.offsetWidth,s=Number.isFinite(n)?n:e.offsetHeight,a=Number.isFinite(r)?r:e.offsetLeft,l=Number.isFinite(i)?i:e.offsetTop;return{x:a,y:l,width:o,height:s}}function focusCursorAtEnd(e){if(e.focus({preventScroll:!0}),e.lastChild?.textContent==null)return;const{ownerDocument:t}=e,n=t.createRange();n.setStart(e.lastChild,e.lastChild.textContent.length),n.setEnd(e.lastChild,e.lastChild.textContent.length);const r=t.defaultView?.getSelection();r?.removeAllRanges(),r?.addRange(n)}function isInputPending(){const e=getWindow("navigator");if("scheduling"in e){const t=e.scheduling;if("isInputPending"in t)return t.isInputPending({includeContinuous:!0})}return!1}function getIconClassNames(e){return`ag-charts-icon ag-charts-icon-${e}`}function normalizeBounds(e){let{x:t,y:n,width:r,height:i}=e;return(r==null||r>0)&&(i==null||i>0)?e:(t!=null&&r!=null&&r<0&&(r=-r,t=t-r),n!=null&&i!=null&&i<0&&(i=-i,n=n-i),{x:t,y:n,width:r,height:i})}function setPixelValue(e,t,n){n==null?e.removeProperty(t):e.setProperty(t,`${n}px`)}function isDefined(e){return e!=null}function isArray(e){return Array.isArray(e)}function isBoolean(e){return typeof e=="boolean"}function isDate(e){return e instanceof Date}function isValidDate(e){return isDate(e)&&!Number.isNaN(Number(e))}function isRegExp(e){return e instanceof RegExp}function isFunction(e){return typeof e=="function"}function isObject(e){return typeof e=="object"&&e!==null&&!isArray(e)}function isObjectLike(e){return isArray(e)||isPlainObject(e)}function isPlainObject(e){return typeof e=="object"&&e!==null&&e.constructor?.name==="Object"}function isEmptyObject(e){if(typeof e!="object"||e===null)return!1;for(const t in e)return!1;return!0}function isString(e){return typeof e=="string"}function isNumber(e){return typeof e=="number"}function isFiniteNumber(e){return Number.isFinite(e)}function isHtmlElement(e){return e!=null&&e.nodeType===1&&"style"in e}function isEnumKey(e,t){return isString(t)&&Object.keys(e).includes(t)}function isEnumValue(e,t){return Object.values(e).includes(t)}function isSymbol(e){return typeof e=="symbol"}function isColor(e){return isString(e)&&(e==="none"||parseColor(e)!=null)}function isKeyOf(e,t){return e in t}function toFontString({fontSize:e,fontStyle:t,fontWeight:n,fontFamily:r}){let i="";return t&&t!=="normal"&&(i+=`${t} `),n&&n!=="normal"&&n!==400&&(i+=`${n===700?"bold":n} `),i+=`${e}px`,i+=` ${r}`,i}function calcLineHeight(e,t=1.15){return Math.round(e*t)}function toTextString(e){return String(e??"")}function coerceTextValue(e){return isNumber(e)||isDate(e)?toTextString(e):e}function appendEllipsis(e){return preserveArabicJoining(e.replace(TrimCharsRegex,""))+EllipsisChar}var RIGHT_JOIN_ONLY=new Set([1575,1577,1583,1584,1585,1586,1608]);function isDualJoiningArabic(e){return e>=1568&&e<=1610&&!RIGHT_JOIN_ONLY.has(e)}function preserveArabicJoining(e){if(!e)return e;const t=e.codePointAt(e.length-1);return isDualJoiningArabic(t)?e+"\u200D":e}function guardTextEdges(e){return TrimEdgeGuard+e+TrimEdgeGuard}function unguardTextEdges(e){return e.replaceAll(TrimEdgeGuard,"")}function isTruncated(e){return isArray(e)?isSegmentTruncated(e.at(-1)):isTextTruncated(toTextString(e))}function isTextTruncated(e){return e.endsWith(EllipsisChar)}function isSegmentTruncated(e){return toTextString(e?.text).endsWith(EllipsisChar)}var graphemeSegmenter=typeof Intl<"u"&&typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):void 0;function graphemeSegments(e){return graphemeSegmenter?Array.from(graphemeSegmenter.segment(e),t=>t.segment):Array.from(e)}function joinFormatted(e,t="and",n=String,r=1/0){if(e.length===0)return"";if(e.length===1)return n(e[0]);e=e.map(n);const i=e.pop();if(e.length>=r){const o=e.length-(r-1);return`${e.slice(0,r-1).join(", ")}, and ${o} more ${t} ${i}`}return`${e.join(", ")} ${t} ${i}`}function stringifyValue(e,t=1/0){if(typeof e=="number"){if(Number.isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity"}const n=JSON.stringify(e)??typeof e;return n.length>t?`${n.slice(0,t)}... (+${n.length-t} characters)`:n}function countLines(e){let t=1;for(let n=0;n<e.length;n++)e.codePointAt(n)===10&&t++;return t}function levenshteinDistance(e,t){if(e===t)return 0;const[n,r]=e.length<t.length?[e,t]:[t,e],i=n.length,o=r.length;let s=new Array(i+1).fill(0).map((l,c)=>c),a=new Array(i+1);for(let l=1;l<=o;l++){a[0]=l;for(let c=1;c<=i;c++){const u=r[l-1]===n[c-1]?0:1;a[c]=Math.min(s[c]+1,a[c-1]+1,s[c-1]+u)}[s,a]=[a,s]}return s[i]}function kebabCase(e){return e.replaceAll(KEBAB_CASE_REGEX,(t,n)=>(n>0?"-":"")+t.toLowerCase())}var KEBAB_CASE_REGEX=/[A-Z]+(?![a-z])|[A-Z]/g;function toPlainText(e,t=""){return e==null?t:isArray(e)?e.map(n=>toTextString(n.text)).join(""):isString(e)?e:String(e)}function debounce(e,t=0,n){const{leading:r=!1,trailing:i=!0,maxWait:o=1/0}=n??{};let s,a;if(o<t)throw new Error("Value of maxWait cannot be lower than waitMs.");function l(...c){if(r&&!a){a=Date.now(),s=setTimeout(()=>a=null,t),e(...c);return}let u=t;if(o!==1/0&&a){const f=Date.now()-a;t>o-f&&(u=o-f)}clearTimeout(s),a??(a=Date.now()),s=setTimeout(()=>{a=null,i&&e(...c)},u)}return Object.assign(l,{cancel(){clearTimeout(s),a=null}})}function throttle(e,t,n){const{leading:r=!0,trailing:i=!0}=n??{};let o,s,a=!1;function l(){i&&s?(o=setTimeout(l,t),e(...s)):a=!1,s=null}function c(...u){a?s=u:(a=!0,o=setTimeout(l,t),r?e(...u):s=u)}return Object.assign(c,{cancel(){clearTimeout(o),a=!1,s=null}})}function safeCall(e,t,n=""){try{return e(...t)}catch(r){const i=n?` \`${n}\``:"";warnOnce(`Uncaught exception in user callback${i}`,r)}}var descriptionSymbol=Symbol("description"),requiredSymbol=Symbol("required"),markedSymbol=Symbol("marked"),undocumentedSymbol=Symbol("undocumented"),enterpriseSymbol=Symbol("enterprise"),deprecatedSymbol=Symbol("deprecated"),unionSymbol=Symbol("union"),similarOptionsMap=[["placement","position"],["padding","spacing","gap"],["color","fill","stroke"],["whisker","wick"],["src","url"],["width","thickness"],["show","visible","enabled"]].reduce((e,t)=>{for(const n of t)e.set(n.toLowerCase(),new Set(t.filter(r=>r!==n)));return e},new Map),ErrorType=(e=>(e.Enterprise="enterprise",e.Invalid="invalid",e.Required="required",e.Unknown="unknown",e))(ErrorType||{});function extendPath(e,t){return isFiniteNumber(t)?`${e}[${t}]`:e?`${e}.${t}`:t}var ValidationError=class{constructor(e,t,n,r,i){this.type=e,this.description=t,this.value=n,this.path=r,this.key=i}setUnionType(e,t){if(this.path.startsWith(t)){const n=this.path.slice(t.length);this.altPath=`${t}[type=${e}]${n}`}}getPrefix(){const{altPath:e=this.path,key:t}=this;return!e&&!t?"Value":`Option \`${t?extendPath(e,t):e}\``}toString(){const{description:e="unknown",type:t,value:n}=this;return t==="required"&&n==null?`${this.getPrefix()} is required and has not been provided; expecting ${e}, ignoring.`:t==="enterprise"?`${this.getPrefix()} is an AG Charts Enterprise feature; ignoring.`:`${this.getPrefix()} cannot be set to \`${stringifyValue(n,50)}\`; expecting ${e}, ignoring.`}},UnknownError=class extends ValidationError{constructor(e,t,n,r){super("unknown",void 0,t,n,r),this.suggestions=e,this.key=r}getPrefix(){return`Unknown option \`${extendPath(this.altPath??this.path,this.key)}\``}getPostfix(){const e=joinFormatted(findSuggestions(this.key,this.suggestions),"or",t=>`\`${t}\``);return e?`; Did you mean ${e}? Ignoring.`:", ignoring."}toString(){return`${this.getPrefix()}${this.getPostfix()}`}};function validate(e,t,n="",r={}){if(!isObject(e))return{cleared:null,invalid:[new ValidationError("required","an object",e,n)]};const i={},o=[],s=new Set(Object.keys(e)),a=[];if(unionSymbol in t){const l=Object.keys(t),c=t[unionSymbol];if(e.type!=null&&l.includes(e.type)||e.type==null&&c!=null){const{type:u=c,...f}=e,d=validate(f,t[u],n,r);Object.assign(i,{type:u},d.cleared);for(const h of d.invalid)h.setUnionType(u,n);o.push(...d.invalid)}else{const u=joinFormatted(l,"or",f=>`'${f}'`);o.push(new ValidationError("required",`a keyword such as ${u}`,e.type,n,"type"))}return{cleared:i,invalid:o}}for(const l of Object.keys(t)){const c=t[l],u=c[requiredSymbol],f=e[l];if(s.delete(l),f===void 0&&(c[undocumentedSymbol]||a.push(l),!u))continue;const d=extendPath(n,l);if(isFunction(c)){const h={options:e,path:d,silentAdvisories:r.silentAdvisories},g=c(f,h);if(typeof g=="object"){if(o.push(...g.invalid),g.valid){i[l]=g.cleared;continue}else if(hasRequiredInPath(g.invalid,d))continue}else if(g){i[l]=f;continue}o.push(new ValidationError(u?"required":"invalid",c[descriptionSymbol],f,n,l))}else{const h=validate(f,c,d,r);h.cleared!=null&&(i[l]=h.cleared),o.push(...h.invalid)}}for(const l of s){const c=e[l];c!==void 0&&o.push(new UnknownError(a,c,n,l))}return{cleared:i,invalid:o}}function findSuggestions(e,t,n=2){const r=e.toLowerCase(),i=similarOptionsMap.get(r);return t.filter(o=>{const s=o.toLowerCase();return i?.has(o)===!0||s.includes(r)||levenshteinDistance(r,s)<=n})}function attachDescription(e,t){if(isFunction(e)){let r=function(i,o){return e(i,o)};var n=r;return r[descriptionSymbol]=t,r}else return{...e,[descriptionSymbol]:t}}function required(e){if(e[enterpriseSymbol])throw new Error("`required()` cannot wrap an `enterprise()` validator; enterprise options must remain optional.");return Object.assign(isFunction(e)?(t,n)=>e(t,n):optionsDefs(e),{[requiredSymbol]:!0,[descriptionSymbol]:e[descriptionSymbol]})}function undocumented(e){return Object.assign(isFunction(e)?(t,n)=>e(t,n):optionsDefs(e),{[undocumentedSymbol]:!0,[descriptionSymbol]:e[descriptionSymbol]})}function enterprise(e){if(e[requiredSymbol])throw new Error("`enterprise()` cannot wrap a `required()` validator; enterprise options must remain optional.");const t=isFunction(e)?e:optionsDefs(e),n=e[descriptionSymbol];return Object.assign((i,o)=>i!==void 0&&!isEnterprise()?(warnOnce(new ValidationError("enterprise",n,i,o.path).toString()),{valid:!0,cleared:null,invalid:[]}):t(i,o),{[enterpriseSymbol]:!0,[descriptionSymbol]:n})}function deprecated(e,t){const n=isFunction(e)?e:optionsDefs(e),r=e[descriptionSymbol];return Object.assign((o,s)=>(o!==void 0&&!s.silentAdvisories&&warnOnce(`Option \`${s.path}\` is deprecated. ${t}`),n(o,s)),{[deprecatedSymbol]:t,[descriptionSymbol]:r})}var optionsDefs=(e,t="an object",n=!1)=>attachDescription((r,i)=>{const o=validate(r,e,i.path,{silentAdvisories:i.silentAdvisories}),s=!hasRequiredInPath(o.invalid,i.path);return{valid:s,cleared:s||!n?o.cleared:null,invalid:o.invalid}},t),typeUnion=(e,t,n)=>({...e,[descriptionSymbol]:t,[unionSymbol]:n}),and=(...e)=>attachDescription((t,n)=>{const r=[];for(const i of e){const o=i(t,n);if(typeof o=="object"){if(r.push(...o.invalid),!o.valid)return{valid:!1,cleared:t,invalid:r};t=o.cleared}else if(!o)return!1}return{valid:!0,cleared:t,invalid:r}},joinFormatted(e.filter(t=>!t[undocumentedSymbol]).map(t=>t[descriptionSymbol]).filter(isDefined),"and")),or=(...e)=>attachDescription((t,n)=>{for(const r of e){const i=r(t,n);if(typeof i=="object"?i.valid:i)return i}return!1},joinFormatted(e.filter(t=>!t[undocumentedSymbol]).map(t=>t[descriptionSymbol]).filter(isDefined),"or")),isComparable=e=>isFiniteNumber(e)||isValidDate(e),isValidDateValue=e=>isDate(e)||(isFiniteNumber(e)||isString(e))&&isValidDate(new Date(e)),array=attachDescription(isArray,"an array"),boolean=attachDescription(isBoolean,"a boolean"),callback=attachDescription(isFunction,"a function"),color=attachDescription(isColor,"a color string"),date=attachDescription(isValidDateValue,"a date"),