@eclipse-scout/chart 25.2.15 → 25.2.20

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.
@@ -3,9 +3,9 @@
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
5
  "version": 1,
6
- "serialNumber": "urn:uuid:1a55598c-3b71-46da-87d1-383204be9de3",
6
+ "serialNumber": "urn:uuid:1dfa2621-e0bb-4553-a131-2b807df8df7d",
7
7
  "metadata": {
8
- "timestamp": "2025-11-25T13:40:35.799Z",
8
+ "timestamp": "2026-01-07T09:24:11.035Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "build"
@@ -88,8 +88,8 @@
88
88
  "type": "application",
89
89
  "name": "chart",
90
90
  "group": "@eclipse-scout",
91
- "version": "25.2.15",
92
- "bom-ref": "pkg:npm/%40eclipse-scout/chart@25.2.15?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git",
91
+ "version": "25.2.20",
92
+ "bom-ref": "pkg:npm/%40eclipse-scout/chart@25.2.20?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git",
93
93
  "author": "BSI Business Systems Integration AG",
94
94
  "description": "Eclipse Scout chart",
95
95
  "licenses": [
@@ -99,7 +99,7 @@
99
99
  }
100
100
  }
101
101
  ],
102
- "purl": "pkg:npm/%40eclipse-scout/chart@25.2.15?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git",
102
+ "purl": "pkg:npm/%40eclipse-scout/chart@25.2.20?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git",
103
103
  "externalReferences": [
104
104
  {
105
105
  "url": "git+https://github.com/eclipse-scout/scout.rt.git",
@@ -171,7 +171,7 @@
171
171
  ],
172
172
  "dependencies": [
173
173
  {
174
- "ref": "pkg:npm/%40eclipse-scout/chart@25.2.15?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git",
174
+ "ref": "pkg:npm/%40eclipse-scout/chart@25.2.20?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git",
175
175
  "dependsOn": [
176
176
  "pkg:npm/css-loader@7.1.2?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Fwebpack-contrib%2Fcss-loader.git"
177
177
  ]
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <bom xmlns="http://cyclonedx.org/schema/bom/1.5" version="1" serialNumber="urn:uuid:1a55598c-3b71-46da-87d1-383204be9de3">
2
+ <bom xmlns="http://cyclonedx.org/schema/bom/1.5" version="1" serialNumber="urn:uuid:1dfa2621-e0bb-4553-a131-2b807df8df7d">
3
3
  <metadata>
4
- <timestamp>2025-11-25T13:40:35.799Z</timestamp>
4
+ <timestamp>2026-01-07T09:24:11.035Z</timestamp>
5
5
  <lifecycles>
6
6
  <lifecycle>
7
7
  <phase>build</phase>
@@ -67,18 +67,18 @@
67
67
  </component>
68
68
  </components>
69
69
  </tools>
70
- <component type="application" bom-ref="pkg:npm/%40eclipse-scout/chart@25.2.15?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git">
70
+ <component type="application" bom-ref="pkg:npm/%40eclipse-scout/chart@25.2.20?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git">
71
71
  <author>BSI Business Systems Integration AG</author>
72
72
  <group>@eclipse-scout</group>
73
73
  <name>chart</name>
74
- <version>25.2.15</version>
74
+ <version>25.2.20</version>
75
75
  <description>Eclipse Scout chart</description>
76
76
  <licenses>
77
77
  <license>
78
78
  <id>EPL-2.0</id>
79
79
  </license>
80
80
  </licenses>
81
- <purl>pkg:npm/%40eclipse-scout/chart@25.2.15?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git</purl>
81
+ <purl>pkg:npm/%40eclipse-scout/chart@25.2.20?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git</purl>
82
82
  <externalReferences>
83
83
  <reference type="vcs">
84
84
  <url>git+https://github.com/eclipse-scout/scout.rt.git</url>
@@ -133,7 +133,7 @@
133
133
  </component>
134
134
  </components>
135
135
  <dependencies>
136
- <dependency ref="pkg:npm/%40eclipse-scout/chart@25.2.15?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git">
136
+ <dependency ref="pkg:npm/%40eclipse-scout/chart@25.2.20?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Feclipse-scout%2Fscout.rt.git">
137
137
  <dependency ref="pkg:npm/css-loader@7.1.2?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Fwebpack-contrib%2Fcss-loader.git"/>
138
138
  </dependency>
139
139
  <dependency ref="pkg:npm/css-loader@7.1.2?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Fwebpack-contrib%2Fcss-loader.git"/>
@@ -1 +1 @@
1
- {"version":3,"file":"ChartJsRenderer.d.ts","sourceRoot":"","sources":["../../../../src/chart/ChartJsRenderer.ts"],"names":[],"mappings":";AASA,OAAO,EAAC,qBAAqB,EAAE,mBAAmB,EAAE,KAAK,EAAE,SAAS,EAAkB,WAAW,EAAE,SAAS,EAAsB,SAAS,EAAe,eAAe,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC7M,OAAO,EACyB,aAAa,EAA0B,eAAe,EAAE,qBAAqB,EAAiB,KAAK,IAAI,OAAO,EAAE,SAAS,EAAsB,YAAY,EAAE,UAAU,EAAE,SAAS,IAAI,WAAW,EAAE,KAAK,EACtO,gBAAgB,EAAY,aAAa,EAAE,UAAU,EAAuH,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,EAChN,WAAW,EAAE,iBAAiB,EAAE,YAAY,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AC,KAAK,CAAC,CAAC,CAAC;QAC3D,WAAW,CAAC,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAExC,sBAAsB,CAAC,EAAE,KAAK,CAAC;QAC/B,2BAA2B,CAAC,EAAE,KAAK,CAAC;QACpC,2BAA2B,CAAC,EAAE,KAAK,CAAC;QACpC,gCAAgC,CAAC,EAAE,KAAK,CAAC;QACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B,wBAAwB,CAAC,EAAE,KAAK,CAAC;QACjC,6BAA6B,CAAC,EAAE,KAAK,CAAC;QACtC,6BAA6B,CAAC,EAAE,KAAK,CAAC;QACtC,kCAAkC,CAAC,EAAE,KAAK,CAAC;QAC3C,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAE9B,qBAAqB,CAAC,EAAE,KAAK,CAAC;KAC/B;IAED,UAAU,eAAe;QACvB,CAAC,EAAE,MAAM,CAAC;KACX;IAED,UAAU,cAAc,CAAC,KAAK,SAAS,WAAW,GAAG,WAAW;QAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAED,UAAU,gBAAgB,CAAC,KAAK,SAAS,WAAW,EAAE,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC;QAC1G,KAAK,EAAE,qBAAqB,CAAC;QAC7B,UAAU,EAAE,0BAA0B,CAAC;KACxC;CACF"}
@@ -0,0 +1,3 @@
1
+ (()=>{"use strict";var L={};L.n=_=>{var t=_&&_.__esModule?()=>_.default:()=>_;return L.d(t,{a:t}),t},L.d=(_,t)=>{for(var e in t)L.o(t,e)&&!L.o(_,e)&&Object.defineProperty(_,e,{enumerable:!0,get:t[e]})},L.o=(_,t)=>Object.prototype.hasOwnProperty.call(_,t),L.r=_=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var _t={};L.r(_t),L.d(_t,{AbstractChartRenderer:()=>tt,AbstractSvgChartRenderer:()=>M,Chart:()=>h,ChartAdapter:()=>xt,ChartColorMode:()=>U,ChartField:()=>Rt,ChartFieldAdapter:()=>Lt,ChartFieldTile:()=>St,ChartFieldTileAdapter:()=>Ot,ChartJsRenderer:()=>W,ChartLayout:()=>it,ChartTableControl:()=>z,ChartTableControlAdapter:()=>Dt,ChartTableControlConfigDo:()=>S,ChartTableControlConfigHelperImpl:()=>rt,ChartTableControlLayout:()=>ct,ChartTableUserFilter:()=>V,FulfillmentChartRenderer:()=>nt,SalesfunnelChartRenderer:()=>ot,SpeedoChartRenderer:()=>k,VennAsync3Calculator:()=>ht,VennChartRenderer:()=>ut,VennCircle:()=>N,VennCircleHelper:()=>dt,chartJsDateAdapter:()=>st,default:()=>Mt});var Q={};L.r(Q),L.d(Q,{AbstractChartRenderer:()=>tt,AbstractSvgChartRenderer:()=>M,Chart:()=>h,ChartAdapter:()=>xt,ChartColorMode:()=>U,ChartField:()=>Rt,ChartFieldAdapter:()=>Lt,ChartFieldTile:()=>St,ChartFieldTileAdapter:()=>Ot,ChartJsRenderer:()=>W,ChartLayout:()=>it,ChartTableControl:()=>z,ChartTableControlAdapter:()=>Dt,ChartTableControlConfigDo:()=>S,ChartTableControlConfigHelperImpl:()=>rt,ChartTableControlLayout:()=>ct,ChartTableUserFilter:()=>V,FulfillmentChartRenderer:()=>nt,SalesfunnelChartRenderer:()=>ot,SpeedoChartRenderer:()=>k,VennAsync3Calculator:()=>ht,VennChartRenderer:()=>ut,VennCircle:()=>N,VennCircleHelper:()=>dt,chartJsDateAdapter:()=>st,default:()=>Mt});const n=scout;n.scout.addObjectFactories({ChartTableControlConfigHelper:()=>new rt});class rt extends n.ChartTableControlConfigHelper{async _exportConfig(t){if(!t?.detailTable)return null;let e=t.detailTable.findTableControl(z);return e&&e.selected?n.scout.create(S,{chartTypeId:e.chartType,chartGroup1ColumnId:e.chartGroup1?.id,chartGroup1Modifier:e.chartGroup1?.modifier,chartGroup2ColumnId:e.chartGroup2?.id,chartGroup2Modifier:e.chartGroup2?.modifier,chartAggregationColumnId:e.chartAggregation?.id,chartAggregationModifier:e.chartAggregation?.modifier}):null}async _importConfig(t,e){if(!t?.detailTable||!e)return;let a=t.detailTable.findTableControl(z);a&&(a.setSelected(!0),a.setChartType(e.chartTypeId),a.setChartGroup1({id:e.chartGroup1ColumnId,modifier:e.chartGroup1Modifier}),a.setChartGroup2({id:e.chartGroup2ColumnId,modifier:e.chartGroup2Modifier}),a.setChartAggregation({id:e.chartAggregationColumnId,modifier:e.chartAggregationModifier}))}}const vt=jQuery;var b=L.n(vt);class h extends n.Widget{data;config;checkedItems;chartRenderer;_updatedOnce;_updateChartTimeoutId;_updateChartOpts;_updateChartOptsWhileNotAttached;constructor(){super(),this.$container=null,this.data=null,this.config=null,this.checkedItems=[],this.chartRenderer=null,this._updateChartTimeoutId=null,this._updateChartOpts=null,this._updateChartOptsWhileNotAttached=[],this._updatedOnce=!1}static Type={PIE:"pie",LINE:"line",BAR:"bar",BAR_HORIZONTAL:"horizontalBar",COMBO_BAR_LINE:"comboBarLine",FULFILLMENT:"fulfillment",SPEEDO:"speedo",SALESFUNNEL:"salesfunnel",VENN:"venn",DOUGHNUT:"doughnut",POLAR_AREA:"polarArea",RADAR:"radar",BUBBLE:"bubble",SCATTER:"scatter"};static Position={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right",CENTER:"center"};static DEFAULT_ANIMATION_DURATION=600;static DEFAULT_DEBOUNCE_TIMEOUT=100;_init(t){super._init(t),this.setConfig(this.config),this._setData(this.data)}_render(){this.$container=this.$parent.appendDiv("chart"),n.aria.role(this.$container,"none"),this.htmlComp=n.HtmlComponent.install(this.$container,this.session),this.htmlComp.setLayout(new it(this))}_renderProperties(){super._renderProperties(),this._renderClickable(),this._renderCheckable(),this._renderChartType(),this._renderColorScheme(),this.updateChart({requestAnimation:!0,debounce:h.DEFAULT_DEBOUNCE_TIMEOUT})}_renderOnAttach(){super._renderOnAttach();const t=this._updateChartOptsWhileNotAttached.splice(0);this.chartRenderer?.isDetachSupported()||(this._updateChartRenderer(),t.forEach(e=>delete e.requestAnimation),t.push({requestAnimation:!1})),t.forEach(e=>this.updateChart(b().extend(!0,{},e,{debounce:!0})))}_remove(){this.chartRenderer&&this.chartRenderer.remove(!1),this.$container.remove(),this.$container=null}setData(t){this.setProperty("data",t),this.setCheckedItems(this.checkedItems)}_setData(t){t&&(t=b().extend({axes:[]},t)),this._setProperty("data",t)}_renderData(){this.updateChart({requestAnimation:!0,debounce:h.DEFAULT_DEBOUNCE_TIMEOUT,onlyUpdateData:!0})}setConfig(t){let e={type:h.Type.PIE,options:{autoColor:!0,colorMode:U.AUTO,colorScheme:n.colorSchemes.ColorSchemeId.DEFAULT,transparent:!1,maxSegments:5,adjustGridMaxMin:!0,clickable:!1,checkable:!1,animation:{duration:h.DEFAULT_ANIMATION_DURATION},plugins:{datalabels:{display:!1},tooltip:{enabled:!0},legend:{display:!0,clickable:!1,position:h.Position.RIGHT,pointsVisible:!0}}}};if(t=b().extend(!0,{},e,t),t.options.colorScheme=n.colorSchemes.ensureColorScheme(t.options.colorScheme),n.objects.equalsRecursive(this.config,t))return;let a=b().extend(!0,{},this.config);t.data?a.data=t.data:delete a.data;let r=(i,s,l)=>{if(!(!i||!s||!l)){if(!i.options||!i.options[l]){s.options&&delete s.options[l],s.options&&n.objects.isEmpty(s.options.scales)&&!(i.options&&i.options.scales)&&delete s.options.scales,n.objects.isEmpty(s.options)&&!i.options&&delete s.options;return}s.options[l]=i.options[l]}};if(r(t,a,"xLabelMap"),r(t,a,"yLabelMap"),n.objects.equalsRecursive(a,t)){this._setProperty("config",t),this.rendered&&this._renderConfig(!0),this.setCheckedItems(this.checkedItems);return}this.rendered&&this.config&&this.config.type&&this.$container.removeClass(this.config.type+"-chart"),this.setProperty("config",t),this.setCheckedItems(this.checkedItems),this._updateChartRenderer()}_renderConfig(t){this._renderClickable(),this._renderCheckable(),this._renderChartType(),this._renderColorScheme(),this.updateChart({requestAnimation:!0,debounce:h.DEFAULT_DEBOUNCE_TIMEOUT,onlyUpdateData:t})}setCheckedItems(t){this.setProperty("checkedItems",n.arrays.ensure(this._filterCheckedItems(t)))}_filterCheckedItems(t){if(!Array.isArray(t))return t;let e=[];this.data&&this.data.chartValueGroups?this.data.chartValueGroups.forEach(r=>e.push(r.values.length)):this.config&&this.config.data&&this.config.data.datasets.forEach(r=>e.push(r.data.length));let a=t.filter(r=>e[r.datasetIndex]&&r.dataIndex<e[r.datasetIndex]);return a.length<t.length?a:t}_renderCheckedItems(){this.chartRenderer&&this.chartRenderer.renderCheckedItems()}_renderEnabled(){this.updateChart()}_renderClickable(){this.$container.toggleClass("clickable",this.config.options.clickable)}_renderCheckable(){this.$container.toggleClass("checkable",this.config.options.checkable)}_renderChartType(){this.$container.addClass(this.config.type+"-chart")}_renderColorScheme(){n.colorSchemes.toggleColorSchemeClasses(this.$container,this.config.options.colorScheme)}updateChart(t){t=t||{},t.onlyUpdateData=t.onlyUpdateData&&this.chartRenderer&&this.chartRenderer.isDataUpdatable(),t.enforceRerender=!t.onlyUpdateData&&!t.onlyRefresh,this._updateChartTimeoutId&&(clearTimeout(this._updateChartTimeoutId),this._updateChartOpts&&(t.requestAnimation=t.requestAnimation||this._updateChartOpts.requestAnimation,t.onlyUpdateData=t.onlyUpdateData||this._updateChartOpts.onlyUpdateData,t.onlyRefresh=t.onlyRefresh||this._updateChartOpts.onlyRefresh,t.enforceRerender=t.enforceRerender||this._updateChartOpts.enforceRerender),this._updateChartTimeoutId=null,this._updateChartOpts=null);let e=r.bind(this);t.debounce===!0||typeof t.debounce=="number"?(this._updateChartOpts=t,typeof t.debounce=="number"?this._updateChartTimeoutId=setTimeout(e,t.debounce):this._updateChartTimeoutId=setTimeout(e)):e();function r(){if(this._updateChartTimeoutId=null,this._updateChartOpts=null,!this.$container||!this.$container.isAttached()){this._updateChartOptsWhileNotAttached.push(t);return}this._updatedOnce=!0,this.chartRenderer&&(t.enforceRerender?this.chartRenderer.remove(this.chartRenderer.shouldAnimateRemoveOnUpdate(t),i=>{this.removing||i||(this.chartRenderer.render(t.requestAnimation),this.trigger("chartRender"))}):t.onlyUpdateData?this.chartRenderer.updateData(t.requestAnimation):t.onlyRefresh&&this.chartRenderer.refresh())}}_resolveChartRenderer(){switch(this.config.type){case h.Type.FULFILLMENT:return new nt(this);case h.Type.SPEEDO:return new k(this);case h.Type.SALESFUNNEL:return new ot(this);case h.Type.VENN:return new ut(this);case h.Type.BAR:case h.Type.BAR_HORIZONTAL:case h.Type.LINE:case h.Type.COMBO_BAR_LINE:case h.Type.PIE:case h.Type.DOUGHNUT:case h.Type.POLAR_AREA:case h.Type.RADAR:case h.Type.BUBBLE:case h.Type.SCATTER:return new W(this)}return null}_updateChartRenderer(){this.chartRenderer&&this.chartRenderer.remove(),this.setProperty("chartRenderer",this._resolveChartRenderer())}handleValueClick(t,e){if(this.config.options.checkable){let a=[...this.checkedItems],r=a.filter(i=>i.datasetIndex===t.datasetIndex&&i.dataIndex===t.dataIndex)[0];r?n.arrays.remove(a,r):a.push(t),this.setCheckedItems(a)}this.trigger("valueClick",{data:t,originalEvent:e})}handleNonValueClick(t){this.trigger("nonValueClick",{originalEvent:t})}handleLegendClick(t,e){this.trigger("legendItemClick",{legendItemIndex:t,originalEvent:e})}}var U;(function(_){_.AUTO="auto",_.DATASET="dataset",_.DATA="data"})(U||(U={}));class xt extends n.ModelAdapter{_onWidgetValueClick(t){this._send("valueClick",t.data)}_onWidgetEvent(t){t.type==="valueClick"?this._onWidgetValueClick(t):super._onWidgetEvent(t)}}class it extends n.AbstractLayout{chart;constructor(t){super(),this.chart=t}layout(t){let e={requestAnimation:!0,debounce:h.DEFAULT_DEBOUNCE_TIMEOUT,onlyUpdateData:!0};(!this.chart.session.ready||this.chart._updatedOnce)&&(e.requestAnimation=!1),this.chart.session.ready||(e.debounce=!1),this.chart.findParent(n.Tile)?.$container.hasClass("dragged")&&(e.debounce=!1),this.chart.chartRenderer instanceof W&&this.chart.chartRenderer.chartJs?.resize(),this.chart.updateChart(e)}}class tt extends n.PropertyEventEmitter{chart;session;rendering;rendered;animationDuration;firstOpaqueBackgroundColor;constructor(t){super(),this.chart=t,this.session=t.session,this.rendering=!1,this.rendered=!1,this.animationDuration=0,this.firstOpaqueBackgroundColor=""}validate(){return this._validateChartData()?this._validate():!1}_validateChartData(){let t=this.chart&&this.chart.data;if(!t||!t.chartValueGroups||t.chartValueGroups.length===0)return!1;let e,a=0;for(e=0;e<t.chartValueGroups.length;e++){let r=t.chartValueGroups[e];if(!r.values)return!1;if(e===0)a=r.values.length;else if(r.values.length!==a)return!1;if(!this.chart.config.options.autoColor&&!n.arrays.ensure(r.colorHexValue).length&&!r.cssClass)return!1}for(e=0;e<t.axes.length;e++)if(t.axes[e].length!==a)return!1;return!0}_validate(){return!0}render(t){if(!this.validate()||!this.chart.rendered)return;const e=this.chart.config.options.animation.duration;this.setAnimationDuration(t?e:0),this.rendering=!0,this._render(),this.rendering=!1,this.rendered=!0,this.setAnimationDuration(e)}_render(){}renderCheckedItems(){this.rendered&&this._renderCheckedItems()}_renderCheckedItems(){}updateData(t){if(!this.rendered){this.render(t);return}if(!this.validate()||!this.isDataUpdatable())return;const e=this.chart.config.options.animation.duration;this.setAnimationDuration(t?e:0),this._updateData(),this.setAnimationDuration(e)}_updateData(){}isDataUpdatable(){return!1}isDetachSupported(){return!0}refresh(){this.rendering||(this.rendered&&this.remove(!1),this.render(!1))}setAnimationDuration(t){this.setProperty("animationDuration",t)&&this.rendered&&this._renderAnimationDuration()}_setAnimationDuration(t){this._setProperty("animationDuration",t)}_renderAnimationDuration(){}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments.length>1?arguments[1]:void 0;const a=this.chart.config.options.animation.duration;this.setAnimationDuration(t&&a),this.animationDuration&&this.rendered?this._removeAnimated(e):this._remove(e),this.setAnimationDuration(a)}_remove(t){this.rendered=!1,t&&t()}_removeAnimated(t){this._remove(t)}shouldAnimateRemoveOnUpdate(t){return t.requestAnimation}}class M extends tt{chartBox;clipId;maskId;suppressLegendBox;height;width;chartAnimationStopping;$svg;_nonValueClickHandler;constructor(t){super(t),this.chartBox=null,this.clipId="Clip-"+n.ObjectIdProvider.get().createUiSeqId(),this.maskId="Mask-"+n.ObjectIdProvider.get().createUiSeqId(),this.suppressLegendBox=!1,this._nonValueClickHandler=this._onNonValueClick.bind(this)}static FONT_SIZE_SMALLEST="smallestFont";static FONT_SIZE_SMALL="smallFont";static FONT_SIZE_MIDDLE="middleFont";static FONT_SIZE_BIG="bigFont";_render(){this.$svg||(this.$svg=this.chart.$container.appendSVG("svg","chart-svg"),n.aria.role(this.$svg,"img"),this.linkChartWithFieldLabel(this.$svg),this.$svg.on("click",this._nonValueClickHandler)),this.firstOpaqueBackgroundColor=n.styles.getFirstOpaqueBackgroundColor(this.$svg),this.height=this.$svg.height(),this.width=this.$svg.width(),this._initChartBox(),this._useFontSizeBig()?this.$svg.addClass(M.FONT_SIZE_BIG):this._useFontSizeMiddle()?this.$svg.addClass(M.FONT_SIZE_MIDDLE):this._useFontSizeSmall()?this.$svg.addClass(M.FONT_SIZE_SMALL):this._useFontSizeSmallest()&&this.$svg.addClass(M.FONT_SIZE_SMALLEST),this.$svg.isAttached()&&this._renderInternal()}linkChartWithFieldLabel(t){if(!t)return;let e=t.parents(".chart-field");if(e.length>0){let a=e.eq(0).children("label");a.length>0&&n.aria.linkElementWithLabel(t,a.eq(0))}}_renderInternal(){}_useFontSizeBig(){return!1}_useFontSizeMiddle(){return!1}_useFontSizeSmall(){return!1}_useFontSizeSmallest(){return!1}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments.length>1?arguments[1]:void 0;this.rendered&&!this.chartAnimationStopping&&(this.chartAnimationStopping=!0,this.$svg.children().stop(!0,!1),this.chartAnimationStopping=!1),super.remove(t,e)}_remove(t){this.rendered&&(this.$svg.children().stop(!0,!1),this.rendered&&(this.$svg.remove(),this.$svg=null)),this.rendered=!1,t&&t(this.chartAnimationStopping)}_createClickObject(t,e){return{xIndex:t,dataIndex:t,datasetIndex:e}}_onChartValueClick(t){this.chart.handleValueClick(t.data,t.originalEvent),t.stopPropagation()}_onNonValueClick(t){this.chart.handleNonValueClick(t.originalEvent),t.stopPropagation()}_measureText(t,e){let a=this.$svg.appendSVG("text",e).attr("x",0).attr("y",0).attr("visibility","hidden").text(t),r;try{r=a[0].getBBox()}catch{return{height:0,width:0}}return a.remove(),r}_renderLine(t,e,a,r,i){let s=this.$svg.appendSVG("line",i).attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",r);return this.animationDuration&&s.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0),s}_renderLineLabel(t,e,a,r,i){let s=this.$svg.appendSVG("text",r||"line-label").attr("x",t).attr("y",e).text(a);if(i){s.attr("mask","url(#"+this.maskId+")");let l=this.$svg.appendSVG("text",r?r+" background":"line-label-background").attr("x",t).attr("y",e).attr("clip-path","url(#"+this.clipId+")").text(a);s.data("$background",l),this.animationDuration&&l.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0)}return this.animationDuration&&s.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0),s}_initChartBox(){this.chartBox={width:this.width,height:this.height,xOffset:0,yOffset:0,mX:function(){return this.xOffset+this.width/2},mY:function(){return this.yOffset+this.height/2}}}_createAnimationObjectWithTabIndexRemoval(t,e){return{step:function(a,r){try{t.bind(this)(a,r)}catch(i){throw b()(this).stop(!0,!1),i}},duration:e||h.DEFAULT_ANIMATION_DURATION,complete:function(){b()(this).removeAttr("tabindex")}}}_addClipping(t){let e=this.$svg.appendSVG("clipPath");e[0].id=this.clipId;let a=this.$svg.appendSVG("mask");a.appendSVG("rect").attr("x",0).attr("y",0).attr("width","100%").attr("height","100%").attr("fill","white"),a[0].id=this.maskId,this.chart.$container.find("."+t).each(function(r){this.id="ClipMask-"+n.ObjectIdProvider.get().createUiSeqId(),e.appendSVG("use").attrXLINK("href","#"+this.id),a.appendSVG("use").attrXLINK("href","#"+this.id)})}_renderWireLegend(t,e,a,r){if(!this.chart.config.options.plugins.tooltip.enabled)return{detachFunc:()=>{},attachFunc:()=>{},removeFunc:()=>{}};let i={},s=5,l,d=0,o=17,c=o;r&&(l=this.$svg.appendSVG("rect","wire-legend-background-box").attr("opacity","1"));let u=e,p,f=0,g=0;if(u.h===-1?g=u.x2-2*s:g=this.width-u.x2-2*s,Array.isArray(t))for(let m=0;m<t.length;m++){let x=t.length-m-1,A=u.y2+u.v*s-o*x-s*x,T=this._renderLineLabel(u.x2+s,A,n.strings.truncateText(t[m],g,this._measureText.bind(this)),"",r);T.addClass(a),f=Math.max(f,T[0].getComputedTextLength()),m===0?p=T:p.data("lines")?p.data("lines").push(T):p.data("lines",[T])}else p=this._renderLineLabel(u.x2+s,u.y2+u.v*s,n.strings.truncateText(t,g,this._measureText.bind(this)),"",r),p.addClass(a),f=p[0].getComputedTextLength();if(d=f+2*s,e.autoPosition&&(u=e.posFunc.call(this,d,c),p.attr("x",u.x2+s),p.attr("y",u.y2+u.v*s)),u.h===-1?(p.attr("x",u.x2-s-f),p.css("text-anchor","left"),p.data("lines")&&p.data("lines").forEach(m=>{m.attr("x",u.x2-s-f),m.css("text-anchor","left")})):(p.attr("x",u.x2+s),p.css("text-anchor","right"),p.data("lines")&&p.data("lines").forEach(m=>{m.attr("x",u.x2+s),m.css("text-anchor","right")})),u.v===1)p.data("lines")&&p.data("lines").forEach((m,x)=>{m.attr("y",u.x2-s-f);let A=1+x;m.attr("y",u.y2+u.v*s+o*A+s*(A+1))}),p.attr("dy","0.7em");else if(p.data("lines")){let m=p.data("lines").length;p.attr("y",u.y2+u.v*s-o*m-s*m),p.data("lines").forEach((x,A)=>{m=p.data("lines").length-1-A,x.attr("y",u.y2+u.v*s-o*m-s*m)})}p.add(p.data("lines")).each((m,x)=>{let A=b()(x),T=A.data("$background");T&&(T.attr("x",A.attr("x")),T.attr("y",A.attr("y")),T.css("text-anchor",A.css("text-anchor")),T.attr("dy",A.attr("dy")))});let y=[];u.x1>0&&u.y1>0&&(y.push(this._renderLine(u.x1,u.y1,u.x2,u.y2,"label-line")),y.push(this._renderLine(u.x2,u.y2,u.x2+u.h*(f+2*s),u.y2,"label-line"))),p.data("wires",y);let C=this.$svg;return i.detachFunc=()=>{p.data("wires").forEach(m=>{m.detach()}),p.data("lines")&&p.data("lines").forEach(m=>{m.data("$background")&&C.append(m.data("$background")),m.detach()}),p.data("$background")&&p.data("$background").remove(),p.detach()},i.attachFunc=()=>{C.append(p),p.data("$background")&&C.append(p.data("$background")),C.append(p.data("wires")),p.data("lines")&&p.data("lines").forEach(m=>{C.append(m),m.data("$background")&&C.append(m.data("$background"))})},i.removeFunc=()=>{p.data("wires").forEach(m=>{m.remove()}),p.data("lines")&&p.data("lines").forEach(m=>{m.data("$background")&&m.data("$background").remove(),m().remove()}),p.data("$background")&&p.data("$background").remove(),p.remove()},i.$field=p,i}}const st={getAdapter(_){return{formats:()=>It(_.locale),parse:(t,e)=>n.objects.isNullOrUndefined(t)?null:t instanceof Date?t.getTime():n.objects.isString(t)?n.objects.isString(e)&&n.strings.hasText(e)?(t=new n.DateFormat(_.locale,e).parse(t),t instanceof Date?t.getTime():null):(t=n.dates.parseJsonDate(t),t instanceof Date?t.getTime():null):null,format:(t,e)=>{if(e==="quarter")throw new Error('The time unit "quarter" is not supported for formatting.');return n.dates.format(new Date(t),_.locale,e)},add:(t,e,a)=>{let r=new Date(t);switch(a){case"millisecond":return n.dates.shiftTime(r,0,0,0,e).getTime();case"second":return n.dates.shiftTime(r,0,0,e,0).getTime();case"minute":return n.dates.shiftTime(r,0,e,0,0).getTime();case"hour":return n.dates.shiftTime(r,e,0,0,0).getTime();case"day":return n.dates.shift(r,0,0,e).getTime();case"week":return n.dates.shift(r,0,0,e*7).getTime();case"month":return n.dates.shift(r,0,e,0).getTime();case"quarter":return n.dates.shift(r,0,e*3,0).getTime();case"year":return n.dates.shift(r,e,0,0).getTime();default:return t}},diff:(t,e,a)=>{switch(a){case"millisecond":return t-e;case"second":return(t-e)/1e3;case"minute":return(t-e)/1e3/60;case"hour":return(t-e)/1e3/60/60;case"day":return n.dates.compareDays(new Date(t),new Date(e));case"week":return n.dates.compareDays(new Date(t),new Date(e))/7;case"month":return n.dates.compareMonths(new Date(t),new Date(e));case"quarter":return n.dates.compareMonths(new Date(t),new Date(e))/3;case"year":return new Date(t).getFullYear()-new Date(e).getFullYear();default:return 0}},startOf:(t,e,a)=>{let r=new Date(t);switch(e){case"second":return r.setMilliseconds(0);case"minute":return r.setSeconds(0,0);case"hour":return r.setMinutes(0,0,0);case"day":return r.setHours(0,0,0,0);case"week":return n.dates.firstDayOfWeek(r,0).getTime();case"isoWeek":return n.dates.firstDayOfWeek(r,a).getTime();case"month":return n.dates.trunc(r).setDate(0);case"quarter":return n.dates.trunc(r).setMonth(r.getMonth()%4,1);case"year":return n.dates.trunc(r).setMonth(0,1);default:return t}},endOf:(t,e)=>{let a=new Date(t);switch(e){case"second":return a.setMilliseconds(999);case"minute":return a.setSeconds(59,999);case"hour":return a.setMinutes(59,59,999);case"day":return a.setHours(23,59,59,999);case"week":{a.setHours(23,59,59,999);let r=n.dates.firstDayOfWeek(a,0);return r.setDate(r.getDate()+7)}case"month":return a.setHours(23,59,59,999),a.setDate(Tt(a.getMonth(),a.getFullYear()));case"quarter":{a.setHours(23,59,59,999);let r=a.getMonth()%4+2;return a.setMonth(r,Tt(r,a.getFullYear()))}case"year":return a.setHours(23,59,59,999),a.setMonth(11,31);default:return t}}}}};function It(_){return{datetime:_.dateFormatPatternDefault+" "+_.timeFormatPatternDefault,millisecond:"HH:mm:ss.SSS",second:"HH:mm:ss",minute:_.timeFormatPatternDefault,hour:_.timeFormatPatternDefault,day:_.dateFormatPatternDefault,week:"ww",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"}}function Tt(_,t){return _ in[3,5,8,10]?30:_===1?n.dates.isLeapYear(t)?29:28:31}const B=Chart,Et=ChartDataLabels;var lt=L.n(Et);B.Chart.register(lt()),b().extend(!0,B.Chart.defaults,{maintainAspectRatio:!1,elements:{line:{borderWidth:2},point:{radius:0,hitRadius:10,hoverRadius:7,hoverBorderWidth:2},arc:{borderWidth:1},bar:{borderWidth:1,borderSkipped:""}},plugins:{legend:{labels:{usePointStyle:!0,boxHeight:7}}}}),b().extend(!0,B.Chart.overrides,{line:{elements:{point:{borderWidth:2}}},scatter:{elements:{point:{radius:3}}},bubble:{layout:{autoPadding:!1}}});let At=!1;const Pt=(1+Math.sqrt(5))/2;class W extends tt{static ARROW_LEFT_RIGHT="↔";static ARROW_UP_DOWN="↕";chartJs;onlyIntegers;maxXAxesTicksHeight;numSupportedColors;colorSchemeCssClass;minRadialChartDatalabelSpace;resetDatasetAfterHover;legendHoverDatasets;removing;$canvas;_labelFormatter;_xLabelFormatter;_yLabelFormatter;_xAxisFitter;_yAxisFitter;_radialChartDatalabelsDisplayHandler;_radialChartDatalabelsFormatter;_datalabelsFormatter;_datalabelBackgroundColorHandler;_legendLabelGenerator;_clickHandler;_hoverHandler;_pointerHoverHandler;_legendClickHandler;_legendHoverHandler;_legendPointerHoverHandler;_legendLeaveHandler;_legendPointerLeaveHandler;_resizeHandler;_tooltipTitleGenerator;_tooltipItemsGenerator;_tooltipLabelGenerator;_tooltipLabelValueGenerator;_tooltipLabelColorGenerator;_tooltipRenderer;_tooltip;_tooltipTimeoutId;_updatingDatalabels;_hoveringClickableElement;constructor(t){super(t),this.chartJs=null,this.onlyIntegers=!0,this.maxXAxesTicksHeight=75,this.numSupportedColors=6,this.colorSchemeCssClass="",this.minRadialChartDatalabelSpace=25,this._labelFormatter=this._createLabelFormatter(this._formatLabel),this._xLabelFormatter=this._createLabelFormatter(this._formatXLabel),this._yLabelFormatter=this._createLabelFormatter(this._formatYLabel),this._xAxisFitter=this._fitXAxis.bind(this),this._yAxisFitter=this._fitYAxis.bind(this),this._radialChartDatalabelsDisplayHandler=this._displayDatalabelsOnRadialChart.bind(this),this._radialChartDatalabelsFormatter=this._formatDatalabelsOnRadialChart.bind(this),this._datalabelsFormatter=this._formatDatalabels.bind(this),this._datalabelBackgroundColorHandler=this._getBackgroundColorOfDataset.bind(this),this._legendLabelGenerator=this._generateLegendLabels.bind(this),this.resetDatasetAfterHover=!1,this._clickHandler=this._onClick.bind(this),this._hoverHandler=this._onHover.bind(this),this._pointerHoverHandler=this._onHoverPointer.bind(this),this.legendHoverDatasets=[],this._legendClickHandler=this._onLegendClick.bind(this),this._legendHoverHandler=this._onLegendHover.bind(this),this._legendPointerHoverHandler=this._onLegendHoverPointer.bind(this),this._legendLeaveHandler=this._onLegendLeave.bind(this),this._legendPointerLeaveHandler=this._onLegendLeavePointer.bind(this),this._resizeHandler=this._onResize.bind(this),this._tooltipTitleGenerator=this._generateTooltipTitle.bind(this),this._tooltipItemsGenerator=this._generateTooltipItems.bind(this),this._tooltipLabelGenerator=this._generateTooltipLabel.bind(this),this._tooltipLabelValueGenerator=this._generateTooltipLabelValue.bind(this),this._tooltipLabelColorGenerator=this._generateTooltipLabelColor.bind(this),this._tooltipRenderer=this._renderTooltip.bind(this),this._tooltip=null,this._tooltipTimeoutId=null}_validateChartData(){let t=!0,e=this.chart&&this.chart.data;if((!e||!e.chartValueGroups||e.chartValueGroups.length===0||!e.axes)&&(t=!1),t&&n.scout.isOneOf(this.chart.config.type,h.Type.POLAR_AREA,h.Type.RADAR)){let i,s=0;for(i=0;i<e.chartValueGroups.length;i++){let l=e.chartValueGroups[i];l.values||(t=!1),i===0?s=l.values.length:l.values.length!==s&&(t=!1)}for(i=0;i<e.axes.length;i++)e.axes[i].length!==s&&(t=!1)}if(t)return!0;let a=!0,r=this.chart&&this.chart.config;if((!r||!r.data||!r.data.datasets||r.data.datasets.length===0)&&(a=!1),a&&n.scout.isOneOf(r.type,h.Type.POLAR_AREA,h.Type.RADAR)){let i,s=0;for(i=0;i<r.data.datasets.length;i++){let l=r.data.datasets[i];l.data||(a=!1),i===0?s=l.data.length:l.data.length!==s&&(a=!1)}}return a}_render(){this.$canvas||(this.$canvas=this.chart.$container.appendElement("<canvas>"),this.$canvas.on("click",this._onCanvasClick.bind(this)),n.aria.hidden(this.$canvas,!0)),this.firstOpaqueBackgroundColor=n.styles.getFirstOpaqueBackgroundColor(this.$canvas),At||(B.Chart.defaults.font.family=this.$canvas.css("font-family"),B._adapters._date.override(st.getAdapter(this.chart.session)),At=!0);let t=b().extend(!0,{},this.chart.config);this._adjustConfig(t),this._renderChart(t)}_renderChart(t){this.chartJs&&this.chartJs.destroy(),t=b().extend(!0,{},t,{options:{animation:{}}},t),t.options.animation.duration=this.animationDuration,this.chartJs=new B.Chart(this.$canvas[0].getContext("2d"),t),this._adjustSize(this.chartJs.config,this.chartJs.chartArea,{isDatasetVisible:e=>this.chartJs.getDatasetMeta(e).visible}),this.refresh()}_updateData(){if(!this.chartJs)return;let t=b().extend(!0,{},this.chart.config);this._adjustConfig(t);let e=this.chartJs.config.data,a=t.data,r=(o,c,u,p)=>{if(!o||!c||!u)return;if(!c[u]){let y=o[u];(y||p)&&(c[u]=y);return}if(!o[u]){if(p){c[u]=void 0;return}if(Array.isArray(c[u])){c[u].splice(0,c[u].length);return}c[u]=void 0;return}if(!Array.isArray(o[u])||!Array.isArray(c[u])){c[u]=o[u];return}for(let y=0;y<Math.min(o[u].length,c[u].length);y++)c[u][y]=o[u][y];let f=c[u].length,g=o[u].length;f>g?c[u].splice(g,f-g):f<g&&c[u].push(...o[u].splice(f))},i=(o,c)=>n.arrays.find(o,u=>u.datasetId===c),s=(o,c)=>n.arrays.findIndex(o,u=>u.datasetId===c);if(e&&a){r(a,e,"labels"),e.datasets||(e.datasets=[]),a.datasets||(a.datasets=[]),a.datasets.every(o=>n.objects.isNullOrUndefined(o.datasetId))&&(a.datasets.forEach((o,c)=>{o.datasetId=""+c}),e.datasets.forEach((o,c)=>{o.datasetId=""+c})),e.datasets.forEach(o=>{let c=i(a.datasets,o.datasetId);c&&(o.label=c.label,o.type=c.type,r(c,o,"data"),r(c,o,"backgroundColor",!0),r(c,o,"borderColor",!0),r(c,o,"hoverBackgroundColor",!0),r(c,o,"hoverBorderColor",!0),r(c,o,"legendColor",!0),r(c,o,"pointBackgroundColor",!0),r(c,o,"pointHoverBackgroundColor",!0),r(c,o,"pointBorderColor",!0),r(c,o,"pointHoverBorderColor",!0),r(c,o,"uncheckedBackgroundColor",!0),r(c,o,"uncheckedHoverBackgroundColor",!0),r(c,o,"checkedBackgroundColor",!0),r(c,o,"checkedHoverBackgroundColor",!0),r(c,o,"uncheckedPointBackgroundColor",!0),r(c,o,"uncheckedPointHoverBackgroundColor",!0),r(c,o,"checkedPointBackgroundColor",!0),r(c,o,"checkedPointHoverBackgroundColor",!0),r(c,o,"lineTension",!0),r(c,o,"pointRadius",!0),r(c,o,"uncheckedPointRadius",!0),r(c,o,"checkedPointRadius",!0),this._adjustDatasetBorderWidths(o))});for(let o=e.datasets.length-1;o>=0;o--){let c=e.datasets[o].datasetId;(n.objects.isNullOrUndefined(c)||s(a.datasets,c)===-1)&&e.datasets.splice(o,1)}e.datasets.sort((o,c)=>s(a.datasets,o.datasetId)-s(a.datasets,c.datasetId)),a.datasets.forEach((o,c)=>{let u=e.datasets[c];u&&u.datasetId&&o.datasetId===u.datasetId||e.datasets.splice(c,0,o)})}else this.chartJs.config.data=a;r(t.options,this.chartJs.config.options,"xLabelMap",!0),r(t.options,this.chartJs.config.options,"yLabelMap",!0),b().extend(!0,this.chartJs.config,{options:{animation:{duration:this.animationDuration}}});let l=this.chartJs.config.options.scales||{};[l.x||{},l.y||{},l.yDiffType||{},l.r||{}].forEach(o=>{(o.ticks||{}).stepSize=void 0}),this.refresh(),this._adjustSize(this.chartJs.config,this.chartJs.chartArea,{isDatasetVisible:o=>this.chartJs.getDatasetMeta(o).visible}),this.refresh()}isDataUpdatable(){return!0}isDetachSupported(){return!1}refresh(){this.chartJs?this.chartJs.update():super.refresh()}_renderAnimationDuration(){this.chartJs&&(b().extend(!0,this.chartJs.config,{options:{animation:{duration:this.animationDuration}}}),this.refresh())}_renderCheckedItems(){this.chartJs&&this._checkItems(this.chartJs.config)&&this.refresh()}_checkItems(t){if(!t||!t.data)return!1;let e=(r,i,s)=>{if(Array.isArray(r)&&Array.isArray(i)){let l=0;return n.arrays.ensure(s).filter(d=>!isNaN(d)&&d<Math.min(r.length,i.length)).forEach(d=>{r[d]!==i[d]&&(r[d]=i[d],l++)}),l}return 0},a=0;return t.data.datasets.forEach((r,i)=>{let s=this.chart.checkedItems.filter(d=>d.datasetIndex===i).map(d=>d.dataIndex),l=n.arrays.init(r.data.length,null).map((d,o)=>o);n.arrays.removeAll(l,s),a=a+e(r.backgroundColor,r.checkedBackgroundColor,s)+e(r.hoverBackgroundColor,r.checkedHoverBackgroundColor,s)+e(r.pointBackgroundColor,r.checkedPointBackgroundColor,s)+e(r.pointHoverBackgroundColor,r.checkedPointHoverBackgroundColor,s)+e(r.pointRadius,r.checkedPointRadius,s)+e(r.backgroundColor,r.uncheckedBackgroundColor,l)+e(r.hoverBackgroundColor,r.uncheckedHoverBackgroundColor,l)+e(r.pointBackgroundColor,r.uncheckedPointBackgroundColor,l)+e(r.pointHoverBackgroundColor,r.uncheckedPointHoverBackgroundColor,l)+e(r.pointRadius,r.uncheckedPointRadius,l),this._adjustDatasetBorderWidths(r)}),0<a}stopAnimations(){this.chartJs&&this.chartJs.stop()}_adjustConfig(t){!t||!t.type||(this._adjustType(t),this.chart.data&&this._computeDatasets(this.chart.data,t),this._adjustData(t),this._adjustLegend(t),this._adjustTooltip(t),this._adjustGrid(t),this._adjustPlugins(t),this._adjustColors(t),this._adjustClickHandler(t),this._adjustResizeHandler(t))}_adjustType(t){if(t.type===h.Type.COMBO_BAR_LINE){t.type=h.Type.BAR;let e=(t.options||{}).scaleLabelByTypeMap;e&&(e[h.Type.BAR]=e[h.Type.COMBO_BAR_LINE])}else this._isHorizontalBar(t)&&(t.type=h.Type.BAR,t.options=b().extend(!0,{},t.options,{indexAxis:"y"}))}_computeDatasets(t,e){let a=[],r=[],i=(l,d)=>{b().isEmptyObject(d)||(e.options[l]=d)};(t.axes[0]||[]).forEach(l=>a.push(l.label));let s=this._isHorizontalBar(e);i(s?"yLabelMap":"xLabelMap",this._computeLabelMap(t.axes[0])),i(s?"xLabelMap":"yLabelMap",this._computeLabelMap(t.axes[1])),t.chartValueGroups.forEach(l=>r.push({type:l.type,label:l.groupName,data:b().extend(!0,[],l.values)})),e.data={labels:a,datasets:r}}_isHorizontalBar(t){return t&&(t.type===h.Type.BAR_HORIZONTAL||t.type===h.Type.BAR&&t.options&&t.options.indexAxis==="y")}_computeLabelMap(t){let e={};return(t||[]).forEach((a,r)=>{e[r]=a.label}),e}_adjustData(t){!t||!t.data||!t.type||(this._adjustBarBorderWidth(t),this._adjustMaxSegments(t),this._adjustBubbleRadii(t),this._adjustOnlyIntegers(t))}_adjustBarBorderWidth(t){!t||!t.data||!t.type||!n.scout.isOneOf(t.type,h.Type.BAR)||t.data.datasets.forEach(e=>{(e.type||h.Type.BAR)===h.Type.BAR&&(e.borderWidth=e.borderWidth||1,e.hoverBorderWidth=e.hoverBorderWidth||2,this._adjustDatasetBorderWidths(e))})}_adjustDatasetBorderWidths(t){this._adjustDatasetBorderWidth(t),this._adjustDatasetBorderWidth(t,!0)}_adjustDatasetBorderWidth(t,e){if(!t)return;let a=e?"hoverBorderWidth":"borderWidth",r=e?"hoverBorderWidthBackup":"borderWidthBackup",i=e?"hoverBackgroundColor":"backgroundColor",s=e?"hoverBorderColor":"borderColor";if(t[r]&&(t[a]=t[r],delete t[r]),!t[a]||n.objects.isFunction(t[a]))return;let l=Array.isArray(t[a]),d=Array.isArray(t[i]),o=Array.isArray(t[s]);if(!(l||d||o)&&t[i]===t[s]){t[r]=t[a],t[a]=0;return}let u=(t.data||[]).length;l?t[a].length<u&&t[a].push(...n.arrays.init(u-t[a].length,t[a][0])):t[a]=n.arrays.init(u,t[a]);let p=t[a],f=p.length,g=n.arrays.init(f,null);for(let y=0;y<f;y++){let C=d?t[i][y]:t[i],m=o?t[s][y]:t[s];g[y]=p[y],C===m&&(p[y]=0)}n.arrays.equals(p,g)||(t[r]=g)}_adjustMaxSegments(t){if(!t||!t.data||!t.type||!n.scout.isOneOf(t.type,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA,h.Type.RADAR))return;let e=t.options.maxSegments;if(!(e&&t.data.datasets.length&&e<t.data.datasets[0].data.length))return;t.data.datasets.forEach(r=>{let i=r.data.slice(0,e);i[e-1]=r.data.slice(e-1,r.data.length).reduce((s,l)=>s+l,0),r.data=i});let a=t.data.labels.slice(0,e);a[e-1]=this.chart.session.text("ui.OtherValues"),t.data.labels=a,t.data.maxSegmentsExceeded=!0}_isMaxSegmentsExceeded(t,e){return!n.scout.isOneOf(t.type,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA,h.Type.RADAR)||t.options.otherSegmentClickable||!t.data.maxSegmentsExceeded||!t.options.maxSegments?!1:t.options.maxSegments-1<=e}_adjustBubbleRadii(t){!t||!t.data||!t.type||t.type!==h.Type.BUBBLE||t.data.datasets.forEach(e=>e.data.forEach(a=>{isNaN(a.r)||(a.z=Math.pow(a.r,2)),a.r=1}))}_adjustOnlyIntegers(t){this.onlyIntegers=!0,!(!t||!t.data||!t.type)&&(n.scout.isOneOf(t.type,h.Type.BUBBLE,h.Type.SCATTER)?this.onlyIntegers=t.data.datasets.every(e=>e.data.every(a=>n.numbers.isInteger(a.x)&&n.numbers.isInteger(a.y))):this.onlyIntegers=t.data.datasets.every(e=>e.data.every(a=>n.numbers.isInteger(a))))}_adjustLegend(t){!t||!t.type||!t.options||(t.options=b().extend(!0,{},t.options,{plugins:{legend:{labels:{generateLabels:this._legendLabelGenerator}}}}),t.options.plugins.legend.pointsVisible||(t.options.plugins.legend.labels.boxWidth=0))}_adjustTooltip(t){if(!t)return;t.options=b().extend(!0,{},{plugins:{tooltip:{callbacks:{title:this._tooltipTitleGenerator,items:this._tooltipItemsGenerator,label:this._tooltipLabelGenerator,labelValue:this._tooltipLabelValueGenerator,labelColor:this._tooltipLabelColorGenerator}}}},t.options);let e=t.options.plugins.tooltip;e.enabled&&(e.enabled=!1,e.external=this._tooltipRenderer)}_generateTooltipTitle(t){if(!t||!t.length)return"";let e=t[0],a=e.chart,r=a.config,i=e.dataset,s=[];if(n.scout.isOneOf(r.type,h.Type.BUBBLE)){let l=r.options.scales.x,d=r.options.scales.y,o=this._getAxisLabels(r),c=l.ticks.callback(i.data[e.dataIndex].x,null,null);c&&s.push(this._createTooltipAttribute(o.x,n.strings.encode(c),!0));let u=d.ticks.callback(i.data[e.dataIndex].y,null,null);u&&s.push(this._createTooltipAttribute(o.y,n.strings.encode(u),!0))}else if(!n.scout.isOneOf(r.type,h.Type.SCATTER)){let l=a.data.labels[e.dataIndex];s.push(this._createTooltipAttribute(r.options.reformatLabels?this._formatLabel(l):l,"",!0))}return s}_getAxisLabels(t){let e=t.options.scales.x.title.text,a=t.options.scales.y.title.text;return e=this._resolveAxisLabel(e,W.ARROW_LEFT_RIGHT),a=this._resolveAxisLabel(a,"&nbsp;"+W.ARROW_UP_DOWN+"&nbsp;"),{x:e,y:a}}_resolveAxisLabel(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return n.objects.isFunction(t)&&(t=t(),t=n.objects.isString(t)?t:""),t?n.strings.encode(t):e}_generateTooltipItems(t,e,a,r){if(!t||!t.length)return"";let i=t[0],s=i.chart,l=s.config,d=!1,o=!1,c="";if(t.forEach(u=>{let{label:p,labelValue:f,labelColor:g}=this._getItemDetails(u,e,a,r);if(n.scout.isOneOf(l.type,h.Type.SCATTER)){let{x:y,y:C}=f;d||=n.objects.isString(y),o||=n.objects.isString(C),c+=this._createTooltipScatterAttribute(p,y,C,!1,g)}else c+=this._createTooltipAttribute(p,f,!1,g)}),n.scout.isOneOf(l.type,h.Type.SCATTER)){let u="<table><tbody>",p=this._getAxisLabels(l);u+=this._createTooltipScatterAttribute("",d?p.x:"",o?p.y:"",!0),c=n.strings.box(u,c,"</tbody></table>")}return c}_getItemDetails(t,e,a,r){let i,s,l;return n.objects.isFunction(e)&&(i=e(t),i=n.objects.isString(i)?i:""),n.objects.isFunction(a)&&(s=a(t),s=n.objects.isString(s)||n.objects.isObject(s)?s:""),n.objects.isFunction(r)&&(l=r(t),l=n.objects.isObject(l)&&l.backgroundColor||""),{label:i,labelValue:s,labelColor:l}}_generateTooltipLabel(t){return n.strings.encode(t.dataset.label)}_generateTooltipLabelValue(t){let e=t.chart.config,a=t.dataset;return e.type===h.Type.BUBBLE?n.strings.encode(this._formatLabel(a.data[t.dataIndex].z)):e.type===h.Type.SCATTER?{x:n.strings.encode(this._formatXLabel(a.data[t.dataIndex].x)),y:n.strings.encode(this._formatYLabel(a.data[t.dataIndex].y))}:n.strings.encode(this._formatLabel(a.data[t.dataIndex]))}_generateTooltipLabelColor(t){let e=t.chart.config,a=t.dataset,r,i,s,l;n.scout.isOneOf(a.type||e.type,h.Type.LINE,h.Type.BAR,h.Type.BAR_HORIZONTAL,h.Type.RADAR,h.Type.BUBBLE,h.Type.SCATTER)&&(s=a.borderColor,r=Array.isArray(a.legendColor)?a.legendColor[t.dataIndex]:a.legendColor,l=t.datasetIndex),n.scout.isOneOf(e.type,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)&&(r=Array.isArray(a.legendColor)?a.legendColor[t.dataIndex]:a.legendColor,i=Array.isArray(a.backgroundColor)?a.backgroundColor[t.dataIndex]:a.backgroundColor,i=this._adjustColorOpacity(i,1),l=t.dataIndex),n.objects.isFunction(r)&&(r=r.call(t.chart,l));let d=r||i||s;if(!d||n.objects.isFunction(d)){let o;B.Chart.overrides[e.type]&&B.Chart.overrides[e.type].plugins&&B.Chart.overrides[e.type].plugins.tooltip&&B.Chart.overrides[e.type].plugins.tooltip.callbacks&&(o=B.Chart.overrides[e.type].plugins.tooltip.callbacks.labelColor),d=(o||B.Chart.defaults.plugins.tooltip.callbacks.labelColor).call(t.chart,t).backgroundColor}return{backgroundColor:d}}_createTooltipAttribute(t,e,a,r){return'<div class="'+(a?"attribute title":"attribute")+'">'+(r?'<div class="color" style="background-color:'+r+'"></div>':"")+(t?"<label>"+t+"</label>":"")+(e?'<div class="value">'+e+"</div>":"")+"</div>"}_createTooltipScatterAttribute(t,e,a,r,i){return'<tr class="'+(r?"attribute title":"attribute")+'"><td class="color-cell">'+(i?'<div class="color" style="background-color:'+i+'"></div>':"")+'</td><td class="label">'+t+"</td>"+(e?'<td class="value">'+e+"</td>":"")+(a?'<td class="value">'+a+"</td>":"")+"</tr>"}_renderTooltip(t){if(t.tooltip.opacity===0||t.tooltip.dataPoints.length<1){this._tooltipTimeoutId&&(clearTimeout(this._tooltipTimeoutId),this._tooltipTimeoutId=void 0),this._tooltip&&(this._tooltip.destroy(),this._tooltip=null);return}!!this._tooltip?this._renderTooltipLater(t):(clearTimeout(this._tooltipTimeoutId),this._tooltipTimeoutId=setTimeout(()=>this._renderTooltipLater(t),n.tooltips.DEFAULT_TOOLTIP_DELAY))}_renderTooltipLater(t){if(!this.rendered||this.removing)return;let e=t.tooltip,a=e.dataPoints;if(a.length<1)return;let r=a[0];if(!r.chart.getDatasetMeta(r.datasetIndex).data[r.dataIndex])return;this._tooltip&&(this._tooltip.destroy(),this._tooltip=null);let s=e.options||{},l=s.callbacks||{},d=l.title,o=l.items,c=l.label,u=l.labelValue,p=l.labelColor,f="";n.objects.isFunction(d)&&(f+=n.arrays.ensure(d(a)).join("")),n.objects.isFunction(o)&&(f+=n.arrays.ensure(o(a,c,u,p)).join(""));let g=this._computeTooltipPositionAndOffset(r),y=new n.Point(e.caretX+g.offsetX,e.caretY+g.offsetY);this._tooltip=n.scout.create({objectType:n.Tooltip,parent:this.chart,$anchor:this.$canvas,text:f,htmlEnabled:!0,cssClass:n.strings.join(" ","chart-tooltip",s.cssClass),tooltipPosition:g.tooltipPosition,tooltipDirection:g.tooltipDirection,originProducer:A=>{const T=n.graphics.offsetBounds(A);return T.height=g.height,T},offsetProducer:A=>y}),this._tooltip.render(),this._tooltip.$container.css("pointer-events","none");let C=!1,m=(s.titleFont||{}).family;m&&(this._tooltip.$container.css("--chart-tooltip-font-family",m),C=!0);let x=0;this._tooltip.$container.find("label").each((A,T)=>{x=Math.max(x,n.graphics.prefSize(b()(T)).width)}),x>0&&(this._tooltip.$container.css("--chart-tooltip-label-width",Math.min(x,120)+"px"),C=!0),C&&this._tooltip.position()}_computeTooltipPositionAndOffset(t){let e="top",a="right",r=0,i=0,s=0,l=t.chart,d=t.datasetIndex,o=t.dataIndex,c=l.config,u=c.data.datasets,p=u[d],f=p.data[o];if(this._isHorizontalBar(c))n.objects.isObject(f)&&n.objects.isArray(f.x)&&f.x.length===2?a=(f.x[0]+f.x[1])/2<0?"left":"right":a=f<0?"left":"right";else if((p.type||c.type)===h.Type.BAR)e=f<0?"bottom":"top";else if(n.scout.isOneOf(c.type,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)){let g=l.getDatasetMeta(d).data[o].getProps(["startAngle","endAngle"]),y=g.startAngle,C=g.endAngle,m=(y+C)/2;e=0<=m&&m<Math.PI?"bottom":"top",a=-Math.PI/2<=m&&m<Math.PI/2?"right":"left"}else if(c.type===h.Type.RADAR){let y=l.getDatasetMeta(d).data[o].getProps(["angle"]).angle;e=0<=y&&y<Math.PI?"bottom":"top",a=-Math.PI/2<=y&&y<Math.PI/2?"right":"left"}else if(n.scout.isOneOf(c.type,h.Type.BUBBLE,h.Type.SCATTER)){let g=l.getDatasetMeta(d).data[o],y=l.chartArea,C=y.left+y.width/2;a=g.x<C?"left":"right"}if(this._isHorizontalBar(c)){let g=l.getDatasetMeta(d).data[o].getProps(["height","width"]);s=g.height;let y=g.width,C=y/(Pt+1);i=-s/2,r=a==="left"?C:-C}else if(n.scout.isOneOf(c.type,h.Type.LINE,h.Type.BUBBLE,h.Type.SCATTER,h.Type.RADAR)||p.type===h.Type.LINE){let y=l.getDatasetMeta(d).data[o].options,C=y.hoverRadius+y.hoverBorderWidth;c.type===h.Type.BUBBLE&&(C+=f.r),s=2*C,i=-C}else if(n.scout.isOneOf(c.type,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)){let g=l.getDatasetMeta(d).data[o].getProps(["startAngle","endAngle","innerRadius","outerRadius"]),y=g.startAngle,C=g.endAngle,m=(y+C)/2,x=g.innerRadius,A=g.outerRadius,T=(A-x)/2;r=T*Math.cos(m),i=T*Math.sin(m)}return{tooltipPosition:e,tooltipDirection:a,offsetX:r,offsetY:i,height:s}}_adjustGrid(t){t&&(t.options=b().extend(!0,{},t.options),this._adjustScalesR(t),this._adjustScalesXY(t))}_adjustScalesR(t){if(!t||!t.type||!t.options)return;n.scout.isOneOf(t.type,h.Type.POLAR_AREA,h.Type.RADAR)&&(t.options=b().extend(!0,{},{scales:{r:{}}},t.options));let e=t.options,a=e?e.scales:{};a&&a.r&&(a.r=b().extend(!0,{},{minSpaceBetweenTicks:35,beginAtZero:!0,angleLines:{display:!1},ticks:{callback:this._labelFormatter},pointLabels:{callback:this._labelFormatter,font:{size:B.Chart.defaults.font.size}}},a.r))}_adjustScalesXY(t){!t||!t.type||!t.options||(n.scout.isOneOf(t.type,h.Type.BAR,h.Type.LINE,h.Type.BUBBLE)?t.options=b().extend(!0,{},{scales:{x:{minSpaceBetweenTicks:150},y:{minSpaceBetweenTicks:35}}},t.options):n.scout.isOneOf(t.type,h.Type.SCATTER)&&(t.options=b().extend(!0,{},{scales:{x:{minSpaceBetweenTicks:35,ticks:{padding:10}},y:{minSpaceBetweenTicks:35,ticks:{padding:10}}}},t.options)),this._adjustXAxis(t),this._adjustYAxis(t))}_adjustXAxis(t){if(!t||!t.type||!t.options||!t.options.scales||!t.options.scales.x)return;let e=t.type,a=t.options.scales;this._isHorizontalBar(t)||n.scout.isOneOf(e,h.Type.BUBBLE,h.Type.SCATTER)?a.x=b().extend(!0,{},{beginAtZero:this._isHorizontalBar(t),offset:e===h.Type.BUBBLE,grid:{drawTicks:!1},border:{display:!1},ticks:{padding:5}},a.x):a.x=b().extend(!0,{},{offset:!0,grid:{display:!1},border:{display:!1}},a.x),(this._isHorizontalBar(t)||n.scout.isOneOf(e,h.Type.BUBBLE,h.Type.SCATTER)||t.options.reformatLabels)&&(a.x=b().extend(!0,{},{ticks:{callback:this._xLabelFormatter}},a.x)),a.x.afterCalculateLabelRotation=this._xAxisFitter}_adjustYAxis(t){if(!t||!t.type||!t.options||!t.options.scales||!t.options.scales.y)return;let e=t.type,a=t.options.scales;this._isHorizontalBar(t)?a.y=b().extend(!0,{},{grid:{display:!1},border:{display:!1}},a.y):a.y=b().extend(!0,{},{beginAtZero:!n.scout.isOneOf(e,h.Type.BUBBLE,h.Type.SCATTER),grid:{drawTicks:!1},border:{display:!1},ticks:{padding:5}},a.y),(!this._isHorizontalBar(t)||t.options.reformatLabels)&&(a.y=b().extend(!0,{},{ticks:{callback:this._yLabelFormatter}},a.y)),a.y.afterFit=this._yAxisFitter}_adjustPlugins(t){this._adjustPluginsDatalabels(t)}_adjustPluginsDatalabels(t){if(!t||!t.type||!t.options||!t.options.plugins||!t.options.plugins.datalabels||!t.options.plugins.datalabels.display)return;let e=t.options.plugins;if(n.scout.isOneOf(t.type,h.Type.PIE,h.Type.DOUGHNUT)){e.datalabels=b().extend(!0,{},{formatter:this._radialChartDatalabelsFormatter},e.datalabels),e.datalabels.display=this._radialChartDatalabelsDisplayHandler,this._updatingDatalabels=!1;let a=t.options.animation||{},r=a.onProgress,i=a.onComplete,s=d=>{if(this._updatingDatalabels)return;this._updatingDatalabels=!0;let o=d.chart,c=o.getSortedVisibleDatasetMetas(),u=[...o.getActiveElements()],p=[];c.forEach((f,g)=>{f.data.forEach((y,C)=>{let m=n.arrays.findIndex(u,x=>x.datasetIndex===g&&x.index===C);m>0?u.splice(m,1):p.push({datasetIndex:g,index:C,element:y})})}),o["$"+lt().id]._actives=p,lt().afterEvent(o,null,null),this._updatingDatalabels=!1},l=(d,o)=>{s(d),o&&o(d)};t.options.animation=b().extend(!0,{},t.options.animation,{onProgress:d=>l(d,r),onComplete:d=>l(d,i)})}else n.scout.isOneOf(t.type,h.Type.BAR,h.Type.LINE,h.Type.POLAR_AREA,h.Type.RADAR,h.Type.BUBBLE)?(e.datalabels=b().extend(!0,{},{backgroundColor:this._datalabelBackgroundColorHandler,borderRadius:3},e.datalabels),e.datalabels.display="auto"):n.scout.isOneOf(t.type,h.Type.SCATTER)&&(e.datalabels=b().extend(!0,{},{backgroundColor:this._datalabelBackgroundColorHandler,borderRadius:3,anchor:"end",align:"top",offset:3},e.datalabels),e.datalabels.display="auto");if(t.options.reformatLabels){let a=r=>(i,s)=>{let l=r.call(s.chart,i,s);return this._formatLabel(l)};t.data&&t.data.datasets.forEach(i=>{i.datalabels&&i.datalabels.formatter&&(i.datalabels.formatter=a(i.datalabels.formatter))}),e.datalabels.formatter&&(e.datalabels.formatter=a(e.datalabels.formatter))}e.datalabels=b().extend(!0,{},{formatter:this._datalabelsFormatter},e.datalabels)}_getNumberFormatter(){return this.chartJs?.config?.options?.numberFormatter}_createLabelFormatter(t){const e=this;return function(a){return t.call(e,a,this)}}_formatLabel(t,e){return t=this._formatCategory(t,e),this._formatLabelMap(t,null,this._getNumberFormatter())}_formatXLabel(t,e){return t=this._formatCategory(t,e),this._formatLabelMap(t,this._getXLabelMap(),this._getNumberFormatter())}_formatYLabel(t,e){return t=this._formatCategory(t,e),this._formatLabelMap(t,this._getYLabelMap(),this._getNumberFormatter())}_formatCategory(t,e){return e instanceof B.CategoryScale&&n.numbers.isNumber(t)?e.getLabelForValue(t):t}_getXLabelMap(){return this._getLabelMap("xLabelMap")}_getYLabelMap(){return this._getLabelMap("yLabelMap")}_getLabelMap(t){if(this.chartJs&&this.chartJs.config&&this.chartJs.config.options)return this.chartJs.config.options[t]}_formatLabelMap(t,e,a){return e?e[t]:isNaN(t)||typeof t=="string"?""+t:a?a(t,this._formatNumberLabel.bind(this)):this._formatNumberLabel(t)}_formatNumberLabel(t){if(isNaN(t))return""+t;let e=Math.abs(t),a="";if(e>=1e6){e=e/1e6,a=" "+this.chart.session.text("ui.Mio");let r=[this.chart.session.text("ui.Mrd"),this.chart.session.text("ui.Bio"),this.chart.session.text("ui.Brd"),this.chart.session.text("ui.Tri"),this.chart.session.text("ui.Trd")];for(let i=0;i<r.length&&e>=1e3;i++)e=e/1e3,a=" "+r[i]}return this.session.locale.decimalFormat.format(Math.sign(t)*e)+a}_fitXAxis(t){if(!t||t.labelRotation===0)return;let e=this.maxXAxesTicksHeight,a=B.Chart.defaults.font,r=B.Chart.defaults.scale.ticks,i=r.font||{},s,l;if(this.chartJs){let p=this.chartJs.chartArea,f=Math.abs(p.top-p.bottom);e=Math.min(e,f/3)}t.options&&t.options.ticks&&(l=t.options.ticks.maxRotation,s=(t.options.ticks.font||{}).size),l=l||r.maxRotation,s=s||i.size||a.size,isNaN(t.labelRotation)&&(t.labelRotation=l),t.height=isNaN(t.height)?e:Math.min(t.height,e);let d=t.labelRotation,o=(e-s*Math.sin((90-d)/180*Math.PI))/Math.sin(d/180*Math.PI);if(((t._labelSizes||{}).widest||{}).width>o){let p=t.ctx.measureText.bind(t.ctx);t.ticks.forEach(f=>{f.label=n.strings.truncateText(f.label,o,p)}),t._labelSizes=void 0}}_fitYAxis(t){if(!t)return;let e=0,a=0;if(t.options&&t.options.ticks&&(e=t.options.ticks.padding||0),t.options&&t.options.grid&&(a=t.options.grid.tickLength||0),((t._labelSizes||{}).widest||{}).width>t.maxWidth-e){let s=t.maxWidth-e-a,l=t.ctx.measureText.bind(t.ctx);t.ticks.forEach(d=>{d.label=n.strings.truncateText(d.label,s,l)})}}_displayDatalabelsOnRadialChart(t){let e=t.chart.getDatasetMeta(t.datasetIndex).data[t.dataIndex].getProps(["startAngle","endAngle","innerRadius","outerRadius"]),a=(e.outerRadius+e.innerRadius)/2,r=Math.min(e.endAngle-e.startAngle,Math.PI)/2,i=Math.abs(Math.sin(r))*a,s=i*2,l=e.outerRadius-e.innerRadius;return Math.min(s,l)>this.minRadialChartDatalabelSpace}_formatDatalabelsOnRadialChart(t,e){let a=this._computeSumOfVisibleElements(e),r=e.dataset,i=0,s=[];for(let l=0;l<e.dataIndex+1;l++){let d=r.data[l]/a*100-i,o=Math.round(d);i=o-d,s.push(o+"%")}return s[e.dataIndex]}_computeSumOfVisibleElements(t){let e=t.dataset,a=t.chart,r=0;for(let i=0;i<e.data.length;i++)a.getDataVisibility(i)&&(r+=e.data[i]);return r}_formatDatalabels(t,e){let a=e.chart.config;return a.type===h.Type.BUBBLE?this._formatLabel(t.z):a.type===h.Type.SCATTER?n.strings.join(" / ",this._formatXLabel(t.x),this._formatYLabel(t.y)):this._formatLabel(t)}_getBackgroundColorOfDataset(t){return t.dataset.backgroundColor}_adjustColors(t){this._adjustColorSchemeCssClass(t),this._adjustDatasetColors(t),this._adjustLegendColors(t),this._adjustScalesRColors(t),this._adjustScalesXYColors(t),this._adjustPluginColors(t)}_adjustColorSchemeCssClass(t){!t||!t.options||(this.colorSchemeCssClass=n.colorSchemes.getCssClasses(t.options.colorScheme).join(" "))}_adjustDatasetColors(t){if(!t||!t.data||!t.type)return;let e=t.data,a=t.type,r=t.options&&t.options.autoColor,i=t.options&&t.options.checkable,s=t.options&&t.options.colorMode,l=r&&(s===U.DATASET?!1:s===U.DATA?!0:n.scout.isOneOf(a,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)),d={backgroundColors:[],borderColors:[],hoverBackgroundColors:[],hoverBorderColors:[],checkedBackgroundColors:[],checkedHoverBackgroundColors:[],legendColors:[],pointHoverColors:[]};d=b().extend(!0,d,this._computeDatasetColors(t,l)),e.datasets.forEach((o,c)=>{const u=A=>{let T=A[c];return l&&!Array.isArray(T)&&(T=A),T};let p=u(d.backgroundColors),f=u(d.borderColors),g=u(d.hoverBackgroundColors),y=u(d.hoverBorderColors),C=u(d.legendColors),m=u(d.pointHoverColors),x=(A,T)=>{typeof o[A]!="function"&&T&&T.length&&(o[A]=Array.isArray(T)?[...T]:T)};if(x("backgroundColor",p),x("borderColor",f),x("hoverBackgroundColor",g),x("hoverBorderColor",y),x("legendColor",C),(n.scout.isOneOf(a,h.Type.LINE,h.Type.RADAR)||a===h.Type.BAR&&o.type===h.Type.LINE)&&(x("pointHoverBackgroundColor",m),x("pointBorderColor",this.firstOpaqueBackgroundColor),x("pointHoverBorderColor",this.firstOpaqueBackgroundColor)),i){const A=o.data.length,T=R=>Array.isArray(R)?R:n.arrays.init(A,R);if(n.scout.isOneOf(a,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA,h.Type.BUBBLE,h.Type.SCATTER)||a===h.Type.BAR&&(o.type||h.Type.BAR)===h.Type.BAR){let R=T(p),P=T(g),H=T(u(d.checkedBackgroundColors)),E=T(u(d.checkedHoverBackgroundColors));x("uncheckedBackgroundColor",R),x("uncheckedHoverBackgroundColor",P),x("checkedBackgroundColor",H),x("checkedHoverBackgroundColor",E),x("backgroundColor",o.uncheckedBackgroundColor),x("hoverBackgroundColor",o.uncheckedHoverBackgroundColor)}else if(n.scout.isOneOf(a,h.Type.LINE,h.Type.RADAR)||a===h.Type.BAR&&o.type===h.Type.LINE){let R=T(m),P=T(m),H=T(f),E=T(y||f);x("uncheckedPointBackgroundColor",R),x("uncheckedPointHoverBackgroundColor",P),x("checkedPointBackgroundColor",H),x("checkedPointHoverBackgroundColor",E),x("pointBackgroundColor",o.uncheckedPointBackgroundColor),x("pointHoverBackgroundColor",o.uncheckedPointHoverBackgroundColor);let v=n.arrays.init(A,((t.options.elements||{}).point||{}).radius||B.Chart.defaults.elements.point.radius),O=n.arrays.init(A,(((t.options.elements||{}).point||{}).hoverRadius||B.Chart.defaults.elements.point.hoverRadius)-1);x("uncheckedPointRadius",v),x("checkedPointRadius",O),x("pointRadius",o.uncheckedPointRadius)}}this._adjustDatasetBorderWidths(o)}),i&&this._checkItems(t)}_computeDatasetColors(t,e){if(!t||!t.data||!t.type)return{};let a=t.data,r=t.type,i={};if(t.options&&t.options.autoColor)i=this._computeDatasetColorsAutoColor(t,e);else if(i=this._computeDatasetColorsChartValueGroups(t,e),n.scout.isOneOf(r,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)){let s=this._computeBorderColor(r,0);i.borderColors=n.arrays.init(a.datasets.length,s),i.hoverBorderColors=i.borderColors}return i}_computeDatasetColorsAutoColor(t,e){if(!t||!t.data||!t.type||!t.options||!t.options.autoColor)return{};let a=t.data,r=t.type,i=t.options&&t.options.checkable,s=t.options&&t.options.transparent,l={backgroundColors:[],borderColors:[],hoverBackgroundColors:[],hoverBorderColors:[],checkedBackgroundColors:[],checkedHoverBackgroundColors:[],legendColors:[],pointHoverColors:[]},d=[];return e?d=n.arrays.init(a.datasets.length&&a.datasets[0].data.length||0,r):a.datasets.forEach(o=>d.push(o.type||r)),d.forEach((o,c)=>{l.backgroundColors.push(this._computeBackgroundColor(o,c,i||s)),l.borderColors.push(this._computeBorderColor(o,c)),l.hoverBackgroundColors.push(this._computeHoverBackgroundColor(o,c,i||s)),l.hoverBorderColors.push(this._computeHoverBorderColor(o,c)),l.checkedBackgroundColors.push(this._computeCheckedBackgroundColor(o,c,i)),l.checkedHoverBackgroundColors.push(this._computeCheckedHoverBackgroundColor(o,c,i)),l.legendColors.push(this._computeLegendColor(o,c)),l.pointHoverColors.push(this._computePointHoverColor(o,c))}),l}_computeBackgroundColor(t,e,a){return n.styles.get([this.colorSchemeCssClass,t+"-chart"+(a?" checkable":""),"elements","color"+e%this.numSupportedColors],"fill").fill}_computeBorderColor(t,e){let a;return n.scout.isOneOf(t,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)&&(a={stroke:this.firstOpaqueBackgroundColor}),n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","stroke-color"+e%this.numSupportedColors],"stroke",a).stroke}_computeHoverBackgroundColor(t,e,a){return n.styles.get([this.colorSchemeCssClass,t+"-chart"+(a?" checkable":""),"elements","color"+e%this.numSupportedColors+" hover"],"fill").fill}_computeHoverBorderColor(t,e){let a;return n.scout.isOneOf(t,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)&&(a={stroke:this.firstOpaqueBackgroundColor}),n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","stroke-color"+e%this.numSupportedColors+" hover"],"stroke",a).stroke}_computeCheckedBackgroundColor(t,e,a){return n.styles.get([this.colorSchemeCssClass,t+"-chart"+(a?" checkable":""),"elements","color"+e%this.numSupportedColors+" checked"],"fill").fill}_computeCheckedHoverBackgroundColor(t,e,a){return n.styles.get([this.colorSchemeCssClass,t+"-chart"+(a?" checkable":""),"elements","color"+e%this.numSupportedColors+" hover checked"],"fill").fill}_computeLegendColor(t,e){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","color"+e%this.numSupportedColors+" legend"],"fill").fill}_computePointHoverColor(t,e){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","color"+e%this.numSupportedColors+" point hover"],"fill").fill}_computeDatasetColorsChartValueGroups(t,e){if(!t||!t.type||!this.chart.data)return{};let a=t.type,r=t.options&&t.options.checkable,i=t.options&&t.options.transparent,s={backgroundColors:[],borderColors:[],hoverBackgroundColors:[],hoverBorderColors:[],checkedBackgroundColors:[],checkedHoverBackgroundColors:[],legendColors:[],pointHoverColors:[]};return this.chart.data.chartValueGroups.forEach(l=>{let d=1,o=1,c=.1,u=.1,p=.2,f=.35,g=1,y=0,C=1,m=.1;n.scout.isOneOf(a,h.Type.PIE,h.Type.DOUGHNUT)?(p=.7,f=.85,y=.1,m=0):a===h.Type.POLAR_AREA?(d=.7,o=.85,p=.7,f=.85,y=.1,m=0):n.scout.isOneOf(l.type||a,h.Type.LINE,h.Type.RADAR)?(d=.2,o=.35,c=0,u=0,g=.2,C=.35,m=0):n.scout.isOneOf(a,h.Type.BUBBLE,h.Type.SCATTER)&&(d=.2,o=.35,c=0);const x=[],A=[],T=[],R=[],P=[],H=[],E=[],v=[];let O=n.arrays.ensure(l.colorHexValue);const X=n.arrays.length(l.values);O.length&&O.length<X&&(O=n.arrays.init(X,null).map((D,Z)=>O[Z%O.length])),O.forEach(D=>{const Z=n.styles.hexToRgb(D),I=(et,at)=>this._adjustColorOpacity(n.styles.darkerColor(Z,at),et);x.push(I(r||i?p:d,0)),A.push(I(1,0)),T.push(I(r||i?f:o,r||i?0:c)),R.push(I(1,u)),P.push(I(g,y)),H.push(I(C,m)),E.push(I(1,0)),v.push(I(1,0))}),s.backgroundColors.push(x),s.borderColors.push(A),s.hoverBackgroundColors.push(T),s.hoverBorderColors.push(R),s.checkedBackgroundColors.push(P),s.checkedHoverBackgroundColors.push(H),s.legendColors.push(E),s.pointHoverColors.push(v)}),s.datalabelColor=this._computeDatalabelColor(a),s}_adjustColorOpacity(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return!t||typeof t=="function"?t:t.indexOf("rgb")===0?this._adjustRgbColorOpacity(t,e):t.indexOf("#")===0?this._adjustHexColorOpacity(t,e):t}_adjustRgbColorOpacity(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(!t||t.indexOf("rgb")!==0)return t;let a=n.styles.rgb(t);return a.alpha=e,"rgba("+a.red+", "+a.green+", "+a.blue+", "+a.alpha+")"}_adjustHexColorOpacity(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return!t||t.indexOf("#")!==0||!(t.length===4||t.length===5||t.length===7||t.length===9)?t:this._adjustRgbColorOpacity(n.styles.hexToRgb(t),e)}_adjustLegendColors(t){!t||!t.type||!t.options||(t.options=b().extend(!0,{},t.options,{plugins:{legend:{labels:{color:this._computeLabelColor(t.type)}}}}))}_computeLabelColor(t){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","label"],"fill").fill}_generateLegendLabels(t){let e=t.config,a;B.Chart.overrides[e.type]&&B.Chart.overrides[e.type].plugins&&B.Chart.overrides[e.type].plugins.legend&&B.Chart.overrides[e.type].plugins.legend.labels&&(a=B.Chart.overrides[e.type].plugins.legend.labels.generateLabels);let i=(a||B.Chart.defaults.plugins.legend.labels.generateLabels).call(t,t);if(this.removing)return i;let s=e.data,l=t.ctx.measureText.bind(t.ctx),d=t.legend,o=d.getProps(["width","maxWidth"]),c=((d||{}).options||{}).labels||{},u=c.boxWidth||0,p=c.padding||0,f;return n.scout.isOneOf(e.options.plugins.legend.position,h.Position.LEFT,h.Position.RIGHT)?((o.maxWidth||d.width)&&(f=Math.max((o.maxWidth||d.width)-u-2*p,0)),f=Math.min(250,f||0,this.$canvas.cssWidth()/3)):f=Math.min(250,this.$canvas.cssWidth()*2/3),i.forEach((g,y)=>{g.text=n.strings.truncateText(g.text,f,l);let C=s.datasets[y],m,x,A;C&&n.scout.isOneOf(C.type||e.type,h.Type.LINE,h.Type.BAR,h.Type.RADAR,h.Type.BUBBLE,h.Type.SCATTER)?(m=n.arrays.ensure(C.legendColor)[0],x=this._adjustColorOpacity(n.arrays.ensure(C.borderColor)[0],1)):s.datasets.length&&n.scout.isOneOf(e.type,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)&&(C=s.datasets[0],m=Array.isArray(C.legendColor)?C.legendColor[y]:C.legendColor,A=Array.isArray(C.backgroundColor)?C.backgroundColor[y]:C.backgroundColor,A=this._adjustColorOpacity(A,1)),n.objects.isFunction(m)&&(m=m.call(t,y));let T=m||A||x;n.objects.isFunction(T)||(g.fillStyle=T,g.strokeStyle=T)}),i}_adjustScalesRColors(t){if(!t||!t.type||!t.options||!t.options.scales||!t.options.scales.r)return;let e=this._computeLabelColor(t.type),a=this._computeLabelBackdropColor(t.type),r=this._computeGridColor(t.type),i=this._computeScaleTicksColor(t.type);t.options.scales.r.ticks=b().extend(!0,{},t.options.scales.r.ticks,{color:i,backdropColor:a}),t.options.scales.r.pointLabels=b().extend(!0,{},t.options.scales.r.pointLabels,{color:e}),t.options.scales.r.grid=b().extend(!0,{},t.options.scales.r.grid,{color:r})}_computeLabelBackdropColor(t){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","label-backdrop"],"fill",{fill:this.firstOpaqueBackgroundColor}).fill}_computeGridColor(t){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","grid"],"fill").fill}_computeScaleTicksColor(t){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","scale-ticks"],"fill").fill}_adjustScalesXYColors(t){if(!t||!t.type||!t.options||!t.options.scales)return;let e=[];if(t.options.scales.x&&e.push(t.options.scales.x),t.options.scales.y&&e.push(t.options.scales.y),!e.length)return;let a=this._computeLabelColor(t.type),r=this._computeGridColor(t.type),i=this._computeAxisLabelColor(t.type);e.forEach(s=>{s.grid=b().extend(!0,{},s.grid,{color:r}),s.ticks=b().extend(!0,{},s.ticks,{color:a}),s.title=b().extend(!0,{},s.title,{color:i})})}_computeAxisLabelColor(t){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","axis-label"],"fill").fill}_adjustPluginColors(t){!t||!t.type||!t.options||!t.options.plugins||this._adjustPluginsDatalabelColors(t)}_adjustPluginsDatalabelColors(t){!t||!t.type||!t.options||!t.options.plugins||!t.options.plugins.datalabels||(t.options.plugins.datalabels=b().extend(!0,{},t.options.plugins.datalabels,{color:this._computeDatalabelColor(t.type)}))}_computeDatalabelColor(t){return n.styles.get([this.colorSchemeCssClass,t+"-chart","elements","datalabel"],"fill").fill}_adjustClickHandler(t){if(!t||!t.options||(t.options.clickable?(t.options.onClick=this._clickHandler,t.options.onHover=this._pointerHoverHandler):t.options.onHover=this._hoverHandler,!t.options.plugins||!t.options.plugins.legend))return;let e=t.options.plugins.legend;e.clickable?(e.onClick=this._legendClickHandler,e.onHover=this._legendPointerHoverHandler,e.onLeave=this._legendPointerLeaveHandler):(e.onClick=a=>a.native.stopPropagation(),e.onHover=this._legendHoverHandler,e.onLeave=this._legendLeaveHandler)}_onCanvasClick(t){this._hoveringClickableElement||this.chart.handleNonValueClick(t.originalEvent),t.originalEvent.stopPropagation()}_onClick(t,e){if(!e.length)return;let a=this._selectRelevantItem(e);if(this._isMaxSegmentsExceeded(this.chartJs.config,a.index)){this.chart.handleNonValueClick(t.native);return}let r=a.index,i=a.datasetIndex,s={datasetIndex:i,dataIndex:r};if(n.scout.isOneOf(this.chartJs.config.type,h.Type.BUBBLE,h.Type.SCATTER)){let l=this.chartJs.config.data.datasets[i].data[r];s.xIndex=l.x,s.yIndex=l.y}else s.xIndex=r;this.chart.handleValueClick(s,t.native)}_selectRelevantItem(t){let e=this.chartJs.config.data.datasets,a=t[0];return this.chartJs.config.type===h.Type.BUBBLE&&t.forEach(r=>{e[r.datasetIndex].data[r.index].z<=e[a.datasetIndex].data[a.index].z&&(a=r)}),a}_onHover(t,e){if(!this.chartJs.config||!this.chartJs.config.type)return;let a=this.chartJs.config,r=a.type;if(!n.scout.isOneOf(r,h.Type.LINE,h.Type.BAR,h.Type.RADAR))return;let i=!1;this.resetDatasetAfterHover&&(this._restoreBackgroundColor(),this.resetDatasetAfterHover=!1,i=!0),e.forEach(s=>{let l=a.data.datasets[s.datasetIndex];n.scout.isOneOf(l.type||r,h.Type.LINE,h.Type.RADAR)&&(this._setHoverBackgroundColor(l),this.resetDatasetAfterHover=!0,i=!0)}),i&&this.refresh()}_onHoverPointer(t,e){this._onHover(t,e),!(!this.rendered||this.removing)&&(e.length&&!this._isMaxSegmentsExceeded(this.chartJs.config,e[0].index)?(this._hoveringClickableElement=!0,this.$canvas.css("cursor","pointer")):(this._hoveringClickableElement=!1,this.$canvas.css("cursor","default")))}_onLegendClick(t,e,a){if(!this.chartJs.config||!this.chartJs.config.type){this.chart.handleNonValueClick(t.native);return}let r=this.chartJs.config.type,i;B.Chart.overrides[r]&&B.Chart.overrides[r].plugins&&B.Chart.overrides[r].plugins.legend&&(i=B.Chart.overrides[r].plugins.legend.onClick),(i||B.Chart.defaults.plugins.legend.onClick).call(this.chartJs,t,e,a),this._onLegendLeave(t,e,a),this._onLegendHoverPointer(t,e,a),this._adjustSize(this.chartJs.config,this.chartJs.chartArea,{isDatasetVisible:l=>this.chartJs.getDatasetMeta(l).visible}),this.refresh(),this.chart.handleLegendClick(e.datasetIndex,t.native)}_onLegendHover(t,e,a){let r=e.datasetIndex,i=this.chartJs.config,s=i.type;if(n.scout.isOneOf(s,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)&&(r=e.index),this.legendHoverDatasets.indexOf(r)>-1)return;let l=i.data.datasets[r];((l?l.type:null)||s)===h.Type.LINE&&(this._setHoverBackgroundColor(l),this.refresh()),this._updateHoverStyle(r,!0),this.chartJs.render(),this.legendHoverDatasets.push(r)}_onLegendHoverPointer(t,e,a){this._onLegendHover(t,e,a),!(!this.rendered||this.removing)&&(this._hoveringClickableElement=!0,this.$canvas.css("cursor","pointer"))}_onLegendLeave(t,e,a){let r=e.datasetIndex,i=this.chartJs.config,s=i.type;if(n.scout.isOneOf(s,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)&&(r=e.index),this.legendHoverDatasets.indexOf(r)<0)return;let l=i.data.datasets[r];((l?l.type:null)||s)===h.Type.LINE&&(this._restoreBackgroundColor(l),this.refresh()),this._updateHoverStyle(r,!1),this.chartJs.render(),this.legendHoverDatasets.splice(this.legendHoverDatasets.indexOf(r),1)}_setHoverBackgroundColor(t){t&&(t.backgroundColorBackup=t.backgroundColor,t.backgroundColor=t.hoverBackgroundColor,this._adjustDatasetBorderWidths(t))}_restoreBackgroundColor(t){t?(t.backgroundColor=t.backgroundColorBackup||t.backgroundColor,delete t.backgroundColorBackup,this._adjustDatasetBorderWidths(t)):this.chartJs.config.data.datasets.forEach(e=>this._restoreBackgroundColor(e))}_onLegendLeavePointer(t,e,a){this._onLegendLeave(t,e,a),!(!this.rendered||this.removing)&&(this._hoveringClickableElement=!1,this.$canvas.css("cursor","default"))}_updateHoverStyle(t,e){let a=this.chartJs.config,r=a.type,i,s=[],l=a.data.datasets,d=l?l[t]:null,o=d?d.type:null;n.scout.isOneOf(r,h.Type.LINE,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA,h.Type.SCATTER)||o===h.Type.LINE?i="point":i="dataset",n.scout.isOneOf(r,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)?this.chartJs.getSortedVisibleDatasetMetas().forEach((c,u)=>s.push({element:c.data[t],datasetIndex:u,index:t})):this.chartJs.getDatasetMeta(t).data.forEach((c,u)=>s.push({element:c,datasetIndex:t,index:u})),s&&s.length&&this.chartJs.updateHoverStyle(s,i,e)}_adjustResizeHandler(t){!t||!t.options||t.options.handleResize&&(t.options.onResize=this._resizeHandler)}_onResize(t,e){t.update(),this._adjustSize(t.config,t.chartArea,{isDatasetVisible:a=>t.getDatasetMeta(a).visible})}_adjustSize(t,e,a){e=this._adjustBubbleSizes(t,e,a),this._adjustGridMaxMin(t,e,a)}_adjustBubbleSizes(t,e,a){if(t.type!==h.Type.BUBBLE)return e;let r=t.data.datasets;r.forEach(p=>p.data.forEach(f=>{isNaN(f.z)||(f.r=Math.sqrt(f.z))}));let i=this._computeMaxMinValue(t,r,{...a,identifier:"r",exact:!0}),s=i.maxValue,l=i.minValue,d=1,o=0,c=(t.options||{}).bubble?t.options.bubble.sizeOfLargestBubble:0,u=(t.options||{}).bubble?t.options.bubble.minBubbleSize:0;if(c){let p=Math.abs(e.right-e.left),f=Math.abs(e.top-e.bottom);c=Math.min(c,Math.floor(Math.min(p,f)/6)),s===0?o=c:u&&c>u&&l/s<u/c?(d=(c-u)/(s-l),o=u-d*l):d=c/s}else u&&u>l&&(l===0?o=u:d=u/l);return r.forEach(p=>p.data.forEach(f=>{n.objects.isNullOrUndefined(f.r)||(f.r=f.r*d+o)})),this.chartJs?(this.refresh(),this.chartJs.chartArea):e}_computeMaxMinValue(t,e,a){if(!e)return;const{identifier:r,exact:i,boundRange:s,padding:l,space:d,offset:o}=a||{},c=a?.isDatasetVisible||(C=>!0);let u,p;if(t.type===h.Type.SCATTER&&r==="r")u=0,p=0;else{const C=[];let m=!1;n.scout.isOneOf(t.type,h.Type.LINE,h.Type.BAR)?m=!!t.options.scales.y.stacked:t.type===h.Type.BAR_HORIZONTAL&&(m=!!t.options.scales.x.stacked);const x=A=>r?A[r]:A;for(let A=0;A<e.length;A++)if(!(!n.scout.isOneOf(t.type,h.Type.PIE,h.Type.DOUGHNUT,h.Type.POLAR_AREA)&&!c(A)))for(let T=0;T<e[A].data.length;T++){const R=x(e[A].data[T]);if(m){C[T]||(C[T]=0),C[T]+=R;continue}isNaN(u)?u=R:u=Math.max(R,u),isNaN(p)?p=R:p=Math.min(R,p)}m&&(u=Math.max(n.arrays.max(C),0),p=Math.min(n.arrays.min(C),0))}isNaN(u)&&(u=0),isNaN(p)&&(p=0);let f=0,g=u,y=p;if(i||(s&&Math.sign(p)===Math.sign(u)&&(f=Math.floor(p)),g=this._calculateBoundary(u-f,Math.ceil,Math.floor),y=this._calculateBoundary(p-f,Math.floor,Math.ceil)),l&&d&&d>2*l){let C=(u-p)/(d-2*l),m=C*l;o&&this.onlyIntegers&&0<m&&m<=.5&&(m=0),g=Math.max(g,u-f+m),y=Math.min(y,p-f-m)}return i?{maxValue:g,minValue:y}:{maxValue:g+f,minValue:y+f}}_calculateBoundary(t,e,a){let r=e,i=!1;return t<0&&(i=!0,t=t*-1,r=a),t=this._calculateBoundaryPositive(t,r),i&&(t=t*-1),t}_calculateBoundaryPositive(t,e){if(!(t>0)||!e)return t;let a=Math.floor(Math.log(t)/Math.LN10);return a<0?t=e(t*Math.pow(10,Math.abs(a))/5)*5/Math.pow(10,Math.abs(a)):t=e(t/(5*Math.pow(10,a-1)))*5*Math.pow(10,a-1),t}_adjustGridMaxMin(t,e,a){if(!t||!t.type||!t.options||!t.options.adjustGridMaxMin||!t.options.scales||!e)return;let r=t.type;if(!n.scout.isOneOf(r,h.Type.BAR,h.Type.LINE,h.Type.POLAR_AREA,h.Type.RADAR,h.Type.BUBBLE,h.Type.SCATTER))return;let i=t.options.scales,s=i.x,l=i.y,d=i.r,o=s?s.minSpaceBetweenTicks:1,c=l?l.minSpaceBetweenTicks:1;d&&(o=d.minSpaceBetweenTicks,c=d.minSpaceBetweenTicks);let u=Math.abs(e.right-e.left),p=Math.abs(e.top-e.bottom),f=Math.max(Math.floor(u/o)+1,3),g=Math.max(Math.floor(p/c)+1,3),y=this._computeYBoundaries(t,{...a,space:p}),C=y.yBoundary,m=y.yBoundaryDiffType;if(d){this._adjustAxisMaxMin(d,Math.ceil(Math.min(f,g)/2),C);return}if(m?(this._adjustAxisMaxMin(l,g,C),this._adjustAxisMaxMin(i.yDiffType,g,m)):this._isHorizontalBar(t)?this._adjustAxisMaxMin(s,f,C):this._adjustAxisMaxMin(l,g,C),!n.scout.isOneOf(r,h.Type.BUBBLE,h.Type.SCATTER))return;let x=this._computeXBoundaryPointElement(t,{...a,space:u});this._adjustAxisMaxMin(s,f,x)}_computeBoundaryPointElement(t,e){const{identifier:a,space:r}=e;if(!t||!t.type||!n.scout.isOneOf(t.type,h.Type.BUBBLE,h.Type.SCATTER)||!t.data||!t.options||!t.options.scales||!(a==="x"||a==="y")||!r)return;let i=t.data.datasets,s=t.options.scales[a],l=s&&s.offset,d=t.options[a+"LabelMap"],o,c=this._computeMaxMinValue(t,i,{...e,identifier:"r",exact:!0,space:null}).maxValue,u=c;if(t.options.elements&&t.options.elements.point&&t.options.elements.point.hoverRadius&&(u=u+t.options.elements.point.hoverRadius),o=this._computeMaxMinValue(t,i,{...e,exact:!!d,boundRange:!0,padding:u,offset:l}),d){const p=Object.keys(d).map(Number).filter(isFinite);p.length&&(o.minValue=Math.min(o.minValue,Math.min(...p)),o.maxValue=Math.max(o.maxValue,Math.max(...p))),o.maxValue=Math.ceil(o.maxValue),o.minValue=Math.floor(o.minValue)}return o}_computeXBoundaryPointElement(t,e){return this._computeBoundaryPointElement(t,{...e,identifier:"x"})}_computeYBoundaryPointElement(t,e){return this._computeBoundaryPointElement(t,{...e,identifier:"y"})}_computeYBoundaries(t,e){if(!t||!t.type)return{};let a=t.type,r,i;if(n.scout.isOneOf(a,h.Type.BUBBLE,h.Type.SCATTER))r=this._computeYBoundaryPointElement(t,e);else{let s=[],l=[];if(t.data&&t.data.datasets&&t.data.datasets.forEach(d=>{d.type&&d.type!==a?l.push(d):s.push(d)}),r=this._computeMaxMinValue(t,s,{...e,space:null}),r.maxValue===0&&r.minValue===0&&(r.maxValue=5),s.length&&l.length){i=this._computeMaxMinValue(t,l,{...e,space:null});let d=r.maxValue-r.minValue,o=i.maxValue-i.minValue;d&&o&&(d/o>10||o/d>10)&&this._adjustYAxisDiffType(t,s,l)}}return{yBoundary:r,yBoundaryDiffType:i}}_adjustYAxisDiffType(t,e,a){if(!t||!t.type||!e||!e.length||!a||!a.length||!t.options||!t.options.scales||!t.options.scales.y||t.options.scales.yDiffType)return;let r=t.type,i=t.options,s=i.scales,l=s.y,d=b().extend(!0,{},l);s.yDiffType=d,t.data&&t.data.datasets&&t.data.datasets.length&&t.data.datasets[0].type&&t.data.datasets[0].type!==r?(d.position=h.Position.LEFT,l.position=h.Position.RIGHT,l.grid.drawOnChartArea=!1):(l.position=h.Position.LEFT,d.position=h.Position.RIGHT,d.grid.drawOnChartArea=!1),l.border.display=!0,l.grid.drawTicks=!0,d.border.display=!0,d.grid.drawTicks=!0;let o=e[0].type||r,c=a[0].type||r,u=this.chart.session.text("ui."+o),p=this.chart.session.text("ui."+c),f=i.scaleLabelByTypeMap?i.scaleLabelByTypeMap[o]:null,g=i.scaleLabelByTypeMap?i.scaleLabelByTypeMap[c]:null;l.title.display=!0,l.title.text=f?f+" ("+u+")":u,d.title.display=!0,d.title.text=g?g+" ("+p+")":p,e.forEach(y=>{y.yAxisID="y"}),a.forEach(y=>{y.yAxisID="yDiffType"})}_adjustAxisMaxMin(t,e,a){if(!t)return;let r=1;t.ticks=b().extend(!0,{},t.ticks,{maxTicksLimit:e}),a&&(t.suggestedMax=a.maxValue,t.suggestedMin=a.minValue,r=(a.maxValue-a.minValue)/(e-1)),t.ticks.stepSize=this.onlyIntegers&&r<1?1:void 0}_remove(t){this.rendered&&!this.removing&&(this.removing=!0,this.chartJs.destroy(),this.chartJs=null,this.$canvas.remove(),this.$canvas=null),super._remove(t),this.removing=!1}}class nt extends M{animationTriggered;segmentSelectorForAnimation;r;fullR;constructor(t){super(t),this.animationTriggered=!1,this.segmentSelectorForAnimation=".fulfillment-chart",this.suppressLegendBox=!0;let e={options:{fulfillment:{startValue:void 0}}};t.config=b().extend(!0,{},e,t.config)}_validate(){let t=this.chart.data.chartValueGroups;return!(t.length!==2||t[0].values.length!==1||t[1].values.length!==1)}_renderInternal(){let t=this.chart.data,e=t.chartValueGroups[0].values[0],a=t.chartValueGroups[1].values[0];this.fullR=Math.min(this.chartBox.height,this.chartBox.width)/2-2,this._renderInnerCircle(),this._renderPercentage(e,a)}_renderPercentage(t,e){let a="fulfillment-chart",r=n.arrays.ensure(this.chart.data.chartValueGroups[0].colorHexValue)[0],i=this.chart.data.chartValueGroups[0].cssClass;this.chart.config.options.autoColor?a+=" auto-color":i&&(a+=" "+i);let s=n.scout.nvl(this.chart.config.options.fulfillment.startValue,0),l=0,d=0;e&&(l=Math.min(t/e,.999999),d=Math.min(s/e,.999999)),this.r=this.fullR;let o=this,c=function(C,m){let x=b()(this),A=x.data("animation-start"),T=x.data("animation-end");x.attr("d",o.pathSegment(A*m.pos,d+(T-d)*m.pos))},u=this.$svg.appendSVG("path",a).data("animation-start",0).data("animation-end",l),p=this.fullR/8*6.7;this._renderCirclePath("fulfillment-chart-inner-circle-transparent","InnerCircle3",p).css("fill",this.firstOpaqueBackgroundColor);let g=e?Math.round(t/e*100):0,y=this.$svg.appendSVG("text","fulfillment-chart-label ").attr("x",this.chartBox.mX()).attr("y",this.chartBox.mY()).css("font-size",this.fullR/2+"px").attr("dy","0.3em").attrXLINK("href","#InnerCircle").text(g+"%");this.chart.config.options.clickable&&u.on("click",this._createClickObject(null,null),this._onChartValueClick.bind(this)),!this.chart.config.options.autoColor&&!i&&u.attr("fill",r),this.animationDuration?(u.attr("d",this.pathSegment(0,d)).animate({tabIndex:0},this._createAnimationObjectWithTabIndexRemoval(c,this.animationDuration)),y.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0)):u.attr("d",this.pathSegment(0,l)),n.aria.description(this.$svg,this.session.text("ui.FulfillmentChartAriaDescription",g))}pathSegment(t,e){let a=t*2*Math.PI,r=e*2*Math.PI,i="";return i+="M"+(this.chartBox.mX()+this.r*Math.sin(a))+","+(this.chartBox.mY()-this.r*Math.cos(a)),i+="A"+this.r+", "+this.r,i+=e-t<.5?" 0 0,1 ":" 0 1,1 ",i+=this.chartBox.mX()+this.r*Math.sin(r)+","+(this.chartBox.mY()-this.r*Math.cos(r)),i+="L"+this.chartBox.mX()+","+this.chartBox.mY()+"Z",i}_renderCirclePath(t,e,a){let r=this.chart.data.chartValueGroups[0].cssClass,i=n.arrays.ensure(this.chart.data.chartValueGroups[1].colorHexValue)[0];this.chart.config.options.autoColor?t+=" auto-color":r&&(t+=" "+r);let s=a*2,l=this.$svg.appendSVG("path",t).attr("id",e).attr("d","M "+this.chartBox.mX()+" "+this.chartBox.mY()+" m 0, "+-a+" a "+a+","+a+" 0 1, 1 0,"+s+" a "+a+","+a+" 0 1, 1 0,"+-s);return!this.chart.config.options.autoColor&&!r&&l.attr("fill",i).attr("stroke",i),l}_renderInnerCircle(){let t=this.fullR/8*7.5,e=this.fullR/8*7.2;this._renderCirclePath("fulfillment-chart-inner-circle","InnerCircle",t),this._renderCirclePath("fulfillment-chart-inner-circle-transparent","InnerCircle2",e).css("fill",this.firstOpaqueBackgroundColor)}shouldAnimateRemoveOnUpdate(t){let e=n.objects.optProperty(this.chart,"config","options","fulfillment","startValue");return n.objects.isNullOrUndefined(e)?super.shouldAnimateRemoveOnUpdate(t):!1}_removeAnimated(t){if(this.animationTriggered)return;let e=this,a=function(r,i){let s=b()(this),l=s.data("animation-start"),d=s.data("animation-end");s.attr("d",e.pathSegment(l*(1-i.pos),d*(1-i.pos)))};this.animationTriggered=!0,this.$svg.children(this.segmentSelectorForAnimation).animate({tabIndex:0},this._createAnimationObjectWithTabIndexRemoval(a)).promise().done(()=>{this._remove(t),this.animationTriggered=!1})}}var kt;function Bt(_,t,e){return(t=Ht(t))in _?Object.defineProperty(_,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):_[t]=e,_}function Ht(_){var t=Gt(_,"string");return typeof t=="symbol"?t:t+""}function Gt(_,t){if(typeof _!="object"||!_)return _;var e=_[Symbol.toPrimitive];if(e!==void 0){var a=e.call(_,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(_)}class k extends M{segmentSelectorForAnimation;r;scaleWeight;my;parts;numSegmentsPerPart;segmentWidth;widthOfSegmentWithGap;animationTriggered;$filledParts;$pointer;constructor(t){super(t),this.segmentSelectorForAnimation=".pointer",this.suppressLegendBox=!0;let e={options:{speedo:{greenAreaPosition:void 0}}};t.config=$.extend(!0,{},e,t.config)}static Position={LEFT:"left",CENTER:"center",RIGHT:"right"};static NUM_PARTS_GREEN_CENTER=7;static NUM_PARTS_GREEN_EDGE=4;static ONE_THOUSAND=1e3;static TEN_THOUSAND=1e4;static ONE_MILLION=1e6;static ARC_MIN=-.25;static ARC_MAX=(kt=()=>{Bt(this,"ARC_RANGE",k.ARC_MAX-k.ARC_MIN),Bt(this,"SEGMENT_GAP",.0103)},.25);_validate(){let t=this.chart.data,e=this.chart.config;return!(!t||!e||t.axes.length>0||t.chartValueGroups.length!==1||t.chartValueGroups[0].values.length!==3||e.options.speedo.greenAreaPosition===void 0)}_renderInternal(){let t=this.chart.data,e=t.chartValueGroups[0].values[0],a=t.chartValueGroups[0].values[2],r=t.chartValueGroups[0].values[1];this.r=Math.min(this.chartBox.height,this.chartBox.width/2)*.7,this.scaleWeight=this.r*.27,this.my=this.chartBox.yOffset+this.chartBox.height-(this.chartBox.height-this.r*1.12)/2,this.parts=this.chart.config.options.speedo.greenAreaPosition===k.Position.CENTER?k.NUM_PARTS_GREEN_CENTER:k.NUM_PARTS_GREEN_EDGE,this.numSegmentsPerPart=this.parts===k.NUM_PARTS_GREEN_CENTER?5:8,this.$filledParts=[];let i=this.parts*this.numSegmentsPerPart,s=i-1;this.segmentWidth=(k.ARC_RANGE-s*k.SEGMENT_GAP)/i,this.widthOfSegmentWithGap=this.segmentWidth+k.SEGMENT_GAP;let l=this._getValuePercentage(r,e,a),d=this._getSegmentToPointAt(l,i),o=this._getPercentageValueOfSegment(d%this.numSegmentsPerPart,this._getPartForValue(l));for(let c=0;c<this.parts;c++)this._renderCirclePart(c);this._renderPointer(o),this._renderLegend(e,r,a,t.chartValueGroups[0].groupName),this.$svg.addClass("speedo-chart-svg"),this.chart.config.options.clickable&&(this.$svg.off("click",this._nonValueClickHandler),this.$svg.on("click",this._createClickObject(null,null),this._onChartValueClick.bind(this)))}_getValuePercentage(t,e,a){return this._limitValue((t-e)/(a-e),1)}_getSegmentToPointAt(t,e){return this._limitValue(Math.floor(t*e),e-1)}_limitValue(t,e){return t=Math.max(t,0),t=Math.min(t,e),t}_getPercentageValueOfSegment(t,e){let a=this._calcSegmentPos(t,e),r=a.from-k.ARC_MIN+(a.to-a.from)/2;return this._limitValue(r/k.ARC_RANGE,1)}_renderPointer(t){if(this.$pointer=this.$svg.appendSVG("path","pointer").attr("d",this._pathPointer(0)).attr("data-end",t).attr("stroke-width",this.scaleWeight/6+"px").attr("fill","none"),this.animationDuration){let e=this,a=function(r,i){let s=this.getAttribute("data-end")*i.pos;e._updatePointer(s),e._updatePartsFill(s)};this.$pointer.animate({tabIndex:0},this._createAnimationObjectWithTabIndexRemoval(a,this.animationDuration))}else this._updatePointer(t),this._updatePartsFill(t)}_renderSegment(t,e,a){return this.$svg.appendSVG("path","speedo-chart-arc "+a).attr("id","ArcAxisWide"+this.chart.id).attr("fill","none").attr("stroke-width",this.scaleWeight+"px").attr("d",this._pathSegment(t,e))}_renderCirclePart(t){let e=this._getColorForPart(t);for(let a=0;a<this.numSegmentsPerPart;a++){let r=this._calcSegmentPos(a,t);this._renderSegment(r.from,r.to,e)}this.$filledParts.push(this._renderSegment(k.ARC_MIN,k.ARC_MIN,e))}_renderLegend(t,e,a,r){let i=this.scaleWeight*.8,s=5,l=this.my+s,d=l+i*.8,o={x1:null,x2:this.chartBox.mX()-s,y1:null,y2:l,v:-1,h:1},c=t?this._formatValue(t):0,u=e?this._formatValue(e):"0",p=a?this._formatValue(a):0;if(this.chart.config.options.plugins.tooltip.enabled){let f=this.$svg.appendSVG("text","line-label line-chart-wire-label").attr("x",this.chartBox.mX()-this.r).attr("y",d).text(c).attr("style","font-size: "+i+"px; text-anchor: middle"),g=this.$svg.appendSVG("text","line-label line-chart-wire-label").attr("x",this.chartBox.mX()+this.r).attr("y",d).text(p).attr("style","font-size: "+i+"px; text-anchor: middle"),y=(function(){this.$svg.append(f),this.$svg.append(g)}).bind(this),C=()=>{f.detach(),g.detach()};C(),this.$svg.on("mouseenter",y).on("mouseleave",C)}this.chart.config.options.plugins.legend.display&&this._renderLineLabel(o.x2+s,o.y2+o.v*s,u,"",!1).addClass("speedo-chart-label").attr("style","font-size: "+this.scaleWeight*1.55+"px;"),n.aria.description(this.$svg,this.session.text("ui.SpeedoChartAriaDescription",u,c,p))}_getPartForValue(t){let e=Math.floor(t*this.parts);return this._limitValue(e,this.parts-1)}_formatValue(t){if(t<k.TEN_THOUSAND)return this.session.locale.decimalFormat.format(t);if(t<k.ONE_MILLION)return Math.floor(t/k.ONE_THOUSAND)+"k";let e=t/k.ONE_MILLION;return e=n.numbers.round(e,n.RoundingMode.HALF_UP,2),this.session.locale.decimalFormat.format(e)+"M"}_updatePointer(t){this.$pointer.attr("d",this._pathPointer(t)).removeClass("red yellow light-green dark-green").addClass(this._getColorForPart(this._getPartForValue(t)))}_updatePartsFill(t){let e,a;for(let r=0;r<this.$filledParts.length;r++)e=this._calcSegmentPos(0,r).from,(r+1)/this.parts<t?a=this._calcSegmentPos(this.numSegmentsPerPart-1,r).to:r/this.parts>t?(e=k.ARC_MIN,a=k.ARC_MIN):a=k.ARC_RANGE*t-k.ARC_MAX,this.$filledParts[r].attr("d",this._pathSegment(e,a))}_calcSegmentPos(t,e){let a={from:0,to:0},r=t+e*this.numSegmentsPerPart;return a.from=r*this.widthOfSegmentWithGap-k.ARC_MAX,a.to=a.from+this.segmentWidth,a}_getColorForPart(t){switch(this.chart.config.options.speedo.greenAreaPosition){case k.Position.LEFT:if(t===0)return"dark-green";if(t===1)return"light-green";if(t===2)return"yellow";if(t===3)return"red";break;case k.Position.RIGHT:if(t===0)return"red";if(t===1)return"yellow";if(t===2)return"light-green";if(t===3)return"dark-green";break;case k.Position.CENTER:if(t===0)return"red";if(t===1)return"yellow";if(t===2)return"light-green";if(t===3)return"dark-green";if(t===4)return"light-green";if(t===5)return"yellow";if(t===6)return"red";break;default:break}}_pathSegment(t,e){let a=t*2*Math.PI,r=e*2*Math.PI,i="";return i+="M "+(this.chartBox.mX()+this.r*Math.sin(a))+" "+(this.my-this.r*Math.cos(a))+" ",i+="A "+this.r+" "+this.r+" ",i+="0 "+(e-t<.5?"0":"1")+" 1 ",i+=this.chartBox.mX()+this.r*Math.sin(r)+" "+(this.my-this.r*Math.cos(r)),i}_pathPointer(t){let a=(k.ARC_RANGE*t-k.ARC_MAX)*2*Math.PI,r=this.r-1.4*this.scaleWeight,i=this.r+1.37*this.scaleWeight,s="";return s+="M "+(this.chartBox.mX()+i*Math.sin(a))+" "+(this.my-i*Math.cos(a))+" ",s+="L "+(this.chartBox.mX()+r*Math.sin(a))+" "+(this.my-r*Math.cos(a))+" ",s+="Z",s}_removeAnimated(t){if(this.animationTriggered)return;let e=this,a=function(r,i){let s=this.getAttribute("data-end")*(1-i.pos);e._updatePointer(s),e._updatePartsFill(s)};this.animationTriggered=!0,this.$svg.children(this.segmentSelectorForAnimation).animate({tabIndex:0},this._createAnimationObjectWithTabIndexRemoval(a)).promise().done(()=>{this._remove(t),this.animationTriggered=!1})}}kt();class ot extends M{segmentSelectorForAnimation;widthThresholdMedium;widthThresholdSmall;barDeltaPercentage;lastBarAdditionalPercentage;lastBarMinWidthPercentage;paddingBetweenLabel;dataAnalyzeResult;barHeight;barAreaWidth;centerX;animationTriggered;constructor(t){super(t),this.segmentSelectorForAnimation=".salesfunnel-chart-bar",this.widthThresholdMedium=400,this.widthThresholdSmall=200,this.barDeltaPercentage=.95,this.lastBarAdditionalPercentage=.7,this.lastBarMinWidthPercentage=.4,this.suppressLegendBox=!0;let e={options:{salesfunnel:{normalized:void 0,calcConversionRate:void 0}}};t.config=b().extend(!0,{},e,t.config)}_validate(){let t=this.chart.data,e=this.chart.config;return!(!t||!e||t.axes.length!==t.chartValueGroups.length||t.chartValueGroups.length===0||t.chartValueGroups[0].values.length===0||e.options.salesfunnel.normalized===void 0||e.options.salesfunnel.calcConversionRate===void 0)}_renderInternal(){let t=this.chart.data,e=t.chartValueGroups.length,a=this._dynamicConversionRateWidth();this.paddingBetweenLabel=20,this.dataAnalyzeResult=this._analyzeData(t.chartValueGroups),this.barHeight=this.chartBox.height/e,this.barAreaWidth=this.chartBox.width-this.dataAnalyzeResult.maxLengthFirstValueRow-this.paddingBetweenLabel*this.dataAnalyzeResult.labelCount-this.dataAnalyzeResult.maxLengthSecondValueRow-a,this.centerX=this.barAreaWidth/2,this.chart.config.options.salesfunnel.normalized?this._renderBarsNormalized(t.chartValueGroups):this._renderBarsAccordingToValues(t.chartValueGroups),this._addClipping("salesfunnel-chart-bar")}_renderBarsNormalized(t){let e=t.length,a=this.barAreaWidth+this.dataAnalyzeResult.maxLengthFirstValueRow+this.dataAnalyzeResult.maxLengthSecondValueRow+this.paddingBetweenLabel*(this.dataAnalyzeResult.labelCount+1),r=this.barAreaWidth*(1-this.barDeltaPercentage),s=this.barAreaWidth*this.lastBarMinWidthPercentage/this.lastBarAdditionalPercentage;r=Math.min(r,(this.barAreaWidth-s)/(e-1));for(let l=0;l<e;l++){let d=this.barAreaWidth-l*r,o=t[l].groupName,c=this.barAreaWidth-(l+1)*r,u=l*this.barHeight,p={xStart:this.centerX,yStart:u,rect:!0,width:d,widthBottom:c,cssClass:"salesfunnel-chart-bar",fill:n.arrays.ensure(t[l].colorHexValue)[0],label:t[l].groupName,clickObject:this._createClickObject(null,l)};this.chart.config.options.autoColor?p.cssClass+=" auto-color color0":this.chart.data.chartValueGroups[l].cssClass&&(p.cssClass+=" "+this.chart.data.chartValueGroups[l].cssClass),l===e-1&&(p.width=p.width*this.lastBarAdditionalPercentage,p.widthBottom=p.widthBottom*this.lastBarAdditionalPercentage),this._renderPolygon(p),this._renderLabel(t[l].values[0],!1,l),this._renderBarLabel(o,l,p.widthBottom);let f=this.dataAnalyzeResult.maxLengthFirstValueRow+this.paddingBetweenLabel;t[l].values.length>1&&(this._renderLabel(t[l].values[1],!0,l),f+=this.dataAnalyzeResult.maxLengthSecondValueRow+this.paddingBetweenLabel),l>0&&(this._renderLabelSeparatorLine(u,f),this.chart.config.options.salesfunnel.calcConversionRate&&this._renderConversionRate(l,a,this._calcConversionRate(t[l-1].values[0],t[l].values[0])))}}_renderLabel(t,e,a){if(t===null)return;let r=a*this.barHeight+this.barHeight/2,i=this.dataAnalyzeResult.maxLengthFirstValueRow+(e?this.dataAnalyzeResult.maxLengthSecondValueRow:0),s=e?2:1,l=this.barAreaWidth+i+s*this.paddingBetweenLabel,d=this._dynamicCssClass("salesfunnel-label"),o=this.$svg.appendSVG("text",d).attr("x",l).attr("y",r).text(this.session.locale.decimalFormat.format(t));if(this.animationDuration&&o.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0),this.chart.config.options.plugins.tooltip.enabled&&this.chart.data.axes.length>0){let c=this.chart.data.axes[a][e?1:0].label,u=this._measureText(""+t,d);this._renderWireLabels(c,o,l-u.width/2,r-u.height)}}_renderWireLabels(t,e,a,r){let i={x1:a,x2:a-10,y1:r,y2:r-10,v:-1,h:-1},s=(c,u)=>(i.y2-u<0&&(i.v=1,i.y1=i.y1+u*1.5,i.y2=i.y1+10),i);i.autoPosition=!0,i.posFunc=s;let l=this._renderWireLegend(t,i,"line-chart-wire-label",!0),d=l.attachFunc.bind(l),o=l.detachFunc.bind(l);l.detachFunc(),e.on("mouseenter",d).on("mouseleave",o)}_renderBarLabel(t,e,a){let r=e*this.barHeight+this.barHeight/2,i=this.centerX,s=this._dynamicCssClass("salesfunnel-bar-label");this._renderLineLabel(i,r,t,s,!0)}_renderConversionRate(t,e,a){if(a===void 0)return;let r=t*this.barHeight,i=this._dynamicCssClass("salesfunnel-conversionrate-label"),s=this.$svg.appendSVG("text",i).attr("x",e).attr("y",r).text("↓ "+a+"%");this.animationDuration&&s.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0)}_renderPolygon(t){let e=this,a=this._calcPolygonPoints(!0,this.animationDuration?0:1,t.xStart,t.yStart,t.width,t.widthBottom,this.barHeight-1),r=this.$svg.appendSVG("polygon",t.cssClass,"",t.id).attr("points",a).data("xStart",t.xStart).data("yStart",t.yStart).data("widthBar",t.width).data("widthBottom",t.widthBottom).data("heightBar",this.barHeight);!this.chart.config.options.autoColor&&t.fill&&r.attr("fill",t.fill),r.css("stroke",this.firstOpaqueBackgroundColor);let i=function(s,l){let d=b()(this),o=d.data("xStart"),c=d.data("yStart"),u=d.data("widthBar"),p=d.data("heightBar"),f=d.data("widthBottom");d.attr("points",e._calcPolygonPoints(!0,l.pos,o,c,u,f,p))};return this.animationDuration&&r.animate({tabIndex:0},this._createAnimationObjectWithTabIndexRemoval(i,this.animationDuration)),this.chart.config.options.clickable&&r.on("click",t.clickObject,this._onChartValueClick.bind(this)),t.fill&&r.attr("fill",t.fill),r}_calcPolygonPoints(t,e,a,r,i,s,l){let d=0,o=0;return t?(d=i/2*e,o=s/2*e):(d=i/2-i/2*e,o=s/2-s/2*e),n.strings.join(" ",a-d+","+r,a+d+","+r,a+o+","+(r+l),a-o+","+(r+l))}_renderBarsAccordingToValues(t){let e=this.dataAnalyzeResult.maxValue?this.barAreaWidth*.8/this.dataAnalyzeResult.maxValue:0,a=this.barAreaWidth+this.dataAnalyzeResult.maxLengthFirstValueRow+this.dataAnalyzeResult.maxLengthSecondValueRow+this.paddingBetweenLabel*this.dataAnalyzeResult.labelCount+2*this.paddingBetweenLabel,r=t.length;for(let i=0;i<r;i++){let s=t[i].values[0]*e+this.barAreaWidth*.2,l=t[i].groupName,d=i*this.barHeight,o={xStart:this.centerX,yStart:d,rect:!0,width:s,widthBottom:s,cssClass:"salesfunnel-chart-bar",fill:n.arrays.ensure(t[i].colorHexValue)[0],label:t[i].groupName,clickObject:this._createClickObject(null,i)};this.chart.config.options.autoColor?o.cssClass+=" auto-color color0":this.chart.data.chartValueGroups[i].cssClass&&(o.cssClass+=" "+this.chart.data.chartValueGroups[i].cssClass),this._renderPolygon(o),this._renderLabel(t[i].values[0],!1,i),this._renderBarLabel(l,i,o.widthBottom);let c=this.dataAnalyzeResult.maxLengthFirstValueRow+this.paddingBetweenLabel;t[i].values.length>1&&(this._renderLabel(t[i].values[1],!0,i),c+=this.dataAnalyzeResult.maxLengthSecondValueRow+this.paddingBetweenLabel),i>0&&(this._renderLabelSeparatorLine(d,c),this.chart.config.options.salesfunnel.calcConversionRate&&this._renderConversionRate(i,a,this._calcConversionRate(t[i-1].values[0],t[i].values[0])))}}_renderLabelSeparatorLine(t,e){let a=this.$svg.appendSVG("line","label-separator").attr("x1",this.barAreaWidth+this.paddingBetweenLabel).attr("y1",t).attr("x2",this.barAreaWidth+e).attr("y2",t);this.animationDuration&&a.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0)}_calcConversionRate(t,e){if(!(n.objects.isNullOrUndefined(t)||n.objects.isNullOrUndefined(e)||t===0))return Math.round(e/t*100)}_analyzeData(t){let e={labelCount:0,maxValue:null,maxLengthFirstValueRow:0,maxLengthSecondValueRow:0},a=this._dynamicCssClass("salesfunnel-label");for(let r=0;r<t.length;r++){let i=t[r];e.labelCount=Math.max(e.labelCount,i.values.length),i.values.length>0&&i.values[0]&&(e.maxValue===null?e.maxValue=i.values[0]:e.maxValue=Math.max(e.maxValue,i.values[0]),e.maxLengthFirstValueRow=Math.max(e.maxLengthFirstValueRow,this._measureText(this.session.locale.decimalFormat.format(i.values[0]),a).width)),i.values.length>1&&i.values[1]&&(e.maxLengthSecondValueRow=Math.max(e.maxLengthSecondValueRow,this._measureText(this.session.locale.decimalFormat.format(i.values[1]),a).width))}return e}_removeAnimated(t){if(this.animationTriggered)return;this.animationTriggered=!0;let e=this,a=function(r,i){let s=b()(this),l=s.data("xStart"),d=s.data("yStart"),o=s.data("widthBar"),c=s.data("heightBar"),u=s.data("widthBottom");s.attr("points",e._calcPolygonPoints(!1,i.pos,l,d,o,u,c))};this.$svg.children(this.segmentSelectorForAnimation).animate({tabIndex:0},this._createAnimationObjectWithTabIndexRemoval(a)).promise().done(()=>{this._remove(t),this.animationTriggered=!1})}_dynamicCssClass(t){let e="";return this.chartBox.width<=this.widthThresholdSmall?e="small":this.chartBox.width<=this.widthThresholdMedium&&(e="medium"),n.strings.join(" ",t,e)}_dynamicConversionRateWidth(){return this.chart.config.options.salesfunnel.calcConversionRate?this.chartBox.width<=this.widthThresholdSmall?60:this.chartBox.width<=this.widthThresholdMedium?80:100:0}}class ht{helper;venn1;venn2;venn3;u;v;w;uv;uw;vw;uvw;maxD;dStep;rStep;alphaStep;alphaBest;dBest;rBest;errorBest;callback;cancelled;constructor(t,e,a,r,i,s,l,d,o,c,u,p,f,g){i===0&&d===0&&o===0&&u===0&&(i=1),s===0&&d===0&&c===0&&u===0&&(s=1),l===0&&o===0&&c===0&&u===0&&(l=1),this.helper=t,this.venn1=e,this.venn2=a,this.venn3=r,this.u=i,this.v=s,this.w=l,this.uv=d,this.uw=o,this.vw=c,this.uvw=u,this.maxD=this.venn1.r+2*this.venn2.r+2*this.venn1.r+this.helper.distR,this.dStep=this.maxD/30,this.rStep=r.r/4,this.alphaStep=Math.PI/30,this.alphaBest=0,this.dBest=0,this.rBest=0,this.errorBest=0,this.callback=null,this.cancelled=!1}start(t){this.callback=t,setTimeout(this._next.bind(this,0))}cancel(){this.cancelled=!0}_end(){this.venn3.x=this.venn1.x+this.dBest*Math.cos(this.alphaBest),this.venn3.y=this.venn1.y-this.dBest*Math.sin(this.alphaBest),this.venn3.r=this.rBest,this.callback()}_next(t){this.cancelled||this._iteration(t),!this.cancelled&&(t+=this.alphaStep,t<Math.PI?setTimeout(this._next.bind(this,t)):this._end())}_iteration(t){let e=this.maxD,a=this.dStep,r=this.helper.minR,i=this.rStep,s=this.helper.total,l=this.venn1.x,d=this.venn1.y,o=this.venn1.r,c=this.venn2.x,u=this.venn2.y,p=this.venn2.r,f=this.venn3.r,g=this.u,y=this.v,C=this.w,m=this.uv,x=this.uw,A=this.vw,T=this.uvw,R=this.alphaBest,P=this.dBest,H=this.rBest,E=this.errorBest;for(let v=0;v<e;v+=a){let O=l+v*Math.cos(t),X=d-v*Math.sin(t);for(let D=Math.max(r,f*.75);D<=f*1.25;D+=i){let Z=Math.min(l-o,c-p,O-D),I=Math.max(l+o,c+p,O+D),et=Math.min(d-o,u-p,X-D),at=Math.max(d+o,u+p,X+D),Nt=(I-Z)/100,wt=(at-et)/100,pt=0,ft=0,mt=0,gt=0,yt=0,bt=0,Ct=0;for(let F=Z;F<I;F+=Nt)for(let j=et;j<at;j+=wt){let J=(F-l)*(F-l)+(j-d)*(j-d)<o*o,q=(F-c)*(F-c)+(j-u)*(j-u)<p*p,K=(F-O)*(F-O)+(j-X)*(j-X)<D*D;J&&q&&K?Ct++:J&&q&&!K?gt++:J&&!q&&!K?pt++:!J&&q&&!K?ft++:J&&!q&&K?yt++:!J&&q&&K?bt++:!J&&!q&&K&&mt++}let Y=pt+ft+mt+gt+yt+bt+Ct,G=v/e;G+=this._error(T,s,Ct,Y),G+=this._error(m,s,gt,Y),G+=this._error(x,s,yt,Y),G+=this._error(A,s,bt,Y),G+=this._error(g,s,pt,Y),G+=this._error(y,s,ft,Y),G+=this._error(C,s,mt,Y),(t===0||G<E)&&(R=t,P=v,H=D,E=G)}}this.alphaBest=R,this.dBest=P,this.rBest=H,this.errorBest=E}_error(t,e,a,r){return t===0&&a!==0||t!==0&&a===0?1e3:Math.abs(t/e-a/r)*100}}class dt{distR;maxR;minR;total;constructor(t,e,a,r){this.distR=t,this.maxR=e,this.minR=a,this.total=r}findBalance2(t,e){let a=(t.r*t.x+e.r*e.x)/(t.r+e.r),r=(t.r*t.y+e.r*e.y)/(t.r+e.r);t.x=t.x-a,e.x=e.x-a,t.y=t.y-r,e.y=e.y-r}findBalance3(t,e,a){let r=(t.r*t.x+e.r*e.x+a.r*a.x)/(t.r+e.r+a.r),i=(t.r*t.y+e.r*e.y+a.r*a.y)/(t.r+e.r+a.r);t.x=t.x-r,e.x=e.x-r,a.x=a.x-r,t.y=t.y-i,e.y=e.y-i,a.y=a.y-i}calcR(t,e){return t===-1?this.maxR*e:Math.max(this.minR,Math.sqrt(t/this.total)*this.maxR*e)}calcD(t,e,a,r,i,s){let l;if(i===0)l=t.r+e.r+this.distR*2;else if(a===0&&r===0)l=0;else if(a===0)l=Math.max(0,e.r-t.r-this.distR),l<1.5*this.distR&&s&&(l=1.5*this.distR,t.r=e.r-l);else if(r===0)l=Math.max(0,t.r-e.r-this.distR),l<1.5*this.distR&&s&&(l=1.5*this.distR,e.r=t.r-l);else{let d=Math.min(t.r,e.r),o=Math.max(t.r,e.r);l=2*(Math.min(a,r)/(Math.min(a,r)+i))*d-d+o,l=Math.max(3*this.distR,l),l=Math.min(d+o-3*this.distR,l),l=Math.max(o-d+3*this.distR,l)}return l}}class ut extends M{animationTriggered;data;centerX;centerY;numberOfCircles;readyToDraw;wasCircle;vennCircleHelper;async3Calculator;vennNumber1;vennReal1;vennNumber2;vennReal2;vennNumber3;vennReal3;$v1;$v2;$v3;constructor(t){super(t),this.animationTriggered=!1,this.suppressLegendBox=!0;let e={options:{venn:{numberOfCircles:void 0}}};t.config=b().extend(!0,{},e,t.config)}_validate(){let t=this.chart.data;return!(!t||t.axes.length!==0||t.chartValueGroups.length===0||t.chartValueGroups[0].values.length===0)}_renderInternal(){if(this.centerX=this.width/2,this.centerY=this.height/2,this.centerX===0||this.centerY===0)return;this.data=this.chart.data.chartValueGroups,this.numberOfCircles=this.chart.config.options.venn.numberOfCircles;let t=10,e=Math.min(this.centerX,this.centerY),a=e/15,r=this.data.reduce((l,d)=>l+d.values[0],1);this.vennCircleHelper=new dt(t,e,a,r),this.numberOfCircles>0&&(this.$v1=this._createCircle(0,n.arrays.ensure(this.data[0].colorHexValue)[0],this.data[0].cssClass),this.vennNumber1=new N(this.$v1),this.vennReal1=new N(this.$v1)),this.numberOfCircles>1&&(this.$v2=this._createCircle(1,n.arrays.ensure(this.data[1].colorHexValue)[0],this.data[1].cssClass),this.vennNumber2=new N(this.$v2),this.vennReal2=new N(this.$v2)),this.numberOfCircles>2&&(this.$v3=this._createCircle(2,n.arrays.ensure(this.data[2].colorHexValue)[0],this.data[2].cssClass),this.vennNumber3=new N(this.$v3),this.vennReal3=new N(this.$v3));const i=this.animationDuration;let s=(function(){if(this.readyToDraw=!0,!this.$svg.isAttached())return;this.readyToDraw=!1;const l=this.animationDuration;this.setAnimationDuration(i),this._draw(!0,!0),this.setAnimationDuration(l)}).bind(this);this.readyToDraw=!1,this.numberOfCircles===1?(this._calc1(this.vennNumber1),this._calc1(this.vennReal1),s()):this.numberOfCircles===2?(this._calc2(this.vennNumber1,this.vennNumber2,!1),this._calc2(this.vennReal1,this.vennReal2,!0),s()):this.numberOfCircles===3&&this._calc3(this.vennNumber1,this.vennNumber2,this.vennNumber3,!1,()=>{(this.rendering||this.rendered)&&this._calc3(this.vennReal1,this.vennReal2,this.vennReal3,!0,s)})}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments.length>1?arguments[1]:void 0;this._cancelAsync3Calculator(),super.remove(t,e)}_calc1(t){let e=this.data[0].values[0];e>0?t.r=this.vennCircleHelper.calcR(e,.8):t.r=this.vennCircleHelper.calcR(e,0),t.x=0,t.y=0,t.setLegend(this.data[0].groupName,1,-1),t.addLabel(e,t.x,t.y)}_calc2(t,e,a){let r=this.data[0].values[0],i=this.data[1].values[0],s=this.data[2].values[0],l;a?(t.r=this.vennCircleHelper.calcR(r+s,.8),e.r=this.vennCircleHelper.calcR(i+s,.8),l=this.vennCircleHelper.calcD(t,e,r,i,s,!0),t.x=0,e.x=l):(t.r=e.r=this.vennCircleHelper.calcR(-1,.7),t.x=-t.r*.6,e.x=e.r*.6),t.y=0,e.y=0,this.vennCircleHelper.findBalance2(t,e),t.setLegend(this.data[0].groupName,-1,-1),e.setLegend(this.data[1].groupName,1,-1),a?s===0?(t.addLabel(r,t.x,t.y),e.addLabel(i,e.x,e.y)):r===0&&i===0?t.addLabel(s,t.x,t.y):r===0?(e.addLabel(s,t.x,t.y),e.addLabel(i,e.x-(l-e.r-t.r)/2,e.y),t.legendR=e.r-l):i===0?(t.addLabel(s,e.x,e.y),t.addLabel(r,t.x+(l-e.r-t.r)/2,t.y),e.legendR=t.r-l):(t.addLabel(r,t.x+(l-e.r-t.r)/2,t.y),t.addLabel(i,e.x-(l-e.r-t.r)/2,e.y),e.addLabel(s,t.x+t.r+(l-e.r-t.r)/2,t.y)):(t.addLabel(r,-t.r*.9,0),t.addLabel(i,t.r*.9,0),e.addLabel(s,0,0))}_calc3(t,e,a,r,i){let s=this.data[0].values[0],l=this.data[1].values[0],d=this.data[2].values[0],o=this.data[3].values[0],c=this.data[4].values[0],u=this.data[5].values[0],p=this.data[6].values[0],f,g,y;r?(t.r=this.vennCircleHelper.calcR(s+o+c+p,.55),e.r=this.vennCircleHelper.calcR(l+o+u+p,.55),a.r=this.vennCircleHelper.calcR(d+c+u+p,.55),f=this.vennCircleHelper.calcD(t,e,s+c,l+u,o+p,!0),g=this.vennCircleHelper.calcD(t,a,s+o,d+u,o+p,!1),y=this.vennCircleHelper.calcD(e,a,l+o,d+c,o+p,!1),t.x=0,e.x=f,a.x=g,t.y=0,e.y=0,a.y=0,this._cancelAsync3Calculator(),this.async3Calculator=new ht(this.vennCircleHelper,t,e,a,s,l,d,o,c,u,p,f,g,y),this.async3Calculator.start(()=>{this.async3Calculator=null,this.vennCircleHelper.findBalance3(t,e,a),t.setLegend(this.data[0].groupName,-1,1),e.setLegend(this.data[1].groupName,1,1),a.setLegend(this.data[2].groupName,1,-1),i()})):(t.r=e.r=a.r=this.vennCircleHelper.calcR(-1,.55),t.x=-t.r*.73,e.x=e.r*.73,a.x=0,t.y=t.r*.58,e.y=e.r*.58,a.y=-a.r*.58,t.setLegend(this.data[0].groupName,-1,1),e.setLegend(this.data[1].groupName,1,1),a.setLegend(this.data[2].groupName,1,-1),t.addLabel(s,-t.r,t.r*.76),e.addLabel(l,t.r,t.r*.76),a.addLabel(d,0,-t.r*.82),t.addLabel(o,0,t.r*.76),t.addLabel(c,-t.r*.49,-t.r*.05),e.addLabel(u,t.r*.49,-t.r*.05),t.addLabel(p,0,t.r*.22),i())}_cancelAsync3Calculator(){this.async3Calculator&&(this.async3Calculator.cancel(),this.async3Calculator=null)}_draw(t,e){if(!this.rendered&&!this.rendering||this.animationTriggered)return;this.animationTriggered=!0;let a=this;this.$svg.children(".venn-legend, .venn-label, .venn-axis-white, .label-line").stop().animateSVG("opacity",1,0,null,!0).promise().done(function(){this.remove(),a.animationTriggered=!1});let r=[];this.numberOfCircles>0&&r.push(e?this.vennReal1:this.vennNumber1),this.numberOfCircles>1&&r.push(e?this.vennReal2:this.vennNumber2),this.numberOfCircles>2&&r.push(e?this.vennReal3:this.vennNumber3);for(let i=0;i<r.length;i++){let s=r[i];this._updateVenn(s,t);for(let l=0;l<s.labels.length;l++){let d=s.labels[l];this._drawLabel(d.text,d.x,d.y,t)}}}_createCircle(t,e,a){let r=this.$svg.appendSVG("circle","venn-circle").attr("cx",this.centerX).attr("cy",this.centerY).attr("r",0).on("mouseenter",{showReal:!1},this._show.bind(this)).on("mouseleave",{showReal:!0},this._show.bind(this));return this.chart.config.options.autoColor?r.addClass("auto-color color0"):a?r.addClass(a):r.attr("fill",e),this.chart.config.options.clickable&&r.on("click",this._createClickObject(null,t),this._onChartValueClick.bind(this)),r}_updateVenn(t,e){t.$circle.animateSVG("cx",this.centerX+t.x,e?this.animationDuration:0,null,!0).animateSVG("cy",this.centerY+t.y,e?this.animationDuration:0,null,!0).animateSVG("r",t.r,e?this.animationDuration:0,null,!0);let a=this.vennCircleHelper.minR,r=this.centerX+t.x+t.legendH*Math.sin(Math.PI/5)*t.r,i=this.centerY+t.y+t.legendV*Math.cos(Math.PI/5)*t.r,s=this.centerX+t.x+t.legendH*Math.sin(Math.PI/5)*(t.legendR+a*1.5),l=this.centerY+t.y+t.legendV*Math.cos(Math.PI/5)*(t.legendR+a*1.5),d={x1:r,x2:s,y1:i,y2:l,v:t.legendV,h:t.legendH};this._renderWireLegend(t.legend,d,"venn-legend")}_drawLabel(t,e,a,r){let i=this.$svg.appendSVG("text","venn-label").attr("x",this.centerX+e).attr("y",this.centerY+a).text(t);r&&this.animationDuration&&i.attr("opacity",0).animateSVG("opacity",1,this.animationDuration,null,!0)}_show(t){if(this.numberOfCircles===1)return;let e=t.type==="mouseenter"?t.target:t.relatedTarget,a=e&&b()(e).hasClass("venn-circle");this.wasCircle&&a||(this.wasCircle=a,this._draw(!0,t.data.showReal))}}class N{labels;$circle;x;y;r;legend;legendR;legendH;legendV;constructor(t){this.$circle=t,this.labels=[]}setLegend(t,e,a,r){this.legend=t,this.legendH=e,this.legendV=a,this.legendR=r||this.r}addLabel(t,e,a){this.labels.push({text:t,x:e,y:a})}}class Rt extends n.FormField{chart;constructor(){super(),this._addWidgetProperties(["chart"]),this.chart=null}_render(){this.addContainer(this.$parent,"chart-field"),this.addLabel(),this.addMandatoryIndicator(),this.addStatus(),this._renderChart()}_renderChart(){this.chart&&(this.chart.render(),this.addField(this.chart.$container))}_removeChart(){this.chart.remove(),this._removeField()}_linkWithLabel(t){}}class Lt extends n.FormFieldAdapter{}class St extends n.FormFieldTile{_chartConfigChangeHandler;constructor(){super(),this._chartConfigChangeHandler=this._onChartConfigChange.bind(this)}_setColorScheme(t){super._setColorScheme(t),this._updateChartColorScheme()}_updateChartColorScheme(){let t=$.extend(!0,{},this.tileWidget.chart.config,{options:{colorScheme:this.colorScheme}});this.tileWidget.chart.setConfig(t)}_onChartConfigChange(t){this._updateChartColorScheme()}_setTileWidget(t){this.tileWidget&&this.tileWidget.chart.off("propertyChange:config",this._chartConfigChangeHandler),super._setTileWidget(t),this._updateChartColorScheme(),this.tileWidget.chart.on("propertyChange:config",this._chartConfigChangeHandler)}}class Ot extends n.FormFieldTileAdapter{}class z extends n.TableControl{chartAggregation;chartGroup1;chartGroup2;chartType;oldChartType;chart;chartColorScheme;xAxis;yAxis;dateGroup;$chartSelect;$axisSelectContainer;$xAxisSelect;$yAxisSelect;$dataSelect;_chartTypeMap;_aggregationMap;_chartGroup1Map;_chartGroup2Map;_tableUpdatedHandler;_tableColumnStructureChangedHandler;_chartValueClickedHandler;_filterRemovedListener;_tableUpdatedTimeOutId;constructor(){super(),this.iconId=n.icons.CHART,this.tooltipText="${textKey:ui.Chart}",this.chartAggregation={modifier:n.TableMatrix.NumberGroup.COUNT},this.chartType=h.Type.BAR,this.oldChartType=null,this.chart=null,this.chartColorScheme="chart-table-control",this.$chartSelect=null,this.$xAxisSelect=null,this.$yAxisSelect=null,this.$dataSelect=null,this.xAxis=null,this.yAxis=null,this.dateGroup=null,this._tableUpdatedHandler=this._onTableUpdated.bind(this),this._tableColumnStructureChangedHandler=this._onTableColumnStructureChanged.bind(this),this._chartValueClickedHandler=this._onChartValueClick.bind(this)}static DATE_GROUP_FLAG=256;static MAX_AXIS_COUNT=100;_init(t){super._init(t),this.table.on("columnStructureChanged",this._tableColumnStructureChangedHandler),this.chart=n.scout.create(h,{parent:this})}_destroy(){this.table.off("columnStructureChanged",this._tableColumnStructureChangedHandler),super._destroy()}_computeEnabled(t,e){return!this._hasColumns()&&!this.selected?!1:super._computeEnabled(t,e)}_renderChart(){this.chart&&(this.chart.render(this.$contentContainer),this.chart.$container.addClass(this.denseClass))}_createLayout(){return new ct(this)}_renderChartType(){this._selectChartType(),this.$yAxisSelect.toggleClass("hide",this.chartType!==h.Type.BUBBLE),this.$yAxisSelect.toggleClass("animated",n.scout.isOneOf(h.Type.BUBBLE,this.chartType,this.oldChartType)&&!!this.oldChartType),this.$yAxisSelect.data("scroll-shadow").setVisible(!1),this.$yAxisSelect.oneAnimationEnd(()=>{n.scrollbars.update(this.$yAxisSelect),this.$yAxisSelect.data("scroll-shadow").setVisible(!0),this.$yAxisSelect.removeClass("animated")}),this.contentRendered&&this.chart.$container.animateAVCSD("opacity",0,()=>{this.chart.$container.css("opacity",1),this._drawChart()})}_selectChartType(){n.objects.values(this._chartTypeMap).forEach(t=>{t.removeClass("selected")}),this._chartTypeMap[this.chartType].addClass("selected")}_renderChartGroup1(){this._renderChartGroup(1)}_renderChartGroup2(){this._renderChartGroup(2)}_renderChartGroup(t){if(!this._hasColumns())return;let e="chartGroup"+t,a="_"+e+"Map",r=this[e];if(r){let i=this[a][r.id];if(i.siblings(".select-axis").animateAVCSD("height",30),i.selectOne("selected"),r.modifier>0){let s=r.modifier^z.DATE_GROUP_FLAG;i.animateAVCSD("height",42),i.children(".select-axis-group").text(this.dateGroup[s][1])}this.contentRendered&&this._drawChart()}}_renderChartAggregation(){let t=this._aggregationMap[this.chartAggregation.id||"all"];t&&(t.selectOne(),t.removeClass("data-sum").removeClass("data-avg"),t.addClass(this._getAggregationCssClass()),this.contentRendered&&this._drawChart())}_getAggregationCssClass(){switch(this.chartAggregation.modifier){case n.TableMatrix.NumberGroup.COUNT:return"data-count";case n.TableMatrix.NumberGroup.SUM:return"data-sum";case n.TableMatrix.NumberGroup.AVG:return"data-avg";default:return null}}_renderChartSelect(t,e,a){let r=n.scout.create(n.Icon,{parent:this,iconDesc:a,cssClass:t});r.render(this.$chartSelect),this.$contentContainer.one("remove",()=>r.destroy());let i=r.$container;i.toggleClass("disabled",!this.enabledComputed||!this._hasColumns()).data("chartType",e),this.enabledComputed&&this._hasColumns()&&i.on("click",this._onClickChartType.bind(this)),this._chartTypeMap[e]=i}_renderChartSelectContainer(){this.$chartSelect=this.$contentContainer.appendDiv("chart-select"),this._chartTypeMap={};let t=this._getSupportedChartTypes();n.scout.isOneOf(h.Type.BAR,t)&&this._renderChartSelect("chart-bar",h.Type.BAR,n.icons.DIAGRAM_BARS_VERTICAL),n.scout.isOneOf(h.Type.BAR_HORIZONTAL,t)&&this._renderChartSelect("chart-stacked",h.Type.BAR_HORIZONTAL,n.icons.DIAGRAM_BARS_HORIZONTAL),n.scout.isOneOf(h.Type.LINE,t)&&this._renderChartSelect("chart-line",h.Type.LINE,n.icons.DIAGRAM_LINE),n.scout.isOneOf(h.Type.PIE,t)&&this._renderChartSelect("chart-pie",h.Type.PIE,n.icons.DIAGRAM_PIE),n.scout.isOneOf(h.Type.BUBBLE,t)&&this._renderChartSelect("chart-bubble",h.Type.BUBBLE,n.icons.DIAGRAM_SCATTER)}_getSupportedChartTypes(){return[h.Type.BAR,h.Type.BAR_HORIZONTAL,h.Type.LINE,h.Type.PIE,h.Type.BUBBLE]}_onClickChartType(t){let e=b()(t.currentTarget),a=e.data("chartType");this.setChartType(a)}_onClickChartGroup(t){let e=b()(t.currentTarget),a=e.parent().data("groupId"),r=e.data("column"),i=e.data("modifier");if(!e.isEnabled())return;let s=e.isSelected()?this._nextDateModifier(i):i;e.data("modifier",s);let l={id:r?r.id:null,modifier:s};this._setChartGroup(a,l)}_onClickAggregation(t){let e=b()(t.currentTarget),a=e.data("modifier"),r=e.isSelected()?this._nextModifier(a):a;e.data("modifier",r);let i=e.data("column"),s={id:i?i.id:null,modifier:r};this._setChartAggregation(s)}_nextDateModifier(t){switch(t){case n.TableMatrix.DateGroup.DATE:return n.TableMatrix.DateGroup.MONTH;case n.TableMatrix.DateGroup.MONTH:return n.TableMatrix.DateGroup.WEEKDAY;case n.TableMatrix.DateGroup.WEEKDAY:return n.TableMatrix.DateGroup.YEAR;case n.TableMatrix.DateGroup.YEAR:return n.TableMatrix.DateGroup.DATE;default:return t}}_nextModifier(t){switch(t){case n.TableMatrix.NumberGroup.SUM:return n.TableMatrix.NumberGroup.AVG;case n.TableMatrix.NumberGroup.AVG:return n.TableMatrix.NumberGroup.SUM;default:return t}}setChartAggregation(t){this.setProperty("chartAggregation",t)}_setChartAggregation(t){t!==this.chartAggregation&&(this._setProperty("chartAggregation",t),this.contentRendered&&this._renderChartAggregation())}setChartGroup1(t){this.setProperty("chartGroup1",t)}_setChartGroup1(t){this._setChartGroup(1,t)}setChartGroup2(t){this.setProperty("chartGroup2",t)}_setChartGroup2(t){this._setChartGroup(2,t)}_setChartGroup(t,e){let a="chartGroup"+t;this._changeProperty(a,e)}_changeProperty(t,e){e!==this[t]&&(this._setProperty(t,e),this.contentRendered&&this["_render"+t.charAt(0).toUpperCase()+t.slice(1)]())}setChartType(t){this.oldChartType=this.chartType,this.setProperty("chartType",t)}_hasColumns(){return this._columns().length>0}_columns(){return new n.TableMatrix(this.table,this.session).columns()}_axisCount(t,e){let a;for(let r=0;r<t.length;r++)if(a=t[r][0],a===e)return t[r][1];return 0}_plainAxisText(t,e){return t.headerHtmlEnabled?n.strings.plainText(e).replace(/\n/g," "):e}_renderContent(t){this.$contentContainer=t.appendDiv("chart-container"),this._installScrollbars(),this._renderChartSelectContainer(),this.dateGroup=[[n.TableMatrix.DateGroup.YEAR,this.session.text("ui.groupedByYear")],[n.TableMatrix.DateGroup.MONTH,this.session.text("ui.groupedByMonth")],[n.TableMatrix.DateGroup.WEEKDAY,this.session.text("ui.groupedByWeekday")],[n.TableMatrix.DateGroup.DATE,this.session.text("ui.groupedByDate")]],this._filterRemovedListener=this.table.on("filterRemoved",a=>{a.filter instanceof V&&this.chart.setCheckedItems([])}),this._addListeners(),this._renderAxisSelectorsContainer();let e=this._renderAxisSelectors();this._renderChart(),this._initializeSelection(e),this._renderChartParts(),this._drawChart()}_addListeners(){this.table.on("rowsInserted",this._tableUpdatedHandler),this.table.on("rowsDeleted",this._tableUpdatedHandler),this.table.on("allRowsDeleted",this._tableUpdatedHandler),this.chart.on("valueClick",this._chartValueClickedHandler)}_renderAxisSelectorsContainer(){this.$axisSelectContainer=this.$contentContainer.appendDiv("axis-select-container")}_renderAxisSelectors(){this.$xAxisSelect=this.$axisSelectContainer.appendDiv("xaxis-select").data("groupId",1),n.scrollbars.install(this.$xAxisSelect,{parent:this,session:this.session,axis:"y"}),this.$yAxisSelect=this.$axisSelectContainer.appendDiv("yaxis-select").data("groupId",2),n.scrollbars.install(this.$yAxisSelect,{parent:this,session:this.session,axis:"y"}),this._chartGroup1Map={},this._chartGroup2Map={};let t=new n.TableMatrix(this.table,this.session),e=t.columnCount(!1);e.sort((l,d)=>Math.abs(l[1]-8)-Math.abs(d[1]-8));let a,r,i=0,s=t.columns(!1);for(let l=0;l<s.length;l++){let d,o,c,u=s[l];u instanceof n.DateColumn?r=!0:(a=this._axisCount(e,u),r=a<=z.MAX_AXIS_COUNT),d=this._axisContentForColumn(u),o=this.$contentContainer.makeDiv("select-axis",this._plainAxisText(u,d.text)).data("column",u).setEnabled(r),r||(this.chartGroup1&&this.chartGroup1.id===u.id&&(this.chartGroup1=null,this.chartGroup2=null),this.chartGroup2&&this.chartGroup2.id===u.id&&(this.chartGroup2=null)),d.icon&&o.addClass(d.icon.appendCssClass("font-icon")),u instanceof n.DateColumn&&o.data("modifier",n.TableMatrix.DateGroup.YEAR).appendDiv("select-axis-group",this.dateGroup[0][1]),r?(o.on("click",this._onClickChartGroup.bind(this)),n.tooltips.installForEllipsis(o,{parent:this})):n.tooltips.install(o,{parent:this,text:this.session.text("ui.TooMuchData")}),i++,c=o.clone(!0),this._chartGroup1Map[u.id]=o,this._chartGroup2Map[u.id]=c,this.$xAxisSelect.append(o),this.$yAxisSelect.append(c)}if(this._aggregationMap={},this._hasColumns()){this.$dataSelect=this.$axisSelectContainer.appendDiv("data-select"),n.scrollbars.install(this.$dataSelect,{parent:this,session:this.session,axis:"y"});let l=this.session.text("ui.Count");this._aggregationMap.all=this.$dataSelect.appendDiv("select-data data-count",l).data("column",null).data("modifier",n.TableMatrix.NumberGroup.COUNT);for(let d=0;d<s.length;d++){let o=s[d],c=d+1;if(o instanceof n.NumberColumn){let u;n.strings.hasText(o.text)?u=this._plainAxisText(o,o.text):n.strings.hasText(o.headerTooltipText)?u=o.headerTooltipText:u="["+c+"]",this._aggregationMap[o.id]=this.$dataSelect.appendDiv("select-data data-sum",u).data("column",o).data("modifier",n.TableMatrix.NumberGroup.SUM)}}b()(".select-data",this.$contentContainer).on("click",this._onClickAggregation.bind(this))}return e}_initializeSelection(t){let e;this.chartType||this.setChartType(h.Type.BAR),(!this.chartAggregation||!this._aggregationMap[this.chartAggregation.id])&&this._setChartAggregation({id:null,modifier:n.TableMatrix.NumberGroup.COUNT}),(!this.chartGroup1||!this.chartGroup1.id||!this._chartGroup1Map[this.chartGroup1.id])&&(e=this.$xAxisSelect.children(":not(.disabled)"),this._setDefaultSelectionForGroup(1,t,e,0)),(!this.chartGroup2||!this.chartGroup2.id||!this._chartGroup2Map[this.chartGroup2.id])&&(e=this.$yAxisSelect.children(":not(.disabled)"),this._setDefaultSelectionForGroup(2,t,e,1))}_setDefaultSelectionForGroup(t,e,a,r){let i=this._getDefaultSelectedColumn(e,a,r);i&&this._setChartGroup(t,this._getDefaultChartGroup(i))}_getDefaultSelectedColumn(t,e,a){let r=0,i,s;for(let l=0;l<t.length&&r<=a;l++)i=t[l][0],this._existsInAxisColumns(e,i)&&(s=i,r++);return s}_existsInAxisColumns(t,e){for(let a=0;a<t.length;a++)if(t.eq(a).data("column")===e)return!0;return!1}_getDefaultChartGroup(t){let e;return t instanceof n.DateColumn&&(e=256),{id:t.id,modifier:e}}_renderChartParts(){this._renderChartType(),this._renderChartAggregation(),this._renderChartGroup1(),this._renderChartGroup2()}_drawChart(){if(!this._hasColumns()){this._hideChart();return}let t=this._calculateValues();if(t&&t.length)this.chart.setVisible(!0);else{this._hideChart();return}let e={type:this.chartType,options:{handleResize:!0,colorScheme:this.chartColorScheme,maxSegments:5,plugins:{legend:{display:!1}}}},a=[];e.data=this._computeData(a,t),this._adjustFont(e,a),this._adjustConfig(e),this.chart.setConfig(e);let r=this._computeCheckedItems(e.data.datasets[0].deterministicKeys);this.chart.setCheckedItems(r)}_hideChart(){this.chart.setConfig({type:this.chartType}),this.chart.setVisible(!1)}_getDatasetLabel(){let t=this._aggregationMap[this.chartAggregation.id||"all"];return(t?t.text():null)||this.session.text("ui.Value")}_calculateValues(){let t=new n.TableMatrix(this.table,this.session),e=this.chartAggregation.id?this._aggregationMap[this.chartAggregation.id].data("column"):-1;if(t.addData(e,this.chartAggregation.modifier),this.chartGroup1){let a=this._chartGroup1Map[this.chartGroup1.id].data("column");this.xAxis=t.addAxis(a,this.chartGroup1.modifier)}if(this.chartType===h.Type.BUBBLE&&this.chartGroup2){let a=this._chartGroup2Map[this.chartGroup2.id].data("column");this.yAxis=t.addAxis(a,this.chartGroup2.modifier)}else this.yAxis=null;if(!(t.isEmpty()||!t.isMatrixValid()))return t.calculate()}_getXAxis(){return this.xAxis}_getYAxis(){return this.yAxis}_computeData(t,e){let a={datasets:[{label:this._getDatasetLabel()}]};if(!e)return a;t=t||[];let r=[];if(this.chartType===h.Type.BUBBLE)r=this._computeBubbleData(t,e);else{let l=this._getXAxis();for(let d=0;d<l.length;d++){let o,c=l[d];l.column instanceof n.NumberColumn?o=n.objects.isNullOrUndefined(c)?l.format(c):c:o=this._handleIconLabel(l.format(c),l,t),r.push({value:e.getValue([c])[0],label:o,deterministicKey:l.keyToDeterministicKey(c)})}}let i=a.datasets[0],s=[];return i.data=[],i.deterministicKeys=[],r.forEach(l=>{i.data.push(l.value),i.deterministicKeys.push(l.deterministicKey),n.objects.isNullOrUndefined(l.label)||s.push(l.label)}),s.length&&(a.labels=s),a}_computeBubbleData(t,e){if(!e)return[];t=t||[];let a=this._getXAxis(),r=this._getYAxis(),i=[];for(let s=0;s<a.length;s++){let l=a[s],d=l;this._handleIconLabel(a.format(l),a,t),!(a.column instanceof n.NumberColumn)&&d===null&&(d=a.max),a.column instanceof n.DateColumn&&(d=d-a.min);for(let o=0;o<r.length;o++){let c=r[o],u=c,p=e.getValue([l,c]);this._handleIconLabel(r.format(c),r,t),p&&p.length&&(!(r.column instanceof n.NumberColumn)&&u===null&&(u=r.max),r.column instanceof n.DateColumn&&(u=u-r.min),i.push({value:{x:d,y:u,z:p[0]},deterministicKey:[a.keyToDeterministicKey(l),r.keyToDeterministicKey(c)]}))}}return i}_handleIconLabel(t,e,a){if(e&&e.isIcon){let r=n.icons.parseIconId(t);if(r&&r.isFontIcon())return a.push(...r.appendCssClass("font-icon").split(" ")),r.iconCharacter}return t}_adjustFont(t,e){if(!(!t||!e)&&(e=e.filter((a,r,i)=>i.indexOf(a)===r),e.length)){let a=n.styles.get(e,"font-family").fontFamily;this.chartType!==h.Type.PIE&&(t.options=b().extend(!0,{},t.options,{scales:{x:{ticks:{font:{family:a}}},y:{ticks:{font:{family:a}}}}})),t.options=b().extend(!0,{},t.options,{plugins:{tooltip:{titleFont:{family:a}}}}),t.options=b().extend(!0,{},t.options,{plugins:{datalabels:{font:{family:a}}}})}}_adjustLabels(t){if(!t)return;let e=this._getXAxis(),a=this._getYAxis();this.chartType===h.Type.BUBBLE?(e.column instanceof n.NumberColumn||(t.options=b().extend(!0,{},t.options,{scales:{x:{ticks:{callback:r=>this._formatLabel(r,e)}}}})),a.column instanceof n.NumberColumn||(t.options=b().extend(!0,{},t.options,{scales:{y:{ticks:{callback:r=>this._formatLabel(r,a)}}}}))):e.column instanceof n.NumberColumn&&(t.options=b().extend(!0,{},t.options,{reformatLabels:!0}))}_formatLabel(t,e){if(!e)return""+t;if(e.column instanceof n.DateColumn&&(t=t+e.min,t!==parseInt(""+t)||e.length<2&&(t<e.min||t>e.max)))return null;if(e.indexOf(null)!==-1){if(t===e.max)t=null;else if(t>e.max)return null}let a=e.format(t);if(e.isIcon){let r=n.icons.parseIconId(a);r&&r.isFontIcon()&&(a=r.iconCharacter)}return a}_adjustConfig(t){t&&(this._adjustLabels(t),this._adjustClickable(t),this.chartType===h.Type.BUBBLE?this._adjustBubble(t):this.chartType===h.Type.PIE?this._adjustPie(t):this._adjustScales(t))}_adjustClickable(t){t&&this._isChartClickable()&&(t.options=b().extend(!0,{},t.options,{clickable:!0,checkable:!0,otherSegmentClickable:!0}))}_isChartClickable(){return!0}_adjustBubble(t){!t||this.chartType!==h.Type.BUBBLE||(t.options.bubble=b().extend(!0,{},t.options.bubble,{sizeOfLargestBubble:25,minBubbleSize:5}))}_adjustPie(t){if(!t||this.chartType!==h.Type.PIE)return;t.data.datasets[0].datalabels={labels:{index:{display:"auto",color:n.styles.get([this.chartColorScheme,this.chartType+"-chart","elements","label"],"fill").fill,formatter:(a,r)=>r.chart.data.labels[r.dataIndex],anchor:"end",align:"end",clamp:!0,offset:10,padding:4},labels:{}}},t.options=b().extend(!0,{},t.options,{plugins:{datalabels:{display:!0}}});let e=this.chart.$container.cssMarginTop()-this.chart.$container.cssMarginBottom();t.options=b().extend(!0,{},t.options,{layout:{padding:{top:30+(Math.sign(e)<0?Math.abs(e):0),bottom:30+(Math.sign(e)>0?e:0)}}})}_adjustScales(t){t&&(t.options=b().extend(!0,{},t.options,{scales:{x:{beginAtZero:!0},y:{beginAtZero:!0}}}))}_computeCheckedItems(t){if(!t)return[];let e=this._getXAxis(),a=this._getYAxis(),r=this.table.getFilter(V.TYPE),i=[],s=[];r&&(r.xAxis||{}).column===(e||{}).column&&(r.yAxis||{}).column===(a||{}).column&&(i=r.filters),t.forEach((o,c)=>{i.filter(u=>Array.isArray(u.deterministicKey)&&Array.isArray(o)?n.arrays.equals(u.deterministicKey,o):u.deterministicKey===o).length&&s.push(c)});let l=0;if(this.chartType===h.Type.PIE){let o=this.chart.config.options.maxSegments,c=n.arrays.init(t.length-o,null).map((u,p)=>p+o);n.arrays.containsAll(s,c)||n.arrays.remove(s,o-1),n.arrays.removeAll(s,c),l=1}let d=[];return s.length&&s.forEach(o=>{d.push({datasetIndex:l,dataIndex:o})}),d}_onChartValueClick(){let t=[];if(this.chart&&this.chart.config.data){let e=this.chart.config.options.maxSegments,a=this.chart.config.data.datasets[0],r=s=>({deterministicKey:a.deterministicKeys[s]});this.chartType===h.Type.PIE&&(r=s=>(s=parseInt(""+s),e&&e===s+1?n.arrays.init(a.deterministicKeys.length-s,null).map((l,d)=>({deterministicKey:a.deterministicKeys[d+s]})):{deterministicKey:a.deterministicKeys[s]})),this.chart.checkedItems.filter(s=>s.datasetIndex===0).map(s=>s.dataIndex).forEach(s=>{n.arrays.pushAll(t,r(s))})}if(t.length){let e=n.scout.create(V,{session:this.session,table:this.table,text:this.tooltipText,xAxis:this._getXAxis(),yAxis:this._getYAxis(),filters:t});this.table.addFilter(e)}else this.table.removeFilterByKey(V.TYPE)}_axisContentForColumn(t){let e=t.text;if(n.strings.hasText(e))return{text:e};if(t.headerIconId){let a=n.icons.parseIconId(t.headerIconId);if(a.isFontIcon())return{text:a.iconCharacter,icon:a}}return t.headerTooltipText?{text:t.headerTooltipText}:{text:"["+(this._columns().indexOf(t)+1)+"]"}}_removeContent(){this._removeScrollbars(),this.$contentContainer.remove(),this.chart.remove(),this.table.events.removeListener(this._filterRemovedListener),this._removeListeners(),this.oldChartType=null,this.recomputeEnabled()}_removeScrollbars(){this.$xAxisSelect.each((t,e)=>{n.tooltips.uninstall(b()(e))}),n.scrollbars.uninstall(this.$xAxisSelect,this.session),this.$yAxisSelect.each((t,e)=>{n.tooltips.uninstall(b()(e))}),n.scrollbars.uninstall(this.$yAxisSelect,this.session),n.scrollbars.uninstall(this.$dataSelect,this.session),this._uninstallScrollbars()}_removeListeners(){this.table.off("rowsInserted",this._tableUpdatedHandler),this.table.off("rowsDeleted",this._tableUpdatedHandler),this.table.off("allRowsDeleted",this._tableUpdatedHandler),this.chart.off("valueClick",this._chartValueClickedHandler)}_onTableUpdated(t){this._tableUpdatedTimeOutId||(this._tableUpdatedTimeOutId=setTimeout(()=>{this._tableUpdatedTimeOutId=null,this.rendered&&(this._setChartGroup1(null),this._setChartGroup2(null),this.removeContent(),this.renderContent())}))}_onTableColumnStructureChanged(){this.recomputeEnabled(),this.contentRendered&&this.selected&&this._onTableUpdated()}}class Dt extends n.TableControlAdapter{constructor(){super(),this._addRemoteProperties(["chartType","chartAggregation","chartGroup1","chartGroup2"])}}var w=function(_,t,e,a){var r=arguments.length,i=r<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,e):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(_,t,e,a);else for(var l=_.length-1;l>=0;l--)(s=_[l])&&(i=(r<3?s(i):r>3?s(t,e,i):s(t,e))||i);return r>3&&i&&Object.defineProperty(t,e,i),i};let S=class extends n.BaseDoEntity{chartTypeId;chartGroup1ColumnId;chartGroup1Modifier;chartGroup2ColumnId;chartGroup2Modifier;chartAggregationColumnId;chartAggregationModifier};w([Reflect.metadata("scout.m.t",String)],S.prototype,"chartTypeId",void 0),w([Reflect.metadata("scout.m.t",String)],S.prototype,"chartGroup1ColumnId",void 0),w([Reflect.metadata("scout.m.t",Number)],S.prototype,"chartGroup1Modifier",void 0),w([Reflect.metadata("scout.m.t",String)],S.prototype,"chartGroup2ColumnId",void 0),w([Reflect.metadata("scout.m.t",Number)],S.prototype,"chartGroup2Modifier",void 0),w([Reflect.metadata("scout.m.t",String)],S.prototype,"chartAggregationColumnId",void 0),w([Reflect.metadata("scout.m.t",Number)],S.prototype,"chartAggregationModifier",void 0),S=w([(0,n.typeName)("scout.ChartTableControlConfig")],S),window.scout.DataObjectInventory.get().add(S,"scout.ChartTableControlConfig","ChartTableControlConfigDo");class ct extends n.AbstractLayout{control;constructor(t){super(),this.control=t}layout(t){this.control.contentRendered&&(n.scrollbars.update(this.control.$contentContainer),n.scrollbars.update(this.control.$xAxisSelect),n.scrollbars.update(this.control.$yAxisSelect),n.scrollbars.update(this.control.$dataSelect))}}class V extends n.TableUserFilter{text;xAxis;yAxis;filters;columnIdX;columnIdY;constructor(){super(),this.filterType=V.TYPE,this.text=null,this.xAxis=null,this.yAxis=null,this.filters=[],this.columnIdX=null,this.columnIdY=null}static TYPE="CHART";createLabel(){return this.text}createFilterAddedEventData(){let t=super.createFilterAddedEventData();return t.text=this.text,t.filters=this.filters,t.columnIdX=this.xAxis&&this.xAxis.column?this.xAxis.column.id:null,t.columnIdY=this.yAxis&&this.yAxis.column?this.yAxis.column.id:null,t}calculate(){let t=new n.TableMatrix(this.table,this.session),e=this.table.columnById(this.columnIdX),a=e.createFilter().axisGroup();if(this.xAxis=t.addAxis(e,a),this.columnIdY){let r=this.table.columnById(this.columnIdY),i=r.createFilter().axisGroup();this.yAxis=t.addAxis(r,i)}t.calculate()}accept(t){this.xAxis||this.calculate();let e=this.xAxis.column.cellValueOrTextForCalculation(t),a=this.xAxis.normDeterministic(e);if(!this.yAxis)return this.filters.filter(i=>i.deterministicKey===a).length>0;e=this.yAxis.column.cellValueOrTextForCalculation(t);let r=this.yAxis.normDeterministic(e);return this.filters.filter(i=>n.arrays.equals(i.deterministicKey,[a,r])).length>0}}const Mt=Q;n.ObjectFactory.get().registerNamespace("scout",Q)})();
2
+
3
+ //# sourceMappingURL=eclipse-scout-chart-bbeb0621046a40fee663.min.js.map